summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradityaramteke <adityaramteke05icr@gmail.com>2019-11-29 14:19:20 +0530
committervponomar <vponomar@redhat.com>2019-11-29 10:05:55 +0000
commit7e78390ecd5b2ca38edbc54ae6d17e175ef6daf2 (patch)
tree842f263fa0efb2380cfc644bf1676681df91a48a
parent0a86502c92a4be3818b8b6abe3601af02b949cc6 (diff)
Add cleanup after PVC creation
Cleanup function was missing after creation of PVC in test_creation_of_pvc_when_one_node_is_down TC. Change-Id: I9077f9f58248a8a08a236f7a50f1917c96181fd9
-rw-r--r--tests/functional/provisioning/test_dynamic_provisioning_block.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/provisioning/test_dynamic_provisioning_block.py b/tests/functional/provisioning/test_dynamic_provisioning_block.py
index 13ada8d..d8a7fca 100644
--- a/tests/functional/provisioning/test_dynamic_provisioning_block.py
+++ b/tests/functional/provisioning/test_dynamic_provisioning_block.py
@@ -751,6 +751,8 @@ class TestDynamicProvisioningBlockP0(GlusterBlockBaseClass):
# Create a PVC with SC of hacount equal to node count
sc_name = self.create_storage_class(hacount=node_count)
pvc_name = oc_create_pvc(self.node, sc_name=sc_name)
+ self.addCleanup(wait_for_resource_absence, self.node, 'pvc', pvc_name)
+ self.addCleanup(oc_delete, self.node, 'pvc', pvc_name)
events = wait_for_events(
self.node, obj_name=pvc_name, obj_type='PersistentVolumeClaim',
event_type='Warning', event_reason='ProvisioningFailed')