Skip to content

Commit c19ae60

Browse files
committed
fix: wait for Auth CR to be Ready after patching adminGroups
Signed-off-by: Swati Mukund Bagal <sbagal@redhat.com>
1 parent 0df0e18 commit c19ae60

File tree

1 file changed

+1
-0
lines changed
  • tests/model_serving/maas_billing/maas_subscription

1 file changed

+1
-0
lines changed

tests/model_serving/maas_billing/maas_subscription/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ def admin_ocp_token(admin_client: DynamicClient) -> Generator[str, Any, Any]:
733733
LOGGER.info(f"admin_ocp_token: patching Auth CR adminGroups to {patched_groups}")
734734

735735
with ResourceEditor(patches={auth: {"spec": {"adminGroups": patched_groups}}}):
736+
auth.wait_for_condition(condition="Ready", status="True", timeout=60)
736737
yield get_openshift_token(client=admin_client)
737738

738739

0 commit comments

Comments
 (0)