]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests patch __release__ to mimic always for stdin keys 23394/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 18:30:20 +0000 (14:30 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 99c17ecbaf443824ea8e155e06c11b20a8603d76)

src/ceph-volume/ceph_volume/tests/util/test_prepare.py

index e41ddfe59b93af7965ee03b975c1896e392b636e..a6a9ddad3a5f37c47f9603b5bb4fe1a2a65f7182 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]