From b8311dc6d0b8e063f7757aec88417393f8c8f02d Mon Sep 17 00:00:00 2001 From: kshithijiyer Date: Mon, 6 May 2019 12:55:42 +0530 Subject: 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 --- tests/functional/glusterd/test_volume_get.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/functional') diff --git a/tests/functional/glusterd/test_volume_get.py b/tests/functional/glusterd/test_volume_get.py index 5746d5d59..bd4dd86ec 100644 --- a/tests/functional/glusterd/test_volume_get.py +++ b/tests/functional/glusterd/test_volume_get.py @@ -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) -- cgit