Skip to content

Commit

Permalink
Fix_up
Browse files Browse the repository at this point in the history
Signed-off-by: Vishakha Kathole <[email protected]>
  • Loading branch information
vkathole authored and openshift-cherrypick-robot committed May 31, 2024
1 parent 0fb4b01 commit 6a16867
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/cross_functional/kcs/test_selinux_relabel_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_selinux_relabel_for_existing_pvc(
self.pod_selector = self.pod_obj.labels.get(constants.DEPLOYMENTCONFIG)

# Leave pod for some time to run since file creation time is longer
waiting_time = 20
waiting_time = 200
log.info(f"Waiting for {waiting_time} seconds")
time.sleep(waiting_time)

Expand Down Expand Up @@ -301,13 +301,14 @@ def test_selinux_relabel_for_existing_pvc(
self.apply_selinux_solution_on_existing_pvc(self.pvc_obj)

# Delete pod so that fix will be applied for new pod
self.pod_obj = self.get_app_pod_obj()
self.pod_obj.delete(wait=True)
time.sleep(waiting_time)
self.pod_obj = self.get_app_pod_obj()
assert wait_for_pods_to_be_running(
pod_names=[self.pod_obj.name], timeout=600, sleep=15
), f"Pod {self.pod_obj.name} didn't reach to running state"
for _ in range(2):
self.pod_obj = self.get_app_pod_obj()
self.pod_obj.delete(wait=True)
time.sleep(waiting_time)
self.pod_obj = self.get_app_pod_obj()
assert wait_for_pods_to_be_running(
pod_names=[self.pod_obj.name], timeout=600, sleep=15
), f"Pod {self.pod_obj.name} didn't reach to running state"

# Check SeLinux Relabeling is set to false
retry((AssertionError), tries=5, delay=10,)(
Expand Down

0 comments on commit 6a16867

Please sign in to comment.