]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests patch __release__ to mimic always for stdin keys 23398/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 2 Aug 2018 17:51:22 +0000 (13:51 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 2 Aug 2018 17:51:22 +0000 (13:51 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/tests/util/test_prepare.py

index 4b3728f5c34be264e9860c62a9639cc58a85c1d6..110660268171b49c878f6373567c91a3f9442eab 100644 (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]