From: Alfredo Deza Date: Tue, 16 Apr 2019 15:30:25 +0000 (-0400) Subject: tests: update fake mon connection to return cmd from remoto X-Git-Tag: v2.1.0~21^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=daf8ba024be0d184140d4816bad8e12b0d05ff2a;p=ceph-deploy.git tests: update fake mon connection to return cmd from remoto Signed-off-by: Alfredo Deza Resolves: rm#39322 --- diff --git a/ceph_deploy/tests/test_mon.py b/ceph_deploy/tests/test_mon.py index d757af0..585aa41 100644 --- a/ceph_deploy/tests/test_mon.py +++ b/ceph_deploy/tests/test_mon.py @@ -18,6 +18,7 @@ def make_fake_conn(receive_returns=None): conn.receive = Mock(return_value=receive_returns) conn.gateway.remote_exec = conn.receive conn.result = Mock(return_value=conn) + conn.cmd = lambda x: x return conn