Skip to content

Commit

Permalink
Merge pull request #457 from azgabur/add_refresh
Browse files Browse the repository at this point in the history
Add refresh to authorino object
  • Loading branch information
pehala authored Jun 24, 2024
2 parents 0b02c4c + 2049461 commit 60bf09b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion testsuite/gateway/gateway_api/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def wait_for_ready(self, timeout: int = 10 * 60):
"""Waits for the gateway to be ready in the sense of is_ready(self)"""
success = self.wait_until(lambda obj: self.__class__(obj.model).is_ready(), timelimit=timeout)
assert success, "Gateway didn't get ready in time"
self.refresh()

def is_affected_by(self, policy: Policy) -> bool:
"""Returns True, if affected by status is found within the object for the specific policy"""
Expand Down
1 change: 1 addition & 0 deletions testsuite/openshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def wait_until(self, test_function, timelimit=60):
success, _, _ = self.self_selector().until_all(
success_func=lambda obj: test_function(self.__class__(obj.model))
)
self.refresh()
return success
except OpenShiftPythonException as e:
if "Timeout" in e.msg:
Expand Down
1 change: 0 additions & 1 deletion testsuite/policy/authorization/auth_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def wait_for_ready(self):
and all(x.status == "True" for x in obj.model.status.conditions)
)
assert success, f"{self.kind()} did not get ready in time"
self.refresh()

@modify
def add_rule(self, when: list[Rule]):
Expand Down

0 comments on commit 60bf09b

Please sign in to comment.