Skip to content

Commit 34f6c67

Browse files
committed
consolidate cluster operation tests
1 parent 87809b5 commit 34f6c67

10 files changed

Lines changed: 14 additions & 14 deletions

tests/templates/kuttl/cluster-operation/10-assert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
1+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
22
---
33
apiVersion: kuttl.dev/v1beta1
44
kind: TestAssert

tests/templates/kuttl/cluster-operation/10-install-zk.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
1+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
22
---
33
apiVersion: zookeeper.stackable.tech/v1alpha1
44
kind: ZookeeperCluster

tests/templates/kuttl/cluster-operation/20-assert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
status:
1313
readyReplicas: 1
1414
replicas: 1
15-
{% if test_scenario['values']['use-kraft-controller'] == 'true' %}
15+
{% if test_scenario['values']['zookeeper-latest'] == 'false' %}
1616
---
1717
apiVersion: apps/v1
1818
kind: StatefulSet

tests/templates/kuttl/cluster-operation/20-install-kafka.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['use-kraft-controller'] == 'false' %}
19+
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2020
clusterConfig:
2121
{% endif %}
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
vectorAggregatorConfigMapName: vector-aggregator-discovery
2424
{% endif %}
25-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
25+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2626
zookeeperConfigMapName: test-zk
2727
{% else %}
2828
controllers:

tests/templates/kuttl/cluster-operation/30-assert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
name: test-kafka-broker-default
1212
status:
1313
replicas: 0
14-
{% if test_scenario['values']['use-kraft-controller'] == 'true' %}
14+
{% if test_scenario['values']['zookeeper-latest'] == 'false' %}
1515
---
1616
apiVersion: apps/v1
1717
kind: StatefulSet

tests/templates/kuttl/cluster-operation/30-stop-kafka.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['use-kraft-controller'] == 'false' %}
19+
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2020
clusterConfig:
2121
{% endif %}
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
vectorAggregatorConfigMapName: vector-aggregator-discovery
2424
{% endif %}
25-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
25+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2626
zookeeperConfigMapName: test-zk
2727
{% else %}
2828
brokers:

tests/templates/kuttl/cluster-operation/40-assert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
name: test-kafka-broker-default
1212
status:
1313
replicas: 0
14-
{% if test_scenario['values']['use-kraft-controller'] == 'true' %}
14+
{% if test_scenario['values']['zookeeper-latest'] == 'false' %}
1515
---
1616
apiVersion: apps/v1
1717
kind: StatefulSet

tests/templates/kuttl/cluster-operation/40-pause-kafka.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ spec:
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
1818
pullPolicy: IfNotPresent
19-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['use-kraft-controller'] == 'false' %}
19+
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
2020
clusterConfig:
2121
{% endif %}
2222
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2323
vectorAggregatorConfigMapName: vector-aggregator-discovery
2424
{% endif %}
25-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
25+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2626
zookeeperConfigMapName: test-zk
2727
{% else %}
2828
controllers:

tests/templates/kuttl/cluster-operation/50-assert.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
status:
1313
readyReplicas: 1
1414
replicas: 1
15-
{% if test_scenario['values']['use-kraft-controller'] == 'true' %}
15+
{% if test_scenario['values']['zookeeper-latest'] == 'false' %}
1616
---
1717
apiVersion: apps/v1
1818
kind: StatefulSet

tests/templates/kuttl/cluster-operation/50-restart-kafka.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ spec:
1515
{% else %}
1616
productVersion: "{{ test_scenario['values']['kafka-latest'] }}"
1717
{% endif %}
18-
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['use-kraft-controller'] == 'false' %}
18+
{% if lookup('env', 'VECTOR_AGGREGATOR') or test_scenario['values']['zookeeper-latest'] != 'false' %}
1919
clusterConfig:
2020
{% endif %}
2121
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
2222
vectorAggregatorConfigMapName: vector-aggregator-discovery
2323
{% endif %}
24-
{% if test_scenario['values']['use-kraft-controller'] == 'false' %}
24+
{% if test_scenario['values']['zookeeper-latest'] != 'false' %}
2525
zookeeperConfigMapName: test-zk
2626
{% else %}
2727
controllers:

0 commit comments

Comments
 (0)