====================================================================== ERROR: test_get_data_except_glance_image_list_exception (muranodashboard.tests.unit.images.test_views.TestMarkedImagesView) Test that glance_v1_client.images.list exception is handled. ---------------------------------------------------------------------- Traceback (most recent call last): File "/<>/muranodashboard/images/views.py", line 68, in get_data images_iter = glance_v2_client.images.list( File "/usr/lib/python3.10/unittest/mock.py", line 1104, in __call__ return self._mock_call(*args, **kwargs) File "/usr/lib/python3.10/unittest/mock.py", line 1108, in _mock_call return self._execute_mock_call(*args, **kwargs) File "/usr/lib/python3.10/unittest/mock.py", line 1163, in _execute_mock_call raise effect Exception During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/images/test_views.py", line 174, in test_get_data_except_glance_image_list_exception self.images_view.get_data() File "/<>/muranodashboard/images/views.py", line 74, in get_data exceptions.handle(self.request, msg, redirect=uri) File "/usr/lib/python3/dist-packages/horizon/exceptions.py", line 355, in handle ret = handle_recoverable(request, user_message, redirect, ignore, File "/usr/lib/python3/dist-packages/horizon/exceptions.py", line 250, in handle_recoverable messages.error(request, message or log_entry) File "/usr/lib/python3/dist-packages/horizon/messages.py", line 84, in error add_message(request, constants.ERROR, message, extra_tags=extra_tags, File "/usr/lib/python3/dist-packages/horizon/messages.py", line 43, in add_message if not horizon_message_already_queued(request, message): File "/usr/lib/python3/dist-packages/horizon/messages.py", line 35, in horizon_message_already_queued for msg in _messages.get_messages(request)._queued_messages: TypeError: 'Mock' object is not iterable ====================================================================== FAIL: test_get (muranodashboard.tests.unit.environments.test_rest_api.TestComponentsMetadataAPI) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 58, in test_get self.assertEqual(test_response, response) AssertionError: != ====================================================================== FAIL: test_get_empty_response (muranodashboard.tests.unit.environments.test_rest_api.TestComponentsMetadataAPI) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 70, in test_get_empty_response self.assertEqual(200, result.status_code) AssertionError: 200 != 400 ====================================================================== FAIL: test_post_updated (muranodashboard.tests.unit.environments.test_rest_api.TestComponentsMetadataAPI) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 80, in test_post_updated mock_env_api.Session.get_or_create_or_delete.assert_called_once_with( File "/usr/lib/python3.10/unittest/mock.py", line 930, in assert_called_once_with raise AssertionError(msg) AssertionError: Expected 'get_or_create_or_delete' to be called once. Called 0 times. ====================================================================== FAIL: test_get (muranodashboard.tests.unit.environments.test_rest_api.TestEnvironmentsMetadataApi) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 114, in test_get self.assertEqual(http_response, response) AssertionError: != ====================================================================== FAIL: test_get_empty_response (muranodashboard.tests.unit.environments.test_rest_api.TestEnvironmentsMetadataApi) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 127, in test_get_empty_response self.assertEqual(200, result.status_code) AssertionError: 200 != 400 ====================================================================== FAIL: test_post (muranodashboard.tests.unit.environments.test_rest_api.TestEnvironmentsMetadataApi) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) File "/<>/muranodashboard/tests/unit/environments/test_rest_api.py", line 143, in test_post assert_called_once_with('foo_env', [expected_patch], mock_sess) File "/usr/lib/python3.10/unittest/mock.py", line 930, in assert_called_once_with raise AssertionError(msg) AssertionError: Expected 'update_model' to be called once. Called 0 times. ====================================================================== FAIL: test_get_context_data (muranodashboard.tests.unit.packages.test_views.TestImportBundleWizard) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<>/muranodashboard/tests/unit/packages/test_views.py", line 831, in test_get_context_data self.assertIn(key, context) AssertionError: 'hide' not found in {'form': , 'view': , 'foo': 'bar', 'wizard': {'form': , 'steps': , 'management_form': }, 'modal_backdrop': 'static', 'murano_repo_url': 'http://apps.openstack.org'} ---------------------------------------------------------------------- Ran 434 tests in 3.874s FAILED (failures=7, errors=1)