question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Make it possible to mock SchemaRegistryClient

See original GitHub issue

Library 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Jul 26, 2021

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.

0reactions
JoshLove-msftcommented, Mar 17, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found