Skip to content

Commit ead8bb3

Browse files
committed
test(kafka): wait for ZooKeeper PVC deletion
Negative PVC assertions can stop on an API read error before the deletion timeout expires. Signed-off-by: Yan Bondarenko <[email protected]>
1 parent 6f00d30 commit ead8bb3

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎hack/e2e-chainsaw/kafka/chainsaw-test.yaml‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# The final step replaces the BATS check that Strimzi reclaims the ZooKeeper
44
# PVCs on delete: instead of a manual kubectl delete, an explicit delete of the
5-
# Kafka CR followed by `error` ops asserts both PVCs disappear (a regression in
5+
# Kafka CR followed by deletion watches asserts both PVCs disappear (a regression in
66
# the operator's deleteClaim handling would leave them behind).
77
apiVersion: chainsaw.kyverno.io/v1alpha1
88
kind: Test
@@ -140,17 +140,17 @@ spec:
140140
kind: KafkaTopic
141141
metadata:
142142
name: kafka-test-test-orders
143-
- error:
143+
- wait:
144144
timeout: 2m
145-
resource:
146-
apiVersion: v1
147-
kind: PersistentVolumeClaim
148-
metadata:
149-
name: data-kafka-test-zookeeper-0
150-
- error:
145+
apiVersion: v1
146+
kind: PersistentVolumeClaim
147+
name: data-kafka-test-zookeeper-0
148+
for:
149+
deletion: {}
150+
- wait:
151151
timeout: 2m
152-
resource:
153-
apiVersion: v1
154-
kind: PersistentVolumeClaim
155-
metadata:
156-
name: data-kafka-test-zookeeper-1
152+
apiVersion: v1
153+
kind: PersistentVolumeClaim
154+
name: data-kafka-test-zookeeper-1
155+
for:
156+
deletion: {}

0 commit comments

Comments
 (0)