Skip to content

Commit 9b421b1

Browse files
committed
fix remaining tests
1 parent 3f22e91 commit 9b421b1

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ impl v1alpha1::TrinoCluster {
838838
let ns = ns.clone();
839839
(0..rolegroup.replicas.unwrap_or(0)).map(move |i| TrinoPodRef {
840840
namespace: ns.clone(),
841-
role_group_service_name: rolegroup_metrics_service_name(
841+
role_group_service_name: rolegroup_headless_service_name(
842842
&role_group_ref.object_name(),
843843
),
844844
pod_name: format!(

tests/templates/kuttl/authentication/20-assert.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ kind: TestAssert
44
timeout: 300
55
commands:
66
# file
7-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u test_user_1 -p test_user_1 -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1
8-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u test_user_2_other -p test_user_2_other -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1
7+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u test_user_1 -p test_user_1 -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1
8+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u test_user_2_other -p test_user_2_other -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1
99
# ldap
10-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u integrationtest -p integrationtest -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1
11-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u integrationtest-other -p integrationtest-other -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1
10+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u integrationtest -p integrationtest -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1
11+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u integrationtest-other -p integrationtest-other -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1
1212
# oidc/oauth2
13-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-oauth-login.py https://trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local:8443/ui/
13+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-oauth-login.py https://trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local:8443/ui/

tests/templates/kuttl/authentication/31-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ timeout: 600
55
commands:
66
# file
77
# new user?
8-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u hot_reloaded -p hot_reloaded -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1
8+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u hot_reloaded -p hot_reloaded -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1

tests/templates/kuttl/authentication/33-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ timeout: 600
55
commands:
66
# We use the check-active-workers script for the login. Since we do want to wait until we cannot log in anymore
77
# we flip the return value in the end.
8-
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u hot_reloaded -p hot_reloaded -c trino-coordinator-default-metrics.$NAMESPACE.svc.cluster.local -w 1; if [ $? -eq 0 ]; then exit 1; fi
8+
- script: kubectl exec -n $NAMESPACE trino-test-helper-0 -- python /tmp/check-active-workers.py -u hot_reloaded -p hot_reloaded -c trino-coordinator-default-headless.$NAMESPACE.svc.cluster.local -w 1; if [ $? -eq 0 ]; then exit 1; fi

tests/templates/kuttl/tls/check-tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def read_json(config_path):
6565
"/tmp/test-config.json"
6666
) # config file to indicate our test script if auth / tls is used or not
6767
coordinator_host = (
68-
"trino-coordinator-default-metrics." + namespace + ".svc.cluster.local"
68+
"trino-coordinator-default-headless." + namespace + ".svc.cluster.local"
6969
)
7070
trusted_ca = "/stackable/trusted/ca.crt" # will be mounted from secret op
7171
untrusted_ca = "/stackable/untrusted-cert.crt" # some random CA

0 commit comments

Comments
 (0)