Unit-testing with track 2 SDK #19580
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Hi,
In the latest Azure SDK, there are no interfaces unlike the previous versions, e.g
(https://github.com/Azure/azure-sdk-for-go/blob/v63.4.0/services/preview/eventgrid/mgmt/2021-06-01-preview/eventgrid/eventgridapi/interfaces.go)
These were quite helpful in unit-testing/mocking.
Going forward, what's the recommendation for writing unit-tests for clients that consume the SDK in the absence of these interfaces?
Also, is there a way to inject a mock server while initialising clients with the latest SDK ?
The text was updated successfully, but these errors were encountered: