Skip to content

Commit 6887bfe

Browse files
committed
test: Correct URL due to TLS SNI errors
1 parent 5f8b236 commit 6887bfe

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

tests/templates/kuttl/commons/healthcheck.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
)
1515

1616
druid_cluster_name = sys.argv[1]
17+
namespace = sys.argv[2]
1718

1819
druid_role_ports = {
1920
"broker": 8282,
@@ -24,9 +25,7 @@
2425
}
2526

2627
for role, port in druid_role_ports.items():
27-
url = (
28-
f"https://{druid_cluster_name}-{role}-default-headless:{port}/status/health"
29-
)
28+
url = f"https://{druid_cluster_name}-{role}-default-headless.{namespace}.svc.cluster.local:{port}/status/health"
3029
count = 1
3130

3231
# As this script is intended to be executed by Kuttl which is in charge of overall test timeouts it is ok

tests/templates/kuttl/hdfs-deep-storage/05-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66
timeout: 300

tests/templates/kuttl/ingestion-no-s3-ext/05-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66
timeout: 300

tests/templates/kuttl/ingestion-s3-ext/05-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66
timeout: 300

tests/templates/kuttl/s3-deep-storage/11-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid-s3-deep-storage
5+
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid-s3-deep-storage $NAMESPACE
66
timeout: 300

tests/templates/kuttl/smoke/70-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid
5+
- script: kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid $NAMESPACE
66
timeout: 300

0 commit comments

Comments
 (0)