mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
ceph-volume tests patch __release__ to mimic always for stdin keys
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
13d3d7c862
commit
99c17ecbaf
@ -145,6 +145,7 @@ class TestOsdMkfsFilestore(object):
|
||||
|
||||
@pytest.mark.parametrize('flag', mkfs_filestore_flags)
|
||||
def test_keyring_is_used(self, fake_call, monkeypatch, flag):
|
||||
monkeypatch.setattr(prepare, '__release__', 'mimic')
|
||||
monkeypatch.setattr(system, 'chown', lambda path: True)
|
||||
prepare.osd_mkfs_filestore(1, 'asdf', keyring='secret')
|
||||
assert flag in fake_call.calls[0]['args'][0]
|
||||
|
Loading…
Reference in New Issue
Block a user