diff options
author | vamahaja <vamahaja@redhat.com> | 2019-12-16 14:21:42 +0530 |
---|---|---|
committer | vponomar <vponomar@redhat.com> | 2019-12-16 09:46:00 +0000 |
commit | ce43a9d8befd19923e009248b27a826784ce9039 (patch) | |
tree | 3b97302875914d99422a2d3704f34b8bd03e9709 /tests/functional/heketi/test_heketi_create_volume.py | |
parent | e12a4681858714c3a79dcfeea5d31241122a097a (diff) |
Add assert to check gluster volume list in test case
- In test case 'test_heketi_volume_create_with_cluster_node_down'
function glusto-tests 'get_volume_list' function returns 'None'
in case of failure.
- Add assert statement to check whether 'get_volume_list' function
returns expected gluster volume list.
Change-Id: I2b11bb33b1346d88db0501d000f32515db86279d
Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/heketi/test_heketi_create_volume.py')
-rw-r--r-- | tests/functional/heketi/test_heketi_create_volume.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/heketi/test_heketi_create_volume.py b/tests/functional/heketi/test_heketi_create_volume.py index 56e72db5..6e25895e 100644 --- a/tests/functional/heketi/test_heketi_create_volume.py +++ b/tests/functional/heketi/test_heketi_create_volume.py @@ -353,6 +353,8 @@ class TestHeketiVolume(BaseClass): # Verify volume creation at the gluster side g_vol_list = get_volume_list('auto_get_gluster_endpoint') + self.assertTrue(g_vol_list, "Failed to get gluster volume list") + msg = "volume: %s not found in the volume list: %s" % ( volume_name, g_vol_list) self.assertIn(volume_name, g_vol_list, msg) |