]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: tests - add mock for the exporter deployment
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 17 Nov 2020 20:32:34 +0000 (09:32 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Tue, 17 Nov 2020 20:32:34 +0000 (09:32 +1300)
Adds a mock function to represent the cephadm binary
deployment method

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/pybind/mgr/cephadm/tests/fixtures.py

index 5548c53e2efe1400376872ddbc6a09dbf8feee52..90db5309724e0f48cb9c1240e02c08f1314ab91c 100644 (file)
@@ -147,3 +147,9 @@ def with_service(cephadm_module: CephadmOrchestrator, spec: ServiceSpec, meth, h
     yield [dd.name() for dd in own_dds]
 
     assert_rm_service(cephadm_module, spec.service_name())
+
+
+def _deploy_cephadm_binary(host):
+    def foo(*args, **kwargs):
+        return True
+    return foo