Skip to content

v0.2.4

Compare
Choose a tag to compare
@sixstone-qq sixstone-qq released this 08 Jul 11:21
· 71 commits to master since this release
b595f2b

Add avroregistrytest package to ease integration testing against a real schema registry. #88

From README:

A github.com/heetch/avro/avroregistrytest package is provided to run integration test against a real schema registry.

import "github.com/heetch/avro/avroregistrytest"

type X struct {
   A int
}

avroregistrytest.Register(context.Background(), t, X{}, "test-topic")

This code snippet register an avro type for X struct for test-topic in the schema registry defined by KAFKA_REGISTRY_ADDR environment variable that must set to host:port form.