]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: mock subprocess calls in tests that remove iscsi daemons
authorAdam King <adking@redhat.com>
Wed, 5 May 2021 17:59:54 +0000 (13:59 -0400)
committerSage Weil <sage@newdream.net>
Fri, 7 May 2021 18:57:49 +0000 (13:57 -0500)
commitfa953c88a8009756d403f9a81db17bed0efc442f
treef969d64fd41010c121f971ffa84e12be12d25831
parentc386f4d42b675cc07d78a1afe9a069f1accb8868
mgr/cephadm: mock subprocess calls in tests that remove iscsi daemons

tests that remove iscsi daemons use subprocess.run to make
a call to rados to clear out the gateway.conf. We don't want
the tests to actually make that call.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c5b984b10c2d6f2eef02e9dbf74aea64bf11f19a)
src/pybind/mgr/cephadm/tests/test_cephadm.py