diff --git a/tests/templates/kuttl/smoke/test_zookeeper.py b/tests/templates/kuttl/smoke/test_zookeeper.py index f3582f9c..76f5b561 100755 --- a/tests/templates/kuttl/smoke/test_zookeeper.py +++ b/tests/templates/kuttl/smoke/test_zookeeper.py @@ -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) @@ -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)