diff options
author | Apeksha D Khakharia <akhakhar@redhat.com> | 2018-03-01 16:50:08 +0530 |
---|---|---|
committer | Apeksha D Khakharia <akhakhar@redhat.com> | 2018-03-16 14:39:20 +0530 |
commit | 85c1682f5602503e77447b29e9af277de9c5f8fb (patch) | |
tree | 202ff72d3940c1b8c63dbf545d2fd4c3361310fc /tests/functional/common/heketi/test_volume_creation.py | |
parent | 1f4ebd042a33867a72aa2cb64a8343f11d9d8e64 (diff) |
CNS: changing the validation with return code
Change-Id: I53abee4431082100afc33a52c16442469774d1cc
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
Diffstat (limited to 'tests/functional/common/heketi/test_volume_creation.py')
-rw-r--r-- | tests/functional/common/heketi/test_volume_creation.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/functional/common/heketi/test_volume_creation.py b/tests/functional/common/heketi/test_volume_creation.py index a2c8f73a..b6eae325 100644 --- a/tests/functional/common/heketi/test_volume_creation.py +++ b/tests/functional/common/heketi/test_volume_creation.py @@ -124,8 +124,9 @@ class TestVolumeCreationTestCases(HeketiClientSetupBaseClass): self.heketi_client_node, self.heketi_server_url, 50, raw_cli_output=True) - self.assertEqual(err.strip(), "Error: No space", - "Volume creation failed with invalid reason") + self.assertEqual(ret, 255, "Volume creation did not fail ret- %s " + "out- %s err- %s" % (ret, out, err)) + g.log.info("Volume creation failed as expected, err- %s" % err) if ret == 0: out_json = json.loads(out) |