forked from fgeller/kt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To look for the schema using the identifier directly (low level)
- Loading branch information
1 parent
63edb9e
commit a1df576
Showing
5 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Schemas are registered in system_test.go | ||
kt admin -createtopic $topic -topicdetail topic-detail.json | ||
|
||
stdin produce-schema-1-stdin.json | ||
kt produce -topic $topic -value-avro-schema-id $schemaID | ||
|
||
stdin produce-schema-2-stdin.json | ||
kt produce -topic $topic -value-avro-schema-id $recordSchemaID | ||
|
||
kt consume -valuecodec avro $topic | ||
cmp stdout consume-stdout.json | ||
|
||
-- topic-detail.json -- | ||
{"NumPartitions": 1, "ReplicationFactor": 1} | ||
-- produce-schema-1-stdin.json -- | ||
{"key":"k1","value":{"Foo":1},"time":"2021-11-16T01:01:01Z"} | ||
-- produce-schema-2-stdin.json -- | ||
{"key":"k2","value":{"Bar":2.122121},"time":"2021-11-17T01:01:02Z"} | ||
-- consume-stdout.json -- | ||
{"partition":0,"offset":0,"key":"k1","value":{"Foo":1},"time":"2021-11-16T01:01:01Z"} | ||
{"partition":0,"offset":1,"key":"k2","value":{"Bar":2.122121},"time":"2021-11-17T01:01:02Z"} |