summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Kumar <aanand01762@gmail.com>2020-06-10 09:54:38 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-06-24 14:23:23 +0000
commite90319ec40b9cce5cb814d04f4ae4c9a7588097c (patch)
treedfc20f58d09843e82894bc7f157fea5fee8b7daa
parent7c0cd8bdc98c25b019a1b5f0a7525a3c18d5a0db (diff)
[Test] Add TC create a distributed replicate volume
Change-Id: Ie627998f6e363791e2249ca3472e66c13805666e Signed-off-by: Arun Kumar <aanand01762@gmail.com>
-rw-r--r--tests/functional/heketi/test_create_distributed_replica_heketi_volume.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py b/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py
index e9eccce..64ba4d9 100644
--- a/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py
+++ b/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py
@@ -149,7 +149,7 @@ class TestHeketiVolume(BaseClass):
# Run unique actions to Validate whether deleting a dist-rep
# volume is handled by heketi else return
if not validate_cleanup:
- return
+ return vol_id
# Get the free space after creating heketi volume
free_space_after_creating_vol = self._get_free_space()
@@ -198,7 +198,7 @@ class TestHeketiVolume(BaseClass):
@pytest.mark.tier0
def test_to_create_and_delete_dist_rep_vol(self):
"""Validate 2x3 vol type creation when the volume cannot be
- carved out of a single device
+ carved out of a single device and the delete the volume
"""
self._create_distributed_replica_vol(validate_cleanup=True)
@@ -208,3 +208,13 @@ class TestHeketiVolume(BaseClass):
"""Validate distributed replicated bhv using heketi-cli"""
self._create_distributed_replica_vol(
validate_cleanup, block=True)
+
+ @pytest.mark.tier0
+ def test_to_create_dist_rep_vol(self):
+ """Validate 2x3 vol type creation when the volume cannot be
+ carved out of a single device
+ """
+ vol_id = self._create_distributed_replica_vol(validate_cleanup=False)
+ self.addCleanup(
+ heketi_volume_delete, self.heketi_client_node,
+ self.heketi_server_url, vol_id)