Merge "Add missing params in NoOpEncryptor"
This commit is contained in:
commit
e2cbf3f851
|
@ -36,8 +36,8 @@ class NoOpEncryptor(base.VolumeEncryptor):
|
|||
execute=execute,
|
||||
*args, **kwargs)
|
||||
|
||||
def attach_volume(self, context):
|
||||
def attach_volume(self, context, **kwargs):
|
||||
pass
|
||||
|
||||
def detach_volume(self):
|
||||
def detach_volume(self, **kwargs):
|
||||
pass
|
||||
|
|
|
@ -24,7 +24,15 @@ class NoOpEncryptorTestCase(test_base.VolumeEncryptorTestCase):
|
|||
keymgr=self.keymgr)
|
||||
|
||||
def test_attach_volume(self):
|
||||
self.encryptor.attach_volume(None)
|
||||
test_args = {
|
||||
'control_location': 'front-end',
|
||||
'provider': 'NoOpEncryptor',
|
||||
}
|
||||
self.encryptor.attach_volume(None, **test_args)
|
||||
|
||||
def test_detach_volume(self):
|
||||
self.encryptor.detach_volume()
|
||||
test_args = {
|
||||
'control_location': 'front-end',
|
||||
'provider': 'NoOpEncryptor',
|
||||
}
|
||||
self.encryptor.detach_volume(**test_args)
|
||||
|
|
Loading…
Reference in New Issue