Skip to content

Commit 3fb4313

Browse files
committed
Remove Hardcoded hlq
1 parent fa19159 commit 3fb4313

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/functional/modules/test_zos_volume_init_func.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
__metaclass__ = type
1818

19+
from ibm_zos_core.tests.helpers.dataset import (
20+
get_random_q,
21+
)
1922
# TEST_VOL_ADDR = '0903'
2023
# TEST_VOL_SER = 'KET999'
2124
TEST_VOL_ADDR = '01A2'
@@ -32,11 +35,11 @@
3235

3336
def test_guard_rail_and_setup(ansible_zos_module):
3437
hosts = ansible_zos_module
35-
38+
hlq = get_random_q()
3639
# remove all data sets from target volume. Expected to be the following 3
37-
hosts.all.zos_data_set(name="IMSTESTL.IMS01.SPOOL1", state="absent")
38-
hosts.all.zos_data_set(name="IMSTESTL.IMS01.SPOOL2", state="absent")
39-
hosts.all.zos_data_set(name="IMSTESTL.IMS01.SPOOL3", state="absent")
40+
hosts.all.zos_data_set(name="{0}.IMS01.SPOOL1".format(hlq), state="absent")
41+
hosts.all.zos_data_set(name="{0}.IMS01.SPOOL2".format(hlq), state="absent")
42+
hosts.all.zos_data_set(name="{0}.IMS01.SPOOL3".format(hlq), state="absent")
4043

4144
params = {
4245
"address":TEST_VOL_ADDR,

0 commit comments

Comments
 (0)