Rename parameter disks to osds
This commit is contained in:
@@ -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, ],
|
||||
|
||||
Reference in New Issue
Block a user