summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Desala <tdesala@redhat.com>2018-11-15 17:39:17 +0530
committerVijay Avuthu <vavuthu@redhat.com>2018-11-21 12:56:14 +0000
commit48406ea39df875540ff6b32148732f3d28e34b14 (patch)
treebdbfe0220cc2ead5fb77afd6f29921b91012c676
parent8a52ce70e4aef1d6e5c9e7dc622187616fff25c3 (diff)
TC: test_negative_exercise_add_brick
Fixed the validation code in test_add_brick_without_volname Change-Id: I5449b6472cc2b6644b833be47233d344a9dd8d1b Signed-off-by: Prasad Desala <tdesala@redhat.com>
-rw-r--r--tests/functional/dht/test_negative_exercise_add_brick_command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/dht/test_negative_exercise_add_brick_command.py b/tests/functional/dht/test_negative_exercise_add_brick_command.py
index 0824b1f..aab671f 100644
--- a/tests/functional/dht/test_negative_exercise_add_brick_command.py
+++ b/tests/functional/dht/test_negative_exercise_add_brick_command.py
@@ -75,9 +75,9 @@ class ExerciseAddbrickCommand(GlusterBaseClass):
self.all_servers_info)
cmd = ("gluster volume add-brick %s " % (' '.join(bricks_list)))
g.log.info("Adding bricks without specifying volume name")
- _, _, err = g.run(self.mnode, cmd)
- self.assertIn("does not exist", err, "add-brick is successful")
- g.log.info("Volume add-brick failed with error %s ", err)
+ ret, _, _ = g.run(self.mnode, cmd)
+ self.assertTrue(ret, "add-brick is successful")
+ g.log.info("Volume %s: add-brick failed", self.volname)
def test_add_duplicate_brick(self):
"""Test add-bricks to the volume which are already part of the volume