diff --git a/python/pacemaker/_cts/tests/simulstart.py b/python/pacemaker/_cts/tests/simulstart.py index d8d903ddba..5588ff1411 100644 --- a/python/pacemaker/_cts/tests/simulstart.py +++ b/python/pacemaker/_cts/tests/simulstart.py @@ -1,35 +1,42 @@ -""" Test-specific classes for Pacemaker's Cluster Test Suite (CTS) -""" +""" Start all stopped nodes simultaneously """ __all__ = ["SimulStart"] __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 SimulStart(CTSTest): - '''Start all the nodes ~ simultaneously''' + """ A concrete test that starts all stopped nodes simultaneously """ + def __init__(self, cm): - CTSTest.__init__(self,cm) + """ Create a new SimulStart instance + + Arguments: + + cm -- A ClusterManager instance + """ + + CTSTest.__init__(self, cm) + self.name = "SimulStart" self.stopall = SimulStopLite(cm) + self._startall = SimulStartLite(cm) def __call__(self, dummy): - '''Perform the 'SimulStart' test. ''' - self.incr("calls") + """ Perform this test """ - # We ignore the "node" parameter... + self.incr("calls") - # Shut down all the nodes... ret = self.stopall(None) if not ret: return self.failure("Setup failed") if not self._startall(None): return self.failure("Startall failed") return self.success()