summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkarsha <akrai@redhat.com>2019-01-08 15:48:03 +0530
committerAkarsha <akrai@redhat.com>2019-01-08 15:49:47 +0530
commit2b46fb483304c22b6e780f0fb970966a3e8585b4 (patch)
treea4aa581b2d4bb19aa1d9642032419447ea52ec2a
parent6624ff8f694a05c5bc794885871627250ac9a725 (diff)
Fixed jira issue RHGSQE-29 and added quorum reset codetests_gd2
Change-Id: If0c0b538ba7f783e029b16afd6b3f9ae1870e4b2 Signed-off-by: Akarsha <akrai@redhat.com>
-rw-r--r--tests/functional/glusterd/test_add_brick_when_quorum_not_met.py17
1 files changed, 17 insertions, 0 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 c7d1513..695fa93 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
@@ -69,10 +69,19 @@ 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%'})
+ self.assertTrue(ret, "Failed to set server quorum ratio on %s"
+ % self.volname)
+ g.log.info("Able to set server quorum ratio successfully on %s",
+ self.servers)
+
GlusterBaseClass.tearDown.im_func(self)
def test_add_brick_when_quorum_not_met(self):
+ # pylint: disable=too-many-statements
# create and start a volume
ret = setup_volume(self.mnode, self.all_servers_info, self.volume)
self.assertTrue(ret, ("Failed to create "
@@ -155,3 +164,11 @@ class TestAddBrickWhenQuorumNotMet(GlusterBaseClass):
self.assertTrue(ret, ("Unexpected: add brick is success, "
"when quorum is not met"))
g.log.info("Add brick is failed as expected, when quorum is not met")
+
+ # set cluster.server-quorum-type as none
+ ret = set_volume_options(self.mnode, self.volname,
+ {'cluster.server-quorum-type': 'none'})
+ self.assertTrue(ret, ("Failed to set the quorum type as a server"
+ " on volume %s", self.volname))
+ g.log.info("Able to set server quorum successfully on volume %s",
+ self.volname)