From: Michael Fritch Date: Fri, 18 Sep 2020 14:54:00 +0000 (-0600) Subject: mgr/cephadm: fixup expected extra ceph conf test result X-Git-Tag: v17.0.0~1087^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37245%2Fhead;p=ceph.git mgr/cephadm: fixup expected extra ceph conf test result fix test failure introduced by: ff7e76348e5457fa6acb23545fcef56d6640c50a ``` E AssertionError: expected call not found. E Expected: _run_cephadm('test', 'mon.test', 'deploy', ['--name', 'mon.test', '--reconfig', '--config-json', '-'], stdin='{"config": "\\n\\n[mon]\\nk=v\\n", "keyring": ""}') E Actual: _run_cephadm('test', 'mon.test', 'deploy', ['--name', 'mon.test', '--reconfig', '--config-json', '-'], stdin='{"config": "\\n\\n[mon]\\nk=v\\n", "keyring": ""}', image='') ``` Signed-off-by: Michael Fritch --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index f1958281b5902..a474fb151a7dc 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -282,7 +282,9 @@ class TestCephadm(object): cephadm_module._check_daemons() _run_cephadm.assert_called_with('test', 'mon.test', 'deploy', [ - '--name', 'mon.test', '--config-json', '-', '--reconfig'], stdin='{"config": "\\n\\n[mon]\\nk=v\\n", "keyring": ""}') + '--name', 'mon.test', '--reconfig', '--config-json', '-'], + stdin='{"config": "\\n\\n[mon]\\nk=v\\n", "keyring": ""}', + image='') @mock.patch("cephadm.module.CephadmOrchestrator._run_cephadm", _run_cephadm('{}')) def test_daemon_check_post(self, cephadm_module: CephadmOrchestrator):