Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.55k stars 2.77k forks source link

[EventHubs] migrate EventHubs tests from `azure-mgmt-eventhub` to arm template/`azure-mgmt-resource` #27767

Open swathipil opened 1 year ago

swathipil commented 1 year ago

Need to move EventHubs tests over to using the EnvVariableLoader + ARM template to create resources. Currently we're using the azure-mgmt-eventhub SDK, which means we have to add this to our dev_requirements.txt file. This limits us, when we run into issues with the mgmt sdk.

related to: #22866

Should hopefully not run into issues enabling live tests on the sovereign cloud after this: #21715

swathipil commented 1 year ago

update: Decided that we can't use the EngSys process of only deploying the ARM template once before running all tests. Instead, we'll need to:

1) Make sure #21715 is merged first. 2) Look into using azure-mgmt-resource and deployment.deploy() decorator to deploy an arm template per test. azure-mgmt-resource is more stable than azure-mgmt-eventhub, which can then be removed from dev_requirements.txt.