summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkasturiNarra <knarra@redhat.com>2019-12-10 18:30:32 +0530
committerkasturiNarra <knarra@redhat.com>2019-12-12 21:01:59 +0530
commit9137ba42ee7155d22decf125af6e9d8d1b6e746f (patch)
treed8523098d2099b95b61a29c53eadc106eb06f438
parentc1b6d23e29daf2da80722317ec2fd67b39523e3f (diff)
Fix code to create bhv in func _create_distributed_replica_vol
Change code of func _create_distributed_replica_vol to handle block hosting volume creation as well. Change-Id: If4b1f48dc8cbe257254a2729599f58f302b403d8
-rw-r--r--tests/functional/heketi/test_create_distributed_replica_heketi_volume.py4
1 files changed, 2 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 7c15a23..c2a6e52 100644
--- a/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py
+++ b/tests/functional/heketi/test_create_distributed_replica_heketi_volume.py
@@ -104,7 +104,7 @@ class TestHeketiVolume(BaseClass):
try:
heketi_vol = self.create_heketi_volume_with_name_and_wait(
h_volume_name, vol_size_gb, json=True,
- raise_on_cleanup_error=False)
+ raise_on_cleanup_error=False, block=block)
except AssertionError as e:
# NOTE: rare situation when we need to decrease size of a volume.
# and we expect this vol to be distributed.
@@ -118,7 +118,7 @@ class TestHeketiVolume(BaseClass):
vol_size_gb -= 1
heketi_vol = self.create_heketi_volume_with_name_and_wait(
h_volume_name, vol_size_gb, json=True,
- raise_on_cleanup_error=False)
+ raise_on_cleanup_error=False, block=block)
g.log.info("Successfully created distributed volume.")
vol_name = heketi_vol['name']