summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Kumar <aanand01762@gmail.com>2020-06-11 14:24:58 +0530
committerArun Kumar <aanand01762@gmail.com>2020-06-11 14:30:10 +0530
commit3d78152f82d3987bab8fc004e29257d997444a80 (patch)
tree020a3de08d4381123690932158692e09490c67a8
parent96e8a65df41908242d1ff7be3ed28deda7fc3df7 (diff)
[TestFix] Fix the SC creation part of code for heketi zone TC's
Change-Id: I87d5af3151d01319bdd7d36dbf9bf99527648f56 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
-rw-r--r--tests/functional/heketi/test_heketi_zones.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/functional/heketi/test_heketi_zones.py b/tests/functional/heketi/test_heketi_zones.py
index 236d8b9..79acf9d 100644
--- a/tests/functional/heketi/test_heketi_zones.py
+++ b/tests/functional/heketi/test_heketi_zones.py
@@ -587,8 +587,9 @@ class TestHeketiZones(baseclass.BaseClass):
# Create sc or else directly set env to "strict" inside dc
is_create_sc = not is_set_env
if is_create_sc:
- self._create_sc_for_zone_check_tc(
- self.prefix, heketi_zone_checking)
+ sc_name = self.create_storage_class(
+ sc_name_prefix=self.prefix, vol_name_prefix=self.prefix,
+ heketi_zone_checking=heketi_zone_checking)
if is_set_env:
self._set_zone_check_env_in_heketi_dc(heketi_zone_checking)
@@ -687,8 +688,9 @@ class TestHeketiZones(baseclass.BaseClass):
# Create sc or else directly set env to "strict" inside dc
is_create_sc = not is_set_env
if is_create_sc:
- sc_name = self._create_sc_for_zone_check_tc(
- self.prefix, heketi_zone_checking)
+ sc_name = self.create_storage_class(
+ sc_name_prefix=self.prefix, vol_name_prefix=self.prefix,
+ heketi_zone_checking=heketi_zone_checking)
if is_set_env:
self._set_zone_check_env_in_heketi_dc(heketi_zone_checking)