Skip to content

Commit 97973b8

Browse files
committed
adjust smoke_aws tests
1 parent d56eaef commit 97973b8

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

tests/templates/kuttl/smoke_aws/check-metrics.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def try_get(url):
1313
retries = 3
1414
for i in range(retries):
1515
try:
16-
r = requests.get(url, timeout=5, auth=("trino", ""))
16+
r = requests.get(url, timeout=5, auth=("admin", "admin"))
1717
r.raise_for_status()
1818
return r
1919
except requests.exceptions.HTTPError as errh:
@@ -65,16 +65,8 @@ def check_monitoring(hosts):
6565
args = vars(all_args.parse_args())
6666
namespace = args["namespace"]
6767

68-
host_coordinator_0 = (
69-
"http://trino-coordinator-default-0.trino-coordinator-default."
70-
+ namespace
71-
+ ".svc.cluster.local"
72-
)
73-
host_worker_0 = (
74-
"http://trino-worker-default-0.trino-worker-default."
75-
+ namespace
76-
+ ".svc.cluster.local"
77-
)
68+
host_coordinator_0 = f"https://trino-coordinator-default-0.trino-coordinator-default.{namespace}.svc.cluster.local"
69+
host_worker_0 = f"https://trino-worker-default-0.trino-worker-default.{namespace}.svc.cluster.local"
7870

7971
hosts = [host_coordinator_0, host_worker_0]
8072

0 commit comments

Comments
 (0)