Skip to content

Commit

Permalink
NO-ISSUE: Fix subsystem tests in the CI - Wiremock stubs script is fa…
Browse files Browse the repository at this point in the history
…iling to reach wiremock from time to time (openshift#6569)
  • Loading branch information
danmanor authored and eifrach committed Aug 4, 2024
1 parent 83a0b0a commit c306f2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/deploy_wiremock.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ def deploy_ingress(hostname, deploy_options):
def populate_stubs(hostname: str, port: str):
cmd = f"go run ./hack/add_wiremock_stubs.go"
os.environ["OCM_URL"] = f"{hostname}:{port}"
utils.check_output(cmd)

log.info("Waiting for wiremock stubs population...")

waiting.wait(
lambda: utils.check_output(cmd),
timeout_seconds=120,
expected_exceptions=(RuntimeError),
sleep_seconds=SLEEP, waiting_for="Stubs to be populated"
)


def is_wiremock_service_ready(namespace: str) -> bool:
Expand Down

0 comments on commit c306f2a

Please sign in to comment.