azure-sdk-for-net: [Form Recognizer] HardCoded region causes failure in other clouds
We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.
The StartCopyModelFailsWithWrongRegion
test case requires a region, which is different from the region where the form recognizer service is located, but it has been hardcoded. The region is only available in azure cloud. When running the test in other clouds, no results or exceptions are returned. It just keeps running for a very long time which causes the pipeline job canceled.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (19 by maintainers)
@maririos
StartCopyModelFailsWithWrongRegion()
test can pass in Public, it also looks good between regionusgovvirginia
andusgovarizona
in UsGov. But the value ofwrongRegion
was hardcoded here :var wrongRegion = TestEnvironment.TargetResourceRegion == "westcentralus" ? "eastus2" : "westcentralus";
, when run the test against UsGov cloud, it will causes the pipeline timesout.