Skip to content

Commit

Permalink
[tests] add sync client test recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
MIDDLEEAST\v-moshaban committed Mar 30, 2021
1 parent f610d0d commit f2b0275
Show file tree
Hide file tree
Showing 11 changed files with 10,466 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
interactions:
- request:
body: null
headers:
Accept:
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-blob/12.8.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Mon, 29 Mar 2021 20:59:37 GMT
x-ms-version:
- '2020-06-12'
method: PUT
uri: https://redacted.blob.core.windows.net/srce6de752c-8a1c-4fe4-a523-4d492958104c?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 29 Mar 2021 20:59:38 GMT
etag:
- '"0x8D8F2F5910C92BE"'
last-modified:
- Mon, 29 Mar 2021 20:59:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-06-12'
status:
code: 201
message: Created
- request:
body: This is some text
headers:
Accept:
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '17'
Content-Type:
- application/octet-stream
If-None-Match:
- '*'
User-Agent:
- azsdk-python-storage-blob/12.8.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-blob-type:
- BlockBlob
x-ms-date:
- Mon, 29 Mar 2021 20:59:38 GMT
x-ms-encryption-algorithm:
- AES256
x-ms-version:
- '2020-06-12'
method: PUT
uri: https://redacted.blob.core.windows.net/srce6de752c-8a1c-4fe4-a523-4d492958104c/e4e78395-07d7-413c-82c6-a69480171dab.txt
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- lyFPYyJLwenMTaN3qtznxw==
date:
- Mon, 29 Mar 2021 20:59:38 GMT
etag:
- '"0x8D8F2F5913303C0"'
last-modified:
- Mon, 29 Mar 2021 20:59:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-content-crc64:
- SqmNKeH10UQ=
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-06-12'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-blob/12.8.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
x-ms-date:
- Mon, 29 Mar 2021 20:59:39 GMT
x-ms-version:
- '2020-06-12'
method: PUT
uri: https://redacted.blob.core.windows.net/target48f38308-b24d-4eb0-9095-36ab807ab56d?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 29 Mar 2021 20:59:39 GMT
etag:
- '"0x8D8F2F591CC68E7"'
last-modified:
- Mon, 29 Mar 2021 20:59:39 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-06-12'
status:
code: 201
message: Created
- request:
body: '{"inputs": [{"source": {"sourceUrl": "https://redacted.blob.core.windows.net/srce6de752c-8a1c-4fe4-a523-4d492958104c?se=end&sp=rl&sv=2020-06-12&sr=c&sig=fake_token_value",
"filter": {}}, "targets": [{"targetUrl": "https://redacted.blob.core.windows.net/target48f38308-b24d-4eb0-9095-36ab807ab56d?se=end&sp=racwdl&sv=2020-06-12&sr=c&sig=fake_token_value",
"language": "es"}]}]}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '494'
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-translatortext/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://redacted.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1/batches
response:
body:
string: ''
headers:
apim-request-id:
- b3cbb76b-94ca-4a6d-b3fd-7b0049d3cbcc
content-length:
- '0'
date:
- Mon, 29 Mar 2021 20:59:39 GMT
operation-location:
- https://redacted.cognitiveservices.azure.com/translatortext/batch/v1.0-preview.1/batches/419393a2-6d39-416c-904c-824b8da06435
set-cookie:
- ARRAffinity=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;Secure;Domain=doctrans.northeu.microsofttranslator.com
- ARRAffinitySameSite=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;SameSite=None;Secure;Domain=doctrans.northeu.microsofttranslator.com
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-powered-by:
- ASP.NET
x-requestid:
- b3cbb76b-94ca-4a6d-b3fd-7b0049d3cbcc
status:
code: 202
message: Accepted
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-translatortext/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://redacted.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1/batches/419393a2-6d39-416c-904c-824b8da06435
response:
body:
string: '{"id":"419393a2-6d39-416c-904c-824b8da06435","createdDateTimeUtc":"2021-03-29T20:59:40.7249205Z","lastActionDateTimeUtc":"2021-03-29T20:59:40.7249257Z","status":"NotStarted","summary":{"total":0,"failed":0,"success":0,"inProgress":0,"notYetStarted":0,"cancelled":0,"totalCharacterCharged":0}}'
headers:
apim-request-id:
- fdd734d2-058e-447b-a83a-4f27974b1d12
cache-control:
- public,max-age=1
content-length:
- '292'
content-type:
- application/json; charset=utf-8
date:
- Mon, 29 Mar 2021 20:59:39 GMT
etag:
- '"EF49F9B05179F1D4FC8B8D686B058C1F1921EBB432D0684EF4DE5EFEB8BDD4A0"'
set-cookie:
- ARRAffinity=36da0e643e19b219e9cc242244bbb17606f2f9cdc98871c377756b22cded58cb;Path=/;HttpOnly;Secure;Domain=doctrans.northeu.microsofttranslator.com
- ARRAffinitySameSite=36da0e643e19b219e9cc242244bbb17606f2f9cdc98871c377756b22cded58cb;Path=/;HttpOnly;SameSite=None;Secure;Domain=doctrans.northeu.microsofttranslator.com
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-powered-by:
- ASP.NET
x-requestid:
- fdd734d2-058e-447b-a83a-4f27974b1d12
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-ai-translatortext/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: DELETE
uri: https://redacted.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1/batches/419393a2-6d39-416c-904c-824b8da06435
response:
body:
string: '{"id":"419393a2-6d39-416c-904c-824b8da06435","createdDateTimeUtc":"2021-03-29T20:59:40.7249205Z","lastActionDateTimeUtc":"2021-03-29T20:59:41.0278978Z","status":"NotStarted","summary":{"total":0,"failed":0,"success":0,"inProgress":0,"notYetStarted":0,"cancelled":0,"totalCharacterCharged":0}}'
headers:
apim-request-id:
- 2e466326-2a6a-4dea-aa75-fd896471c960
content-length:
- '292'
content-type:
- application/json; charset=utf-8
date:
- Mon, 29 Mar 2021 20:59:41 GMT
set-cookie:
- ARRAffinity=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;Secure;Domain=doctrans.northeu.microsofttranslator.com
- ARRAffinitySameSite=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;SameSite=None;Secure;Domain=doctrans.northeu.microsofttranslator.com
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-powered-by:
- ASP.NET
x-requestid:
- 2e466326-2a6a-4dea-aa75-fd896471c960
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-translatortext/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://redacted.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1/batches/419393a2-6d39-416c-904c-824b8da06435
response:
body:
string: '{"id":"419393a2-6d39-416c-904c-824b8da06435","createdDateTimeUtc":"2021-03-29T20:59:40.7249205Z","lastActionDateTimeUtc":"2021-03-29T20:59:49.2403702Z","status":"Cancelled","summary":{"total":1,"failed":0,"success":0,"inProgress":0,"notYetStarted":0,"cancelled":1,"totalCharacterCharged":0}}'
headers:
apim-request-id:
- 55692c3e-d7b1-4e76-a540-6df9f6974539
cache-control:
- public,max-age=1
content-length:
- '291'
content-type:
- application/json; charset=utf-8
date:
- Mon, 29 Mar 2021 20:59:51 GMT
etag:
- '"44B3B8780CD7ABB78F1974D415A760347DB48E32432DC087FCA040EB5F5EC6DB"'
set-cookie:
- ARRAffinity=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;Secure;Domain=doctrans.northeu.microsofttranslator.com
- ARRAffinitySameSite=52534756bc24481c0848ee2def3c54a057fd0e51707d9dcf782aa603bbaa9f24;Path=/;HttpOnly;SameSite=None;Secure;Domain=doctrans.northeu.microsofttranslator.com
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-powered-by:
- ASP.NET
x-requestid:
- 55692c3e-d7b1-4e76-a540-6df9f6974539
status:
code: 200
message: OK
version: 1
Loading

0 comments on commit f2b0275

Please sign in to comment.