Skip to content

Commit 3dc11d8

Browse files
committed
fix(tests): override nifi.cluster.flow.election.max.wait.time to "10 secs" to avoid test timeouts (5min defaualt).
1 parent c8cb0b8 commit 3dc11d8

11 files changed

Lines changed: 38 additions & 0 deletions

File tree

tests/templates/kuttl/cluster-sync-cs-bug/20-install-nifi.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ spec:
186186
nifi.properties:
187187
nifi.web.https.sni.required: "false"
188188
nifi.web.https.sni.host.check: "false"
189+
# Quicker startup, and we only have a single node
190+
nifi.cluster.flow.election.max.wait.time: "10 secs"
189191
podOverrides:
190192
spec:
191193
initContainers:

tests/templates/kuttl/cluster_operation/20-install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
gracefulShutdownTimeout: 1m
5151
logging:
5252
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
53+
configOverrides:
54+
"nifi.properties":
55+
# Quicker startup, and we only have a single node
56+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
5357
roleGroups:
5458
default:
5559
replicas: 2

tests/templates/kuttl/custom-components-git-sync/30_install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ spec:
6767
config:
6868
logging:
6969
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
70+
configOverrides:
71+
"nifi.properties":
72+
# Quicker startup, and we only have a single node
73+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
7074
roleConfig:
7175
listenerClass: external-unstable
7276
podOverrides:

tests/templates/kuttl/external-access/30_nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
config:
5454
logging:
5555
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
56+
configOverrides:
57+
"nifi.properties":
58+
# Quicker startup, and we only have a single node
59+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
5660
roleConfig:
5761
listenerClass: test-external-unstable-$NAMESPACE
5862
roleGroups:

tests/templates/kuttl/ldap/12-install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ spec:
5454
gracefulShutdownTimeout: 1m
5555
logging:
5656
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
57+
configOverrides:
58+
"nifi.properties":
59+
# Quicker startup, and we only have a single node
60+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
5761
roleConfig:
5862
listenerClass: external-unstable
5963
roleGroups:

tests/templates/kuttl/logging/04-install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ spec:
105105
nodes:
106106
config:
107107
gracefulShutdownTimeout: 1m
108+
configOverrides:
109+
"nifi.properties":
110+
# Quicker startup, and we only have a single node
111+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
108112
roleGroups:
109113
automatic-log-config:
110114
replicas: 1

tests/templates/kuttl/orphaned_resources/02-install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ spec:
5151
gracefulShutdownTimeout: 1m
5252
logging:
5353
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
54+
configOverrides:
55+
"nifi.properties":
56+
# Quicker startup, and we only have a single node
57+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
5458
roleGroups:
5559
default:
5660
config: {}

tests/templates/kuttl/resources/02-install-nifi.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ spec:
6868
capacity: 2Gi
6969
stateRepo:
7070
capacity: 2Gi
71+
configOverrides:
72+
"nifi.properties":
73+
# Quicker startup, and we only have a single node
74+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
7175
roleGroups:
7276
resources-from-role:
7377
replicas: 1

tests/templates/kuttl/smoke_v1/30-install-nifi.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ spec:
6969
"nifi.properties":
7070
"nifi.diagnostics.on.shutdown.enabled": "true"
7171
"nifi.diagnostics.on.shutdown.verbose": "false"
72+
# Quicker startup, and we only have a single node
73+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
7274
config:
7375
logging:
7476
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}

tests/templates/kuttl/smoke_v2/30-install-nifi.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ spec:
7373
"nifi.properties":
7474
"nifi.diagnostics.on.shutdown.enabled": "true"
7575
"nifi.diagnostics.on.shutdown.verbose": "false"
76+
# Quicker startup, and we only have a single node
77+
"nifi.cluster.flow.election.max.wait.time": "10 secs"
7678
config:
7779
logging:
7880
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}

0 commit comments

Comments
 (0)