Merge pull request #23398 from alfredodeza/wip-patch-release

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

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
Andrew Schoen 2018-08-02 18:15:27 +00:00 committed by GitHub
commit 5fc932e34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]