Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase TLSPolicy timeout for Azure TLS ACME challenges #629

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions testsuite/kuadrant/policy/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)