From eacd48276e4362ae966747fbb29ba01459ddcfd4 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Tue, 26 Jan 2021 12:58:54 -0800 Subject: [PATCH] unskip receipt tests - service regression fixed (#16355) --- .../test_receipt.test_receipt_jpg.yaml | 24 ++++++++-------- .../test_receipt.test_receipt_multipage.yaml | 24 ++++++++-------- .../test_receipt.test_receipt_png.yaml | 24 ++++++++-------- .../test_receipt_async.test_receipt_jpg.yaml | 26 ++++++++--------- ..._receipt_async.test_receipt_multipage.yaml | 26 ++++++++--------- .../test_receipt_async.test_receipt_png.yaml | 26 ++++++++--------- ...t_from_url.test_receipt_multipage_url.yaml | 24 ++++++++-------- ...receipt_from_url.test_receipt_url_jpg.yaml | 24 ++++++++-------- ...receipt_from_url.test_receipt_url_png.yaml | 24 ++++++++-------- ..._url_async.test_receipt_multipage_url.yaml | 26 ++++++++--------- ...t_from_url_async.test_receipt_url_jpg.yaml | 26 ++++++++--------- ...t_from_url_async.test_receipt_url_png.yaml | 28 +++++++++---------- .../tests/test_receipt.py | 12 ++++---- .../tests/test_receipt_async.py | 12 ++++---- .../tests/test_receipt_from_url.py | 12 ++++---- .../tests/test_receipt_from_url_async.py | 12 ++++---- 16 files changed, 175 insertions(+), 175 deletions(-) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml index 270cf18569eb..87863b7f3fa7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: @@ -22,19 +22,19 @@ interactions: string: '' headers: apim-request-id: - - 2e2e531f-889f-4bb8-823c-27a41123ee1c + - ea43995f-d321-4daa-8d98-d186857419ee content-length: - '0' date: - - Mon, 16 Nov 2020 19:09:28 GMT + - Tue, 26 Jan 2021 18:16:12 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/2e2e531f-889f-4bb8-823c-27a41123ee1c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/ea43995f-d321-4daa-8d98-d186857419ee strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '209' + - '380' status: code: 202 message: Accepted @@ -48,13 +48,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/2e2e531f-889f-4bb8-823c-27a41123ee1c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/ea43995f-d321-4daa-8d98-d186857419ee response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:09:28Z", - "lastUpdatedDateTime": "2020-11-16T19:09:30Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:16:12Z", + "lastUpdatedDateTime": "2021-01-26T18:16:15Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -96,19 +96,19 @@ interactions: 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - ca0b5eb7-5856-4833-8de8-c5929e3d3ab6 + - 857c7fd7-8c39-4123-8fd5-6b7f74bf7f04 content-length: - '2835' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:09:33 GMT + - Tue, 26 Jan 2021 18:16:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '38' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml index 429f2593ad60..5df7bbc9c558 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml @@ -1925,7 +1925,7 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true response: @@ -1933,19 +1933,19 @@ interactions: string: '' headers: apim-request-id: - - cc7063d0-354e-4895-b57c-973685500939 + - b47f643e-ef6f-429c-9f17-539af07de093 content-length: - '0' date: - - Mon, 16 Nov 2020 19:09:47 GMT + - Tue, 26 Jan 2021 18:35:21 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cc7063d0-354e-4895-b57c-973685500939 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b47f643e-ef6f-429c-9f17-539af07de093 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '216' + - '765' status: code: 202 message: Accepted @@ -1959,13 +1959,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cc7063d0-354e-4895-b57c-973685500939 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b47f643e-ef6f-429c-9f17-539af07de093 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:09:48Z", - "lastUpdatedDateTime": "2020-11-16T19:09:52Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:35:20Z", + "lastUpdatedDateTime": "2021-01-26T18:35:25Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": @@ -2325,19 +2325,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 445d0a1f-8858-4bb5-92c3-902f3123eda4 + - 14e81529-8769-44d2-bc4a-4fa19dcb14d6 content-length: - '25475' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:09:53 GMT + - Tue, 26 Jan 2021 18:35:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '41' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml index 4ddf1dfeb215..cac45a8056fa 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml @@ -31802,7 +31802,7 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: @@ -31810,19 +31810,19 @@ interactions: string: '' headers: apim-request-id: - - 35a8718c-5ec7-481d-85ea-90f7c40946a3 + - be14ac76-86a1-4fdc-9f4e-d6c13049066f content-length: - '0' date: - - Mon, 16 Nov 2020 19:10:03 GMT + - Tue, 26 Jan 2021 18:26:46 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/35a8718c-5ec7-481d-85ea-90f7c40946a3 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/be14ac76-86a1-4fdc-9f4e-d6c13049066f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '461' + - '470' status: code: 202 message: Accepted @@ -31836,13 +31836,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/35a8718c-5ec7-481d-85ea-90f7c40946a3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/be14ac76-86a1-4fdc-9f4e-d6c13049066f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:10:04Z", - "lastUpdatedDateTime": "2020-11-16T19:10:07Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:26:46Z", + "lastUpdatedDateTime": "2021-01-26T18:26:48Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -31880,19 +31880,19 @@ interactions: 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - 945265e9-f87d-4c53-b3ec-0d4d6b1fb868 + - 21016ee3-5201-4337-8851-0dc647e3e610 content-length: - '2561' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:10:08 GMT + - Tue, 26 Jan 2021 18:26:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '38' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml index eb06ee4d4a89..7923c3bb9c07 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml @@ -8,20 +8,20 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 6f7ec35a-461b-4acc-851b-cee042773b97 + apim-request-id: 61b63053-6dbd-4c0d-8179-402a85292659 content-length: '0' - date: Mon, 16 Nov 2020 19:11:00 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/6f7ec35a-461b-4acc-851b-cee042773b97 + date: Tue, 26 Jan 2021 18:18:33 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/61b63053-6dbd-4c0d-8179-402a85292659 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '215' + x-envoy-upstream-service-time: '204' status: code: 202 message: Accepted @@ -30,13 +30,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/6f7ec35a-461b-4acc-851b-cee042773b97 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/61b63053-6dbd-4c0d-8179-402a85292659 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:11:01Z", - "lastUpdatedDateTime": "2020-11-16T19:11:02Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:18:34Z", + "lastUpdatedDateTime": "2021-01-26T18:18:35Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -77,15 +77,15 @@ interactions: "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 7721abd9-11a6-4687-8533-c6daff2c5199 + apim-request-id: a1c7f2d5-a30e-4c9c-a11c-9f618fbc1b86 content-length: '2835' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:11:05 GMT + date: Tue, 26 Jan 2021 18:18:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '36' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/6f7ec35a-461b-4acc-851b-cee042773b97 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/61b63053-6dbd-4c0d-8179-402a85292659 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml index 48c9cb400a84..de6609ddcaf8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml @@ -1919,20 +1919,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 27c0de9d-de42-47c0-a279-72087a4b18f2 + apim-request-id: a158a944-6dc2-4249-b181-c40a0d86adf5 content-length: '0' - date: Mon, 16 Nov 2020 19:11:19 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/27c0de9d-de42-47c0-a279-72087a4b18f2 + date: Tue, 26 Jan 2021 18:40:08 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/a158a944-6dc2-4249-b181-c40a0d86adf5 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '99' + x-envoy-upstream-service-time: '112' status: code: 202 message: Accepted @@ -1941,13 +1941,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/27c0de9d-de42-47c0-a279-72087a4b18f2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/a158a944-6dc2-4249-b181-c40a0d86adf5 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:11:19Z", - "lastUpdatedDateTime": "2020-11-16T19:11:23Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:40:08Z", + "lastUpdatedDateTime": "2021-01-26T18:40:13Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": @@ -2306,15 +2306,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 21cd94ae-5d53-48eb-a5ef-e0beaca75f62 + apim-request-id: cc84f6aa-b390-44b3-bc67-ab593b26c966 content-length: '25475' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:11:24 GMT + date: Tue, 26 Jan 2021 18:40:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '25' + x-envoy-upstream-service-time: '41' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/27c0de9d-de42-47c0-a279-72087a4b18f2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/a158a944-6dc2-4249-b181-c40a0d86adf5 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml index 550494d37bb7..fdbd4a2ed3f0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml @@ -8,20 +8,20 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: f619d92d-4874-4045-915d-fa9a4a400a84 + apim-request-id: 659611b6-4ff7-420d-806f-5022662c6c5d content-length: '0' - date: Mon, 16 Nov 2020 19:11:33 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/f619d92d-4874-4045-915d-fa9a4a400a84 + date: Tue, 26 Jan 2021 18:28:25 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/659611b6-4ff7-420d-806f-5022662c6c5d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '537' + x-envoy-upstream-service-time: '518' status: code: 202 message: Accepted @@ -30,13 +30,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/f619d92d-4874-4045-915d-fa9a4a400a84 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/659611b6-4ff7-420d-806f-5022662c6c5d response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:11:34Z", - "lastUpdatedDateTime": "2020-11-16T19:11:36Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:28:25Z", + "lastUpdatedDateTime": "2021-01-26T18:28:29Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -73,15 +73,15 @@ interactions: 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 26bd92fb-d2d0-4e46-a12a-9973952521a3 + apim-request-id: 8133447c-1f53-4f2c-b022-a340b649f5e8 content-length: '2561' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:11:38 GMT + date: Tue, 26 Jan 2021 18:28:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/f619d92d-4874-4045-915d-fa9a4a400a84 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/659611b6-4ff7-420d-806f-5022662c6c5d version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml index b1673999267d..71410ebbea77 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true response: @@ -21,19 +21,19 @@ interactions: string: '' headers: apim-request-id: - - 629b6d9f-830e-4d68-99e0-1bafe25babb7 + - 19a72b79-24bd-477d-a8fb-e36b135038a7 content-length: - '0' date: - - Mon, 16 Nov 2020 19:12:39 GMT + - Tue, 26 Jan 2021 18:41:59 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/629b6d9f-830e-4d68-99e0-1bafe25babb7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/19a72b79-24bd-477d-a8fb-e36b135038a7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '91' + - '363' status: code: 202 message: Accepted @@ -47,13 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/629b6d9f-830e-4d68-99e0-1bafe25babb7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/19a72b79-24bd-477d-a8fb-e36b135038a7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:12:40Z", - "lastUpdatedDateTime": "2020-11-16T19:12:44Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:42:00Z", + "lastUpdatedDateTime": "2021-01-26T18:42:05Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": @@ -413,19 +413,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 9bd2e2be-c8c9-475e-b768-ccfe1b419158 + - d6af1ca5-67aa-4c72-b2d6-fe23c7cffc22 content-length: - '25475' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:12:45 GMT + - Tue, 26 Jan 2021 18:42:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '42' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml index bc5f50bd29ee..9d632a292218 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: @@ -21,19 +21,19 @@ interactions: string: '' headers: apim-request-id: - - 0e6e0f56-19f5-4303-99e4-0870bfd9ba1b + - 9e12b5f2-c671-46ed-b33f-1aa6b583f6c2 content-length: - '0' date: - - Mon, 16 Nov 2020 19:12:58 GMT + - Tue, 26 Jan 2021 18:20:06 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/0e6e0f56-19f5-4303-99e4-0870bfd9ba1b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/9e12b5f2-c671-46ed-b33f-1aa6b583f6c2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '395' + - '527' status: code: 202 message: Accepted @@ -47,13 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/0e6e0f56-19f5-4303-99e4-0870bfd9ba1b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/9e12b5f2-c671-46ed-b33f-1aa6b583f6c2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:12:58Z", - "lastUpdatedDateTime": "2020-11-16T19:13:01Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:20:07Z", + "lastUpdatedDateTime": "2021-01-26T18:20:09Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -95,19 +95,19 @@ interactions: 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 4e3e937a-3c19-4e04-9375-b8c2309d2462 + - e85f11d3-0813-4f70-9bdf-a216b1567874 content-length: - '2835' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:13:03 GMT + - Tue, 26 Jan 2021 18:20:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '80' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml index 3833c9eed2e5..1de941fa6ed9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: @@ -21,19 +21,19 @@ interactions: string: '' headers: apim-request-id: - - 8b14109a-56f1-4ffb-80ae-480f5b86a877 + - 14851d23-9326-4bc7-ad75-b8e96e1f2d56 content-length: - '0' date: - - Mon, 16 Nov 2020 19:13:05 GMT + - Tue, 26 Jan 2021 18:30:06 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8b14109a-56f1-4ffb-80ae-480f5b86a877 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/14851d23-9326-4bc7-ad75-b8e96e1f2d56 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '678' + - '754' status: code: 202 message: Accepted @@ -47,13 +47,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8b14109a-56f1-4ffb-80ae-480f5b86a877 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/14851d23-9326-4bc7-ad75-b8e96e1f2d56 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:13:05Z", - "lastUpdatedDateTime": "2020-11-16T19:13:07Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:30:06Z", + "lastUpdatedDateTime": "2021-01-26T18:30:10Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -91,19 +91,19 @@ interactions: 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - 19964352-acfe-43c3-b9ab-2379f7c0ed6d + - 9760ed82-b7ee-419b-8636-b49d14086892 content-length: - '2561' content-type: - application/json; charset=utf-8 date: - - Mon, 16 Nov 2020 19:13:10 GMT + - Tue, 26 Jan 2021 18:30:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '38' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml index ead31d7a3877..440c5964eaba 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml @@ -9,20 +9,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 8db67d3b-f762-4a83-9b6b-a6055fc8f908 + apim-request-id: 8ef7b152-64b0-4795-92f9-024ddcb3dc2e content-length: '0' - date: Mon, 16 Nov 2020 19:14:14 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8db67d3b-f762-4a83-9b6b-a6055fc8f908 + date: Tue, 26 Jan 2021 18:43:45 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8ef7b152-64b0-4795-92f9-024ddcb3dc2e strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '91' + x-envoy-upstream-service-time: '291' status: code: 202 message: Accepted @@ -31,13 +31,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8db67d3b-f762-4a83-9b6b-a6055fc8f908 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8ef7b152-64b0-4795-92f9-024ddcb3dc2e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:14:14Z", - "lastUpdatedDateTime": "2020-11-16T19:14:18Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:43:45Z", + "lastUpdatedDateTime": "2021-01-26T18:43:50Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": @@ -396,15 +396,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 494b496a-5861-4b06-a6b9-5ff807ae3b3a + apim-request-id: b909ed7a-c099-4097-bdb2-7106a118008c content-length: '25475' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:14:18 GMT + date: Tue, 26 Jan 2021 18:43:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '55' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8db67d3b-f762-4a83-9b6b-a6055fc8f908 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/8ef7b152-64b0-4795-92f9-024ddcb3dc2e version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml index f1defaabea73..f55d896c9dcf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml @@ -9,20 +9,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: bbef1146-31f4-422c-8538-75fa66029509 + apim-request-id: 1cd31914-408c-47eb-9b03-42abd6deab62 content-length: '0' - date: Mon, 16 Nov 2020 19:14:32 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/bbef1146-31f4-422c-8538-75fa66029509 + date: Tue, 26 Jan 2021 18:22:48 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/1cd31914-408c-47eb-9b03-42abd6deab62 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '213' + x-envoy-upstream-service-time: '395' status: code: 202 message: Accepted @@ -31,13 +31,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/bbef1146-31f4-422c-8538-75fa66029509 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/1cd31914-408c-47eb-9b03-42abd6deab62 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:14:32Z", - "lastUpdatedDateTime": "2020-11-16T19:14:35Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:22:48Z", + "lastUpdatedDateTime": "2021-01-26T18:22:51Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -78,15 +78,15 @@ interactions: "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 1655b35b-0988-4966-b046-8110786874ce + apim-request-id: 1c3d70cd-08ea-44e1-9127-ad517b5b8e67 content-length: '2835' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:14:37 GMT + date: Tue, 26 Jan 2021 18:22:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '40' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/bbef1146-31f4-422c-8538-75fa66029509 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/1cd31914-408c-47eb-9b03-42abd6deab62 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml index f8298792f9d9..1909d62d0ff0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml @@ -9,20 +9,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 877216a5-1ef2-4738-90df-7e5e0154256f + apim-request-id: af91952d-7f74-491b-8d65-5eae4be29452 content-length: '0' - date: Mon, 16 Nov 2020 19:14:38 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/877216a5-1ef2-4738-90df-7e5e0154256f + date: Tue, 26 Jan 2021 18:31:44 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/af91952d-7f74-491b-8d65-5eae4be29452 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '263' + x-envoy-upstream-service-time: '673' status: code: 202 message: Accepted @@ -31,13 +31,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/877216a5-1ef2-4738-90df-7e5e0154256f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/af91952d-7f74-491b-8d65-5eae4be29452 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-11-16T19:14:38Z", - "lastUpdatedDateTime": "2020-11-16T19:14:40Z", "analyzeResult": {"version": + string: '{"status": "succeeded", "createdDateTime": "2021-01-26T18:31:43Z", + "lastUpdatedDateTime": "2021-01-26T18:31:47Z", "analyzeResult": {"version": "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": @@ -53,7 +53,7 @@ interactions: "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": - 1, "confidence": 0.964}, "Items": {"type": "array", "valueArray": [{"type": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": @@ -74,15 +74,15 @@ interactions: 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 1b1296f7-e759-4a05-9a57-f2c7a9a8e2be + apim-request-id: 93f90c01-3dbe-4d44-9697-705aaa47fb0e content-length: '2561' content-type: application/json; charset=utf-8 - date: Mon, 16 Nov 2020 19:14:43 GMT + date: Tue, 26 Jan 2021 18:31:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '41' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/877216a5-1ef2-4738-90df-7e5e0154256f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/af91952d-7f74-491b-8d65-5eae4be29452 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py index 502515c8fb1a..cc18f4f35d91 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py @@ -227,7 +227,7 @@ def test_receipt_jpg(self, client): self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+19876543210') self.assertEqual(receipt.fields.get("Subtotal").value, 11.7) self.assertEqual(receipt.fields.get("Tax").value, 1.17) - # self.assertEqual(receipt.fields.get("Tip").value, 1.63) # FIXME: Service sees this as 463.0 + self.assertEqual(receipt.fields.get("Tip").value, 1.63) self.assertEqual(receipt.fields.get("Total").value, 14.5) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) @@ -252,8 +252,8 @@ def test_receipt_png(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Main Street Redmond, WA 98052') self.assertEqual(receipt.fields.get("MerchantName").value, 'Contoso Contoso') self.assertEqual(receipt.fields.get("Subtotal").value, 1098.99) - # self.assertEqual(receipt.fields.get("Tax").value, 104.4) # FIXME: Service not finding Tax - # self.assertEqual(receipt.fields.get("Total").value, 1203.39) # FIXME: Service sees Tax as Total + self.assertEqual(receipt.fields.get("Tax").value, 104.4) + self.assertEqual(receipt.fields.get("Total").value, 1203.39) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) self.assertEqual(receipt.page_range.first_page_number, 1) @@ -295,7 +295,7 @@ def test_receipt_multipage(self, client): self.assertEqual(receipt.fields.get("MerchantName").value, 'Bilbo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') self.assertEqual(receipt.fields.get("Subtotal").value, 300.0) - # self.assertEqual(receipt.fields.get("Total").value, 430.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Total").value, 430.0) self.assertEqual(receipt.page_range.first_page_number, 1) self.assertEqual(receipt.page_range.last_page_number, 1) self.assertFormPagesHasValues(receipt.pages) @@ -306,8 +306,8 @@ def test_receipt_multipage(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA') self.assertEqual(receipt.fields.get("MerchantName").value, 'Frodo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') - # self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) # FIXME: Service returning wrong value - # self.assertEqual(receipt.fields.get("Total").value, 1000.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) + self.assertEqual(receipt.fields.get("Total").value, 1000.0) self.assertEqual(receipt.page_range.first_page_number, 3) self.assertEqual(receipt.page_range.last_page_number, 3) self.assertFormPagesHasValues(receipt.pages) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py index c8ae8a5303e4..7128494bad6a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py @@ -253,7 +253,7 @@ async def test_receipt_jpg(self, client): self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+19876543210') self.assertEqual(receipt.fields.get("Subtotal").value, 11.7) self.assertEqual(receipt.fields.get("Tax").value, 1.17) - # self.assertEqual(receipt.fields.get("Tip").value, 1.63) # FIXME: Service sees this as 463.0 + self.assertEqual(receipt.fields.get("Tip").value, 1.63) self.assertEqual(receipt.fields.get("Total").value, 14.5) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) @@ -279,8 +279,8 @@ async def test_receipt_png(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Main Street Redmond, WA 98052') self.assertEqual(receipt.fields.get("MerchantName").value, 'Contoso Contoso') self.assertEqual(receipt.fields.get("Subtotal").value, 1098.99) - # self.assertEqual(receipt.fields.get("Tax").value, 104.4) # FIXME: Service not finding Tax - # self.assertEqual(receipt.fields.get("Total").value, 1203.39) # FIXME: Service sees Tax as Total + self.assertEqual(receipt.fields.get("Tax").value, 104.4) + self.assertEqual(receipt.fields.get("Total").value, 1203.39) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) self.assertEqual(receipt.page_range.first_page_number, 1) @@ -323,7 +323,7 @@ async def test_receipt_multipage(self, client): self.assertEqual(receipt.fields.get("MerchantName").value, 'Bilbo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') self.assertEqual(receipt.fields.get("Subtotal").value, 300.0) - # self.assertEqual(receipt.fields.get("Total").value, 430.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Total").value, 430.0) self.assertEqual(receipt.page_range.first_page_number, 1) self.assertEqual(receipt.page_range.last_page_number, 1) self.assertFormPagesHasValues(receipt.pages) @@ -334,8 +334,8 @@ async def test_receipt_multipage(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA') self.assertEqual(receipt.fields.get("MerchantName").value, 'Frodo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') - # self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) # FIXME: Service returning wrong value - # self.assertEqual(receipt.fields.get("Total").value, 1000.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) + self.assertEqual(receipt.fields.get("Total").value, 1000.0) self.assertEqual(receipt.page_range.first_page_number, 3) self.assertEqual(receipt.page_range.last_page_number, 3) self.assertFormPagesHasValues(receipt.pages) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py index 2945a8fa7036..4f37e04c2197 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py @@ -185,7 +185,7 @@ def test_receipt_url_jpg(self, client): self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+19876543210') self.assertEqual(receipt.fields.get("Subtotal").value, 11.7) self.assertEqual(receipt.fields.get("Tax").value, 1.17) - # self.assertEqual(receipt.fields.get("Tip").value, 1.63) # FIXME: Service sees this as 463.0 + self.assertEqual(receipt.fields.get("Tip").value, 1.63) self.assertEqual(receipt.fields.get("Total").value, 14.5) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) @@ -209,8 +209,8 @@ def test_receipt_url_png(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Main Street Redmond, WA 98052') self.assertEqual(receipt.fields.get("MerchantName").value, 'Contoso Contoso') self.assertEqual(receipt.fields.get("Subtotal").value, 1098.99) - # self.assertEqual(receipt.fields.get("Tax").value, 104.4) # FIXME: Service not finding Tax - # self.assertEqual(receipt.fields.get("Total").value, 1203.39) # FIXME: Service sees Tax as Total + self.assertEqual(receipt.fields.get("Tax").value, 104.4) + self.assertEqual(receipt.fields.get("Total").value, 1203.39) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) self.assertEqual(receipt.page_range.first_page_number, 1) @@ -233,7 +233,7 @@ def test_receipt_multipage_url(self, client): self.assertEqual(receipt.fields.get("MerchantName").value, 'Bilbo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') self.assertEqual(receipt.fields.get("Subtotal").value, 300.0) - # self.assertEqual(receipt.fields.get("Total").value, 430.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Total").value, 430.0) self.assertEqual(receipt.page_range.first_page_number, 1) self.assertEqual(receipt.page_range.last_page_number, 1) self.assertFormPagesHasValues(receipt.pages) @@ -244,8 +244,8 @@ def test_receipt_multipage_url(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA') self.assertEqual(receipt.fields.get("MerchantName").value, 'Frodo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') - # self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) # FIXME: Service returning wrong value - # self.assertEqual(receipt.fields.get("Total").value, 1000.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) + self.assertEqual(receipt.fields.get("Total").value, 1000.0) self.assertEqual(receipt.page_range.first_page_number, 3) self.assertEqual(receipt.page_range.last_page_number, 3) self.assertFormPagesHasValues(receipt.pages) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py index fe5663b2b7e2..0b5b9fa31307 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py @@ -216,7 +216,7 @@ async def test_receipt_url_jpg(self, client): self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+19876543210') self.assertEqual(receipt.fields.get("Subtotal").value, 11.7) self.assertEqual(receipt.fields.get("Tax").value, 1.17) - # self.assertEqual(receipt.fields.get("Tip").value, 1.63) # FIXME: Service sees this as 463.0 + self.assertEqual(receipt.fields.get("Tip").value, 1.63) self.assertEqual(receipt.fields.get("Total").value, 14.5) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) @@ -241,8 +241,8 @@ async def test_receipt_url_png(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Main Street Redmond, WA 98052') self.assertEqual(receipt.fields.get("MerchantName").value, 'Contoso Contoso') self.assertEqual(receipt.fields.get("Subtotal").value, 1098.99) - # self.assertEqual(receipt.fields.get("Tax").value, 104.4) # FIXME: Service not finding Tax - # self.assertEqual(receipt.fields.get("Total").value, 1203.39) # FIXME: Service sees Tax as Total + self.assertEqual(receipt.fields.get("Tax").value, 104.4) + self.assertEqual(receipt.fields.get("Total").value, 1203.39) self.assertEqual(receipt.fields.get("TransactionDate").value, date(year=2019, month=6, day=10)) self.assertEqual(receipt.fields.get("TransactionTime").value, time(hour=13, minute=59, second=0)) self.assertEqual(receipt.page_range.first_page_number, 1) @@ -266,7 +266,7 @@ async def test_receipt_multipage_url(self, client): self.assertEqual(receipt.fields.get("MerchantName").value, 'Bilbo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') self.assertEqual(receipt.fields.get("Subtotal").value, 300.0) - # self.assertEqual(receipt.fields.get("Total").value, 430.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Total").value, 430.0) self.assertEqual(receipt.page_range.first_page_number, 1) self.assertEqual(receipt.page_range.last_page_number, 1) self.assertFormPagesHasValues(receipt.pages) @@ -277,8 +277,8 @@ async def test_receipt_multipage_url(self, client): self.assertEqual(receipt.fields.get("MerchantAddress").value, '123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA') self.assertEqual(receipt.fields.get("MerchantName").value, 'Frodo Baggins') self.assertEqual(receipt.fields.get("MerchantPhoneNumber").value, '+15555555555') - # self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) # FIXME: Service returning wrong value - # self.assertEqual(receipt.fields.get("Total").value, 1000.0) # FIXME: Service not seeing Total + self.assertEqual(receipt.fields.get("Subtotal").value, 3000.0) + self.assertEqual(receipt.fields.get("Total").value, 1000.0) self.assertEqual(receipt.page_range.first_page_number, 3) self.assertEqual(receipt.page_range.last_page_number, 3) self.assertFormPagesHasValues(receipt.pages)