Skip to content

Commit caf56c7

Browse files
committed
Looks like Schema Registry works with empty bootstrap servers
1 parent 7b4cfb4 commit caf56c7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

11confluent-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ data:
2020
# limitations under the License.
2121
2222
listeners=http://0.0.0.0:80
23+
#kafkastore.bootstrap.servers
2324
kafkastore.connection.url=zookeeper:2181
2425
kafkastore.topic=_schemas
2526
debug=false

test/rest-curl.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@ data:
5050
-H "Content-Type: application/vnd.kafka.v2+json" \
5151
$REST/consumers/my_json_consumer/instances/my_consumer_instance
5252
53+
# schema-registry
54+
55+
curl -X GET $SCHEMAS/subjects
56+
echo ""
57+
58+
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \
59+
--data '{"schema": "{\"type\": \"string\"}"}' \
60+
$SCHEMAS/subjects/$TOPIC-key/versions
61+
echo ""
62+
63+
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \
64+
--data '{"schema": "{\"type\": \"string\"}"}' \
65+
$SCHEMAS/subjects/$TOPIC-value/versions
66+
echo ""
67+
68+
curl -X GET $SCHEMAS/schemas/ids/1
69+
echo ""
70+
71+
curl -X GET $SCHEMAS/subjects/$TOPIC-value/versions/1
72+
echo ""
73+
5374
tail -f /tmp/testlog
5475
5576
continue.sh: |-
@@ -104,6 +125,8 @@ spec:
104125
- name: testcase
105126
image: solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf
106127
env:
128+
- name: SCHEMAS
129+
value: http://schemas.kafka.svc.cluster.local
107130
- name: REST
108131
value: http://rest.kafka.svc.cluster.local
109132
- name: TOPIC

0 commit comments

Comments
 (0)