From caf56c71bd36be27f1626e1849889a6b893035d4 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Tue, 1 Aug 2017 14:54:25 +0200 Subject: Looks like Schema Registry works with empty bootstrap servers --- 11confluent-config.yml | 1 + test/rest-curl.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/11confluent-config.yml b/11confluent-config.yml index 12fa7db..b56484b 100644 --- a/11confluent-config.yml +++ b/11confluent-config.yml @@ -20,6 +20,7 @@ data: # limitations under the License. listeners=http://0.0.0.0:80 + #kafkastore.bootstrap.servers kafkastore.connection.url=zookeeper:2181 kafkastore.topic=_schemas debug=false diff --git a/test/rest-curl.yml b/test/rest-curl.yml index f8dc8de..5c6489d 100644 --- a/test/rest-curl.yml +++ b/test/rest-curl.yml @@ -50,6 +50,27 @@ data: -H "Content-Type: application/vnd.kafka.v2+json" \ $REST/consumers/my_json_consumer/instances/my_consumer_instance + # schema-registry + + curl -X GET $SCHEMAS/subjects + echo "" + + curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \ + --data '{"schema": "{\"type\": \"string\"}"}' \ + $SCHEMAS/subjects/$TOPIC-key/versions + echo "" + + curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \ + --data '{"schema": "{\"type\": \"string\"}"}' \ + $SCHEMAS/subjects/$TOPIC-value/versions + echo "" + + curl -X GET $SCHEMAS/schemas/ids/1 + echo "" + + curl -X GET $SCHEMAS/subjects/$TOPIC-value/versions/1 + echo "" + tail -f /tmp/testlog continue.sh: |- @@ -104,6 +125,8 @@ spec: - name: testcase image: solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf env: + - name: SCHEMAS + value: http://schemas.kafka.svc.cluster.local - name: REST value: http://rest.kafka.svc.cluster.local - name: TOPIC -- cgit v1.2.3