Skip to content

Commit 79030b6

Browse files
Fix some errors in the tests (#582)
1 parent 5c3d181 commit 79030b6

File tree

8 files changed

+27
-8
lines changed

8 files changed

+27
-8
lines changed

tests/templates/kuttl/oidc/00-druid-secrets.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ apiVersion: v1
33
kind: Secret
44
metadata:
55
name: druid-oidc
6-
timeout: 240
76
stringData:
87
DRUID_OIDC_CLIENT: druid
98
DRUID_OIDC_CLIENT_SECRET: R1bxHUD569vHeQdw
@@ -13,6 +12,5 @@ apiVersion: v1
1312
kind: Secret
1413
metadata:
1514
name: druid-internal-password
16-
timeout: 240
1715
stringData:
1816
DRUID_INTERNAL_PASSWORD: mBcrsG328ox25fs3Fse

tests/templates/kuttl/oidc/00-s3-secret.yaml.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: minio-credentials
66
labels:
77
secrets.stackable.tech/class: s3-credentials-class
8-
timeout: 240
98
stringData:
109
accessKey: minioAccessKey
1110
secretKey: minioSecretKey

tests/templates/kuttl/oidc/20-zookeeper.yaml renamed to tests/templates/kuttl/oidc/20-zookeeper.yaml.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ spec:
77
image:
88
productVersion: "{{ test_scenario['values']['zookeeper-latest'] }}"
99
pullPolicy: IfNotPresent
10+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
11+
clusterConfig:
12+
vectorAggregatorConfigMapName: vector-aggregator-discovery
13+
{% endif %}
1014
servers:
15+
config:
16+
logging:
17+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1118
roleGroups:
1219
default:
1320
replicas: 1

tests/templates/kuttl/oidc/40_druid.yaml.j2

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
name: druid
2626
spec:
2727
image:
28-
productVersion: "{{ test_scenario['values']['druid-latest'] }}"
28+
productVersion: "{{ test_scenario['values']['druid'] }}"
2929
pullPolicy: IfNotPresent
3030
clusterConfig:
3131
additionalExtensions:
@@ -56,8 +56,14 @@ spec:
5656
connString: jdbc:derby://localhost:1527/var/druid/metadata.db;create=true
5757
host: localhost
5858
port: 1527
59+
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
60+
vectorAggregatorConfigMapName: vector-aggregator-discovery
61+
{% endif %}
5962
zookeeperConfigMapName: druid-znode
6063
brokers:
64+
config:
65+
logging:
66+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
6167
roleGroups:
6268
default:
6369
replicas: 1
@@ -115,20 +121,29 @@ spec:
115121
name: druid-internal-password
116122
key: DRUID_INTERNAL_PASSWORD
117123
coordinators:
124+
config:
125+
logging:
126+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
118127
roleGroups:
119128
default:
120129
replicas: 1
121130
configOverrides:
122131
runtime.properties: *runtime-properties
123132
podOverrides: *pod-overrides
124133
historicals:
134+
config:
135+
logging:
136+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
125137
roleGroups:
126138
default:
127139
replicas: 1
128140
configOverrides:
129141
runtime.properties: *runtime-properties
130142
podOverrides: *pod-overrides
131143
middleManagers:
144+
config:
145+
logging:
146+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
132147
roleGroups:
133148
default:
134149
replicas: 1
@@ -152,6 +167,9 @@ spec:
152167
name: druid-internal-password
153168
key: DRUID_INTERNAL_PASSWORD
154169
routers:
170+
config:
171+
logging:
172+
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
155173
roleGroups:
156174
default:
157175
replicas: 1

tests/templates/kuttl/resources/00-s3-secret.yaml.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: minio-credentials
66
labels:
77
secrets.stackable.tech/class: s3-credentials-class
8-
timeout: 240
98
stringData:
109
accessKey: minioAccessKey
1110
secretKey: minioSecretKey

tests/templates/kuttl/s3-deep-storage/00-s3-secret.yaml.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: minio-credentials
66
labels:
77
secrets.stackable.tech/class: s3-credentials-class
8-
timeout: 240
98
stringData:
109
accessKey: minioAccessKey
1110
secretKey: minioSecretKey

tests/templates/kuttl/tls/00-s3-secret.yaml.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: minio-credentials
66
labels:
77
secrets.stackable.tech/class: s3-credentials-class
8-
timeout: 240
98
stringData:
109
accessKey: minioAccessKey
1110
secretKey: minioSecretKey

tests/test-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ tests:
136136
- openshift
137137
- name: oidc
138138
dimensions:
139-
- druid-latest
139+
- druid
140140
- zookeeper-latest
141141
- s3-use-tls
142142
- openshift

0 commit comments

Comments
 (0)