"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nova/tests/unit/console/test_websocketproxy.py" between
nova-18.2.2.tar.gz and nova-18.2.3.tar.gz

About: OpenStack Nova (Core Service: Compute) manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decomissioning of machines on demand.
The "Rocky" series (maintained release).

test_websocketproxy.py  (nova-18.2.2):test_websocketproxy.py  (nova-18.2.3)
skipping to change at line 109 skipping to change at line 109
self.wh.headers = self.fake_header self.wh.headers = self.fake_header
if instance_not_found: if instance_not_found:
self.assertRaises(exception.InvalidToken, self.assertRaises(exception.InvalidToken,
self.wh.new_websocket_client) self.wh.new_websocket_client)
else: else:
with mock.patch('nova.context.get_admin_context', with mock.patch('nova.context.get_admin_context',
return_value=ctxt): return_value=ctxt):
self.wh.new_websocket_client() self.wh.new_websocket_client()
mock_validate.called_once_with(ctxt, '123-456-789') mock_validate.assert_called_once_with(ctxt, '123-456-789')
mock_validate_port.assert_called_once_with( mock_validate_port.assert_called_once_with(
ctxt, mock_inst_get.return_value, str(db_obj['port']), ctxt, mock_inst_get.return_value, str(db_obj['port']),
db_obj['console_type']) db_obj['console_type'])
mock_ca_check.assert_not_called() mock_ca_check.assert_not_called()
self.wh.socket.assert_called_with('node1', 10000, connect=True) self.wh.socket.assert_called_with('node1', 10000, connect=True)
if internal_access_path is None: if internal_access_path is None:
self.wh.do_proxy.assert_called_with('<socket>') self.wh.do_proxy.assert_called_with('<socket>')
else: else:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)