summaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorsrijan-sivakumar <ssivakum@redhat.com>2020-12-04 11:15:21 +0530
committersrijan-sivakumar <ssivakum@redhat.com>2020-12-04 11:15:21 +0530
commit89bae1ca5a3956595393a19017314622665a880c (patch)
tree9844bc9f7a7ecc11afd3fc3aa84fe6461db54a02 /tests/functional
parent07f77e67223d357ef1369f29c21d811026767395 (diff)
[TestFix] Adding cluster options reset.
The cluster options once set aren't reset and this would cause problem for subsequent TCs. hence reseting the options at teardown. Change-Id: Ifd1df2632a25ca7788a6bb4f765b3f6583ab06d6 Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/glusterd/test_glusterd_quorum_command.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/glusterd/test_glusterd_quorum_command.py b/tests/functional/glusterd/test_glusterd_quorum_command.py
index c51293e..034d626 100644
--- a/tests/functional/glusterd/test_glusterd_quorum_command.py
+++ b/tests/functional/glusterd/test_glusterd_quorum_command.py
@@ -24,6 +24,7 @@ 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,
+ volume_reset,
get_volume_options)
@@ -93,5 +94,11 @@ class TestGlusterDQuorumCLICommands(GlusterBaseClass):
raise ExecutionError("Failed to unmount and cleanup volume")
g.log.info("Successful in unmount and cleanup of volume")
+ # Reset the cluster options.
+ ret = volume_reset(self.mnode, "all")
+ if not ret:
+ raise ExecutionError("Failed to Reset the cluster options.")
+ g.log.info("Successfully reset cluster options.")
+
# Calling GlusterBaseClass tearDown
self.get_super_method(self, 'tearDown')()