Skip to content

Commit 9d2fddd

Browse files
yankawaiIvanHunters
authored andcommitted
test(kafka): assert release topics exist before the deletion check
The post-delete absence assertions could pass vacuously if the two release topics were never created. Asserting both topics first makes the E2E prove that the pre-delete cleanup actually removed them. Signed-off-by: Yan Bondarenko <[email protected]>
1 parent 44ba13b commit 9d2fddd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ spec:
9494

9595
- name: verify-pvc-reclaim-on-delete
9696
try:
97+
- assert:
98+
timeout: 2m
99+
resource:
100+
apiVersion: kafka.strimzi.io/v1beta2
101+
kind: KafkaTopic
102+
metadata:
103+
name: kafka-test-test-results
104+
- assert:
105+
timeout: 2m
106+
resource:
107+
apiVersion: kafka.strimzi.io/v1beta2
108+
kind: KafkaTopic
109+
metadata:
110+
name: kafka-test-test-orders
97111
- delete:
98112
ref:
99113
apiVersion: apps.cozystack.io/v1alpha1

0 commit comments

Comments
 (0)