Merge "Implement add_consumer, remove_consumer KeyManager APIs"
This commit is contained in:
commit
13ccaf75f6
|
@ -129,3 +129,13 @@ class ConfKeyManager(key_manager.KeyManager):
|
||||||
reason="cannot delete non-existent key")
|
reason="cannot delete non-existent key")
|
||||||
|
|
||||||
LOG.warning("Not deleting key %s", managed_object_id)
|
LOG.warning("Not deleting key %s", managed_object_id)
|
||||||
|
|
||||||
|
def add_consumer(self, context, managed_object_id, consumer_data):
|
||||||
|
raise NotImplementedError(
|
||||||
|
'ConfKeyManager does not implement adding consumers'
|
||||||
|
)
|
||||||
|
|
||||||
|
def remove_consumer(self, context, managed_object_id, consumer_data):
|
||||||
|
raise NotImplementedError(
|
||||||
|
'ConfKeyManager does not implement removing consumers'
|
||||||
|
)
|
||||||
|
|
|
@ -109,6 +109,16 @@ class FakeKeyManager(key_manager.KeyManager):
|
||||||
|
|
||||||
del self._passphrases[managed_object_id]
|
del self._passphrases[managed_object_id]
|
||||||
|
|
||||||
|
def add_consumer(self, context, managed_object_id, consumer_data):
|
||||||
|
raise NotImplementedError(
|
||||||
|
'FakeKeyManager does not implement adding consumers'
|
||||||
|
)
|
||||||
|
|
||||||
|
def remove_consumer(self, context, managed_object_id, consumer_data):
|
||||||
|
raise NotImplementedError(
|
||||||
|
'FakeKeyManager does not implement removing consumers'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class VTPMServersTest(base.ServersTestBase):
|
class VTPMServersTest(base.ServersTestBase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue