File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 16
16
run.sh : |-
17
17
exec >> /tmp/testlog
18
18
exec 2>&1
19
- echo "Test completed at $(date -u +%Y-%m-%dT%H:%M:%SZ)."
19
+
20
+ unique=$(date -Ins)
21
+
22
+ echo "Test $unique" | kafkacat -P -b $BOOTSTRAP -t test-basic-produce-consume -v
23
+ kafkacat -C -b $BOOTSTRAP -t test-basic-produce-consume -o -1 -e | grep $unique
24
+
20
25
exit 0
21
26
22
27
---
@@ -66,24 +71,28 @@ spec:
66
71
# image: solsson/kubectl-kafkacat@sha256:3715a7ede3f168f677ee6faf311ff6887aff31f660cfeecad5d87b4f18516321
67
72
env :
68
73
- name : BOOTSTRAP
69
- value : kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
74
+ # value: kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
75
+ value : kafka-0.broker.kafka.svc.cluster.local:9092
70
76
- name : ZOOKEEPER
71
77
value : zookeeper.kafka.svc.cluster.local:2181
72
78
# Test set up
73
79
command :
74
80
- /bin/bash
81
+ - -e
75
82
- /test/setup.sh
76
83
# Test run, again and again
77
84
readinessProbe :
78
85
exec :
79
86
command :
80
87
- /bin/bash
88
+ - -e
81
89
- /test/run.sh
82
90
# Test quit on nonzero exit
83
91
livenessProbe :
84
92
exec :
85
93
command :
86
94
- /bin/bash
95
+ - -e
87
96
- /test/continue.sh
88
97
volumeMounts :
89
98
- name : config
You can’t perform that action at this time.
0 commit comments