Skip to content

chore: fix monitoring test #956

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

Merged
merged 2 commits into from
Jun 24, 2025
Merged
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: 2 additions & 7 deletions tests/templates/kuttl/smoke/test_zookeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ def check_monitoring(hosts):
url = host + ":9505"
response = try_get(url)

if response.ok:
continue
else:
if not response.ok:
print("Error for [" + url + "]: could not access monitoring")
exit(-1)

Expand All @@ -76,12 +74,9 @@ def check_monitoring(hosts):

if response.ok:
# arbitrary metric was chosen to test if metrics are present in the response
if "quorum_size" in response.text:
continue
else:
if "quorum_size" not in response.text:
print("Error for [" + url + "]: missing metrics")
exit(-1)
continue
else:
print("Error for [" + url + "]: could not access monitoring")
exit(-1)
Expand Down