azure-sdk-for-python: [Form Recognizer] "ServiceRequestError: Failed to establish a new connection, name or service not known" on UsGov and China cloud
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.
Error Description: When running the form recognizer test_business_card.py, it runs failed and the error message is shown as following, for more details please check here:
Error Track: The code that failed is here:
We guess that because the variable formrecognizer_test_endpoint
is hard-coded, it only applies to public.
Expected Behavior:
The variable formrecognizer_test_endpoint
which can be supported on UsGov and China cloud. Service can successfully send the request.
@benbp, @jameszliao-msft, @lmazuel, @meeraharidasa, @ramya-rao-a for notification.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- CodeGen from PR 20648 in Azure/azure-rest-api-specs Task 15221970 - ASE DataBoxEdge S360 Compliance (#20648) — committed to azure-sdk/azure-sdk-for-python by deleted user 2 years ago
If the test is going to be skipped, I’d recommend to not skip on region but authority host is that will be global to the cloud and won’t break if the test region is changed (e.g. https://github.com/Azure/azure-sdk-for-python/blob/1bb8e93679de2c25d832dad04f34da7c12b2da13/sdk/containerregistry/azure-containerregistry/tests/testcase.py#L234-L236).
@v-xuto I suggest to skip for now to unblock you from making progress. In general, I would expect this test to work in all regions/clouds, but like I said previously I need spend some time investigating why it is not working in usgov / talk to the service team on expected behavior. This was added to my MQ work for mid-Nov so I plan to take a more focused look around then. In the meantime, I’m here to help however I can. 😃
Ah okay. If I understand correctly, our test-resources.json needs some updates to be able to deploy resources in China/USGov. Some work was done in this PR, but it wasn’t finished because of the timeouts observed when running tests in China/USGov.