From 221acd3e19d4dcde87caaaff5681e9a267e04fb3 Mon Sep 17 00:00:00 2001 From: averevki Date: Thu, 30 Jan 2025 16:53:38 +0100 Subject: [PATCH] Increase TLSPolicy timeout for Azure TLS ACME challenges Signed-off-by: averevki --- testsuite/kuadrant/policy/tls.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/testsuite/kuadrant/policy/tls.py b/testsuite/kuadrant/policy/tls.py index 0fe0d296..e2cee8d2 100644 --- a/testsuite/kuadrant/policy/tls.py +++ b/testsuite/kuadrant/policy/tls.py @@ -2,7 +2,7 @@ from testsuite.gateway import Referencable from testsuite.kubernetes.client import KubernetesClient -from testsuite.kuadrant.policy import Policy, has_condition +from testsuite.kuadrant.policy import Policy class TLSPolicy(Policy): @@ -49,7 +49,6 @@ def __setitem__(self, key, value): def __getitem__(self, key): return self.model.spec[key] - def wait_for_ready(self): - """Increase timeout to account for letsEncrypt""" - success = self.wait_until(has_condition("Enforced", "True"), timelimit=180) - assert success, f"{self.kind()} did not get ready in time" + def wait_for_full_enforced(self, timelimit=450): + """Wait for a Policy to be fully Enforced with increased timelimit for ACME challenges""" + super().wait_for_full_enforced(timelimit=timelimit)