File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ spec:
20
20
- /bin/sh
21
21
- -c
22
22
- >
23
- curl -I $REST;
24
- curl -X POST $REST/consumers/list;
23
+ curl --retry 10 --retry-delay 30 --retry-connrefused -I $REST;
25
24
26
- # http://docs.confluent.io/current/kafka-rest/docs/intro.html
25
+ curl -H 'Accept: application/vnd.kafka.v2+json' $REST/topics;
26
+
27
+ curl --retry 10 -H 'Accept: application/vnd.kafka.v2+json' $REST/topics/test1;
28
+ curl -X POST -H "Content-Type: application/vnd.kafka.json.v2+json" -H "Accept: application/vnd.kafka.v2+json" --data "{\"records\":[{\"value\":\"Test from $HOSTNAME at $(date)\"}]}" $REST/topics/$TOPIC -v;
29
+ curl --retry 10 -H 'Accept: application/vnd.kafka.v2+json' $REST/topics/test2;
27
30
28
31
curl -X POST -H "Content-Type: application/vnd.kafka.json.v2+json" -H "Accept: application/vnd.kafka.v2+json" --data '{"records":[{"value":{"foo":"bar"}}]}' $REST/topics/$TOPIC -v;
29
32
You can’t perform that action at this time.
0 commit comments