summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSri <sselvan@redhat.com>2018-09-20 01:16:53 -0400
committerSri <sselvan@redhat.com>2018-09-20 01:16:53 -0400
commit63d4c2c00af279fb38087be5b7959ce8fb2ed704 (patch)
treeac7ec31399a1af7171fe5b49f27461560f01192d /tests
parent157f5275fbe4005cd81a899e83d0b4d5453b1e6f (diff)
Fix for tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
Change-Id: I3c6a9169f3b6afb7f92aca28f59efa42ca2a6b21 Signed-off-by: Sri <sselvan@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/glusterd/test_brick_status_when_quorum_not_met.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py b/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
index cc77b3e..b7a0f58 100644
--- a/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
+++ b/tests/functional/glusterd/test_brick_status_when_quorum_not_met.py
@@ -22,7 +22,7 @@ from time import sleep
from glusto.core import Glusto as g
from glustolibs.gluster.exceptions import ExecutionError
from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on
-from glustolibs.gluster.volume_ops import set_volume_options
+from glustolibs.gluster.volume_ops import set_volume_options, volume_reset
from glustolibs.gluster.gluster_init import (stop_glusterd, start_glusterd,
is_glusterd_running)
from glustolibs.gluster.brick_libs import (are_bricks_offline,
@@ -68,6 +68,12 @@ class TestBrickStatusWhenQuorumNotMet(GlusterBaseClass):
if not ret:
raise ExecutionError("Servers are not in peer probed state")
+ # reset quorum ratio to default
+ g.log.info("resetting quorum ratio")
+ ret, _, _ = volume_reset(self.mnode, 'all')
+ self.assertEqual(ret, 0, "Failed to reset quorum ratio")
+ g.log.info("Successfully resetted quorum ratio")
+
# stopping the volume and Cleaning up the volume
ret = self.cleanup_volume()
if not ret: