ceph-volume tests patch __release__ to mimic always for stdin keys

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2018-08-02 13:51:22 -04:00
parent 13d3d7c862
commit 99c17ecbaf

View File

@ -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]