Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formrecognizer] Test fixes #17299

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ interactions:
string: ''
headers:
apim-request-id:
- f1519c74-698b-4054-9470-903e9a12c8ac
- b5f7cdf5-9de9-4135-af0c-b4bf74df26ef
content-length:
- '0'
date:
- Mon, 01 Mar 2021 18:47:37 GMT
- Thu, 11 Mar 2021 23:12:40 GMT
operation-location:
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/f1519c74-698b-4054-9470-903e9a12c8ac
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/b5f7cdf5-9de9-4135-af0c-b4bf74df26ef
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '900'
- '114'
status:
code: 202
message: Accepted
Expand All @@ -50,11 +50,11 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/f1519c74-698b-4054-9470-903e9a12c8ac
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/b5f7cdf5-9de9-4135-af0c-b4bf74df26ef
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2021-03-01T18:47:37Z",
"lastUpdatedDateTime": "2021-03-01T18:47:41Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-11T23:12:40Z",
"lastUpdatedDateTime": "2021-03-11T23:12:44Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height":
2200, "unit": "pixel", "language": "de", "lines": [{"boundingBox": [136, 139,
351, 138, 351, 166, 136, 166], "text": "Purchase Order", "appearance": {"style":
Expand Down Expand Up @@ -409,19 +409,19 @@ interactions:
"boundingBox": [1058, 1563, 1555, 1563, 1555, 1707, 1058, 1707]}]}]}}'
headers:
apim-request-id:
- c88f709e-df94-4e00-91bf-b9fcde7d22d3
- af63c051-8872-4cde-b01a-b18b12c86210
content-length:
- '24449'
content-type:
- application/json; charset=utf-8
date:
- Mon, 01 Mar 2021 18:47:43 GMT
- Thu, 11 Mar 2021 23:12:45 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '41'
- '17'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ interactions:
body:
string: ''
headers:
apim-request-id: 782ae0c2-0a1d-476f-9870-7ed206734b19
apim-request-id: 01f39fc2-8131-4ced-aa23-6f316fcb6804
content-length: '0'
date: Wed, 03 Mar 2021 19:28:03 GMT
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/782ae0c2-0a1d-476f-9870-7ed206734b19
date: Thu, 11 Mar 2021 23:11:45 GMT
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/01f39fc2-8131-4ced-aa23-6f316fcb6804
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '115'
x-envoy-upstream-service-time: '107'
status:
code: 202
message: Accepted
Expand All @@ -32,11 +32,11 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/782ae0c2-0a1d-476f-9870-7ed206734b19
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/01f39fc2-8131-4ced-aa23-6f316fcb6804
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2021-03-03T19:28:03Z",
"lastUpdatedDateTime": "2021-03-03T19:28:07Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-11T23:11:46Z",
"lastUpdatedDateTime": "2021-03-11T23:11:49Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height":
2200, "unit": "pixel", "language": "de", "lines": [{"boundingBox": [136, 139,
351, 138, 351, 166, 136, 166], "text": "Purchase Order", "appearance": {"style":
Expand Down Expand Up @@ -390,15 +390,15 @@ interactions:
1663, 1543, 1663, 1543, 1708, 1308, 1707], "elements": ["#/readResults/0/lines/47/words/0"]}],
"boundingBox": [1058, 1563, 1555, 1563, 1555, 1707, 1058, 1707]}]}]}}'
headers:
apim-request-id: 5dd28a4d-8ef9-467c-85f8-5634b1714981
apim-request-id: d72b6359-0d31-4bd3-b06f-306c2ecd6a73
content-length: '24449'
content-type: application/json; charset=utf-8
date: Wed, 03 Mar 2021 19:28:08 GMT
date: Thu, 11 Mar 2021 23:11:51 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: '22'
status:
code: 200
message: OK
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/782ae0c2-0a1d-476f-9870-7ed206734b19
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/01f39fc2-8131-4ced-aa23-6f316fcb6804
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '213'
- '223'
Content-Type:
- application/json
User-Agent:
Expand All @@ -21,19 +21,19 @@ interactions:
string: ''
headers:
apim-request-id:
- cb6b1625-48d3-4000-9820-54bf9a7f866f
- 65d1fabf-2997-4968-9599-84321346785a
content-length:
- '0'
date:
- Mon, 01 Mar 2021 18:41:18 GMT
- Thu, 11 Mar 2021 23:12:20 GMT
operation-location:
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/cb6b1625-48d3-4000-9820-54bf9a7f866f
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/65d1fabf-2997-4968-9599-84321346785a
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '174'
- '607'
status:
code: 202
message: Accepted
Expand All @@ -49,11 +49,11 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/cb6b1625-48d3-4000-9820-54bf9a7f866f
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/65d1fabf-2997-4968-9599-84321346785a
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2021-03-01T18:41:18Z",
"lastUpdatedDateTime": "2021-03-01T18:41:21Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-11T23:12:21Z",
"lastUpdatedDateTime": "2021-03-11T23:12:24Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height":
2200, "unit": "pixel", "language": "de", "lines": [{"boundingBox": [136, 139,
351, 138, 351, 166, 136, 166], "text": "Purchase Order", "appearance": {"style":
Expand Down Expand Up @@ -408,19 +408,19 @@ interactions:
"boundingBox": [1058, 1563, 1555, 1563, 1555, 1707, 1058, 1707]}]}]}}'
headers:
apim-request-id:
- 35c7cc3a-554a-45bc-b88a-14ee27585736
- 5769ae4f-6c2c-4ff1-9b33-d0a91b22b3ae
content-length:
- '24449'
content-type:
- application/json; charset=utf-8
date:
- Mon, 01 Mar 2021 18:41:23 GMT
- Thu, 11 Mar 2021 23:12:25 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '21'
- '26'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
Accept:
- application/json
Content-Length:
- '213'
- '223'
Content-Type:
- application/json
User-Agent:
Expand All @@ -16,13 +16,13 @@ interactions:
body:
string: ''
headers:
apim-request-id: 94008e34-4534-4ebc-a18c-afcba66eaede
apim-request-id: bdf7c84f-8df5-4dd8-a205-0606943dc528
content-length: '0'
date: Wed, 03 Mar 2021 19:31:46 GMT
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/94008e34-4534-4ebc-a18c-afcba66eaede
date: Thu, 11 Mar 2021 23:12:04 GMT
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/bdf7c84f-8df5-4dd8-a205-0606943dc528
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '304'
x-envoy-upstream-service-time: '629'
status:
code: 202
message: Accepted
Expand All @@ -33,11 +33,11 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/94008e34-4534-4ebc-a18c-afcba66eaede
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/bdf7c84f-8df5-4dd8-a205-0606943dc528
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2021-03-03T19:31:47Z",
"lastUpdatedDateTime": "2021-03-03T19:31:51Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-11T23:12:04Z",
"lastUpdatedDateTime": "2021-03-11T23:12:07Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height":
2200, "unit": "pixel", "language": "de", "lines": [{"boundingBox": [136, 139,
351, 138, 351, 166, 136, 166], "text": "Purchase Order", "appearance": {"style":
Expand Down Expand Up @@ -391,15 +391,15 @@ interactions:
1663, 1543, 1663, 1543, 1708, 1308, 1707], "elements": ["#/readResults/0/lines/47/words/0"]}],
"boundingBox": [1058, 1563, 1555, 1563, 1555, 1707, 1058, 1707]}]}]}}'
headers:
apim-request-id: 7b123bfd-3c4f-44b7-9ed8-752b3b4df625
apim-request-id: 8910a09a-daaa-403a-b514-4f21d2c8f7c9
content-length: '24449'
content-type: application/json; charset=utf-8
date: Wed, 03 Mar 2021 19:31:51 GMT
date: Thu, 11 Mar 2021 23:12:09 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '15'
x-envoy-upstream-service-time: '28'
status:
code: 200
message: OK
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/94008e34-4534-4ebc-a18c-afcba66eaede
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/layout/analyzeResults/bdf7c84f-8df5-4dd8-a205-0606943dc528
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -1368,19 +1368,19 @@ interactions:
string: ''
headers:
apim-request-id:
- b5b2a7ec-5d30-4c0f-966c-3ef3c14ac505
- 87230a17-8191-4135-8306-5491491fe930
content-length:
- '0'
date:
- Mon, 01 Mar 2021 18:57:36 GMT
- Thu, 11 Mar 2021 23:15:00 GMT
operation-location:
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/b5b2a7ec-5d30-4c0f-966c-3ef3c14ac505
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/87230a17-8191-4135-8306-5491491fe930
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '71'
- '48'
status:
code: 202
message: Accepted
Expand All @@ -1396,26 +1396,26 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/b5b2a7ec-5d30-4c0f-966c-3ef3c14ac505
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/87230a17-8191-4135-8306-5491491fe930
response:
body:
string: '{"status": "running", "createdDateTime": "2021-03-01T18:57:36Z", "lastUpdatedDateTime":
"2021-03-01T18:57:36Z"}'
string: '{"status": "running", "createdDateTime": "2021-03-11T23:15:00Z", "lastUpdatedDateTime":
"2021-03-11T23:15:01Z"}'
headers:
apim-request-id:
- d0afaa59-30d9-4cd5-949c-4dab8d62ff1c
- 79e69e81-5304-4dab-807e-122e3ef801c6
content-length:
- '106'
content-type:
- application/json; charset=utf-8
date:
- Mon, 01 Mar 2021 18:57:40 GMT
- Thu, 11 Mar 2021 23:15:04 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '34'
- '11'
status:
code: 200
message: OK
Expand All @@ -1431,11 +1431,11 @@ interactions:
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/b5b2a7ec-5d30-4c0f-966c-3ef3c14ac505
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/invoice/analyzeResults/87230a17-8191-4135-8306-5491491fe930
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2021-03-01T18:57:36Z",
"lastUpdatedDateTime": "2021-03-01T18:57:43Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-11T23:15:00Z",
"lastUpdatedDateTime": "2021-03-11T23:15:06Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height":
2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": [{"rows": 3,
"columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice
Expand All @@ -1458,41 +1458,50 @@ interactions:
"documentResults": [{"docType": "prebuilt:invoice", "pageRange": [1, 1], "fields":
{"CustomerAddress": {"type": "string", "valueString": "1020 Enterprise Way
Sunnayvale, CA 87659", "text": "1020 Enterprise Way Sunnayvale, CA 87659",
"boundingBox": [1036.1, 337.1, 1333.2, 338.1, 1333, 408.4, 1035.9, 407.5],
"page": 1, "confidence": 0.992}, "CustomerAddressRecipient": {"type": "string",
"valueString": "Microsoft", "text": "Microsoft", "boundingBox": [1035, 299,
1164, 300, 1165, 326, 1036, 327], "page": 1, "confidence": 0.99}, "CustomerName":
{"type": "string", "valueString": "Microsoft", "text": "Microsoft", "boundingBox":
[1035, 299, 1164, 300, 1165, 326, 1036, 327], "page": 1, "confidence": 0.99},
"boundingBox": [1038, 338, 1331.1, 338.9, 1330.9, 408.4, 1037.8, 407.5], "page":
1, "confidence": 0.955}, "CustomerAddressRecipient": {"type": "string", "valueString":
"Microsoft", "text": "Microsoft", "boundingBox": [1033, 299, 1164, 300, 1165,
326, 1033, 327], "page": 1, "confidence": 0.981}, "CustomerName": {"type":
"string", "valueString": "Microsoft", "text": "Microsoft", "boundingBox":
[1033, 299, 1164, 300, 1165, 326, 1033, 327], "page": 1, "confidence": 0.981},
"DueDate": {"type": "date", "valueDate": "2017-06-24", "text": "6/24/2017",
"boundingBox": [668, 679, 792, 679, 792, 705, 667, 705], "page": 1, "confidence":
0.989}, "InvoiceDate": {"type": "date", "valueDate": "2017-06-18", "text":
"6/18/2017", "boundingBox": [387, 680, 510, 680, 510, 705, 387, 705], "page":
1, "confidence": 0.926}, "InvoiceId": {"type": "string", "valueString": "34278587",
"text": "34278587", "boundingBox": [105, 680, 229, 680, 230, 705, 106, 705],
"page": 1, "confidence": 0.795}, "InvoiceTotal": {"type": "number", "valueNumber":
56651.49, "text": "$56,651.49", "boundingBox": [1075, 680, 1224, 680, 1225,
705, 1075, 707], "page": 1, "confidence": 0.505}, "VendorAddress": {"type":
"boundingBox": [668, 679, 789, 679, 790, 705, 667, 705], "page": 1, "confidence":
0.981}, "InvoiceDate": {"type": "date", "valueDate": "2017-06-18", "text":
"6/18/2017", "boundingBox": [387, 680, 508, 680, 507, 705, 387, 705], "page":
1, "confidence": 0.962}, "InvoiceId": {"type": "string", "valueString": "34278587",
"text": "34278587", "boundingBox": [107, 680, 227, 680, 227, 705, 107, 705],
"page": 1, "confidence": 0.963}, "Items": {"type": "array", "valueArray":
[{"type": "object", "valueObject": {"Amount": {"type": "number", "valueNumber":
56651.49, "text": "$56,651.49", "boundingBox": [1075, 680, 1213, 680, 1213,
706, 1075, 707], "page": 1, "confidence": 0.801}, "Date": {"type": "date",
"valueDate": "2017-06-18", "text": "6/18/2017", "boundingBox": [387, 680,
508, 680, 507, 705, 387, 705], "page": 1, "confidence": 0.436}, "ProductCode":
{"type": "string", "valueString": "34278587", "text": "34278587", "boundingBox":
[107, 680, 227, 680, 227, 705, 107, 705], "page": 1, "confidence": 0.665},
"Tax": {"type": "number", "text": "PT", "boundingBox": [1238, 679, 1277, 679,
1277, 704, 1238, 705], "page": 1, "confidence": 0.462}}, "text": "34278587
6/18/2017 6/24/2017 $56,651.49 PT", "boundingBox": [107, 679, 1277, 679, 1277,
707, 107, 707], "page": 1, "confidence": 0.885}]}, "VendorAddress": {"type":
"string", "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", "text":
"1 Redmond way Suite 6000 Redmond, WA 99243", "boundingBox": [158, 337, 433,
337, 433, 441, 158, 441], "page": 1, "confidence": 0.946}, "VendorName": {"type":
"1 Redmond way Suite 6000 Redmond, WA 99243", "boundingBox": [159, 337, 429,
337, 429, 441, 159, 441], "page": 1, "confidence": 0.953}, "VendorName": {"type":
"string", "valueString": "Contoso", "text": "Contoso", "boundingBox": [106,
232, 288, 234, 288, 274, 105, 274], "page": 1, "confidence": 0.87}}}]}}'
232, 284, 234, 283, 274, 105, 274], "page": 1, "confidence": 0.981}}}]}}'
headers:
apim-request-id:
- 7c5315af-6c58-4824-9cf5-171ebf9bf4d1
- e7a59432-7ce1-4ceb-a60c-7d81e816948b
content-length:
- '3040'
- '3649'
content-type:
- application/json; charset=utf-8
date:
- Mon, 01 Mar 2021 18:57:46 GMT
- Thu, 11 Mar 2021 23:15:10 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '38'
- '20'
status:
code: 200
message: OK
Expand Down
Loading