From 96592c6a85d90eb2594b24798d0d564a0e17c009 Mon Sep 17 00:00:00 2001 From: Martin Kalcok Date: Fri, 11 Dec 2020 16:16:15 +0100 Subject: [PATCH] Rename parameter `disks` to `osds` --- zaza/openstack/charm_tests/ceph/osd/tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zaza/openstack/charm_tests/ceph/osd/tests.py b/zaza/openstack/charm_tests/ceph/osd/tests.py index c4e6e36..63fb128 100644 --- a/zaza/openstack/charm_tests/ceph/osd/tests.py +++ b/zaza/openstack/charm_tests/ceph/osd/tests.py @@ -157,7 +157,7 @@ class ServiceTest(unittest.TestCase): This ensures that the environment is ready for the next tests. """ zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'start', - action_params={'disks': 'all'}, + action_params={'osds': 'all'}, raise_on_failure=True) @property @@ -187,7 +187,7 @@ class ServiceTest(unittest.TestCase): logging.info("Running 'service stop=all' action on {} " "unit".format(self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT], 'stop', - action_params={'disks': 'all'}) + action_params={'osds': 'all'}) wait_for_service(unit_name=self.TESTED_UNIT, services=service_list, target_status='stopped') @@ -195,7 +195,7 @@ class ServiceTest(unittest.TestCase): logging.info("Running 'service start=all' action on {} " "unit".format(self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'start', - action_params={'disks': 'all'}) + action_params={'osds': 'all'}) wait_for_service(unit_name=self.TESTED_UNIT, services=service_list, target_status='running') @@ -209,7 +209,7 @@ class ServiceTest(unittest.TestCase): logging.info("Running 'service stop={}' action on {} " "unit".format(action_params, self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'stop', - action_params={'disks': action_params}) + action_params={'osds': action_params}) wait_for_service(unit_name=self.TESTED_UNIT, services=service_list, target_status='stopped') @@ -217,7 +217,7 @@ class ServiceTest(unittest.TestCase): logging.info("Running 'service start={}' action on {} " "unit".format(action_params, self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'start', - action_params={'disks': action_params}) + action_params={'osds': action_params}) wait_for_service(unit_name=self.TESTED_UNIT, services=service_list, target_status='running') @@ -237,7 +237,7 @@ class ServiceTest(unittest.TestCase): "unit".format(to_stop.id, self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'stop', - action_params={'disks': to_stop.id}) + action_params={'osds': to_stop.id}) wait_for_service(unit_name=self.TESTED_UNIT, services=[to_stop.name, ], @@ -270,7 +270,7 @@ class ServiceTest(unittest.TestCase): "unit".format(to_start.id, self.TESTED_UNIT)) zaza_model.run_action_on_units([self.TESTED_UNIT, ], 'start', - action_params={'disks': to_start.id}) + action_params={'osds': to_start.id}) wait_for_service(unit_name=self.TESTED_UNIT, services=[to_start.name, ],