summaryrefslogtreecommitdiffstats
path: root/tests/functional/bvt/test_cvt.py
diff options
context:
space:
mode:
authorPranav <prprakas@redhat.com>2021-02-17 14:11:15 +0530
committerPranav <prprakas@redhat.com>2021-02-17 14:56:59 +0530
commit8123e920d91510bdf18d0b2e99c7a7de18c85eac (patch)
tree2eacc023147b9ea811afc422b7e8c950e30b227f /tests/functional/bvt/test_cvt.py
parent00c2699b90a4dc0e689f512018190575d0711073 (diff)
[TestFix] Remove temp code from test case
Removing temp steps added to verify BZ#1810901 Change-Id: I7d64ed1c797914b8a5b2f0e45271f01a09d51e98 Signed-off-by: Pranav <prprakas@redhat.com>
Diffstat (limited to 'tests/functional/bvt/test_cvt.py')
-rw-r--r--tests/functional/bvt/test_cvt.py34
1 files changed, 1 insertions, 33 deletions
diff --git a/tests/functional/bvt/test_cvt.py b/tests/functional/bvt/test_cvt.py
index dea2512..f8cb4f2 100644
--- a/tests/functional/bvt/test_cvt.py
+++ b/tests/functional/bvt/test_cvt.py
@@ -41,15 +41,13 @@ from glustolibs.gluster.volume_libs import (
from glustolibs.gluster.volume_libs import (
log_volume_info_and_status, expand_volume, shrink_volume,
replace_brick_from_volume, wait_for_volume_process_to_be_online)
-from glustolibs.gluster.glusterfile import get_fattr_list
from glustolibs.gluster.rebalance_ops import (rebalance_start,
wait_for_rebalance_to_complete,
rebalance_status)
from glustolibs.gluster.brick_libs import (select_bricks_to_bring_offline,
bring_bricks_offline,
bring_bricks_online,
- are_bricks_offline,
- get_all_bricks)
+ are_bricks_offline)
from glustolibs.gluster.heal_libs import monitor_heal_completion
from glustolibs.gluster.quota_ops import (quota_enable, quota_disable,
quota_limit_usage,
@@ -286,39 +284,9 @@ class TestGlusterShrinkVolumeSanity(GlusterBasicFeaturesSanityBaseClass):
g.log.info("Successful in logging volume info and status of volume %s",
self.volname)
- # Temporary code:
- # Additional checks to gather infomartion from all
- # servers for Bug 1810901 and setting log level to debug.
- if self.volume_type == 'distributed-dispersed':
- for brick_path in get_all_bricks(self.mnode, self.volname):
- node, path = brick_path.split(':')
- ret, out, _ = g.run(node, 'find {}/'.format(path))
- g.log.info(out)
- for filedir in out.split('\n'):
- ret, out, _ = g.run(node, 'ls -l {}'.format(filedir))
- g.log.info("Return value for ls -l command: %s", ret)
- g.log.info(out)
- ret = get_fattr_list(node, filedir, encode_hex=True)
- g.log.info(ret)
-
# Shrinking volume by removing bricks from volume when IO in progress
ret = shrink_volume(self.mnode, self.volname)
- # Temporary code:
- # Additional checks to gather infomartion from all
- # servers for Bug 1810901.
- if not ret and self.volume_type == 'distributed-dispersed':
- for brick_path in get_all_bricks(self.mnode, self.volname):
- node, path = brick_path.split(':')
- ret, out, _ = g.run(node, 'find {}/'.format(path))
- g.log.info(out)
- for filedir in out.split('\n'):
- ret, out, _ = g.run(node, 'ls -l {}'.format(filedir))
- g.log.info("Return value for ls -l command: %s", ret)
- g.log.info(out)
- ret = get_fattr_list(node, filedir, encode_hex=True)
- g.log.info(ret)
-
self.assertTrue(ret, ("Failed to shrink the volume when IO in "
"progress on volume %s", self.volname))
g.log.info("Shrinking volume when IO in progress is successful on "