Skip to content

Commit a107e55

Browse files
[formrecognizer] test cleanup (Azure#18830)
* uncomment identity documents assertion * uncomment business card test assertions * update invoice test to use recommended sample
1 parent 1af733a commit a107e55

27 files changed

+2265
-1254
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_identity_documents.test_identity_document_jpg.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ interactions:
2222
string: ''
2323
headers:
2424
apim-request-id:
25-
- 766914ac-f90e-46cb-aa14-802ce731bc0b
25+
- 92f2dbe8-bd11-4b1b-85bd-70a6dead2e50
2626
content-length:
2727
- '0'
2828
date:
29-
- Tue, 11 May 2021 02:15:55 GMT
29+
- Thu, 20 May 2021 16:19:18 GMT
3030
operation-location:
31-
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/766914ac-f90e-46cb-aa14-802ce731bc0b
31+
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/92f2dbe8-bd11-4b1b-85bd-70a6dead2e50
3232
strict-transport-security:
3333
- max-age=31536000; includeSubDomains; preload
3434
x-content-type-options:
3535
- nosniff
3636
x-envoy-upstream-service-time:
37-
- '80'
37+
- '93'
3838
status:
3939
code: 202
4040
message: Accepted
@@ -50,11 +50,11 @@ interactions:
5050
User-Agent:
5151
- azsdk-python-ai-formrecognizer/3.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
5252
method: GET
53-
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/766914ac-f90e-46cb-aa14-802ce731bc0b
53+
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/92f2dbe8-bd11-4b1b-85bd-70a6dead2e50
5454
response:
5555
body:
56-
string: '{"status": "succeeded", "createdDateTime": "2021-05-11T02:15:55Z",
57-
"lastUpdatedDateTime": "2021-05-11T02:15:57Z", "analyzeResult": {"version":
56+
string: '{"status": "succeeded", "createdDateTime": "2021-05-20T16:19:18Z",
57+
"lastUpdatedDateTime": "2021-05-20T16:19:20Z", "analyzeResult": {"version":
5858
"2.1.0", "readResults": [{"page": 1, "angle": -0.2823, "width": 450, "height":
5959
294, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:idDocument:driverLicense",
6060
"docTypeConfidence": 0.995, "pageRange": [1, 1], "fields": {"Address": {"type":
@@ -78,19 +78,19 @@ interactions:
7878
232, 190, 233, 201, 226, 201], "page": 1, "confidence": 0.99}}}]}}'
7979
headers:
8080
apim-request-id:
81-
- 5a8700ad-44a8-435c-9b4c-86ea143380fd
81+
- e78a1d9a-514c-4d67-8dab-7bfd0e410188
8282
content-length:
8383
- '1606'
8484
content-type:
8585
- application/json; charset=utf-8
8686
date:
87-
- Tue, 11 May 2021 02:15:59 GMT
87+
- Thu, 20 May 2021 16:19:23 GMT
8888
strict-transport-security:
8989
- max-age=31536000; includeSubDomains; preload
9090
x-content-type-options:
9191
- nosniff
9292
x-envoy-upstream-service-time:
93-
- '17'
93+
- '27'
9494
status:
9595
code: 200
9696
message: OK

sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_identity_documents_async.test_identity_document_jpg.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ interactions:
1515
body:
1616
string: ''
1717
headers:
18-
apim-request-id: 47c96373-41b9-4e09-a904-8a96b611b350
18+
apim-request-id: 0568b327-d9f4-458c-ad65-697fcf8915f4
1919
content-length: '0'
20-
date: Tue, 11 May 2021 02:17:38 GMT
21-
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/47c96373-41b9-4e09-a904-8a96b611b350
20+
date: Thu, 20 May 2021 16:19:42 GMT
21+
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/0568b327-d9f4-458c-ad65-697fcf8915f4
2222
strict-transport-security: max-age=31536000; includeSubDomains; preload
2323
x-content-type-options: nosniff
24-
x-envoy-upstream-service-time: '160'
24+
x-envoy-upstream-service-time: '103'
2525
status:
2626
code: 202
2727
message: Accepted
@@ -32,11 +32,11 @@ interactions:
3232
User-Agent:
3333
- azsdk-python-ai-formrecognizer/3.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
3434
method: GET
35-
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/47c96373-41b9-4e09-a904-8a96b611b350
35+
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/0568b327-d9f4-458c-ad65-697fcf8915f4
3636
response:
3737
body:
38-
string: '{"status": "succeeded", "createdDateTime": "2021-05-11T02:17:38Z",
39-
"lastUpdatedDateTime": "2021-05-11T02:17:40Z", "analyzeResult": {"version":
38+
string: '{"status": "succeeded", "createdDateTime": "2021-05-20T16:19:43Z",
39+
"lastUpdatedDateTime": "2021-05-20T16:19:45Z", "analyzeResult": {"version":
4040
"2.1.0", "readResults": [{"page": 1, "angle": -0.2823, "width": 450, "height":
4141
294, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:idDocument:driverLicense",
4242
"docTypeConfidence": 0.995, "pageRange": [1, 1], "fields": {"Address": {"type":
@@ -59,15 +59,15 @@ interactions:
5959
{"type": "string", "valueString": "M", "text": "M", "boundingBox": [226, 190,
6060
232, 190, 233, 201, 226, 201], "page": 1, "confidence": 0.99}}}]}}'
6161
headers:
62-
apim-request-id: 6a846c69-bf82-491d-b66b-9bb542c902a4
62+
apim-request-id: 3e29641d-94fe-44bd-9785-6c8444b25eaf
6363
content-length: '1606'
6464
content-type: application/json; charset=utf-8
65-
date: Tue, 11 May 2021 02:17:42 GMT
65+
date: Thu, 20 May 2021 16:19:47 GMT
6666
strict-transport-security: max-age=31536000; includeSubDomains; preload
6767
x-content-type-options: nosniff
68-
x-envoy-upstream-service-time: '17'
68+
x-envoy-upstream-service-time: '23'
6969
status:
7070
code: 200
7171
message: OK
72-
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/47c96373-41b9-4e09-a904-8a96b611b350
72+
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/0568b327-d9f4-458c-ad65-697fcf8915f4
7373
version: 1

sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_identity_documents_from_url.test_identity_document_jpg.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ interactions:
2121
string: ''
2222
headers:
2323
apim-request-id:
24-
- ec0b77c5-d526-49da-a488-8ca5933398bd
24+
- d30277de-caa5-48c3-a79b-e4afc2f391c1
2525
content-length:
2626
- '0'
2727
date:
28-
- Tue, 11 May 2021 02:20:41 GMT
28+
- Thu, 20 May 2021 16:20:03 GMT
2929
operation-location:
30-
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/ec0b77c5-d526-49da-a488-8ca5933398bd
30+
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/d30277de-caa5-48c3-a79b-e4afc2f391c1
3131
strict-transport-security:
3232
- max-age=31536000; includeSubDomains; preload
3333
x-content-type-options:
3434
- nosniff
3535
x-envoy-upstream-service-time:
36-
- '795'
36+
- '935'
3737
status:
3838
code: 202
3939
message: Accepted
@@ -49,11 +49,11 @@ interactions:
4949
User-Agent:
5050
- azsdk-python-ai-formrecognizer/3.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
5151
method: GET
52-
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/ec0b77c5-d526-49da-a488-8ca5933398bd
52+
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/d30277de-caa5-48c3-a79b-e4afc2f391c1
5353
response:
5454
body:
55-
string: '{"status": "succeeded", "createdDateTime": "2021-05-11T02:20:41Z",
56-
"lastUpdatedDateTime": "2021-05-11T02:20:43Z", "analyzeResult": {"version":
55+
string: '{"status": "succeeded", "createdDateTime": "2021-05-20T16:20:03Z",
56+
"lastUpdatedDateTime": "2021-05-20T16:20:05Z", "analyzeResult": {"version":
5757
"2.1.0", "readResults": [{"page": 1, "angle": -0.2823, "width": 450, "height":
5858
294, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:idDocument:driverLicense",
5959
"docTypeConfidence": 0.995, "pageRange": [1, 1], "fields": {"Address": {"type":
@@ -77,19 +77,19 @@ interactions:
7777
232, 190, 233, 201, 226, 201], "page": 1, "confidence": 0.99}}}]}}'
7878
headers:
7979
apim-request-id:
80-
- fdcc52f6-b087-4ba4-9135-e77f885d829c
80+
- 39400dd8-39cc-4d10-b6a7-b24a198e2177
8181
content-length:
8282
- '1606'
8383
content-type:
8484
- application/json; charset=utf-8
8585
date:
86-
- Tue, 11 May 2021 02:20:45 GMT
86+
- Thu, 20 May 2021 16:20:07 GMT
8787
strict-transport-security:
8888
- max-age=31536000; includeSubDomains; preload
8989
x-content-type-options:
9090
- nosniff
9191
x-envoy-upstream-service-time:
92-
- '18'
92+
- '28'
9393
status:
9494
code: 200
9595
message: OK

sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_identity_documents_from_url_async.test_identity_document_jpg.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ interactions:
1616
body:
1717
string: ''
1818
headers:
19-
apim-request-id: f7c00ad4-fc91-472b-bf0a-702a603773fa
19+
apim-request-id: c4a31898-a94b-4275-a6ff-2fb78e7f2d55
2020
content-length: '0'
21-
date: Tue, 11 May 2021 02:24:31 GMT
22-
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/f7c00ad4-fc91-472b-bf0a-702a603773fa
21+
date: Thu, 20 May 2021 16:20:38 GMT
22+
operation-location: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/c4a31898-a94b-4275-a6ff-2fb78e7f2d55
2323
strict-transport-security: max-age=31536000; includeSubDomains; preload
2424
x-content-type-options: nosniff
25-
x-envoy-upstream-service-time: '679'
25+
x-envoy-upstream-service-time: '965'
2626
status:
2727
code: 202
2828
message: Accepted
@@ -33,11 +33,11 @@ interactions:
3333
User-Agent:
3434
- azsdk-python-ai-formrecognizer/3.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
3535
method: GET
36-
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/f7c00ad4-fc91-472b-bf0a-702a603773fa
36+
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/c4a31898-a94b-4275-a6ff-2fb78e7f2d55
3737
response:
3838
body:
39-
string: '{"status": "succeeded", "createdDateTime": "2021-05-11T02:24:31Z",
40-
"lastUpdatedDateTime": "2021-05-11T02:24:33Z", "analyzeResult": {"version":
39+
string: '{"status": "succeeded", "createdDateTime": "2021-05-20T16:20:38Z",
40+
"lastUpdatedDateTime": "2021-05-20T16:20:40Z", "analyzeResult": {"version":
4141
"2.1.0", "readResults": [{"page": 1, "angle": -0.2823, "width": 450, "height":
4242
294, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:idDocument:driverLicense",
4343
"docTypeConfidence": 0.995, "pageRange": [1, 1], "fields": {"Address": {"type":
@@ -60,15 +60,15 @@ interactions:
6060
{"type": "string", "valueString": "M", "text": "M", "boundingBox": [226, 190,
6161
232, 190, 233, 201, 226, 201], "page": 1, "confidence": 0.99}}}]}}'
6262
headers:
63-
apim-request-id: 71787411-e64c-42cf-b7b4-40e8b153da37
63+
apim-request-id: 15d42c00-53e6-43e0-917a-997e0c14fd3e
6464
content-length: '1606'
6565
content-type: application/json; charset=utf-8
66-
date: Tue, 11 May 2021 02:24:36 GMT
66+
date: Thu, 20 May 2021 16:20:43 GMT
6767
strict-transport-security: max-age=31536000; includeSubDomains; preload
6868
x-content-type-options: nosniff
69-
x-envoy-upstream-service-time: '22'
69+
x-envoy-upstream-service-time: '26'
7070
status:
7171
code: 200
7272
message: OK
73-
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/f7c00ad4-fc91-472b-bf0a-702a603773fa
73+
url: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/idDocument/analyzeResults/c4a31898-a94b-4275-a6ff-2fb78e7f2d55
7474
version: 1

0 commit comments

Comments
 (0)