summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi
diff options
context:
space:
mode:
authorSri Vignesh <sselvan@redhat.com>2020-07-07 14:12:05 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-07-07 11:54:47 +0000
commit62e9aa1e9ea6df67ceb08985748666d94ba98118 (patch)
tree686d1ef39e9145d108550ec77592341aef6f6f02 /tests/functional/heketi
parent616c5ed78decb985366b6c827df7dd1d1346505b (diff)
[TestFix] Fix large heketi volume creation issue
Fix consists of - While creating large heketi valumes, sometime timeout will occur for heketi command but after sometime volume will get created. Use baseclass function 'create_heketi_volume_with_name_and_wait' to check for volume in case timeout occurs. Change-Id: Ia2cdf8d50ecba01ebf593e72afbbff809877c944 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
Diffstat (limited to 'tests/functional/heketi')
-rw-r--r--tests/functional/heketi/test_volume_creation.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/heketi/test_volume_creation.py b/tests/functional/heketi/test_volume_creation.py
index 0af49f9d..92b9dac3 100644
--- a/tests/functional/heketi/test_volume_creation.py
+++ b/tests/functional/heketi/test_volume_creation.py
@@ -351,10 +351,9 @@ class TestVolumeCreationTestCases(BaseClass):
self.skipTest('Required free space %s is not available' % vol_size)
# Create heketi volume with device size + 1
- vol_info = heketi_ops.heketi_volume_create(
- h_node, h_url, vol_size, clusters=cluster['id'], json=True)
- self.addCleanup(
- heketi_ops.heketi_volume_delete, h_node, h_url, vol_info['id'])
+ vol_info = self.create_heketi_volume_with_name_and_wait(
+ name="volume_size_greater_than_device_size", size=vol_size,
+ json=True)
# Get gluster server IP's from heketi volume info
glusterfs_servers = heketi_ops.get_vol_file_servers_and_hosts(