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_expansion_and_devices.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_expansion_and_devices.py')
-rw-r--r-- | tests/functional/common/heketi/test_volume_expansion_and_devices.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/functional/common/heketi/test_volume_expansion_and_devices.py b/tests/functional/common/heketi/test_volume_expansion_and_devices.py index f27b68ac..c5c60913 100644 --- a/tests/functional/common/heketi/test_volume_expansion_and_devices.py +++ b/tests/functional/common/heketi/test_volume_expansion_and_devices.py @@ -254,7 +254,9 @@ class TestVolumeExpansionAndDevicesTestCases(HeketiClientSetupBaseClass): self.heketi_client_node, self.heketi_server_url, 620, json=True, raw_cli_output=True) - self.assertEqual("Error: No space", err.strip()) + 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) @@ -576,10 +578,9 @@ class TestVolumeExpansionAndDevicesTestCases(HeketiClientSetupBaseClass): self.heketi_client_node, self.heketi_server_url, volume_id, 50, raw_cli_output=True) - emsg = "Error: Maximum number of bricks reached." - - self.assertEqual(emsg, err.strip(), - "Expansion failed with invalid reason") + self.assertEqual(ret, 255, "volume expansion did not fail ret- %s " + "out- %s err= %s" % (ret, out, err)) + g.log.info("Volume expansion failed as expected, err- %s" % err) if ret == 0: out_json = json.loads(out) |