Skip to content
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