From f695a0e30f725779f34eb07803f733b3edbae58f Mon Sep 17 00:00:00 2001 From: John Spray Date: Sat, 15 Apr 2017 12:55:51 -0400 Subject: [PATCH] qa: s/REQUIRE_MGRS/MGRS_REQUIRED/ for consistency Signed-off-by: John Spray --- qa/tasks/mgr/mgr_test_case.py | 6 +++--- qa/tasks/mgr/test_failover.py | 2 +- qa/tasks/vstart_runner.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qa/tasks/mgr/mgr_test_case.py b/qa/tasks/mgr/mgr_test_case.py index 26b0971d65e..a5531d33ed2 100644 --- a/qa/tasks/mgr/mgr_test_case.py +++ b/qa/tasks/mgr/mgr_test_case.py @@ -45,7 +45,7 @@ class MgrCluster(CephCluster): class MgrTestCase(CephTestCase): - REQUIRE_MGRS = 1 + MGRS_REQUIRED = 1 def setUp(self): super(MgrTestCase, self).setUp() @@ -53,10 +53,10 @@ class MgrTestCase(CephTestCase): # The test runner should have populated this assert self.mgr_cluster is not None - if len(self.mgr_cluster.mgr_ids) < self.REQUIRE_MGRS: + if len(self.mgr_cluster.mgr_ids) < self.MGRS_REQUIRED: raise case.SkipTest("Only have {0} manager daemons, " "{1} are required".format( - len(self.mgr_cluster.mgr_ids), self.REQUIRE_MGRS)) + len(self.mgr_cluster.mgr_ids), self.MGRS_REQUIRED)) # Restart all the daemons for daemon in self.mgr_cluster.mgr_daemons.values(): diff --git a/qa/tasks/mgr/test_failover.py b/qa/tasks/mgr/test_failover.py index e695cf2ed90..c3ac7fb78be 100644 --- a/qa/tasks/mgr/test_failover.py +++ b/qa/tasks/mgr/test_failover.py @@ -8,7 +8,7 @@ log = logging.getLogger(__name__) class TestFailover(MgrTestCase): - REQUIRE_MGRS = 2 + MGRS_REQUIRED = 2 def test_timeout(self): """ diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index c59f8222c19..3f1825122e0 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -813,7 +813,7 @@ def scan_tests(modules): max_required_clients = max(max_required_clients, getattr(case, "CLIENTS_REQUIRED", 0)) max_required_mgr = max(max_required_mgr, - getattr(case, "REQUIRE_MGRS", 0)) + getattr(case, "MGRS_REQUIRED", 0)) return max_required_mds, max_required_clients, max_required_mgr