-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
76 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
...e-ai-textanalytics/src/test/resources/session-records/detectLanguageDuplicateIdInput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.0-preview.1/languages?showStats=true", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-ai-textanalytics/1.0.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "aabc5399-ae00-4ead-8ead-bca8b1989d7d", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-envoy-upstream-service-time" : "4", | ||
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", | ||
"x-content-type-options" : "nosniff", | ||
"apim-request-id" : "54177f2c-6394-44d2-b2eb-a972ad56c0d3", | ||
"x-aml-ta-request-id" : "2eeef4d1-c228-4733-98b2-31b9c2fbbae1", | ||
"retry-after" : "0", | ||
"StatusCode" : "400", | ||
"Body" : "{\"error\":{\"code\":\"InvalidRequest\",\"innerError\":{\"code\":\"InvalidDocument\",\"message\":\"Request contains duplicated Ids. Make sure each document has a unique Id.\"},\"message\":\"Invalid document in request.\"}}", | ||
"Date" : "Sun, 15 Dec 2019 18:40:59 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.0-preview.1/languages", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-ai-textanalytics/1.0.0-beta.1 (11.0.4; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "aabc5399-ae00-4ead-8ead-bca8b1989d7d", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-envoy-upstream-service-time" : "4", | ||
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", | ||
"x-content-type-options" : "nosniff", | ||
"apim-request-id" : "54177f2c-6394-44d2-b2eb-a972ad56c0d3", | ||
"x-aml-ta-request-id" : "2eeef4d1-c228-4733-98b2-31b9c2fbbae1", | ||
"retry-after" : "0", | ||
"StatusCode" : "400", | ||
"Body" : "{\"error\":{\"code\":\"InvalidRequest\",\"innerError\":{\"code\":\"InvalidDocument\",\"message\":\"Request contains duplicated Ids. Make sure each document has a unique Id.\"},\"message\":\"Invalid document in request.\"}}", | ||
"Date" : "Sun, 15 Dec 2019 18:40:59 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} |
27 changes: 25 additions & 2 deletions
27
...e-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForFaultyText.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
{ | ||
"networkCallRecords" : [ ], | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.0-preview.1/entities/recognition/general", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-ai-textanalytics/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "ea8835bd-4259-4867-9c01-e1845882c1bf", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-envoy-upstream-service-time" : "29", | ||
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", | ||
"x-content-type-options" : "nosniff", | ||
"csp-billing-usage" : "CognitiveServices.TextAnalytics.BatchScoring=1", | ||
"apim-request-id" : "64334c9b-a767-419f-b5d0-cfb331a405e8", | ||
"x-aml-ta-request-id" : "84ca812c-7b19-48b3-b254-8b27ac149336", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"Body" : "{\"documents\":[{\"id\":\"0\",\"entities\":[]}],\"errors\":[],\"modelVersion\":\"2019-10-01\"}", | ||
"Date" : "Fri, 27 Dec 2019 22:10:43 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} | ||
} |
27 changes: 25 additions & 2 deletions
27
...i-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForFaultyText.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
{ | ||
"networkCallRecords" : [ ], | ||
"networkCallRecords" : [ { | ||
"Method" : "POST", | ||
"Uri" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.0-preview.1/entities/recognition/pii", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-ai-textanalytics/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", | ||
"x-ms-client-request-id" : "5e42a69b-f818-42d2-8720-25e6c136e0cc", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-envoy-upstream-service-time" : "26", | ||
"Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", | ||
"x-content-type-options" : "nosniff", | ||
"csp-billing-usage" : "CognitiveServices.TextAnalytics.BatchScoring=1", | ||
"apim-request-id" : "29e4f8de-9b8a-496f-bbf2-c3cbea8c0fff", | ||
"x-aml-ta-request-id" : "12f4043a-d75f-4516-bcaf-19d7b163c30d", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"Body" : "{\"documents\":[{\"id\":\"0\",\"entities\":[]}],\"errors\":[],\"modelVersion\":\"2019-10-01\"}", | ||
"Date" : "Fri, 27 Dec 2019 22:07:03 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters