From 2067bc7858e03fc06d203caf6e23a43ae49aaaff Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Fri, 5 Mar 2021 09:32:27 -0800 Subject: [PATCH] add recordings --- ...rms_from_url.test_custom_form_bad_url.yaml | 95 ++++------- ...orms_from_url_async.test_form_bad_url.yaml | 150 +++++++++--------- .../tests/test_custom_forms_from_url.py | 2 +- .../tests/test_custom_forms_from_url_async.py | 2 +- 4 files changed, 107 insertions(+), 142 deletions(-) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml index 16c77ab32736..62f9fb526a2a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": + body: 'b''{"source": "container_sas_url", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}''' headers: Accept: @@ -10,31 +10,31 @@ interactions: Connection: - keep-alive Content-Length: - - '287' + - '275' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models response: body: string: '' headers: apim-request-id: - - 5df06915-167a-4c1b-8e46-c193560d60d5 + - 21140307-8359-4aab-8f7d-e53c3eb94896 content-length: - '0' date: - - Fri, 30 Oct 2020 00:56:57 GMT + - Fri, 05 Mar 2021 17:28:08 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131 + - https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '467' status: code: 201 message: Created @@ -48,14 +48,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131?includeKeys=true + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131", "attributes": - {"isComposed": false}, "status": "ready", "createdDateTime": "2020-10-30T00:56:57Z", - "lastUpdatedDateTime": "2020-10-30T00:57:00Z"}, "trainResult": {"averageModelAccuracy": + string: '{"modelInfo": {"modelId": "fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2021-03-05T17:28:08Z", + "lastUpdatedDateTime": "2021-03-05T17:28:11Z"}, "trainResult": {"averageModelAccuracy": 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": @@ -72,19 +72,19 @@ interactions: "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - c16583cf-202f-4bdb-aec9-4e23001cc585 + - 7ff79e2c-6ad7-4cce-9bdb-479c8a6d1fdc + content-length: + - '1218' content-type: - application/json; charset=utf-8 date: - - Fri, 30 Oct 2020 00:57:02 GMT + - Fri, 05 Mar 2021 17:28:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '26' status: code: 200 message: OK @@ -102,66 +102,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyze?includeTextDetails=false - response: - body: - string: '' - headers: - apim-request-id: - - ae05a937-8068-4917-8218-0591a50a4475 - content-length: - - '0' - date: - - Fri, 30 Oct 2020 00:57:02 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyzeresults/4d4e4295-abfd-47e9-a39b-4d9f1f4faead - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyzeresults/4d4e4295-abfd-47e9-a39b-4d9f1f4faead + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a/analyze?includeTextDetails=false response: body: - string: '{"status": "failed", "createdDateTime": "2020-10-30T00:57:03Z", "lastUpdatedDateTime": - "2020-10-30T00:57:03Z", "analyzeResult": {"version": "2.1.0", "errors": [{"code": - "2003", "message": "Failed to download image from input URL."}]}}' + string: '{"error": {"code": "1001", "message": "Could not retrieve user-provided + resource."}}' headers: apim-request-id: - - 37586360-9a70-4916-b8b1-26eaeaaba005 + - aba87b49-2b23-4fa6-adb0-f36ce15bb8dd content-length: - - '221' + - '80' content-type: - application/json; charset=utf-8 date: - - Fri, 30 Oct 2020 00:57:08 GMT + - Fri, 05 Mar 2021 17:28:15 GMT + ms-azure-ai-errorcode: + - UserResourceNotAvailable strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' - x-ms-cs-error-code: - - '2003' + - '2153' status: - code: 200 - message: OK + code: 400 + message: Bad Request version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml index 07db3ef4614f..cd44192d7465 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml @@ -1,93 +1,117 @@ interactions: - request: - body: 'b''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": + body: 'b''{"source": "container_sas_url", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}''' headers: Accept: - application/json Content-Length: - - '288' + - '276' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models response: body: string: '' headers: - apim-request-id: 2cbf92de-575f-42a5-9803-a761cb1a21f5 + apim-request-id: 55a01ddf-5e5d-42d3-a18e-9e5c989ba1a3 content-length: '0' - date: Fri, 30 Oct 2020 00:58:35 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d + date: Fri, 05 Mar 2021 17:30:19 GMT + location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '234' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.2/custom/models + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f6b33f56-20e6-40fa-9c51-e4c37dba6d4d", "status": - "creating", "createdDateTime": "2020-10-30T00:58:35Z", "lastUpdatedDateTime": - "2020-10-30T00:58:35Z"}}' + string: '{"modelInfo": {"modelId": "5c315816-a3a0-4f7f-b443-ce8224ab531b", "status": + "creating", "createdDateTime": "2021-03-05T17:30:19Z", "lastUpdatedDateTime": + "2021-03-05T17:30:19Z"}}' headers: - apim-request-id: ff4e8f34-ad13-4acb-8d52-89bb6c041212 + apim-request-id: 221d8437-fd93-4639-9519-b90e8c77d553 + content-length: '170' content-type: application/json; charset=utf-8 - date: Fri, 30 Oct 2020 00:58:40 GMT + date: Fri, 05 Mar 2021 17:30:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f6b33f56-20e6-40fa-9c51-e4c37dba6d4d", "status": - "creating", "createdDateTime": "2020-10-30T00:58:35Z", "lastUpdatedDateTime": - "2020-10-30T00:58:35Z"}}' + string: '{"modelInfo": {"modelId": "5c315816-a3a0-4f7f-b443-ce8224ab531b", "status": + "creating", "createdDateTime": "2021-03-05T17:30:19Z", "lastUpdatedDateTime": + "2021-03-05T17:30:19Z"}}' headers: - apim-request-id: e9de00c2-86fc-45f1-b8b9-e015cc3d48f4 + apim-request-id: a9c2fe0b-62aa-453d-9194-ffb851953f89 + content-length: '170' content-type: application/json; charset=utf-8 - date: Fri, 30 Oct 2020 00:58:44 GMT + date: Fri, 05 Mar 2021 17:30:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f6b33f56-20e6-40fa-9c51-e4c37dba6d4d", "status": - "ready", "createdDateTime": "2020-10-30T00:58:35Z", "lastUpdatedDateTime": - "2020-10-30T00:58:50Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "5c315816-a3a0-4f7f-b443-ce8224ab531b", "status": + "creating", "createdDateTime": "2021-03-05T17:30:19Z", "lastUpdatedDateTime": + "2021-03-05T17:30:19Z"}}' + headers: + apim-request-id: 2f8b7bfc-8db1-4cd7-a862-cb551454ad5e + content-length: '170' + content-type: application/json; charset=utf-8 + date: Fri, 05 Mar 2021 17:30:34 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "5c315816-a3a0-4f7f-b443-ce8224ab531b", "status": + "ready", "createdDateTime": "2021-03-05T17:30:19Z", "lastUpdatedDateTime": + "2021-03-05T17:30:36Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped @@ -99,17 +123,17 @@ interactions: "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 7c63f92c-f8bd-43b5-9854-90c674ef2653 + apim-request-id: fac7cb17-310d-4b86-b158-153c26680c94 + content-length: '939' content-type: application/json; charset=utf-8 - date: Fri, 30 Oct 2020 00:58:50 GMT + date: Fri, 05 Mar 2021 17:30:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d?includeKeys=true + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b?includeKeys=true - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: @@ -120,48 +144,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d/analyze?includeTextDetails=false + uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b/analyze?includeTextDetails=false response: body: - string: '' + string: '{"error": {"code": "1001", "message": "Could not retrieve user-provided + resource."}}' headers: - apim-request-id: 71a70a6a-e61b-4bf5-a812-dd631c826428 - content-length: '0' - date: Fri, 30 Oct 2020 00:58:50 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d/analyzeresults/22ce74df-43f7-4cd8-a94b-f77e0cc8786a - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' - status: - code: 202 - message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.2/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d/analyze?includeTextDetails=false -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d/analyzeresults/22ce74df-43f7-4cd8-a94b-f77e0cc8786a - response: - body: - string: '{"status": "failed", "createdDateTime": "2020-10-30T00:58:50Z", "lastUpdatedDateTime": - "2020-10-30T00:58:51Z", "analyzeResult": {"version": null, "readResults": - null, "pageResults": null, "documentResults": null, "errors": [{"code": "2003", - "message": "Download failed. Please check your input URL."}]}}' - headers: - apim-request-id: 04925f3b-16b0-44bf-988c-4981aabbc443 - content-length: '303' + apim-request-id: 0775926c-958a-441a-b54f-d467fc5222d9 + content-length: '80' content-type: application/json; charset=utf-8 - date: Fri, 30 Oct 2020 00:58:55 GMT + date: Fri, 05 Mar 2021 17:30:42 GMT + ms-azure-ai-errorcode: UserResourceNotAvailable strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '25' - x-ms-cs-error-code: '2003' + x-envoy-upstream-service-time: '2156' status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f6b33f56-20e6-40fa-9c51-e4c37dba6d4d/analyzeresults/22ce74df-43f7-4cd8-a94b-f77e0cc8786a + code: 400 + message: Bad Request + url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/5c315816-a3a0-4f7f-b443-ce8224ab531b/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py index 957b650b85b6..9d5c2dc4fa89 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py @@ -80,7 +80,7 @@ def test_custom_form_bad_url(self, client, formrecognizer_storage_container_sas_ form_url="https://badurl.jpg" ) form = poller.result() - # self.assertEqual(e.value.error.code, "2003") FIXME: this is returning 1001 in canary + self.assertEqual(e.value.error.code, "1001") self.assertIsNotNone(e.value.error.message) @FormRecognizerPreparer() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py index 6d6e5e1bc27f..a2dbf89061ec 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py @@ -102,7 +102,7 @@ async def test_form_bad_url(self, client, formrecognizer_storage_container_sas_u form_url="https://badurl.jpg" ) result = await poller.result() - # self.assertEqual(e.value.error.code, "2003") FIXME: this is returning 1001 in canary + self.assertEqual(e.value.error.code, "1001") self.assertIsNotNone(e.value.error.message) @FormRecognizerPreparer()