diff options
authorkshithijiyer <>2019-05-06 12:55:42 +0530
committerkshithijiyer <>2019-05-06 12:55:42 +0530
commitb8311dc6d0b8e063f7757aec88417393f8c8f02d (patch)
parent0afee029a810c779f64b91b4a1953c10fef365b6 (diff)
Changing error message to be check in test_volume_get
The error message which is displayed when we do a gluster v get for options which don't exist has been changed. Adding a if based logic which can check for the old as well as the new error message. Old msg: volume get option: failed: Did you mean auth.allow or ...reject? New msg: volume get option: failed: Did you mean ctime.noatime? Signed-off-by: kshithijiyer <> Change-Id: I9496d391a7da9dba64d3426a024c2b1b68455f20
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/glusterd/ b/tests/functional/glusterd/
index 5746d5d..bd4dd86 100644
--- a/tests/functional/glusterd/
+++ b/tests/functional/glusterd/
@@ -154,6 +154,8 @@ class TestVolumeGet(GlusterBaseClass):
"for existing volume %s with non-existing "
"option" % self.volname)
msg = 'Did you mean auth.allow or ...reject?'
+ if msg not in err:
+ msg = 'volume get option: failed: Did you mean ctime.noatime?'
self.assertIn(msg, err, "No proper error message for existing "
"volume %s with non-existing option"
% self.volname)