We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd0854 commit ca5c56dCopy full SHA for ca5c56d
tests/templates/kuttl/smoke/test_zookeeper.py
@@ -64,9 +64,7 @@ def check_monitoring(hosts):
64
url = host + ":9505"
65
response = try_get(url)
66
67
- if response.ok:
68
- continue
69
- else:
+ if not response.ok:
70
print("Error for [" + url + "]: could not access monitoring")
71
exit(-1)
72
@@ -76,12 +74,9 @@ def check_monitoring(hosts):
76
74
77
75
if response.ok:
78
# arbitrary metric was chosen to test if metrics are present in the response
79
- if "quorum_size" in response.text:
80
81
+ if "quorum_size" not in response.text:
82
print("Error for [" + url + "]: missing metrics")
83
84
85
else:
86
87
0 commit comments