diff --git a/python/pacemaker/_cts/tests/simulstop.py b/python/pacemaker/_cts/tests/simulstop.py index 05025ca0bb..929b451060 100644 --- a/python/pacemaker/_cts/tests/simulstop.py +++ b/python/pacemaker/_cts/tests/simulstop.py @@ -1,35 +1,42 @@ -""" Test-specific classes for Pacemaker's Cluster Test Suite (CTS) -""" +""" Stop all running nodes simultaneously """ __all__ = ["SimulStop"] __copyright__ = "Copyright 2000-2023 the Pacemaker project contributors" __license__ = "GNU General Public License version 2 or later (GPLv2+) WITHOUT ANY WARRANTY" from pacemaker._cts.tests.ctstest import CTSTest from pacemaker._cts.tests.simulstartlite import SimulStartLite from pacemaker._cts.tests.simulstoplite import SimulStopLite class SimulStop(CTSTest): - '''Stop all the nodes ~ simultaneously''' + """ A concrete test that stops all running nodes simultaneously """ + def __init__(self, cm): - CTSTest.__init__(self,cm) + """ Create a new SimulStop instance + + Arguments: + + cm -- A ClusterManager instance + """ + + CTSTest.__init__(self, cm) + self.name = "SimulStop" - self._startall = SimulStartLite(cm) self.stopall = SimulStopLite(cm) + self._startall = SimulStartLite(cm) + def __call__(self, dummy): - '''Perform the 'SimulStop' test. ''' - self.incr("calls") + """ Perform this test """ - # We ignore the "node" parameter... + self.incr("calls") - # Start up all the nodes... ret = self._startall(None) if not ret: return self.failure("Setup failed") if not self.stopall(None): return self.failure("Stopall failed") return self.success()