Skip to content

Commit

Permalink
Merge pull request #24589 from vbotbuildovich/backport-pr-24583-v24.3…
Browse files Browse the repository at this point in the history
….x-722

[v24.3.x] tests/polaris: use curl to query polaris catalog health check
  • Loading branch information
mmaslankaprv authored Dec 17, 2024
2 parents 0badb40 + c19e32f commit 32a9dce
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/rptest/services/polaris_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,14 @@ def _polaris_ready():
self.logger.debug(
f"Querying polaris healthcheck on http://{node.account.hostname}:8182/healthcheck"
)
r = requests.get(
f"http://{node.account.hostname}:8182/healthcheck", timeout=10)

self.logger.info(
f"health check result status code: {r.status_code}")
return r.status_code == 200
out = node.account.ssh_output(
"curl -s -m 10 -o /dev/null -w '%{http_code}' http://localhost:8182/healthcheck"
)
status_code = int(out.decode('utf-8'))
self.logger.debug(
f"health check result status code: {status_code}")
return status_code == 200

wait_until(_polaris_ready,
timeout_sec=timeout_sec,
Expand Down

0 comments on commit 32a9dce

Please sign in to comment.