Tempest test glance_tempest_plugin.tests.rbac.v2.metadefs.test_namespaces.ProjectReaderTests.test_delete_namespace
fails w/ error:
Traceback (most recent call last):
File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/metadefs/test_namespaces.py", line 245, in test_delete_namespace
assertDeleteNamespace(actual_ns, self.project_id,
File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/metadefs/test_namespaces.py", line 238, in assertDeleteNamespace
self.do_request('delete_namespace',
File "/snap/fcbtest/34/lib/python3.10/site-packages/glance_tempest_plugin/tests/rbac/v2/base.py", line 39, in do_request
self.assertRaises(expected_status,
File "/snap/fcbtest/34/lib/python3.10/site-packages/testtools/testcase.py", line 467, in assertRaises
self.assertThat(our_callable, matcher)
File "/snap/fcbtest/34/lib/python3.10/site-packages/testtools/testcase.py", line 480, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: <bound method NamespacesClient.delete_namespace of <tempest.lib.services.image.v2.namespaces_client.NamespacesClient object at 0x7fa7b99df6d0>> returned {}
Test run:
https://solutions.qa.canonical.com/testruns/testRun/bd8a0d9b-cbf4-4645-9825-080cd3889d96
Logs:
https://oil-jenkins.canonical.com/artifacts/bd8a0d9b-cbf4-4645-9825-080cd3889d96/index.html
Looking at the test code [0], it looks like glance throws a different error than what the test expects as reason for not to be able to delete the namespace. I think this may also be a case of incorrect keystone policy.
[0] https:/ /github. com/openstack/ glance- tempest- plugin/ blob/0. 4.0/glance_ tempest_ plugin/ tests/rbac/ v2/metadefs/ test_namespaces .py#L229