-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to easy fake cosmos client #19943
Comments
@mingqishao
Just saw that the @jhendrixMSFT Are there any other recommendations for external users to mock the transport or the SDKs? |
I found a internal package in SDK |
I don't want mocks. I want stubs for CosmosDb SDK
or remove sealed keywords so we can make these fakes/stub by over selves. |
@Pilchie The cosmos sdk is hand written and would need to hand write the fakes to support this scenario. Joel can give guidance on the implementation if your team decides to add fakes. |
Feature Request
We are using azcosmos package to talk with CosmosDB. We are struggling with mock the cosmos client for unit test. I'm wonder if the azcosmos SDK could provide a easy way to mock.
I found a usefully example from Compute SDK as reference: https://github.com/Azure/azure-sdk-for-go/blob/fake_prototype/sdk/resourcemanager/compute/armcompute/README.md#fakes
The text was updated successfully, but these errors were encountered: