diff options
author | vamahaja <vamahaja@redhat.com> | 2020-12-03 14:44:38 +0530 |
---|---|---|
committer | vamahaja <vamahaja@redhat.com> | 2020-12-08 11:07:23 +0530 |
commit | d0bc92df671f56b2ae15f68a71b5af1e2529f544 (patch) | |
tree | 9d0f7cd97b3dc51cc3969d356ba37ae9419fa75e /tests/functional/provisioning/test_pv_resize.py | |
parent | e298b5a967c4d8878ebd606adc604cd7fb6e162e (diff) |
[TestFix] Add config to read i/o images
Add support to pass I/O image from config file
Change-Id: I2c943ba0efaeab3a44eef63030965f36f8086c1b
Diffstat (limited to 'tests/functional/provisioning/test_pv_resize.py')
-rw-r--r-- | tests/functional/provisioning/test_pv_resize.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/functional/provisioning/test_pv_resize.py b/tests/functional/provisioning/test_pv_resize.py index dacdd992..f5833a99 100644 --- a/tests/functional/provisioning/test_pv_resize.py +++ b/tests/functional/provisioning/test_pv_resize.py @@ -70,7 +70,8 @@ class TestPvResizeClass(BaseClass): pvc_name = self.create_and_wait_for_pvc() # Create DC with POD and attached PVC to it. - dc_name = oc_create_app_dc_with_io(node, pvc_name) + dc_name = oc_create_app_dc_with_io( + node, pvc_name, image=self.io_container_image_cirros) self.addCleanup(oc_delete, node, 'dc', dc_name) self.addCleanup(scale_dc_pod_amount_and_wait, node, dc_name, 0) @@ -194,7 +195,8 @@ class TestPvResizeClass(BaseClass): pvc_name = self.create_and_wait_for_pvc(pvc_size=pvc_size_gb) # Create DC with POD and attached PVC to it - dc_name = oc_create_app_dc_with_io(self.node, pvc_name) + dc_name = oc_create_app_dc_with_io( + self.node, pvc_name, image=self.io_container_image_cirros) self.addCleanup(oc_delete, self.node, 'dc', dc_name) self.addCleanup(scale_dc_pod_amount_and_wait, self.node, dc_name, 0) pod_name = get_pod_name_from_dc(self.node, dc_name) @@ -270,7 +272,8 @@ class TestPvResizeClass(BaseClass): pvc_name = self.create_and_wait_for_pvc(pvc_size=pv_size) # Create DC with POD and attached PVC to it. - dc_name = oc_create_app_dc_with_io(node, pvc_name) + dc_name = oc_create_app_dc_with_io( + node, pvc_name, image=self.io_container_image_cirros) self.addCleanup(oc_delete, node, 'dc', dc_name) self.addCleanup(scale_dc_pod_amount_and_wait, node, dc_name, 0) |