diff options
author | srijan-sivakumar <ssivakum@redhat.com> | 2020-12-04 11:23:44 +0530 |
---|---|---|
committer | Arthy Loganathan <aloganat@redhat.com> | 2020-12-17 12:56:28 +0000 |
commit | dff5c5ea5abb8255d6623239a54292f57401ec0a (patch) | |
tree | b4bcc8d42484d3a9c48bab154f8fbaa2163f5359 /tests | |
parent | bfd7181ed17f0eee76ae092f1f1fa754988b9ff5 (diff) |
[TestFix] Adding cluster options reset in TC
The cluster options are reset post the TC run
so that they don't persist through the other
TC runs.
Change-Id: Id55bb64ded09e113cdc0fc512a17857195619e41
Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/glusterd/test_add_brick_when_quorum_not_met.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functional/glusterd/test_add_brick_when_quorum_not_met.py b/tests/functional/glusterd/test_add_brick_when_quorum_not_met.py index 2cb21227b..0e0a58842 100644 --- a/tests/functional/glusterd/test_add_brick_when_quorum_not_met.py +++ b/tests/functional/glusterd/test_add_brick_when_quorum_not_met.py @@ -20,6 +20,7 @@ from glustolibs.gluster.gluster_base_class import runs_on, GlusterBaseClass from glustolibs.gluster.exceptions import ExecutionError from glustolibs.gluster.volume_libs import setup_volume from glustolibs.gluster.volume_ops import (set_volume_options, + volume_reset, get_volume_status) from glustolibs.gluster.gluster_init import (stop_glusterd, start_glusterd, is_glusterd_running) @@ -62,13 +63,12 @@ class TestAddBrickWhenQuorumNotMet(GlusterBaseClass): % self.volname) g.log.info("Volume deleted successfully : %s", self.volname) - # Setting quorum ratio to 51% - ret = set_volume_options(self.mnode, 'all', - {'cluster.server-quorum-ratio': '51%'}) + # Reset Cluster options + ret = volume_reset(self.mnode, 'all') if not ret: - raise ExecutionError("Failed to set server quorum ratio on %s" + raise ExecutionError("Failed to reset cluster options on %s" % self.volname) - g.log.info("Able to set server quorum ratio successfully on %s", + g.log.info("Cluster options reset successfully on %s", self.servers) self.get_super_method(self, 'tearDown')() |