diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 86bb11ed88af..e8c352c3e2dc 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -69,7 +69,7 @@ "sdk/eventhub/azure-eventhub-checkpointstoreblob/**", "sdk/eventhub/azure-eventhub/**", "sdk/graphrbac/azure-graphrbac/**", - "sdk/formrecognizer/azure-ai-formrecognizer/**", + "sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_forms/**", "sdk/identity/azure-identity/tests/pod-identity/**", "sdk/identity/azure-identity/tests/managed-identity-live/service-fabric/**", "sdk/keyvault/azure-keyvault-certificates/tests/certs.py", @@ -106,8 +106,7 @@ "eng/tox/tox.ini", "eng/common/docgeneration/Generate-DocIndex.ps1", "eng/**/*.py", - ".gitignore", - + ".gitignore" ], "words": [ "aad", @@ -233,6 +232,7 @@ "plex", "pluggy", "popen", + "prebuilts", "pschema", "PSECRET", "pygobject", @@ -369,6 +369,21 @@ "Zwiz", "nypg" ] + }, + { + "filename": "sdk/formrecognizer/azure-ai-formrecognizer/tests/*.py", + "words": [ + "WDLABCD" + ] + }, + { + "filename": "sdk/formrecognizer/azure-ai-formrecognizer/**", + "words": [ + "allinone", + "dmac", + "ierr", + "mymodel" + ] } ], "allowCompoundWords": true diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_differentiate_output_models_trained_with_and_without_labels.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_differentiate_output_models_trained_with_and_without_labels.py index 0fa15996107f..f7e18398f900 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_differentiate_output_models_trained_with_and_without_labels.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_differentiate_output_models_trained_with_and_without_labels.py @@ -70,7 +70,7 @@ def recognize_custom_forms(self, labeled_model_id, unlabeled_model_id): model_id=model_trained_without_labels_id, form=form ) - # Calling result() after kicking off each call allows for server-side paralellization + # Calling result() after kicking off each call allows for server-side parallelization forms_with_labeled_model = forms_with_labeled_model_poller.result() forms_with_unlabeled_model = forms_with_unlabeled_model_poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/preparers.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/preparers.py index ffdb0bd8bc6b..947a6c8b92a2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/preparers.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/preparers.py @@ -33,7 +33,7 @@ formrecognizer_selection_mark_storage_container_sas_url_v2="https://blob_sas_url", formrecognizer_table_variable_rows_container_sas_url_v2="https://blob_sas_url", formrecognizer_table_fixed_rows_container_sas_url_v2="https://blob_sas_url", - formrecognizer_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.CognitiveServices/accounts/frname", + formrecognizer_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.CognitiveServices/accounts/formrecognizername", formrecognizer_region="region" ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_business_card_multipage_pdf.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_business_card_multipage_pdf.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_business_card_multipage_pdf.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_business_card_multipage_pdf.json index 4f2a50822916..cc51d015ae8f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_business_card_multipage_pdf.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_business_card_multipage_pdf.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "80cc26ab-8499-11ec-b76b-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "066e9170-9b4e-11ec-8aa7-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "e3e05ca3-89b4-49d3-a466-3b6034f82830", + "apim-request-id": "c88d6ea2-5d72-4619-a405-4fa75bfcf8a4", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 02:32:17 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/e3e05ca3-89b4-49d3-a466-3b6034f82830?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:01:39 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c88d6ea2-5d72-4619-a405-4fa75bfcf8a4?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "732" + "x-envoy-upstream-service-time": "103823" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/e3e05ca3-89b4-49d3-a466-3b6034f82830?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c88d6ea2-5d72-4619-a405-4fa75bfcf8a4?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "80cc26ab-8499-11ec-b76b-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "066e9170-9b4e-11ec-8aa7-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "df6936fe-0c42-4e01-9a67-e182aa8b9ff5", + "apim-request-id": "53852c60-d084-45c8-bfe0-e3c04be30893", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 02:32:22 GMT", + "Date": "Fri, 04 Mar 2022 00:01:45 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "205" + "x-envoy-upstream-service-time": "1173" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T02:32:17Z", - "lastUpdatedDateTime": "2022-02-03T02:32:21Z", + "createdDateTime": "2022-03-03T23:59:57Z", + "lastUpdatedDateTime": "2022-03-04T00:01:44Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-businessCard", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg.json index 27b979609ae3..791f0194be2f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "7a4e03a0-7f13-11ec-8378-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4dbbab42-9b4e-11ec-8766-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "74f230e0-adc4-4eeb-b463-2939abfc1d88", + "apim-request-id": "f31b2c7b-8f5b-43bc-bb75-c81f92b6c550", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:16 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/74f230e0-adc4-4eeb-b463-2939abfc1d88?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:01:55 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/f31b2c7b-8f5b-43bc-bb75-c81f92b6c550?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "366" + "x-envoy-upstream-service-time": "770" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/74f230e0-adc4-4eeb-b463-2939abfc1d88?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/f31b2c7b-8f5b-43bc-bb75-c81f92b6c550?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "7a4e03a0-7f13-11ec-8378-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4dbbab42-9b4e-11ec-8766-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "32ce272a-8b3e-404b-8e11-a24943ab5c92", + "apim-request-id": "124bacb9-794a-449f-9806-8c2d8ce5b10a", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:22 GMT", + "Date": "Fri, 04 Mar 2022 00:02:01 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "153" + "x-envoy-upstream-service-time": "371" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:17Z", - "lastUpdatedDateTime": "2022-01-27T01:50:19Z", + "createdDateTime": "2022-03-04T00:01:55Z", + "lastUpdatedDateTime": "2022-03-04T00:01:58Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-idDocument", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg_passport.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg_passport.json similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg_passport.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg_passport.json index 6976dc7f36b4..25da28e25c1f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_identity_document_jpg_passport.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_identity_document_jpg_passport.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "75bfcd59-7f13-11ec-a439-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "494b37dd-9b4e-11ec-bd92-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "eda61bab-c4fd-458f-b4cf-d242f7718c67", + "apim-request-id": "744ed7ae-cf0d-4558-a932-08daab1df1f6", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:10 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/eda61bab-c4fd-458f-b4cf-d242f7718c67?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:01:48 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/744ed7ae-cf0d-4558-a932-08daab1df1f6?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "793" + "x-envoy-upstream-service-time": "1036" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/eda61bab-c4fd-458f-b4cf-d242f7718c67?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/744ed7ae-cf0d-4558-a932-08daab1df1f6?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "75bfcd59-7f13-11ec-a439-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "494b37dd-9b4e-11ec-bd92-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b8f3c70b-717c-4678-a3ab-b41d324edc4e", + "apim-request-id": "5b198787-62f8-444b-a2ed-126281082b04", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:15 GMT", + "Date": "Fri, 04 Mar 2022 00:01:54 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "347" + "x-envoy-upstream-service-time": "363" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:10Z", - "lastUpdatedDateTime": "2022-01-27T01:50:12Z", + "createdDateTime": "2022-03-04T00:01:48Z", + "lastUpdatedDateTime": "2022-03-04T00:01:51Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-idDocument", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_invoice_tiff.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_invoice_tiff.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_invoice_tiff.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_invoice_tiff.json index 50b9c9b0fdb5..bbeb38affa5e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_invoice_tiff.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_invoice_tiff.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "d6a38b11-8499-11ec-b203-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5215dcdc-9b4e-11ec-8559-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "8e7ea2c4-fa93-4419-91a8-ff84bf81359d", + "apim-request-id": "ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 02:34:42 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/8e7ea2c4-fa93-4419-91a8-ff84bf81359d?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:02:03 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "920" + "x-envoy-upstream-service-time": "1177" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/8e7ea2c4-fa93-4419-91a8-ff84bf81359d?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "d6a38b11-8499-11ec-b203-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5215dcdc-9b4e-11ec-8559-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "986e0173-e7f4-4f97-bd60-88a6b1e81430", + "apim-request-id": "8d3ed80d-3ef2-4e3d-9111-ca3ddd68cd3c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 02:34:47 GMT", + "Date": "Fri, 04 Mar 2022 00:02:08 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "192" + "x-envoy-upstream-service-time": "340" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T02:34:42Z", - "lastUpdatedDateTime": "2022-02-03T02:34:45Z", + "createdDateTime": "2022-03-04T00:02:03Z", + "lastUpdatedDateTime": "2022-03-04T00:02:06Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-invoice", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_pages_kwarg_specified.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_pages_kwarg_specified.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_pages_kwarg_specified.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_pages_kwarg_specified.json index 523ea6fb77fe..746d9b62076d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_pages_kwarg_specified.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_pages_kwarg_specified.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "98aac741-7f13-11ec-a1d3-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "be7ba2d7-9b4e-11ec-a3c3-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "9bfa9806-e22c-4170-81e1-8643e2005cc4", + "apim-request-id": "f71d6366-5af1-4369-9588-c0e4cca3bdff", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:51:08 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/9bfa9806-e22c-4170-81e1-8643e2005cc4?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:06:46 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f71d6366-5af1-4369-9588-c0e4cca3bdff?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "899" + "x-envoy-upstream-service-time": "101653" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/9bfa9806-e22c-4170-81e1-8643e2005cc4?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f71d6366-5af1-4369-9588-c0e4cca3bdff?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "98aac741-7f13-11ec-a1d3-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "be7ba2d7-9b4e-11ec-a3c3-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "aa027ca4-e512-4ddb-92a9-8015c8c2b6bf", + "apim-request-id": "bbafd982-e9de-49f2-8f97-c3aedc30ab69", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:51:13 GMT", + "Date": "Fri, 04 Mar 2022 00:06:50 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "153" + "x-envoy-upstream-service-time": "172" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:51:08Z", - "lastUpdatedDateTime": "2022-01-27T01:51:12Z", + "createdDateTime": "2022-03-04T00:05:04Z", + "lastUpdatedDateTime": "2022-03-04T00:06:49Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_polling_interval.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_polling_interval.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_polling_interval.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_polling_interval.json index fade5bef7096..85ed74a177f1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_polling_interval.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_polling_interval.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "7e07afb0-7f13-11ec-b593-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56a561ca-9b4e-11ec-8ffd-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "06f66aa7-46ee-4414-8c42-85e79f690bed", + "apim-request-id": "02e63e98-1616-49ff-a6ef-b2803c1348a8", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:23 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/06f66aa7-46ee-4414-8c42-85e79f690bed?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:02:10 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/02e63e98-1616-49ff-a6ef-b2803c1348a8?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "366" + "x-envoy-upstream-service-time": "702" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/06f66aa7-46ee-4414-8c42-85e79f690bed?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/02e63e98-1616-49ff-a6ef-b2803c1348a8?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "7e07afb0-7f13-11ec-b593-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56a561ca-9b4e-11ec-8ffd-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "af5a429c-7c9a-4376-9846-5e6a3c29cd1d", + "apim-request-id": "8d0aae12-7c23-4e3d-b390-8fbe0d064804", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:29 GMT", + "Date": "Fri, 04 Mar 2022 00:02:16 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "143" + "x-envoy-upstream-service-time": "152" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:23Z", - "lastUpdatedDateTime": "2022-01-27T01:50:26Z", + "createdDateTime": "2022-03-04T00:02:10Z", + "lastUpdatedDateTime": "2022-03-04T00:02:13Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", @@ -1851,49 +1853,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "820b8fab-7f13-11ec-a468-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5b151694-9b4e-11ec-b89c-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "1f6598fd-7262-4bb8-a032-5921af11dcb3", + "apim-request-id": "7cf2383c-bfea-46ec-a84f-a0aadd0a772d", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:29 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1f6598fd-7262-4bb8-a032-5921af11dcb3?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:02:18 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/7cf2383c-bfea-46ec-a84f-a0aadd0a772d?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "767" + "x-envoy-upstream-service-time": "869" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1f6598fd-7262-4bb8-a032-5921af11dcb3?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/7cf2383c-bfea-46ec-a84f-a0aadd0a772d?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "820b8fab-7f13-11ec-a468-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5b151694-9b4e-11ec-b89c-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "37c6f3a1-5242-466e-a552-a110325bfdb1", + "apim-request-id": "9b1723bd-1927-4869-959b-446c37b9f100", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:37 GMT", + "Date": "Fri, 04 Mar 2022 00:02:25 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "308" + "x-envoy-upstream-service-time": "300" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:30Z", - "lastUpdatedDateTime": "2022-01-27T01:50:34Z", + "createdDateTime": "2022-03-04T00:02:18Z", + "lastUpdatedDateTime": "2022-03-04T00:02:22Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_bad_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_bad_url.json similarity index 79% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_bad_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_bad_url.json index b62230a58cf6..6fdc1f8fa67f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_bad_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_bad_url.json @@ -9,21 +9,22 @@ "Connection": "keep-alive", "Content-Length": "35", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "88062e4b-7f13-11ec-a520-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "63733276-9b4e-11ec-a913-c8348e073d30" }, "RequestBody": { "urlSource": "https://badurl.jpg" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "2ae158a7-69e7-40e7-b995-9a2b5585ef49", + "apim-request-id": "def36381-7590-475d-9df1-e247a4f8c612", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:39 GMT", + "Date": "Fri, 04 Mar 2022 00:02:31 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87" + "x-envoy-upstream-service-time": "154" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_error.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_error.json similarity index 73% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_error.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_error.json index 55e3864b2b3b..0a0bc7d63dc5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_error.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_error.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not a locale\u0026stringIndexType=unicodeCodePoint\u0026api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not%20a%20locale\u0026stringIndexType=unicodeCodePoint\u0026api-version=2022-01-30-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,21 +9,22 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "980f2cca-7f13-11ec-9c40-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "bd730c88-9b4e-11ec-8ca9-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "a9932726-b3e7-4e14-8a4c-584ca2745295", + "apim-request-id": "41c78d1c-9fc9-4c15-a2c1-6ac871b8d94b", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:51:07 GMT", + "Date": "Fri, 04 Mar 2022 00:05:03 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "521" + "x-envoy-upstream-service-time": "536" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_specified.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_specified.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_specified.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_specified.json index 07c2974d01dd..1b0bc3a57dd8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_locale_specified.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_locale_specified.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "94442f58-7f13-11ec-8564-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "b933f07e-9b4e-11ec-97a8-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "d8519a3a-a6ac-4159-9f78-8012b5156a1b", + "apim-request-id": "42993a78-2204-4762-baf1-52d2d46cab3b", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:51:01 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/d8519a3a-a6ac-4159-9f78-8012b5156a1b?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:04:56 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/42993a78-2204-4762-baf1-52d2d46cab3b?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "449" + "x-envoy-upstream-service-time": "847" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/d8519a3a-a6ac-4159-9f78-8012b5156a1b?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/42993a78-2204-4762-baf1-52d2d46cab3b?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "94442f58-7f13-11ec-8564-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "b933f07e-9b4e-11ec-97a8-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2cd4e937-9e76-425f-8aa4-5a4fbc2897f9", + "apim-request-id": "f7313e1d-e117-4e76-943e-eda2959805d1", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:51:05 GMT", + "Date": "Fri, 04 Mar 2022 00:05:01 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "151" + "x-envoy-upstream-service-time": "167" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:51:00Z", - "lastUpdatedDateTime": "2022-01-27T01:51:04Z", + "createdDateTime": "2022-03-04T00:04:56Z", + "lastUpdatedDateTime": "2022-03-04T00:04:59Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_transform_url.json similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_transform_url.json index 8f954bb33431..0befce389dc7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_transform_url.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "e7de0a83-8522-11ec-99ee-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "b04c5f37-9b4e-11ec-9aca-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "926e0ebb-0b54-493c-8aed-34059277cca7", + "apim-request-id": "6ed73254-f403-46f4-8f00-5619602cc8da", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 18:55:50 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/926e0ebb-0b54-493c-8aed-34059277cca7?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:04:41 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/6ed73254-f403-46f4-8f00-5619602cc8da?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "829" + "x-envoy-upstream-service-time": "976" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/926e0ebb-0b54-493c-8aed-34059277cca7?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/6ed73254-f403-46f4-8f00-5619602cc8da?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "e7de0a83-8522-11ec-99ee-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "b04c5f37-9b4e-11ec-9aca-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7208f1d4-9c2c-44b1-95af-7c4c67cb2253", + "apim-request-id": "eaa5083c-36ea-41a3-b112-afde0a014936", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 18:55:56 GMT", + "Date": "Fri, 04 Mar 2022 00:04:46 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "191" + "x-envoy-upstream-service-time": "345" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T18:55:51Z", - "lastUpdatedDateTime": "2022-02-03T18:55:55Z", + "createdDateTime": "2022-03-04T00:04:41Z", + "lastUpdatedDateTime": "2022-03-04T00:04:46Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_url.json similarity index 97% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_url.json index a5ea8dd9efa8..7d0bd72ea7e3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_multipage_url.json @@ -6,76 +6,54 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "49603cbf-8523-11ec-af17-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "abc7f277-9b4e-11ec-bd22-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "d35ec50b-b8dc-459e-848c-cadc38b7834e", + "apim-request-id": "4ccf7178-b075-4ca4-a370-58e14741c48c", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 18:58:34 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/d35ec50b-b8dc-459e-848c-cadc38b7834e?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:04:33 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/4ccf7178-b075-4ca4-a370-58e14741c48c?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "847" + "x-envoy-upstream-service-time": "1007" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/d35ec50b-b8dc-459e-848c-cadc38b7834e?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/4ccf7178-b075-4ca4-a370-58e14741c48c?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "49603cbf-8523-11ec-af17-c8348e073d2d" + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "abc7f277-9b4e-11ec-bd22-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "750e894e-cf2d-4d95-b47b-0726f25b5b74", + "apim-request-id": "4f719aea-e1f1-4bea-ab19-5b0860a54c1a", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 18:58:39 GMT", + "Date": "Fri, 04 Mar 2022 00:04:39 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "30" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2022-02-03T18:58:35Z", - "lastUpdatedDateTime": "2022-02-03T18:58:39Z" - } - }, - { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/d35ec50b-b8dc-459e-848c-cadc38b7834e?api-version=2022-01-30-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "49603cbf-8523-11ec-af17-c8348e073d2d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a9be5a0a-fb7e-4353-8f78-58d3a3af655c", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 18:58:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "188" + "x-envoy-upstream-service-time": "309" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T18:58:35Z", - "lastUpdatedDateTime": "2022-02-03T18:58:40Z", + "createdDateTime": "2022-03-04T00:04:33Z", + "lastUpdatedDateTime": "2022-03-04T00:04:38Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_auth_bad_key.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_auth_bad_key.json similarity index 79% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_auth_bad_key.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_auth_bad_key.json index bc2f60e0e0f7..4866ef00220e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_auth_bad_key.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_auth_bad_key.json @@ -9,18 +9,19 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "87b8ca35-7f13-11ec-b8f8-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "6306ffc7-9b4e-11ec-aee6-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 401, "ResponseHeaders": { - "apim-request-id": "eaf820bd-1e96-4c4d-83d6-a3d6c8312ae2", + "apim-request-id": "7bf81d8c-6342-41e1-b0c8-684d36318ec6", "Content-Length": "224", "Content-Type": "application/json", - "Date": "Thu, 27 Jan 2022 01:50:38 GMT" + "Date": "Fri, 04 Mar 2022 00:02:30 GMT", + "Server": "Kestrel" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_pass_stream.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_pass_stream.json similarity index 69% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_pass_stream.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_pass_stream.json index ad5f41995435..549483926751 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_pass_stream.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_pass_stream.json @@ -7,23 +7,24 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "228", + "Content-Length": "225", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8865cda0-7f13-11ec-a165-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "640b73e3-9b4e-11ec-af40-c8348e073d30" }, "RequestBody": { - "urlSource": "\u003C_io.BufferedReader name=\u0027C:\\\\Users\\\\caperal\\\\Documents\\\\Python\\\\azure-sdk-for-python-pr\\\\sdk\\\\formrecognizer\\\\azure-ai-formrecognizer\\\\tests\\\\sample_forms\\\\receipt\\\\contoso-receipt.png\u0027\u003E" + "urlSource": "\u003C_io.BufferedReader name=\u0027C:\\\\Users\\\\caperal\\\\Documents\\\\Python\\\\azure-sdk-for-python\\\\sdk\\\\formrecognizer\\\\azure-ai-formrecognizer\\\\tests\\\\sample_forms\\\\receipt\\\\contoso-receipt.png\u0027\u003E" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "92ff1a25-1908-4655-9062-bc3a48e08e64", + "apim-request-id": "5da1e70b-a46e-4e74-8d8a-5843d31d2c57", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:41 GMT", + "Date": "Fri, 04 Mar 2022 00:02:32 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "4" + "x-envoy-upstream-service-time": "10" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_png.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_png.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_png.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_png.json index 5d5757c95ded..3e23c54c6c41 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_png.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_png.json @@ -9,49 +9,51 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "b9df471b-8522-11ec-a017-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a74055da-9b4e-11ec-8065-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "cff7f0fb-bf94-42c3-aea8-2b2f1747e287", + "apim-request-id": "55b442d0-51e1-48fe-a698-574ebf62d26e", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 18:54:34 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/cff7f0fb-bf94-42c3-aea8-2b2f1747e287?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:04:26 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/55b442d0-51e1-48fe-a698-574ebf62d26e?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1129" + "x-envoy-upstream-service-time": "1094" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/cff7f0fb-bf94-42c3-aea8-2b2f1747e287?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/55b442d0-51e1-48fe-a698-574ebf62d26e?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "b9df471b-8522-11ec-a017-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "a74055da-9b4e-11ec-8065-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "07721caa-ff4c-4f3f-b71a-96d1048d0bdf", + "apim-request-id": "fb906680-060d-491b-8822-6e584ff05b97", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 18:54:39 GMT", + "Date": "Fri, 04 Mar 2022 00:04:31 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "56" + "x-envoy-upstream-service-time": "369" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T18:54:34Z", - "lastUpdatedDateTime": "2022-02-03T18:54:38Z", + "createdDateTime": "2022-03-04T00:04:25Z", + "lastUpdatedDateTime": "2022-03-04T00:04:29Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_transform_jpg.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_transform_jpg.json similarity index 67% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_transform_jpg.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_transform_jpg.json index 198e84697ab6..8fa3c624d019 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_url_transform_jpg.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipt_url_transform_jpg.json @@ -9,49 +9,611 @@ "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "88e580b0-7f13-11ec-ad9c-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "40a40b10-47b9-4b70-9bfa-9c3dfde56795", + "apim-request-id": "3f755b5c-6e06-4ce1-b6cc-d43edb170252", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:42 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/40a40b10-47b9-4b70-9bfa-9c3dfde56795?api-version=2022-01-30-preview", + "Date": "Fri, 04 Mar 2022 00:02:34 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "821" + "x-envoy-upstream-service-time": "927" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/40a40b10-47b9-4b70-9bfa-9c3dfde56795?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "88e580b0-7f13-11ec-ad9c-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "df1007d0-7098-469b-84bb-b59eeaae4f61", + "apim-request-id": "32999418-4c6b-4f03-9a83-228e23a12d73", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:47 GMT", + "Date": "Fri, 04 Mar 2022 00:02:39 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "174" + "x-envoy-upstream-service-time": "77" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1f59f2bf-9054-482b-8505-31cf3dbd7684", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:02:44 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "76" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8ca21cb7-cc27-453f-85f9-496aefc46ad2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:02:49 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "76" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8aa78f9f-4f1a-443e-971a-60f5d99104df", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:02:54 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "bc1ba855-b242-4ab7-b605-21dbc41d3994", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:00 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "87" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "bbb8a4e0-a238-4168-b0f1-885b496cc8fc", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:05 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "79" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d606f589-a37d-4771-ba18-896512f1f839", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:10 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "87" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6419f7d5-081f-4d30-8b4c-f1f44cd40912", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:15 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "91" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6b5a0aab-49e5-4b03-a454-87ecbead5806", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:21 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "79" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "76766ce3-393e-48eb-b9a3-526bfe835585", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:26 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "89" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4ad2ecdb-124b-428c-99c6-2deee3c6c05e", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:31 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "65697779-902d-4471-ac92-ae302308eb7c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:36 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "90" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "112e293e-537c-4984-8dac-8649aa2fa565", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:42 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8d5311cf-0838-49f0-adaf-22f3ad95f87a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:46 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e44e9e43-c943-4944-b074-eb504763799f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:51 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "85" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "09c161a4-a45d-49b1-bb16-296126ee8f93", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:03:57 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "a12e1e15-7008-48bb-960a-2117bb7b768e", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:04:02 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "86" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3ea4a1a6-a7d4-444e-a2ef-f5974b8f7521", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:04:07 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "89" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "084faa64-f92b-4d21-8b19-e622b3bc92fb", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:04:13 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "86" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:02:34Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6e9a2cd1-90c8-43a1-aee9-5e551f6ca6b9", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:04:18 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:04:18Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3f755b5c-6e06-4ce1-b6cc-d43edb170252?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "649221a0-9b4e-11ec-b7bf-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d51edd73-badb-4413-a91f-cac7700eeaf0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Mar 2022 00:04:23 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "376" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:42Z", - "lastUpdatedDateTime": "2022-01-27T01:50:45Z", + "createdDateTime": "2022-03-04T00:02:34Z", + "lastUpdatedDateTime": "2022-03-04T00:04:18Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipts_encoded_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipts_encoded_url.json similarity index 80% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipts_encoded_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipts_encoded_url.json index 52fdabb5527d..fae1daecbac7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipts_encoded_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsFromUrltest_receipts_encoded_url.json @@ -9,21 +9,22 @@ "Connection": "keep-alive", "Content-Length": "50", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "875816cf-7f13-11ec-94fd-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "61f94fab-9b4e-11ec-9a2d-c8348e073d30" }, "RequestBody": { "urlSource": "https://fakeuri.com/blank%20space" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "ce900fed-a951-497f-bbba-38801cffb48e", + "apim-request-id": "30b8904f-737f-4798-92a0-ec769f2fbc6b", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:38 GMT", + "Date": "Fri, 04 Mar 2022 00:02:29 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90" + "x-envoy-upstream-service-time": "537" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_business_card_multipage_pdf.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_business_card_multipage_pdf.json similarity index 96% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_business_card_multipage_pdf.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_business_card_multipage_pdf.json index 0e54b5f7c283..8157fe55efe6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_business_card_multipage_pdf.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_business_card_multipage_pdf.json @@ -8,74 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "d4ddbbea-8498-11ec-bbcc-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "300949f2-9b4c-11ec-9215-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "aa84c26e-ef34-46a5-9f83-8107b166fc1e", + "apim-request-id": "c7e0480a-d3ab-4831-9969-80417493f570", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 02:27:29 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/aa84c26e-ef34-46a5-9f83-8107b166fc1e?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:46:47 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c7e0480a-d3ab-4831-9969-80417493f570?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "718" + "x-envoy-upstream-service-time": "1163" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/aa84c26e-ef34-46a5-9f83-8107b166fc1e?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c7e0480a-d3ab-4831-9969-80417493f570?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "d4ddbbea-8498-11ec-bbcc-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "300949f2-9b4c-11ec-9215-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2d5b2be9-7892-44a9-b681-6629672ed764", + "apim-request-id": "04585636-77ef-485c-96e1-466d0ad0f453", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 02:27:34 GMT", + "Date": "Thu, 03 Mar 2022 23:46:53 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2022-02-03T02:27:29Z", - "lastUpdatedDateTime": "2022-02-03T02:27:32Z" - } - }, - { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/aa84c26e-ef34-46a5-9f83-8107b166fc1e?api-version=2022-01-30-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "d4ddbbea-8498-11ec-bbcc-c8348e073d2d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3ae58f6a-d466-4ceb-935b-9d834dc72673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 02:27:39 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "212" + "x-envoy-upstream-service-time": "370" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T02:27:29Z", - "lastUpdatedDateTime": "2022-02-03T02:27:35Z", + "createdDateTime": "2022-03-03T23:46:47Z", + "lastUpdatedDateTime": "2022-03-03T23:46:53Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-businessCard", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg.json index 5ff9c01fcc0e..9aa602ba74c0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4af6157e-7f12-11ec-9a1c-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "3a73f17f-9b4c-11ec-be35-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "d5925de7-59f8-4e28-af13-2ab35520382f", + "apim-request-id": "8e2c4727-3aba-40fb-aa04-92fbc4f8406c", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:41:48 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/d5925de7-59f8-4e28-af13-2ab35520382f?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:04 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/8e2c4727-3aba-40fb-aa04-92fbc4f8406c?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1008" + "x-envoy-upstream-service-time": "1087" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/d5925de7-59f8-4e28-af13-2ab35520382f?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/8e2c4727-3aba-40fb-aa04-92fbc4f8406c?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4af6157e-7f12-11ec-9a1c-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "3a73f17f-9b4c-11ec-be35-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7aabcde8-4e56-479a-97c3-33017e3cdf23", + "apim-request-id": "6da65f25-d39e-4386-81f8-17964c804065", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:41:53 GMT", + "Date": "Thu, 03 Mar 2022 23:47:10 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "274" + "x-envoy-upstream-service-time": "280" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:41:48Z", - "lastUpdatedDateTime": "2022-01-27T01:41:51Z", + "createdDateTime": "2022-03-03T23:47:04Z", + "lastUpdatedDateTime": "2022-03-03T23:47:07Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-idDocument", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg_passport.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg_passport.json similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg_passport.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg_passport.json index 22d78452e861..4a12b52ed077 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_identity_document_jpg_passport.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_identity_document_jpg_passport.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "463657d6-7f12-11ec-8c77-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "35a85833-9b4c-11ec-809b-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "9f44465c-0bcc-4771-afd3-8c9f4e402e2c", + "apim-request-id": "84d6c290-ee8a-4830-99ca-71e2d31e7131", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:41:41 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/9f44465c-0bcc-4771-afd3-8c9f4e402e2c?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:46:56 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/84d6c290-ee8a-4830-99ca-71e2d31e7131?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1092" + "x-envoy-upstream-service-time": "912" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/9f44465c-0bcc-4771-afd3-8c9f4e402e2c?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/84d6c290-ee8a-4830-99ca-71e2d31e7131?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "463657d6-7f12-11ec-8c77-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "35a85833-9b4c-11ec-809b-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9cf6a6a5-205c-4c81-a1b1-2c58fdedf0c7", + "apim-request-id": "2067bba1-e9d6-4b25-bf07-a6d7a909fba5", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:41:47 GMT", + "Date": "Thu, 03 Mar 2022 23:47:01 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "297" + "x-envoy-upstream-service-time": "393" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:41:41Z", - "lastUpdatedDateTime": "2022-01-27T01:41:44Z", + "createdDateTime": "2022-03-03T23:46:56Z", + "lastUpdatedDateTime": "2022-03-03T23:46:58Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-idDocument", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_invoice_tiff.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_invoice_tiff.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_invoice_tiff.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_invoice_tiff.json index 90679a91333a..7093e70740f4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_invoice_tiff.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_invoice_tiff.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "e7e9e573-8498-11ec-8226-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "3f6ccddb-9b4c-11ec-bea3-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "ae137bed-97aa-4bf9-a943-06adb50fd938", + "apim-request-id": "9eea65a4-06bf-4d2b-bcfd-9a440f7229b5", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 02:28:01 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ae137bed-97aa-4bf9-a943-06adb50fd938?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:12 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/9eea65a4-06bf-4d2b-bcfd-9a440f7229b5?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "803" + "x-envoy-upstream-service-time": "1097" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ae137bed-97aa-4bf9-a943-06adb50fd938?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/9eea65a4-06bf-4d2b-bcfd-9a440f7229b5?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "e7e9e573-8498-11ec-8226-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "3f6ccddb-9b4c-11ec-bea3-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b3e5fb5b-317a-4b81-b52b-2b441b29c64f", + "apim-request-id": "681d899f-b69b-496f-a8e1-7fa336f4392c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 02:28:06 GMT", + "Date": "Thu, 03 Mar 2022 23:47:18 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "173" + "x-envoy-upstream-service-time": "167" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T02:28:01Z", - "lastUpdatedDateTime": "2022-02-03T02:28:03Z", + "createdDateTime": "2022-03-03T23:47:12Z", + "lastUpdatedDateTime": "2022-03-03T23:47:16Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-invoice", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_pages_kwarg_specified.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_pages_kwarg_specified.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_pages_kwarg_specified.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_pages_kwarg_specified.json index 82f543324644..cff39eb80a0b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_pages_kwarg_specified.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_pages_kwarg_specified.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "6cc1a3f7-7f12-11ec-94b6-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "930d7ad1-9b4d-11ec-b52b-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "741c944b-3c66-4a21-97c5-e76d2d29ae9c", + "apim-request-id": "e84e7671-8e14-4971-8015-2dba4c8abf14", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:42:45 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/741c944b-3c66-4a21-97c5-e76d2d29ae9c?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:58:23 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/e84e7671-8e14-4971-8015-2dba4c8abf14?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "820" + "x-envoy-upstream-service-time": "101442" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/741c944b-3c66-4a21-97c5-e76d2d29ae9c?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/e84e7671-8e14-4971-8015-2dba4c8abf14?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "6cc1a3f7-7f12-11ec-94b6-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "930d7ad1-9b4d-11ec-b52b-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "dd479bfa-6e0b-4855-8dcd-908093a679cc", + "apim-request-id": "7e7b9250-9b20-4e24-9418-16bcfc3d7f3b", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:50 GMT", + "Date": "Thu, 03 Mar 2022 23:58:28 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "147" + "x-envoy-upstream-service-time": "148" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:42:45Z", - "lastUpdatedDateTime": "2022-01-27T01:42:49Z", + "createdDateTime": "2022-03-03T23:56:42Z", + "lastUpdatedDateTime": "2022-03-03T23:58:26Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_polling_interval.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_polling_interval.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_polling_interval.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_polling_interval.json index be1a919b34a7..fbe4bbc9b682 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_polling_interval.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_polling_interval.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4f32b048-7f12-11ec-b3d5-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "443c446a-9b4c-11ec-b8a2-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "cdfea292-21db-4a53-a6a1-7337c4ff81d0", + "apim-request-id": "5acafd7a-d5b2-42f2-a550-4f1820c4b6f0", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:41:56 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/cdfea292-21db-4a53-a6a1-7337c4ff81d0?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:20 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/5acafd7a-d5b2-42f2-a550-4f1820c4b6f0?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "848" + "x-envoy-upstream-service-time": "447" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/cdfea292-21db-4a53-a6a1-7337c4ff81d0?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/5acafd7a-d5b2-42f2-a550-4f1820c4b6f0?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4f32b048-7f12-11ec-b3d5-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "443c446a-9b4c-11ec-b8a2-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ad5d70b3-279c-4edf-b0bc-b9e3934e98b6", + "apim-request-id": "cdd56536-f10d-4f71-a0b8-efd722a48c49", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:01 GMT", + "Date": "Thu, 03 Mar 2022 23:47:26 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "272" + "x-envoy-upstream-service-time": "157" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:41:55Z", - "lastUpdatedDateTime": "2022-01-27T01:41:59Z", + "createdDateTime": "2022-03-03T23:47:20Z", + "lastUpdatedDateTime": "2022-03-03T23:47:24Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", @@ -1848,48 +1850,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "539043ca-7f12-11ec-a98d-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "485918ae-9b4c-11ec-b244-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "1e19efc2-f535-4a70-9be8-e27f32f65a80", + "apim-request-id": "7bbcaaa7-caf2-4c55-a931-294c14705726", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:42:03 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1e19efc2-f535-4a70-9be8-e27f32f65a80?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:28 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/7bbcaaa7-caf2-4c55-a931-294c14705726?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "994" + "x-envoy-upstream-service-time": "1097" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1e19efc2-f535-4a70-9be8-e27f32f65a80?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/7bbcaaa7-caf2-4c55-a931-294c14705726?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "539043ca-7f12-11ec-a98d-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "485918ae-9b4c-11ec-b244-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "abca034d-92b3-4cce-ae18-28d55c00ec4e", + "apim-request-id": "d9fb8713-06a9-4521-942e-c482740ecf1d", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:09 GMT", + "Date": "Thu, 03 Mar 2022 23:47:34 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "149" + "x-envoy-upstream-service-time": "170" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:42:03Z", - "lastUpdatedDateTime": "2022-01-27T01:42:06Z", + "createdDateTime": "2022-03-03T23:47:27Z", + "lastUpdatedDateTime": "2022-03-03T23:47:31Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_bad_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_bad_url.json similarity index 79% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_bad_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_bad_url.json index 90beb04a71e0..ddd25dc77b62 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_bad_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_bad_url.json @@ -8,21 +8,22 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "35", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "59997294-7f12-11ec-9898-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "50ea52bd-9b4c-11ec-941c-c8348e073d30" }, "RequestBody": { "urlSource": "https://badurl.jpg" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "44bac2a2-e4a8-4659-8a78-e451f3bbe609", + "apim-request-id": "fd027d97-b489-40c5-928e-4fbb77177497", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:12 GMT", + "Date": "Thu, 03 Mar 2022 23:47:41 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "175" + "x-envoy-upstream-service-time": "367" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_error.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_error.json similarity index 73% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_error.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_error.json index 67b380d3e1f9..f9abef3b8fb6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_error.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_error.json @@ -1,28 +1,29 @@ { "Entries": [ { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not a locale\u0026stringIndexType=unicodeCodePoint\u0026api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt:analyze?locale=not%20a%20locale\u0026stringIndexType=unicodeCodePoint\u0026api-version=2022-01-30-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "6c5e7611-7f12-11ec-9705-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "91ecb44a-9b4d-11ec-8eec-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "5bd952b4-deb6-460b-8eb4-f3d9e9bb0180", + "apim-request-id": "de03cee0-3639-4957-acb3-dc683722af09", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:44 GMT", + "Date": "Thu, 03 Mar 2022 23:56:40 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136" + "x-envoy-upstream-service-time": "537" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_specified.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_specified.json similarity index 67% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_specified.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_specified.json index c76782df8dd5..e9f6bd73f889 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_locale_specified.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_locale_specified.json @@ -8,48 +8,590 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "686a40fd-7f12-11ec-b73b-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "63915f5b-dd50-4ab0-96ca-598cd8b82300", + "apim-request-id": "a6d53207-7bf1-49cb-876e-254cebf9703d", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:42:37 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/63915f5b-dd50-4ab0-96ca-598cd8b82300?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:54:47 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "723" + "x-envoy-upstream-service-time": "423" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/63915f5b-dd50-4ab0-96ca-598cd8b82300?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "686a40fd-7f12-11ec-b73b-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b5de1dd1-3918-4d45-a16a-94bb9851eb98", + "apim-request-id": "3955a9b9-4d6e-4b3f-95a7-17937e0b27df", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:43 GMT", + "Date": "Thu, 03 Mar 2022 23:54:53 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "146" + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6efa5c8d-b34f-476c-a135-d84a1a56f668", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:54:58 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "83" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b65370ae-7627-4c67-ba6c-f9ad1d3494e7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:03 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "74" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ec20429b-801c-486c-821d-acd82719faf0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:08 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "95" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ebd4ccfd-2aa8-48f8-87bf-67c04189030f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:13 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "21461929-a463-459e-9e02-902f60a71c39", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:19 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "88" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "764bf5cf-86a1-4824-80ad-cc2e9f61639e", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:24 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "052a87fb-74b8-4934-84ee-200ea439acf7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:29 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "88" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d16d85b5-bade-4792-9b48-2f3c2869a42f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:34 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "89" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c9949756-5aa3-4ea0-ad9b-2d8ccb9c27df", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:40 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "85" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "deb2ea0f-0235-4def-8201-75a90a64df22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:45 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "94" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "84e13209-aa97-4895-8880-e62301ed57ef", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:50 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "86" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "44549fce-96c2-4f9a-844f-d2eb846d1143", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:55:55 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "92" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6beaaa4d-ee93-4b43-9695-7f21d585d37d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:00 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "65c8392f-0521-4ffe-a254-99f5e86adaec", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:05 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "74" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "21195fa0-0342-41a4-94d9-1efa399de9f8", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:11 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "90" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "390bf700-463a-4216-8ddd-12958969c485", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:16 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "88" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ad65df0a-00f0-4484-a738-6b2981d39d9d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:21 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "81" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "42c19db0-9a80-495c-8ba1-bb386b8a9ab0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:27 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:54:48Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "04243d73-c618-4e4f-a888-4c620e1cc51c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:32 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "76" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:56:32Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/a6d53207-7bf1-49cb-876e-254cebf9703d?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4e82278b-9b4d-11ec-ab80-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2d04ff9e-9c3a-4509-8d87-285704f50978", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:56:37 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "144" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:42:38Z", - "lastUpdatedDateTime": "2022-01-27T01:42:41Z", + "createdDateTime": "2022-03-03T23:54:47Z", + "lastUpdatedDateTime": "2022-03-03T23:56:32Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_transform_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_transform_url.json similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_transform_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_transform_url.json index 1ccd17315c0b..2f2e82b5da11 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_multipage_transform_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_transform_url.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "643bacc5-7f12-11ec-bd5e-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "c7d1f138-9b4c-11ec-aa07-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "f4358b5e-fa11-4fd7-9d59-04217a747181", + "apim-request-id": "1474d69f-ee84-4962-9420-f9ba879303a6", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:42:30 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f4358b5e-fa11-4fd7-9d59-04217a747181?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:51:02 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1474d69f-ee84-4962-9420-f9ba879303a6?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "923" + "x-envoy-upstream-service-time": "1086" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f4358b5e-fa11-4fd7-9d59-04217a747181?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/1474d69f-ee84-4962-9420-f9ba879303a6?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "643bacc5-7f12-11ec-bd5e-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "c7d1f138-9b4c-11ec-aa07-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5be230b4-eada-4d02-9235-bff6aa037446", + "apim-request-id": "0a19007a-dddc-4efe-82ca-0c2b3ae8f95c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:36 GMT", + "Date": "Thu, 03 Mar 2022 23:52:48 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "341" + "x-envoy-upstream-service-time": "100877" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:42:31Z", - "lastUpdatedDateTime": "2022-01-27T01:42:35Z", + "createdDateTime": "2022-03-03T23:51:01Z", + "lastUpdatedDateTime": "2022-03-03T23:51:07Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_transform_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_url.json similarity index 97% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_transform_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_url.json index 42093343e29f..50b3eccf174c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url.pyTestDACAnalyzePrebuiltsfromUrltest_receipt_multipage_transform_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_multipage_url.json @@ -6,79 +6,52 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8d0ff078-7f13-11ec-8765-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "86de46fb-9b4c-11ec-8c07-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "85392c66-6b8a-4552-abc0-b92f925d6011", + "apim-request-id": "3b4be9b6-0132-41f2-ae08-29127bb17ba7", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:50:48 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/85392c66-6b8a-4552-abc0-b92f925d6011?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:50:53 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3b4be9b6-0132-41f2-ae08-29127bb17ba7?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "855" + "x-envoy-upstream-service-time": "101223" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/85392c66-6b8a-4552-abc0-b92f925d6011?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3b4be9b6-0132-41f2-ae08-29127bb17ba7?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8d0ff078-7f13-11ec-8765-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "86de46fb-9b4c-11ec-8c07-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c2b4420f-3045-4e6e-8e86-e110c180cb34", + "apim-request-id": "a03d3110-6e79-45b6-b61f-ec7a241bec83", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:53 GMT", + "Date": "Thu, 03 Mar 2022 23:50:58 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "76" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2022-01-27T01:50:49Z", - "lastUpdatedDateTime": "2022-01-27T01:50:54Z" - } - }, - { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/85392c66-6b8a-4552-abc0-b92f925d6011?api-version=2022-01-30-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8d0ff078-7f13-11ec-8765-c8348e073d30" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0a853c0b-6406-4fb5-bcac-2fa69837d34e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:50:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "311" + "x-envoy-upstream-service-time": "415" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:50:49Z", - "lastUpdatedDateTime": "2022-01-27T01:50:54Z", + "createdDateTime": "2022-03-03T23:49:12Z", + "lastUpdatedDateTime": "2022-03-03T23:50:57Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_auth_bad_key.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_auth_bad_key.json similarity index 79% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_auth_bad_key.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_auth_bad_key.json index d3ff46186499..1b41f8fc3fb4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_auth_bad_key.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_auth_bad_key.json @@ -8,18 +8,19 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "594804fb-7f12-11ec-a76e-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "5063adc5-9b4c-11ec-a4e0-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 401, "ResponseHeaders": { - "apim-request-id": "a2e18715-3ec8-4815-b0e0-d3d35b210c4d", + "apim-request-id": "81263a9c-7d61-4df4-8dc7-25e925a69c1f", "Content-Length": "224", "Content-Type": "application/json", - "Date": "Thu, 27 Jan 2022 01:42:12 GMT" + "Date": "Thu, 03 Mar 2022 23:47:40 GMT", + "Server": "Kestrel" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_pass_stream.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_pass_stream.json similarity index 78% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_pass_stream.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_pass_stream.json index 77f92cdde40f..dee5db134c62 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_pass_stream.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_pass_stream.json @@ -8,21 +8,22 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "28", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5a05ae9d-7f12-11ec-a70b-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "51b3cb2d-9b4c-11ec-8e03-c8348e073d30" }, "RequestBody": { "urlSource": "b\u0027\\x89PNG\u0027" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "9de64ca8-0de1-47c7-84d3-39cf467e133e", + "apim-request-id": "497954be-b52c-482d-81ef-32745ad91bf4", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:13 GMT", + "Date": "Thu, 03 Mar 2022 23:47:42 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3" + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_png.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_png.json similarity index 73% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_png.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_png.json index 9da9a9ad9fa6..ed4564860aca 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_png.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_png.json @@ -8,48 +8,428 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "2b2c0772-8523-11ec-a4fa-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "8d8ca379-1448-4693-b040-2dd36908caaf", + "apim-request-id": "3759fc30-b123-4d36-8fab-18afbfdbbd6a", "Content-Length": "0", - "Date": "Thu, 03 Feb 2022 18:57:43 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/8d8ca379-1448-4693-b040-2dd36908caaf?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:52 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1156" + "x-envoy-upstream-service-time": "974" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/8d8ca379-1448-4693-b040-2dd36908caaf?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "2b2c0772-8523-11ec-a4fa-c8348e073d2d" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1650ed5a-e4e5-4133-86df-30fa258908b1", + "apim-request-id": "e34939ea-d7b2-4559-aad9-eefb19f3bca1", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Feb 2022 18:57:49 GMT", + "Date": "Thu, 03 Mar 2022 23:47:56 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "87" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "761083d3-ce7b-4f93-9359-68eab6ed2afc", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:02 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "86" }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "f74ce5cd-9475-4e98-8891-459e8c192098", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:07 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "91" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "47d43212-e5ba-4aaa-8d6d-523723a63c99", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:13 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "92" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "0971699e-e6b1-4894-bc15-b453c7244207", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:18 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "92" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "656ca2f6-aa32-4196-a9aa-0116dbcf6292", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:23 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "0439cf68-2220-4a7e-b5b2-f96d3ff96145", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:28 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "94" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1be37bf9-dfe7-44c5-ada6-e92ade6ea73e", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:33 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fdcbc65a-e5e8-4173-b8fe-c0086824f897", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:39 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "56f47739-a524-4761-bd7e-c54dc52755a7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:44 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "75" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "30ccf0c2-5192-4652-a2ca-9fb7c12af373", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:48 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "88" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6442edb6-5eaf-4675-8ad6-b276376def54", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:54 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "91" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "77c595ec-0436-4bb9-9e34-13161632d8db", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:48:59 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "89" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8dbd52b4-5f56-49d3-814c-e218969603d2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:49:04 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "87" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:47:52Z" + } + }, + { + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3759fc30-b123-4d36-8fab-18afbfdbbd6a?api-version=2022-01-30-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "56b72833-9b4c-11ec-9e6b-c8348e073d30" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "05603f25-12d1-448d-a963-26811dc0851f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 03 Mar 2022 23:49:09 GMT", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "180" + }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-02-03T18:57:44Z", - "lastUpdatedDateTime": "2022-02-03T18:57:47Z", + "createdDateTime": "2022-03-03T23:47:51Z", + "lastUpdatedDateTime": "2022-03-03T23:49:06Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_transform_jpg.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_transform_jpg.json similarity index 98% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_transform_jpg.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_transform_jpg.json index c4fbffc69f39..3f4b6a967b8c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipt_url_transform_jpg.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipt_url_transform_jpg.json @@ -8,48 +8,50 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "36", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5a51aa9b-7f12-11ec-9cf5-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "52675f8f-9b4c-11ec-aedf-c8348e073d30" }, "RequestBody": { "urlSource": "https://blob_sas_url" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "f0700219-b7d1-4334-ac2b-cf1a5dbdac0b", + "apim-request-id": "3ec59253-fe2f-4368-b475-3053ab56ed35", "Content-Length": "0", - "Date": "Thu, 27 Jan 2022 01:42:24 GMT", - "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f0700219-b7d1-4334-ac2b-cf1a5dbdac0b?api-version=2022-01-30-preview", + "Date": "Thu, 03 Mar 2022 23:47:44 GMT", + "Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3ec59253-fe2f-4368-b475-3053ab56ed35?api-version=2022-01-30-preview", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10735" + "x-envoy-upstream-service-time": "452" }, "ResponseBody": null }, { - "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/f0700219-b7d1-4334-ac2b-cf1a5dbdac0b?api-version=2022-01-30-preview", + "RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt/analyzeResults/3ec59253-fe2f-4368-b475-3053ab56ed35?api-version=2022-01-30-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5a51aa9b-7f12-11ec-9cf5-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "52675f8f-9b4c-11ec-aedf-c8348e073d30" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bac0a5b8-d571-47ef-913a-0e964a6ef5fa", + "apim-request-id": "4bac506d-1665-4546-9c48-18d591632ce6", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:29 GMT", + "Date": "Thu, 03 Mar 2022 23:47:49 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "145" + "x-envoy-upstream-service-time": "180" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2022-01-27T01:42:24Z", - "lastUpdatedDateTime": "2022-01-27T01:42:27Z", + "createdDateTime": "2022-03-03T23:47:44Z", + "lastUpdatedDateTime": "2022-03-03T23:47:48Z", "analyzeResult": { "apiVersion": "2022-01-30-preview", "modelId": "prebuilt-receipt", diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipts_encoded_url.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipts_encoded_url.json similarity index 79% rename from sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipts_encoded_url.json rename to sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipts_encoded_url.json index b12fef9d7cf9..2b57401a74ec 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsfromUrlAsynctest_receipts_encoded_url.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dac_analyze_prebuilts_from_url_async.pyTestDACAnalyzePrebuiltsFromUrlAsynctest_receipts_encoded_url.json @@ -8,21 +8,22 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "50", "Content-Type": "application/json", - "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "58d6240d-7f12-11ec-bcc1-c8348e073d30" + "User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "4f7e457c-9b4c-11ec-ab50-c8348e073d30" }, "RequestBody": { "urlSource": "https://fakeuri.com/blank%20space" }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "6adad52a-c8d1-43b8-bc31-e5bbc0ece7c2", + "apim-request-id": "048c9b70-7abb-45d1-9c9d-913d632b6f73", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 27 Jan 2022 01:42:11 GMT", + "Date": "Thu, 03 Mar 2022 23:47:39 GMT", + "Server": "istio-envoy", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "101" + "x-envoy-upstream-service-time": "428" }, "ResponseBody": { "error": { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model.pyTestTrainingtest_compose_model.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model.pyTestTrainingtest_compose_model.json index 4cc7ff959b5b..a50080016282 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model.pyTestTrainingtest_compose_model.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model.pyTestTrainingtest_compose_model.json @@ -308,7 +308,7 @@ } ], "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "StatusCode": 202, @@ -502,11 +502,11 @@ "apiVersion": "2022-01-30-preview", "description": "my composed model", "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } } } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model_async.pyTestTrainingAsynctest_compose_model.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model_async.pyTestTrainingAsynctest_compose_model.json index 524303a4716a..a3e9e05e6f17 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model_async.pyTestTrainingAsynctest_compose_model.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_compose_model_async.pyTestTrainingAsynctest_compose_model.json @@ -303,7 +303,7 @@ } ], "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "StatusCode": 202, @@ -496,11 +496,11 @@ "apiVersion": "2022-01-30-preview", "description": "my composed model", "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } } } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training.pyTestDMACTrainingtest_build_model.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training.pyTestDMACTrainingtest_build_model.json index 0ea994c222ff..43d5e839bb8f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training.pyTestDMACTrainingtest_build_model.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training.pyTestDMACTrainingtest_build_model.json @@ -20,7 +20,7 @@ "containerUrl": "https://blob_sas_url" }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "StatusCode": 202, @@ -143,11 +143,11 @@ "apiVersion": "2022-01-30-preview", "description": "a v3 model", "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } } } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training_async.pyTestDMACTrainingAsynctest_build_model.json b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training_async.pyTestDMACTrainingAsynctest_build_model.json index 578abd2e0aac..9dac1d4d3810 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training_async.pyTestDMACTrainingAsynctest_build_model.json +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_dmac_training_async.pyTestDMACTrainingAsynctest_build_model.json @@ -19,7 +19,7 @@ "containerUrl": "https://blob_sas_url" }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "StatusCode": 202, @@ -141,11 +141,11 @@ "apiVersion": "2022-01-30-preview", "description": "a v3 model", "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } }, "tags": { - "frtests": "testvalue" + "testkey": "testvalue" } } } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_type.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_type.py index cd585ccfadc4..a45b44ecbead 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_type.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_type.py @@ -18,8 +18,8 @@ def test_pdf(self): def test_pdf_bytes(self): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() - content_type = get_content_type(myfile) + my_file = fd.read() + content_type = get_content_type(my_file) assert content_type == "application/pdf" def test_jpg(self): @@ -29,8 +29,8 @@ def test_jpg(self): def test_jpg_bytes(self): with open(self.form_jpg, "rb") as fd: - myfile = fd.read() - content_type = get_content_type(myfile) + my_file = fd.read() + content_type = get_content_type(my_file) assert content_type == "image/jpeg" def test_png(self): @@ -40,8 +40,8 @@ def test_png(self): def test_png_bytes(self): with open(self.receipt_png, "rb") as fd: - myfile = fd.read() - content_type = get_content_type(myfile) + my_file = fd.read() + content_type = get_content_type(my_file) assert content_type == "image/png" def test_tiff_little_endian(self): @@ -51,8 +51,8 @@ def test_tiff_little_endian(self): def test_tiff_little_endian_bytes(self): with open(self.invoice_tiff, "rb") as fd: - myfile = fd.read() - content_type = get_content_type(myfile) + my_file = fd.read() + content_type = get_content_type(my_file) assert content_type == "image/tiff" def test_tiff_big_endian(self): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model.py index 21716ca67950..355a395698bc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model.py @@ -53,11 +53,11 @@ def callback(raw_response, _, headers): responses.append(document) with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = poller.result() @@ -99,11 +99,11 @@ def callback(raw_response, _, headers): responses.append(document) with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = poller.result() @@ -137,7 +137,7 @@ def test_custom_document_selection_mark(self, client, formrecognizer_selection_m model = poller.result() with open(self.selection_form_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() responses = [] @@ -149,7 +149,7 @@ def callback(raw_response, _, headers): poller = da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = poller.result() @@ -180,12 +180,12 @@ def test_pages_kwarg_specified(self, client, formrecognizer_storage_container_sa da_client = client.get_document_analysis_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() build_poller = client.begin_build_model(formrecognizer_storage_container_sas_url, "template") model = build_poller.result() - poller = da_client.begin_analyze_document(model.model_id, myfile, pages="1") + poller = da_client.begin_analyze_document(model.model_id, my_file, pages="1") assert '1' == poller._polling_method._initial_response.http_response.request.query['pages'] result = poller.result() assert result @@ -198,14 +198,14 @@ def test_custom_document_signature_field(self, client, formrecognizer_storage_co da_client = client.get_document_analysis_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() build_polling = client.begin_build_model(formrecognizer_storage_container_sas_url, "template") model = build_polling.result() poller = da_client.begin_analyze_document( model.model_id, - myfile, + my_file, ) result = poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model_async.py index 75a26f41c6e4..042c8c689214 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_custom_model_async.py @@ -56,7 +56,7 @@ def callback(raw_response, _, headers): responses.append(document) with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: build_polling = await client.begin_build_model(formrecognizer_storage_container_sas_url, "template") @@ -65,7 +65,7 @@ def callback(raw_response, _, headers): async with da_client: poller = await da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = await poller.result() @@ -104,7 +104,7 @@ def callback(raw_response, _, headers): responses.append(document) with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: build_poller = await client.begin_build_model(formrecognizer_multipage_storage_container_sas_url, "template") @@ -113,7 +113,7 @@ def callback(raw_response, _, headers): async with da_client: poller = await da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = await poller.result() @@ -143,7 +143,7 @@ async def test_custom_document_selection_mark(self, client, formrecognizer_selec set_bodiless_matcher() da_client = client.get_document_analysis_client() with open(self.selection_form_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() responses = [] @@ -159,7 +159,7 @@ def callback(raw_response, _, headers): poller = await da_client.begin_analyze_document( model.model_id, - myfile, + my_file, cls=callback ) document = await poller.result() @@ -190,14 +190,14 @@ async def test_pages_kwarg_specified(self, client, formrecognizer_storage_contai da_client = client.get_document_analysis_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: build_poller = await client.begin_build_model(formrecognizer_storage_container_sas_url, "template") model = await build_poller.result() async with da_client: - poller = await da_client.begin_analyze_document(model.model_id, myfile, pages="1") + poller = await da_client.begin_analyze_document(model.model_id, my_file, pages="1") assert '1' == poller._polling_method._initial_response.http_response.request.query['pages'] result = await poller.result() assert result @@ -210,7 +210,7 @@ async def test_custom_document_signature_field(self, client, formrecognizer_stor da_client = client.get_document_analysis_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: build_polling = await client.begin_build_model(formrecognizer_storage_container_sas_url, "template") @@ -219,7 +219,7 @@ async def test_custom_document_signature_field(self, client, formrecognizer_stor async with da_client: poller = await da_client.begin_analyze_document( model.model_id, - myfile, + my_file, ) result = await poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document.py index 60d6c32b268c..0b27f4946c7e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document.py @@ -131,8 +131,8 @@ def callback(raw_response, _, headers): @recorded_by_proxy def test_document_multipage_table_span_pdf(self, client): with open(self.multipage_table_pdf, "rb") as fd: - myfile = fd.read() - poller = client.begin_analyze_document("prebuilt-document", myfile) + my_file = fd.read() + poller = client.begin_analyze_document("prebuilt-document", my_file) document = poller.result() assert len(document.tables) == 3 assert document.tables[0].row_count == 30 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document_async.py index 98bedc17302a..ac155e88a3df 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_general_document_async.py @@ -135,9 +135,9 @@ def callback(raw_response, _, headers): async def test_document_multipage_table_span_pdf(self, client, **kwargs): with open(self.multipage_table_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: - poller = await client.begin_analyze_document("prebuilt-document", myfile) + poller = await client.begin_analyze_document("prebuilt-document", my_file) document = await poller.result() assert len(document.tables) == 3 assert document.tables[0].row_count == 30 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout.py index 58c2fd293c83..f16e5943d12c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout.py @@ -131,8 +131,8 @@ def callback(raw_response, _, headers): @recorded_by_proxy def test_layout_multipage_table_span_pdf(self, client): with open(self.multipage_table_pdf, "rb") as fd: - myfile = fd.read() - poller = client.begin_analyze_document("prebuilt-layout", myfile) + my_file = fd.read() + poller = client.begin_analyze_document("prebuilt-layout", my_file) layout = poller.result() assert len(layout.tables) == 3 assert layout.tables[0].row_count == 30 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout_async.py index 021ec2ea0ef2..c72541f722a1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_layout_async.py @@ -134,9 +134,9 @@ def callback(raw_response, _, headers): @recorded_by_proxy_async async def test_layout_multipage_table_span_pdf(self, client): with open(self.multipage_table_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: - poller = await client.begin_analyze_document("prebuilt-layout", myfile) + poller = await client.begin_analyze_document("prebuilt-layout", my_file) layout = await poller.result() assert len(layout.tables) == 3 assert layout.tables[0].row_count == 30 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts.py index 843c82d8b797..8966c50a83c0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts.py @@ -143,11 +143,11 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.invoice_tiff, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_analyze_document( model="prebuilt-invoice", - document=myfile, + document=my_file, cls=callback ) @@ -226,11 +226,11 @@ def test_invoice_jpg(self, client, **kwargs): def test_fail_passing_content_type(self, **kwargs): client = kwargs.pop("client") with open(self.receipt_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(TypeError): poller = client.begin_analyze_document( "prebuilt-receipt", - myfile, + my_file, content_type=FormContentType.IMAGE_PNG ) @@ -239,10 +239,10 @@ def test_fail_passing_content_type(self, **kwargs): @recorded_by_proxy def test_receipt_bad_endpoint(self, formrecognizer_test_endpoint, formrecognizer_test_api_key, **kwargs): with open(self.receipt_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = DocumentAnalysisClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) - poller = client.begin_analyze_document("prebuilt-receipt", myfile) + poller = client.begin_analyze_document("prebuilt-receipt", my_file) @FormRecognizerPreparer() @recorded_by_proxy @@ -293,12 +293,12 @@ def test_blank_page(self, client): def test_auto_detect_unsupported_stream_content(self, client): with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(HttpResponseError): poller = client.begin_analyze_document( "prebuilt-receipt", - myfile + my_file ) @pytest.mark.live_test_only @@ -315,11 +315,11 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.receipt_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) @@ -355,11 +355,11 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.receipt_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) @@ -456,11 +456,11 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.multipage_receipt_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_async.py index 5541d628a29f..071001d7f666 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_async.py @@ -78,13 +78,13 @@ async def test_passing_unsupported_url_content_type(self, **kwargs): @recorded_by_proxy_async async def test_auto_detect_unsupported_stream_content(self, client): with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(HttpResponseError): async with client: poller = await client.begin_analyze_document( "prebuilt-receipt", - myfile, + my_file, ) result = await poller.result() @@ -103,12 +103,12 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.receipt_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) result = await poller.result() @@ -144,12 +144,12 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.receipt_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) result = await poller.result() @@ -245,12 +245,12 @@ def callback(raw_response, _, headers): responses.append(extracted_receipt) with open(self.multipage_receipt_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_analyze_document( "prebuilt-receipt", - document=myfile, + document=my_file, cls=callback ) result = await poller.result() @@ -351,7 +351,7 @@ async def test_business_card_multipage_pdf(self, client): assert len(business_card.fields.get("Websites").value) == 1 assert business_card.fields.get("Websites").value[0].value == "https://www.contoso.com" - # FIXME: the service isnt returning this value currently + # FIXME: the service isn't returning this value currently # assert len(business_card.fields.get("OtherPhones").value) == 1 # assert business_card.fields.get("OtherPhones").value[0].value == "+14257793479" @@ -449,12 +449,12 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.invoice_tiff, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_analyze_document( model="prebuilt-invoice", - document=myfile, + document=my_file, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url.py index 5bdbaefc2012..f2990ba89a03 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url.py @@ -20,7 +20,7 @@ DocumentAnalysisClientPreparer = functools.partial(_GlobalClientPreparer, DocumentAnalysisClient) -class TestDACAnalyzePrebuiltsfromUrl(FormRecognizerTest): +class TestDACAnalyzePrebuiltsFromUrl(FormRecognizerTest): @FormRecognizerPreparer() @DocumentAnalysisClientPreparer() @@ -45,7 +45,7 @@ def test_business_card_multipage_pdf(self, client): assert len(business_card.fields.get("Websites").value) == 1 assert business_card.fields.get("Websites").value[0].value == "https://www.contoso.com" - # FIXME: the service isnt returning this currently + # FIXME: the service isn't returning this currently # assert len(business_card.fields.get("OtherPhones").value) == 1 # assert business_card.fields.get("OtherPhones").value[0].value == "+14257793479" diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url_async.py index fa8647e17f4b..0ad2d70cb9b8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dac_analyze_prebuilts_from_url_async.py @@ -22,7 +22,7 @@ DocumentAnalysisClientPreparer = functools.partial(_GlobalClientPreparer, DocumentAnalysisClient) -class TestDACAnalyzePrebuiltsfromUrlAsync(AsyncFormRecognizerTest): +class TestDACAnalyzePrebuiltsFromUrlAsync(AsyncFormRecognizerTest): @FormRecognizerPreparer() @DocumentAnalysisClientPreparer() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model.py index 765a3ea3da52..01c2b22e8f5e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model.py @@ -33,7 +33,7 @@ def test_compose_model(self, client, formrecognizer_storage_container_sas_url, * poller = client.begin_build_model(formrecognizer_storage_container_sas_url, "template", model_id=model_id_2, description="model2") model_2 = poller.result() - poller = client.begin_create_composed_model([model_1.model_id, model_2.model_id], model_id=composed_id, description="my composed model", tags={"frtests": "testvalue"}) + poller = client.begin_create_composed_model([model_1.model_id, model_2.model_id], model_id=composed_id, description="my composed model", tags={"testkey": "testvalue"}) composed_model = poller.result() if self.is_live: @@ -42,7 +42,7 @@ def test_compose_model(self, client, formrecognizer_storage_container_sas_url, * assert composed_model.model_id assert composed_model.description == "my composed model" assert composed_model.created_on - assert composed_model.tags == {"frtests": "testvalue"} + assert composed_model.tags == {"testkey": "testvalue"} for name, doc_type in composed_model.doc_types.items(): assert name for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model_async.py index 178634ddd491..d5841924ce4e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_compose_model_async.py @@ -35,7 +35,7 @@ async def test_compose_model(self, client, formrecognizer_storage_container_sas_ poller = await client.begin_build_model(formrecognizer_storage_container_sas_url, "template", model_id=model_id_2, description="model2") model_2 = await poller.result() - poller = await client.begin_create_composed_model([model_1.model_id, model_2.model_id], model_id=composed_id, description="my composed model", tags={"frtests": "testvalue"}) + poller = await client.begin_create_composed_model([model_1.model_id, model_2.model_id], model_id=composed_id, description="my composed model", tags={"testkey": "testvalue"}) composed_model = await poller.result() if self.is_live: @@ -44,7 +44,7 @@ async def test_compose_model(self, client, formrecognizer_storage_container_sas_ assert composed_model.model_id assert composed_model.description == "my composed model" assert composed_model.created_on - assert composed_model.tags == {"frtests": "testvalue"} + assert composed_model.tags == {"testkey": "testvalue"} for name, doc_type in composed_model.doc_types.items(): assert name for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model.py index 0b34e5dc6172..70f8e37debd9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model.py @@ -43,7 +43,7 @@ def test_copy_model_successful(self, client, formrecognizer_storage_container_sa poller = client.begin_build_model(formrecognizer_storage_container_sas_url) model = poller.result() - target = client.get_copy_authorization(tags={"frtests": "testvalue"}) + target = client.get_copy_authorization(tags={"testkey": "testvalue"}) poller = client.begin_copy_model(model.model_id, target=target) copy = poller.result() @@ -51,7 +51,7 @@ def test_copy_model_successful(self, client, formrecognizer_storage_container_sa assert copy.model_id == target["targetModelId"] assert copy.description is None assert copy.created_on - assert copy.tags == {"frtests": "testvalue"} + assert copy.tags == {"testkey": "testvalue"} for name, doc_type in copy.doc_types.items(): assert name == target["targetModelId"] for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model_async.py index 8ffbf80a052e..be97c5e5f3c6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_copy_model_async.py @@ -46,7 +46,7 @@ async def test_copy_model_successful(self, client, formrecognizer_storage_contai training_poller = await client.begin_build_model(formrecognizer_storage_container_sas_url) model = await training_poller.result() - target = await client.get_copy_authorization(tags={"frtests": "testvalue"}) + target = await client.get_copy_authorization(tags={"testkey": "testvalue"}) copy_poller = await client.begin_copy_model(model.model_id, target=target) copy = await copy_poller.result() @@ -54,7 +54,7 @@ async def test_copy_model_successful(self, client, formrecognizer_storage_contai assert copy.model_id == target["targetModelId"] assert copy.description is None assert copy.created_on - assert copy.tags == {"frtests": "testvalue"} + assert copy.tags == {"testkey": "testvalue"} for name, doc_type in copy.doc_types.items(): assert name == target["targetModelId"] for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training.py index 71aaff0379f2..f9b3d8d305cd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training.py @@ -71,7 +71,7 @@ def test_build_model(self, client, formrecognizer_storage_container_sas_url, **k build_mode="template", model_id=model_id, description="a v3 model", - tags={"frtests": "testvalue"} + tags={"testkey": "testvalue"} ) model = poller.result() @@ -81,7 +81,7 @@ def test_build_model(self, client, formrecognizer_storage_container_sas_url, **k assert model.model_id assert model.description == "a v3 model" assert model.created_on - assert model.tags == {"frtests": "testvalue"} + assert model.tags == {"testkey": "testvalue"} for name, doc_type in model.doc_types.items(): assert name for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training_async.py index 172be17a086c..822a53b9a573 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_dmac_training_async.py @@ -79,7 +79,7 @@ async def test_build_model(self, client, formrecognizer_storage_container_sas_ur "template", model_id=model_id, description="a v3 model", - tags={"frtests": "testvalue"} + tags={"testkey": "testvalue"} ) model = await poller.result() @@ -89,7 +89,7 @@ async def test_build_model(self, client, formrecognizer_storage_container_sas_ur assert model.model_id assert model.description == "a v3 model" assert model.created_on - assert model.tags == {"frtests": "testvalue"} + assert model.tags == {"testkey": "testvalue"} for name, doc_type in model.doc_types.items(): assert name for key, field in doc_type.field_schema.items(): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card.py index 666d925520d0..e5a0bc725ace 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card.py @@ -26,9 +26,9 @@ class TestBusinessCard(FormRecognizerTest): def test_passing_enum_content_type(self, client): set_bodiless_matcher() with open(self.business_card_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_business_cards( - myfile, + my_file, content_type=FormContentType.IMAGE_PNG ) result = poller.result() @@ -59,10 +59,10 @@ def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.business_card_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_business_cards( - myfile, + my_file, content_type="application/jpeg" ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card_async.py index 55163f7c9601..dfa89d3a9b3f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_business_card_async.py @@ -25,10 +25,10 @@ class TestBusinessCardAsync(AsyncFormRecognizerTest): @recorded_by_proxy_async async def test_passing_enum_content_type(self, client): with open(self.business_card_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_business_cards( - myfile, + my_file, content_type=FormContentType.IMAGE_PNG ) result = await poller.result() @@ -62,11 +62,11 @@ async def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): async def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.business_card_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_business_cards( - myfile, + my_file, content_type="application/jpeg" ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content.py index ebf87e30b49f..37ffa99a67f2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content.py @@ -27,10 +27,10 @@ class TestContentFromStream(FormRecognizerTest): @recorded_by_proxy def test_content_bad_endpoint(self, formrecognizer_test_endpoint, formrecognizer_test_api_key, **kwargs): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) - poller = client.begin_recognize_content(myfile) + poller = client.begin_recognize_content(my_file) @FormRecognizerPreparer() @recorded_by_proxy @@ -44,9 +44,9 @@ def test_content_authentication_bad_key(self, formrecognizer_test_endpoint, form @recorded_by_proxy def test_passing_enum_content_type(self, client): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_content( - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) result = poller.result() @@ -67,10 +67,10 @@ def test_damaged_file_passed_as_bytes(self, client): def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_content( - myfile, + my_file, content_type="application/jpeg" ) @@ -79,11 +79,11 @@ def test_passing_bad_content_type_param_passed(self, **kwargs): def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_content( - myfile + my_file ) @FormRecognizerPreparer() @@ -91,7 +91,7 @@ def test_auto_detect_unsupported_stream_content(self, **kwargs): @recorded_by_proxy def test_content_stream_transform_pdf(self, client): with open(self.invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -101,7 +101,7 @@ def callback(raw_response, _, headers): responses.append(analyze_result) responses.append(extracted_layout) - poller = client.begin_recognize_content(myform, cls=callback) + poller = client.begin_recognize_content(form, cls=callback) result = poller.result() raw_response = responses[0] layout = responses[1] @@ -116,9 +116,9 @@ def callback(raw_response, _, headers): @recorded_by_proxy def test_content_reading_order(self, client): with open(self.invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() - poller = client.begin_recognize_content(myform, reading_order="natural") + poller = client.begin_recognize_content(form, reading_order="natural") assert 'natural' == poller._polling_method._initial_response.http_response.request.query['readingOrder'] result = poller.result() @@ -129,7 +129,7 @@ def test_content_reading_order(self, client): @recorded_by_proxy def test_content_stream_transform_jpg(self, client): with open(self.form_jpg, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -139,7 +139,7 @@ def callback(raw_response, _, headers): responses.append(analyze_result) responses.append(extracted_layout) - poller = client.begin_recognize_content(myform, cls=callback) + poller = client.begin_recognize_content(form, cls=callback) result = poller.result() raw_response = responses[0] layout = responses[1] @@ -184,7 +184,7 @@ def test_content_multipage(self, client): @recorded_by_proxy def test_content_multipage_transform(self, client): with open(self.multipage_invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -194,7 +194,7 @@ def callback(raw_response, _, headers): responses.append(analyze_result) responses.append(extracted_layout) - poller = client.begin_recognize_content(myform, cls=callback) + poller = client.begin_recognize_content(form, cls=callback) result = poller.result() raw_response = responses[0] layout = responses[1] @@ -210,8 +210,8 @@ def callback(raw_response, _, headers): def test_content_continuation_token(self, **kwargs): client = kwargs.pop("client") with open(self.form_jpg, "rb") as fd: - myfile = fd.read() - initial_poller = client.begin_recognize_content(myfile) + my_file = fd.read() + initial_poller = client.begin_recognize_content(my_file) cont_token = initial_poller.continuation_token() poller = client.begin_recognize_content(None, continuation_token=cont_token) @@ -225,7 +225,7 @@ def test_content_continuation_token(self, **kwargs): @recorded_by_proxy def test_content_multipage_table_span_transform(self, client): with open(self.multipage_table_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -235,7 +235,7 @@ def callback(raw_response, _, headers): responses.append(analyze_result) responses.append(extracted_layout) - poller = client.begin_recognize_content(myform, cls=callback) + poller = client.begin_recognize_content(form, cls=callback) result = poller.result() raw_response = responses[0] layout = responses[1] @@ -250,9 +250,9 @@ def callback(raw_response, _, headers): @recorded_by_proxy def test_content_selection_marks(self, client): with open(self.selection_form_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() - poller = client.begin_recognize_content(myform) + poller = client.begin_recognize_content(form) result = poller.result() assert len(result) == 1 layout = result[0] @@ -264,9 +264,9 @@ def test_content_selection_marks(self, client): @recorded_by_proxy def test_content_selection_marks_v2(self, client): with open(self.selection_form_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() - poller = client.begin_recognize_content(myform) + poller = client.begin_recognize_content(form) result = poller.result() assert len(result) == 1 layout = result[0] @@ -279,21 +279,21 @@ def test_content_selection_marks_v2(self, client): def test_content_specify_pages(self, client): with open(self.multipage_invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() - poller = client.begin_recognize_content(myform, pages=["1"]) + poller = client.begin_recognize_content(form, pages=["1"]) result = poller.result() assert len(result) == 1 - poller = client.begin_recognize_content(myform, pages=["1", "3"]) + poller = client.begin_recognize_content(form, pages=["1", "3"]) result = poller.result() assert len(result) == 2 - poller = client.begin_recognize_content(myform, pages=["1-2"]) + poller = client.begin_recognize_content(form, pages=["1-2"]) result = poller.result() assert len(result) == 2 - poller = client.begin_recognize_content(myform, pages=["1-2", "3"]) + poller = client.begin_recognize_content(form, pages=["1-2", "3"]) result = poller.result() assert len(result) == 3 @@ -302,8 +302,8 @@ def test_content_specify_pages(self, client): @recorded_by_proxy def test_content_language_specified(self, client): with open(self.form_jpg, "rb") as fd: - myfile = fd.read() - poller = client.begin_recognize_content(myfile, language="de") + my_file = fd.read() + poller = client.begin_recognize_content(my_file, language="de") assert 'de' == poller._polling_method._initial_response.http_response.request.query['language'] result = poller.result() assert result @@ -313,9 +313,9 @@ def test_content_language_specified(self, client): @recorded_by_proxy def test_content_language_error(self, client): with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(HttpResponseError) as e: - client.begin_recognize_content(myfile, language="not a language") + client.begin_recognize_content(my_file, language="not a language") assert "NotSupportedLanguage" == e.value.error.code @FormRecognizerPreparer() @@ -323,7 +323,7 @@ def test_content_language_error(self, client): def test_content_language_v2(self, **kwargs): client = kwargs.pop("client") with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError) as e: - client.begin_recognize_content(myfile, language="en") + client.begin_recognize_content(my_file, language="en") assert "'language' is only available for API version V2_1 and up" in str(e.value) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content_async.py index 197f10e9c1d7..315aee854682 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_content_async.py @@ -29,11 +29,11 @@ class TestContentFromStreamAsync(AsyncFormRecognizerTest): @recorded_by_proxy_async async def test_content_bad_endpoint(self, formrecognizer_test_endpoint, formrecognizer_test_api_key, **kwargs): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) async with client: - poller = await client.begin_recognize_content(myfile) + poller = await client.begin_recognize_content(my_file) result = await poller.result() @FormRecognizerPreparer() @@ -51,10 +51,10 @@ async def test_content_authentication_bad_key(self, formrecognizer_test_endpoint @recorded_by_proxy_async async def test_passing_enum_content_type(self, client): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_content( - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) result = await poller.result() @@ -78,11 +78,11 @@ async def test_damaged_file_passed_as_bytes(self, client): async def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_content( - myfile, + my_file, content_type="application/jpeg" ) result = await poller.result() @@ -92,12 +92,12 @@ async def test_passing_bad_content_type_param_passed(self, **kwargs): async def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_content( - myfile + my_file ) result = await poller.result() @@ -107,7 +107,7 @@ async def test_auto_detect_unsupported_stream_content(self, **kwargs): @recorded_by_proxy_async async def test_content_stream_transform_pdf(self, client): with open(self.invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -118,7 +118,7 @@ def callback(raw_response, _, headers): responses.append(extracted_layout) async with client: - poller = await client.begin_recognize_content(myform, cls=callback) + poller = await client.begin_recognize_content(form, cls=callback) result = await poller.result() raw_response = responses[0] layout = responses[1] @@ -134,7 +134,7 @@ def callback(raw_response, _, headers): @recorded_by_proxy_async async def test_content_stream_transform_jpg(self, client): with open(self.form_jpg, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -145,7 +145,7 @@ def callback(raw_response, _, headers): responses.append(extracted_layout) async with client: - poller = await client.begin_recognize_content(myform, cls=callback) + poller = await client.begin_recognize_content(form, cls=callback) result = await poller.result() raw_response = responses[0] layout = responses[1] @@ -161,10 +161,10 @@ def callback(raw_response, _, headers): @recorded_by_proxy_async async def test_content_stream_jpg(self, client): with open(self.form_jpg, "rb") as fd: - myform = fd.read() + form = fd.read() async with client: - poller = await client.begin_recognize_content(myform) + poller = await client.begin_recognize_content(form) result = await poller.result() assert len(result) == 1 layout = result[0] @@ -197,7 +197,7 @@ async def test_content_multipage(self, client): @recorded_by_proxy_async async def test_content_multipage_transform(self, client): with open(self.multipage_invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() responses = [] @@ -208,7 +208,7 @@ def callback(raw_response, _, headers): responses.append(extracted_layout) async with client: - poller = await client.begin_recognize_content(myform, cls=callback) + poller = await client.begin_recognize_content(form, cls=callback) result = await poller.result() raw_response = responses[0] layout = responses[1] @@ -224,9 +224,9 @@ def callback(raw_response, _, headers): async def test_content_continuation_token(self, **kwargs): client = kwargs.pop("client") with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: - initial_poller = await client.begin_recognize_content(myfile) + initial_poller = await client.begin_recognize_content(my_file) cont_token = initial_poller.continuation_token() poller = await client.begin_recognize_content(None, continuation_token=cont_token) result = await poller.result() @@ -240,9 +240,9 @@ async def test_content_continuation_token(self, **kwargs): @recorded_by_proxy_async async def test_content_multipage_table_span_pdf(self, client): with open(self.multipage_table_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: - poller = await client.begin_recognize_content(myfile) + poller = await client.begin_recognize_content(my_file) result = await poller.result() assert len(result) == 2 layout = result[0] @@ -268,10 +268,10 @@ async def test_content_multipage_table_span_pdf(self, client): @recorded_by_proxy_async async def test_content_selection_marks(self, client): with open(self.selection_form_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() async with client: - poller = await client.begin_recognize_content(myform) + poller = await client.begin_recognize_content(form) result = await poller.result() assert len(result) == 1 layout = result[0] @@ -284,10 +284,10 @@ async def test_content_selection_marks(self, client): @recorded_by_proxy_async async def test_content_selection_marks_v2(self, client): with open(self.selection_form_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() async with client: - poller = await client.begin_recognize_content(myform) + poller = await client.begin_recognize_content(form) result = await poller.result() assert len(result) == 1 layout = result[0] @@ -300,22 +300,22 @@ async def test_content_selection_marks_v2(self, client): @recorded_by_proxy_async async def test_content_specify_pages(self, client): with open(self.multipage_invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() async with client: - poller = await client.begin_recognize_content(myform, pages=["1"]) + poller = await client.begin_recognize_content(form, pages=["1"]) result = await poller.result() assert len(result) == 1 - poller = await client.begin_recognize_content(myform, pages=["1", "3"]) + poller = await client.begin_recognize_content(form, pages=["1", "3"]) result = await poller.result() assert len(result) == 2 - poller = await client.begin_recognize_content(myform, pages=["1-2"]) + poller = await client.begin_recognize_content(form, pages=["1-2"]) result = await poller.result() assert len(result) == 2 - poller = await client.begin_recognize_content(myform, pages=["1-2", "3"]) + poller = await client.begin_recognize_content(form, pages=["1-2", "3"]) result = await poller.result() assert len(result) == 3 @@ -325,10 +325,10 @@ async def test_content_specify_pages(self, client): @recorded_by_proxy_async async def test_content_reading_order(self, client): with open(self.invoice_pdf, "rb") as fd: - myform = fd.read() + form = fd.read() async with client: - poller = await client.begin_recognize_content(myform, reading_order="natural") + poller = await client.begin_recognize_content(form, reading_order="natural") assert 'natural' == poller._polling_method._initial_response.http_response.request.query['readingOrder'] result = await poller.result() @@ -340,9 +340,9 @@ async def test_content_reading_order(self, client): @recorded_by_proxy_async async def test_content_language_specified(self, client): with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: - poller = await client.begin_recognize_content(myfile, language="de") + poller = await client.begin_recognize_content(my_file, language="de") assert 'de' == poller._polling_method._initial_response.http_response.request.query['language'] result = await poller.result() assert result @@ -352,8 +352,8 @@ async def test_content_language_specified(self, client): async def test_content_language_v2(self, **kwargs): client = kwargs.pop("client") with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: with pytest.raises(ValueError) as e: - await client.begin_recognize_content(myfile, language="en") + await client.begin_recognize_content(my_file, language="en") assert "'language' is only available for API version V2_1 and up" in str(e.value) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms.py index e51250202117..5b033cb91dff 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms.py @@ -79,9 +79,9 @@ def test_custom_form_labeled(self, client, formrecognizer_storage_container_sas_ model = poller.result() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() - poller = fr_client.begin_recognize_custom_forms(model.model_id, myfile, content_type=FormContentType.IMAGE_JPEG) + poller = fr_client.begin_recognize_custom_forms(model.model_id, my_file, content_type=FormContentType.IMAGE_JPEG) form = poller.result() assert form[0].form_type == "custom:labeled" @@ -101,11 +101,11 @@ def test_custom_form_multipage_labeled(self, client, formrecognizer_multipage_st model = poller.result() with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) forms = poller.result() @@ -133,11 +133,11 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) @@ -188,11 +188,11 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) @@ -223,10 +223,10 @@ def test_custom_form_continuation_token(self, **kwargs): model = poller.result() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() initial_poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile + my_file ) cont_token = initial_poller.continuation_token() poller = fr_client.begin_recognize_custom_forms( @@ -258,11 +258,11 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) @@ -300,11 +300,11 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms_async.py index 9c696dd8c5ee..222a86c66ce8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_custom_forms_async.py @@ -30,14 +30,14 @@ async def test_custom_form_unlabeled(self, client, formrecognizer_storage_contai fr_client = client.get_form_recognizer_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: training_poller = await client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) model = await training_poller.result() async with fr_client: - poller = await fr_client.begin_recognize_custom_forms(model.model_id, myfile, content_type=FormContentType.IMAGE_JPEG) + poller = await fr_client.begin_recognize_custom_forms(model.model_id, my_file, content_type=FormContentType.IMAGE_JPEG) form = await poller.result() assert form[0].form_type == "form-0" self.assertUnlabeledRecognizedFormHasValues(form[0], model) @@ -49,7 +49,7 @@ async def test_custom_form_multipage_unlabeled(self, client, formrecognizer_mult set_bodiless_matcher() fr_client = client.get_form_recognizer_client() with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: training_poller = await client.begin_training(formrecognizer_multipage_storage_container_sas_url_v2, use_training_labels=False) @@ -58,7 +58,7 @@ async def test_custom_form_multipage_unlabeled(self, client, formrecognizer_mult async with fr_client: poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) forms = await poller.result() @@ -76,7 +76,7 @@ async def test_custom_form_multipage_labeled(self, client, formrecognizer_multip set_bodiless_matcher() fr_client = client.get_form_recognizer_client() with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: training_poller = await client.begin_training( @@ -88,7 +88,7 @@ async def test_custom_form_multipage_labeled(self, client, formrecognizer_multip async with fr_client: poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) forms = await poller.result() @@ -113,7 +113,7 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.multipage_invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: training_poller = await client.begin_training(formrecognizer_multipage_storage_container_sas_url_v2, use_training_labels=False) @@ -122,7 +122,7 @@ def callback(raw_response, _, headers): async with fr_client: poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) @@ -150,7 +150,7 @@ async def test_custom_form_continuation_token(self, **kwargs): formrecognizer_storage_container_sas_url_v2 = kwargs.pop("formrecognizer_storage_container_sas_url_v2") fr_client = client.get_form_recognizer_client() with open(self.form_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) @@ -159,7 +159,7 @@ async def test_custom_form_continuation_token(self, **kwargs): async with fr_client: initial_poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile + my_file ) cont_token = initial_poller.continuation_token() @@ -189,7 +189,7 @@ def callback(raw_response, _, headers): responses.append(form) with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_training(formrecognizer_multipage_storage_container_sas_url_2_v2, use_training_labels=False) @@ -198,7 +198,7 @@ def callback(raw_response, _, headers): async with fr_client: poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) @@ -227,7 +227,7 @@ async def test_custom_form_multipage_vendor_set_labeled_transform(self, client, responses = [] with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() def callback(raw_response, _, headers): analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) @@ -242,7 +242,7 @@ def callback(raw_response, _, headers): async with fr_client: poller = await fr_client.begin_recognize_custom_forms( model.model_id, - myfile, + my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents.py index db977fb5b9b1..c6b299f230de 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents.py @@ -27,10 +27,10 @@ class TestIdDocument(FormRecognizerTest): @recorded_by_proxy def test_identity_document_bad_endpoint(self, formrecognizer_test_api_key, **kwargs): with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) - poller = client.begin_recognize_identity_documents(myfile) + poller = client.begin_recognize_identity_documents(my_file) @FormRecognizerPreparer() @FormRecognizerClientPreparer() @@ -57,10 +57,10 @@ def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_identity_documents( - myfile, + my_file, content_type="application/jpeg" ) @@ -69,11 +69,11 @@ def test_passing_bad_content_type_param_passed(self, **kwargs): def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_identity_documents( - myfile + my_file ) @FormRecognizerPreparer() @@ -89,10 +89,10 @@ def callback(raw_response, _, headers): responses.append(extracted_id_document) with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_identity_documents( - identity_document=myfile, + identity_document=my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents_async.py index c1d8bfb558f0..534deb21abde 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents_async.py @@ -28,11 +28,11 @@ class TestIdDocumentsAsync(AsyncFormRecognizerTest): @recorded_by_proxy_async async def test_identity_document_bad_endpoint(self, formrecognizer_test_endpoint, formrecognizer_test_api_key, **kwargs): with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) async with client: - poller = await client.begin_recognize_identity_documents(myfile) + poller = await client.begin_recognize_identity_documents(my_file) @FormRecognizerPreparer() @FormRecognizerClientPreparer() @@ -61,11 +61,11 @@ async def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): async def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_identity_documents( - myfile, + my_file, content_type="application/jpeg" ) @@ -74,12 +74,12 @@ async def test_passing_bad_content_type_param_passed(self, **kwargs): async def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_identity_documents( - myfile + my_file ) @FormRecognizerPreparer() @@ -95,11 +95,11 @@ def callback(raw_response, _, headers): responses.append(extracted_id_document) with open(self.identity_document_license_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_identity_documents( - identity_document=myfile, + identity_document=my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice.py index 09858b909fd1..eb4f5a8c9a06 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice.py @@ -28,19 +28,19 @@ class TestInvoice(FormRecognizerTest): @recorded_by_proxy def test_invoice_bad_endpoint(self, formrecognizer_test_api_key, **kwargs): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) - poller = client.begin_recognize_invoices(myfile) + poller = client.begin_recognize_invoices(my_file) @FormRecognizerPreparer() @FormRecognizerClientPreparer() @recorded_by_proxy def test_passing_enum_content_type(self, client): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_invoices( - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) result = poller.result() @@ -71,10 +71,10 @@ def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_invoices( - myfile, + my_file, content_type="application/jpeg" ) @@ -84,11 +84,11 @@ def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_invoices( - myfile + my_file ) @FormRecognizerPreparer() @@ -104,10 +104,10 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_invoices( - invoice=myfile, + invoice=my_file, include_field_elements=True, cls=callback ) @@ -144,10 +144,10 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_invoices( - invoice=myfile, + invoice=my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice_async.py index 23250f918576..e1e4e8237142 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_invoice_async.py @@ -30,21 +30,21 @@ class TestInvoiceAsync(AsyncFormRecognizerTest): @recorded_by_proxy_async async def test_invoice_bad_endpoint(self, formrecognizer_test_api_key, **kwargs): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ServiceRequestError): client = FormRecognizerClient("http://notreal.azure.com", AzureKeyCredential(formrecognizer_test_api_key)) async with client: - poller = await client.begin_recognize_invoices(myfile) + poller = await client.begin_recognize_invoices(my_file) @FormRecognizerPreparer() @FormRecognizerClientPreparer() @recorded_by_proxy_async async def test_passing_enum_content_type(self, client): with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_invoices( - myfile, + my_file, content_type=FormContentType.APPLICATION_PDF ) result = await poller.result() @@ -77,11 +77,11 @@ async def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): async def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_invoices( - myfile, + my_file, content_type="application/jpeg" ) @@ -91,12 +91,12 @@ async def test_auto_detect_unsupported_stream_content(self, **kwargs): client = kwargs.pop("client") with open(self.unsupported_content_py, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_invoices( - myfile + my_file ) @FormRecognizerPreparer() @@ -112,11 +112,11 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.invoice_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_invoices( - invoice=myfile, + invoice=my_file, include_field_elements=True, cls=callback ) @@ -153,11 +153,11 @@ def callback(raw_response, _, headers): responses.append(extracted_invoice) with open(self.multipage_vendor_pdf, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_invoices( - invoice=myfile, + invoice=my_file, include_field_elements=True, cls=callback ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt.py index 0a7774150180..df31bb8264b9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt.py @@ -24,9 +24,9 @@ class TestReceiptFromStream(FormRecognizerTest): @recorded_by_proxy def test_passing_enum_content_type_v2(self, client): with open(self.receipt_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() poller = client.begin_recognize_receipts( - myfile, + my_file, content_type=FormContentType.IMAGE_PNG ) result = poller.result() @@ -58,10 +58,10 @@ def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.receipt_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): poller = client.begin_recognize_receipts( - myfile, + my_file, content_type="application/jpeg" ) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt_async.py index 50547b4d365c..423a3e21624e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_receipt_async.py @@ -27,10 +27,10 @@ class TestReceiptFromStreamAsync(AsyncFormRecognizerTest): @recorded_by_proxy_async async def test_passing_enum_content_type(self, client): with open(self.receipt_png, "rb") as fd: - myfile = fd.read() + my_file = fd.read() async with client: poller = await client.begin_recognize_receipts( - myfile, + my_file, content_type=FormContentType.IMAGE_PNG ) result = await poller.result() @@ -66,11 +66,11 @@ async def test_damaged_file_bytes_io_fails_autodetect(self, **kwargs): async def test_passing_bad_content_type_param_passed(self, **kwargs): client = kwargs.pop("client") with open(self.receipt_jpg, "rb") as fd: - myfile = fd.read() + my_file = fd.read() with pytest.raises(ValueError): async with client: poller = await client.begin_recognize_receipts( - myfile, + my_file, content_type="application/jpeg" ) result = await poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py index 7dd4ea788aa2..c1e619aad19d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py @@ -143,31 +143,31 @@ def test_v2_0_compatibility(self, client, formrecognizer_storage_container_sas_u label_poller = client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=True) label_result = label_poller.result() - unlabel_poller = client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) - unlabel_result = unlabel_poller.result() + unlabelled_poller = client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) + unlabelled_result = unlabelled_poller.result() assert label_result.properties is None assert label_result.model_name is None - assert unlabel_result.properties is None - assert unlabel_result.properties is None + assert unlabelled_result.properties is None + assert unlabelled_result.properties is None assert label_result.training_documents[0].model_id is None - assert unlabel_result.training_documents[0].model_id is None + assert unlabelled_result.training_documents[0].model_id is None form_client = client.get_form_recognizer_client() label_poller = form_client.begin_recognize_custom_forms_from_url(label_result.model_id, self.form_url_jpg, include_field_elements=True) - unlabel_poller = form_client.begin_recognize_custom_forms_from_url(unlabel_result.model_id, self.form_url_jpg, include_field_elements=True) + unlabelled_poller = form_client.begin_recognize_custom_forms_from_url(unlabelled_result.model_id, self.form_url_jpg, include_field_elements=True) label_form_result = label_poller.result() - unlabel_form_result = unlabel_poller.result() + unlabelled_form_result = unlabelled_poller.result() - assert unlabel_form_result[0].form_type_confidence is None + assert unlabelled_form_result[0].form_type_confidence is None assert label_form_result[0].form_type_confidence is None - assert unlabel_form_result[0].pages[0].selection_marks is None + assert unlabelled_form_result[0].pages[0].selection_marks is None assert label_form_result[0].pages[0].selection_marks is None - assert unlabel_form_result[0].pages[0].tables[0].bounding_box is None + assert unlabelled_form_result[0].pages[0].tables[0].bounding_box is None assert label_form_result[0].pages[0].tables[0].bounding_box is None - assert unlabel_form_result[0].pages[0].lines[0].appearance is None + assert unlabelled_form_result[0].pages[0].lines[0].appearance is None assert label_form_result[0].pages[0].lines[0].appearance is None models = client.list_custom_models() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py index 907999a67501..801b05461254 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py @@ -142,31 +142,31 @@ async def test_v2_0_compatibility(self, client, formrecognizer_storage_container label_poller = await client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=True) label_result = await label_poller.result() - unlabel_poller = await client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) - unlabel_result = await unlabel_poller.result() + unlabelled_poller = await client.begin_training(formrecognizer_storage_container_sas_url_v2, use_training_labels=False) + unlabelled_result = await unlabelled_poller.result() assert label_result.properties is None assert label_result.model_name is None - assert unlabel_result.properties is None - assert unlabel_result.properties is None + assert unlabelled_result.properties is None + assert unlabelled_result.properties is None assert label_result.training_documents[0].model_id is None - assert unlabel_result.training_documents[0].model_id is None + assert unlabelled_result.training_documents[0].model_id is None form_client = client.get_form_recognizer_client() async with form_client: label_poller = await form_client.begin_recognize_custom_forms_from_url(label_result.model_id, self.form_url_jpg, include_field_elements=True) - unlabel_poller = await form_client.begin_recognize_custom_forms_from_url(unlabel_result.model_id, self.form_url_jpg, include_field_elements=True) + unlabelled_poller = await form_client.begin_recognize_custom_forms_from_url(unlabelled_result.model_id, self.form_url_jpg, include_field_elements=True) label_form_result = await label_poller.result() - unlabel_form_result = await unlabel_poller.result() + unlabelled_form_result = await unlabelled_poller.result() - assert unlabel_form_result[0].form_type_confidence is None + assert unlabelled_form_result[0].form_type_confidence is None assert label_form_result[0].form_type_confidence is None - assert unlabel_form_result[0].pages[0].selection_marks is None + assert unlabelled_form_result[0].pages[0].selection_marks is None assert label_form_result[0].pages[0].selection_marks is None - assert unlabel_form_result[0].pages[0].tables[0].bounding_box is None + assert unlabelled_form_result[0].pages[0].tables[0].bounding_box is None assert label_form_result[0].pages[0].tables[0].bounding_box is None - assert unlabel_form_result[0].pages[0].lines[0].appearance is None + assert unlabelled_form_result[0].pages[0].lines[0].appearance is None assert label_form_result[0].pages[0].lines[0].appearance is None models = client.list_custom_models()