From 89bae1ca5a3956595393a19017314622665a880c Mon Sep 17 00:00:00 2001 From: srijan-sivakumar Date: Fri, 4 Dec 2020 11:15:21 +0530 Subject: [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 --- tests/functional/glusterd/test_glusterd_quorum_command.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/glusterd/test_glusterd_quorum_command.py b/tests/functional/glusterd/test_glusterd_quorum_command.py index c51293e38..034d626b3 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')() -- cgit