summaryrefslogtreecommitdiffstats
path: root/tests/functional/arbiter/brick_cases/test_rmvrf_files.py
diff options
context:
space:
mode:
authorBala Konda Reddy M <bala12352@gmail.com>2020-06-25 15:33:27 +0530
committerBala Konda Reddy M <bala12352@gmail.com>2020-07-08 05:43:22 +0000
commit6bcff5e7be136b2aee6654710308b55affcf9a98 (patch)
treeb6f9cc015264159973827299dd45d3a263055031 /tests/functional/arbiter/brick_cases/test_rmvrf_files.py
parentb47b449595cd179f4f6a00a10f0e1078287f6171 (diff)
[TestFix] Remove hot and cold bricks list - Part2
For the non-tiered volume types, In few test cases while bringing bricks offline, collecting both hot_tier_bricks and cold_tier_bricks and it is not needed to collect hot and cold tier bricks. Removing tier kwarg in one of the test. Removing the hot and cold tiered bricks and collecting only bricks of the particular volume as mentioned below. Removing below section ``` bricks_to_bring_offline_dict = (select_bricks_to_bring_offline( self.mnode, self.volname)) bricks_to_bring_offline = list(filter(None, ( bricks_to_bring_offline_dict['hot_tier_bricks'] + bricks_to_bring_offline_dict['cold_tier_bricks'] + bricks_to_bring_offline_dict['volume_bricks']))) ``` Modifying as below for bringing bricks offline. ``` bricks_to_bring_offline = bricks_to_bring_offline_dict['volume_bricks'] ``` Change-Id: I4f59343b380ced498516794a8cc7c968390a8459 Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
Diffstat (limited to 'tests/functional/arbiter/brick_cases/test_rmvrf_files.py')
-rwxr-xr-xtests/functional/arbiter/brick_cases/test_rmvrf_files.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/functional/arbiter/brick_cases/test_rmvrf_files.py b/tests/functional/arbiter/brick_cases/test_rmvrf_files.py
index 9dbaa74..8d7304b 100755
--- a/tests/functional/arbiter/brick_cases/test_rmvrf_files.py
+++ b/tests/functional/arbiter/brick_cases/test_rmvrf_files.py
@@ -145,10 +145,7 @@ class TestRmrfMount(GlusterBaseClass):
# Select bricks to bring offline
bricks_to_bring_offline_dict = (select_bricks_to_bring_offline(
self.mnode, self.volname))
- bricks_to_bring_offline = list(filter(None, (
- bricks_to_bring_offline_dict['hot_tier_bricks'] +
- bricks_to_bring_offline_dict['cold_tier_bricks'] +
- bricks_to_bring_offline_dict['volume_bricks'])))
+ bricks_to_bring_offline = bricks_to_bring_offline_dict['volume_bricks']
# Killing one brick from the volume set
g.log.info("Bringing bricks: %s offline", bricks_to_bring_offline)