[FEATURE REQ] Make it possible to mock SchemaRegistryClient
See original GitHub issueLibrary or service name. Azure.Data.SchemaRegistry
Is your feature request related to a problem? Please describe.
As far as I can see it is currently not possible to mock the SchemaRegistryClient
type as it is not possible to create instances of the SchemaProperties
type. Other Azure SDK libraries like Azure.Storage.Blobs
provide Factory classes like BlobsModelFactory
to create instances of such classes for mocking purposes, but a similar Factory class is missing in Azure.Data.SchemaRegistry
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to have KafkaProducer to use a mock Schema ...
I'm using KafkaProducer in my test cases and my producer uses the schemaRegistryUrl which points a my local instance of Schema Registry ....
Read more >Support for testing Schema Registry locally · Issue #13
Hi, We are looking to integrate our Kafka Streams app with Glue Schema Registry. One obstacle for us is how we stub out...
Read more >Test Confluent Cloud Clients
JVM Producer and Consumer unit tests can make use of MockProducer and MockConsumer, ... Confluent Schema Registry allows for schema evolution and provides ......
Read more >Testing Schema Registry with Spring Boot and ...
In this post, I describe how to write tests for Schema Registry for Spring Kafka using Spring Boot, `MockSchemaRegistryClient` and `EmbeddedKafka`.
Read more >Validate schema when sending or receiving events
In this quickstart, you create a .NET Core application that sends/receives events to/from Azure Event Hubs with schema validation using ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @PSanetra. Thank you for reaching out and we regret that you’re experiencing difficulties. The Schema Registry client library is currently still in an early beta stage and is missing some areas of functionality, including the necessary support for mocking.
Support for mocking and unit testing is one of the core goals of the new Azure SDKs, and we’ll be adding the model factory as well as ensuring that we fully support the approach discussed in the Azure SDK Design Guidelines. as work progresses and we get closer to a GA release.
This was fixed in https://github.com/Azure/azure-sdk-for-net/pull/25099 and is available in the GA version of Azure.Data.SchemaRegistry.