diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2019-05-06 12:55:42 +0530 |
---|---|---|
committer | kshithijiyer <kshithij.ki@gmail.com> | 2019-05-06 12:55:42 +0530 |
commit | b8311dc6d0b8e063f7757aec88417393f8c8f02d (patch) | |
tree | 482633d8437cd581c2994f8fe70cea296429cfb2 /tests/functional/glusterd | |
parent | 0afee029a810c779f64b91b4a1953c10fef365b6 (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 <kshithij.ki@gmail.com>
Change-Id: I9496d391a7da9dba64d3426a024c2b1b68455f20
Diffstat (limited to 'tests/functional/glusterd')
-rw-r--r-- | tests/functional/glusterd/test_volume_get.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |