We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bfd932 + 211fdba commit bc2b532Copy full SHA for bc2b532
glance/tests/unit/v2/test_images_resource.py
@@ -3877,9 +3877,7 @@ def test_delete_encryption_key(self):
3877
virtual_size=3072, extra_properties=props)
3878
self.controller._delete_encryption_key(request.context, image)
3879
# Make sure the encryption key is gone
3880
- # TODO(tkajinam): Replace Exception by ManagedObjectNotFoundError once
3881
- # castellan in u-c is bumped to 4.4.0
3882
- self.assertRaises(Exception, # noqa
+ self.assertRaises(castellan_exception.ManagedObjectNotFoundError,
3883
self.controller._key_manager.get,
3884
request.context, fake_encryption_key)
3885
0 commit comments