'Integration testing - wait until Azure resources are provisioned
I need to write integration tests in C#. Before the test suite runs, I need to provision Azure resources by calling the Azure APIs. Only after the Azure resources have been provisioned I can run my tests. It generally takes 5-10 minutes for these Azure resources to be provisioned.
Likewise, some tests requires me to call third-party APIs to start processes that takes 5-10 minutes to complete.
One alternative is to call these APIs to initiate the processes, start a loop to wait 60 seconds, call the corresponding APIs to check the statuses of these processes, and move on.
Is there a testing framework in C# or some other strategy that would offer me other alternatives?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
