diff options
author | nik-redhat <nladha@redhat.com> | 2020-11-26 13:49:41 +0530 |
---|---|---|
committer | Nikhil Ladha <nladha@redhat.com> | 2020-12-04 08:51:04 +0000 |
commit | 8875b215361caba094a357fc15340c7a9490e44a (patch) | |
tree | ec669c66043ce6a12fa183fb5af2188af255caa3 /tests/functional | |
parent | 13534394ea9417a3189bd4ccab1bd474804ca353 (diff) |
[Test Fix]: Assertion of default quorum options
Fix:
Improved the check for default quorum options on the volume,
to work with the present as well as older default values
Older default value: 51
Current Default value: 51 (DEFAULT)
Change-Id: I200b81334e84a7956090bede3e2aa50b9d4cf8e0
Signed-off-by: nik-redhat <nladha@redhat.com>
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/glusterd/test_glusterd_default_volume_behavior_quorum_options.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/glusterd/test_glusterd_default_volume_behavior_quorum_options.py b/tests/functional/glusterd/test_glusterd_default_volume_behavior_quorum_options.py index d444f0fb2..b2652a4ea 100644 --- a/tests/functional/glusterd/test_glusterd_default_volume_behavior_quorum_options.py +++ b/tests/functional/glusterd/test_glusterd_default_volume_behavior_quorum_options.py @@ -58,7 +58,8 @@ class TestGlusterDDefaultVolumeBehaviorQuorumOptions(GlusterBaseClass): else: ret = get_volume_options(self.mnode, 'all', option_name) self.assertIsNotNone(ret, "The %s option is not present" % option_name) - self.assertEqual(ret[option_name], option_value, + value = (ret[option_name]).split() + self.assertEqual(value[0], option_value, ("Volume option for %s is not equal to %s" % (option_name, option_value))) g.log.info("Volume option %s is equal to the expected value %s", @@ -84,10 +85,10 @@ class TestGlusterDDefaultVolumeBehaviorQuorumOptions(GlusterBaseClass): 4. There shouldn't be any effect to the running glusterfsd processes. """ - # Check that quorum options are not set by default. + # Check the default quorum options are correct. self._validate_vol_options('cluster.server-quorum-type', 'off') self._validate_vol_options('cluster.server-quorum-ratio', - '51 (DEFAULT)', True) + '51', True) # Get the count of number of glusterfsd processes running. count_before_glusterd_kill = self._get_total_brick_processes_count() |