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] unskip custom form url tests #17125

Merged
merged 1 commit into from
Mar 5, 2021
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
@@ -1,6 +1,6 @@
interactions:
- request:
body: 'b''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders":
body: 'b''{"source": "container_sas_url", "sourceFilter": {"prefix": "", "includeSubFolders":
false}, "useLabelFile": true}'''
headers:
Accept:
Expand All @@ -10,31 +10,31 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '287'
- '275'
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models
response:
body:
string: ''
headers:
apim-request-id:
- 5df06915-167a-4c1b-8e46-c193560d60d5
- 21140307-8359-4aab-8f7d-e53c3eb94896
content-length:
- '0'
date:
- Fri, 30 Oct 2020 00:56:57 GMT
- Fri, 05 Mar 2021 17:28:08 GMT
location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '39'
- '467'
status:
code: 201
message: Created
Expand All @@ -48,14 +48,14 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131?includeKeys=true
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a?includeKeys=true
response:
body:
string: '{"modelInfo": {"modelId": "e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131", "attributes":
{"isComposed": false}, "status": "ready", "createdDateTime": "2020-10-30T00:56:57Z",
"lastUpdatedDateTime": "2020-10-30T00:57:00Z"}, "trainResult": {"averageModelAccuracy":
string: '{"modelInfo": {"modelId": "fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a", "attributes":
{"isComposed": false}, "status": "ready", "createdDateTime": "2021-03-05T17:28:08Z",
"lastUpdatedDateTime": "2021-03-05T17:28:11Z"}, "trainResult": {"averageModelAccuracy":
0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status":
"succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"},
{"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName":
Expand All @@ -72,19 +72,19 @@ interactions:
"accuracy": 1.0}], "errors": []}}'
headers:
apim-request-id:
- c16583cf-202f-4bdb-aec9-4e23001cc585
- 7ff79e2c-6ad7-4cce-9bdb-479c8a6d1fdc
content-length:
- '1218'
content-type:
- application/json; charset=utf-8
date:
- Fri, 30 Oct 2020 00:57:02 GMT
- Fri, 05 Mar 2021 17:28:13 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '19'
- '26'
status:
code: 200
message: OK
Expand All @@ -102,66 +102,31 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyze?includeTextDetails=false
response:
body:
string: ''
headers:
apim-request-id:
- ae05a937-8068-4917-8218-0591a50a4475
content-length:
- '0'
date:
- Fri, 30 Oct 2020 00:57:02 GMT
operation-location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyzeresults/4d4e4295-abfd-47e9-a39b-4d9f1f4faead
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '46'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e31c63b0-4e5b-42d9-b7b6-ebf45aa6e131/analyzeresults/4d4e4295-abfd-47e9-a39b-4d9f1f4faead
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/custom/models/fdeb65ad-0e6c-49c4-a162-6fc4c1c4d36a/analyze?includeTextDetails=false
response:
body:
string: '{"status": "failed", "createdDateTime": "2020-10-30T00:57:03Z", "lastUpdatedDateTime":
"2020-10-30T00:57:03Z", "analyzeResult": {"version": "2.1.0", "errors": [{"code":
"2003", "message": "Failed to download image from input URL."}]}}'
string: '{"error": {"code": "1001", "message": "Could not retrieve user-provided
resource."}}'
headers:
apim-request-id:
- 37586360-9a70-4916-b8b1-26eaeaaba005
- aba87b49-2b23-4fa6-adb0-f36ce15bb8dd
content-length:
- '221'
- '80'
content-type:
- application/json; charset=utf-8
date:
- Fri, 30 Oct 2020 00:57:08 GMT
- Fri, 05 Mar 2021 17:28:15 GMT
ms-azure-ai-errorcode:
- UserResourceNotAvailable
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '19'
x-ms-cs-error-code:
- '2003'
- '2153'
status:
code: 200
message: OK
code: 400
message: Bad Request
version: 1
Loading