From ee46e58e5dc779418492ef6b8c5e687f36ecb3f6 Mon Sep 17 00:00:00 2001 From: Tatjana Dehler Date: Fri, 8 Nov 2019 13:51:40 +0100 Subject: [PATCH] mgr/dashboard: fix tests in order to match pg num conventions Update the tests test_ganesha and test_rbd_mirroring in order to match the PG num conventions. It prevents the health warning 'POOL_PG_NUM_NOT_POWER_OF_TWO' from being shown. Signed-off-by: Tatjana Dehler --- qa/tasks/mgr/dashboard/test_ganesha.py | 2 +- qa/tasks/mgr/dashboard/test_rbd_mirroring.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/mgr/dashboard/test_ganesha.py b/qa/tasks/mgr/dashboard/test_ganesha.py index 277a5395fbf..6b89ca508fb 100644 --- a/qa/tasks/mgr/dashboard/test_ganesha.py +++ b/qa/tasks/mgr/dashboard/test_ganesha.py @@ -27,7 +27,7 @@ class GaneshaTest(DashboardTestCase): @classmethod def setUpClass(cls): super(GaneshaTest, cls).setUpClass() - cls.create_pool('ganesha', 3, 'replicated') + cls.create_pool('ganesha', 2**2, 'replicated') cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node1']) cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node2']) cls._rados_cmd(['-p', 'ganesha', '-N', 'ganesha1', 'create', 'conf-node3']) diff --git a/qa/tasks/mgr/dashboard/test_rbd_mirroring.py b/qa/tasks/mgr/dashboard/test_rbd_mirroring.py index 7afeaa4ad65..08d793c2db4 100644 --- a/qa/tasks/mgr/dashboard/test_rbd_mirroring.py +++ b/qa/tasks/mgr/dashboard/test_rbd_mirroring.py @@ -13,7 +13,7 @@ class RbdMirroringTest(DashboardTestCase): def create_pool(cls, name, application='rbd'): data = { 'pool': name, - 'pg_num': 10, + 'pg_num': 2**3, 'pool_type': 'replicated', 'application_metadata': [application] } -- 2.39.5