]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: add default osdspec_affinity to module fixture
authorJoshua Schmid <jschmid@suse.de>
Tue, 11 Aug 2020 07:53:23 +0000 (09:53 +0200)
committerJoshua Schmid <jschmid@suse.de>
Tue, 11 Aug 2020 07:53:23 +0000 (09:53 +0200)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/pybind/mgr/cephadm/tests/fixtures.py

index 05683aa2376942746bbd3a94f430dab64d243343..5dce51cb67548ce3932ba0476fe8628f1f3abc2e 100644 (file)
@@ -42,6 +42,7 @@ def with_cephadm_module(module_options=None, store=None):
     with mock.patch("cephadm.module.CephadmOrchestrator.get_ceph_option", get_ceph_option),\
             mock.patch("cephadm.services.osd.RemoveUtil._run_mon_cmd"), \
             mock.patch("cephadm.module.CephadmOrchestrator.get_osdmap"), \
+            mock.patch("cephadm.services.osd.OSDService.get_osdspec_affinity", return_value='test_spec'), \
             mock.patch("cephadm.module.CephadmOrchestrator.remote"):
 
         m = CephadmOrchestrator.__new__ (CephadmOrchestrator)