forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Storage] Migrate
test_retry.py
to test proxy (Azure#25681)
- Loading branch information
1 parent
5ad5186
commit 97dcbf9
Showing
46 changed files
with
2,554 additions
and
3,130 deletions.
There are no files selected for viewing
193 changes: 193 additions & 0 deletions
193
...re-storage-blob/tests/recordings/test_retry.pyTestStorageRetrytest_exponential_retry.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 |
---|---|---|
@@ -0,0 +1,193 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "PUT", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 201, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"ETag": "\u00220x8DA7BDAF28D6250\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "GET", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"ETag": "\u00220x8DA7BDAF28D6250\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"Vary": "Origin", | ||
"x-ms-default-encryption-scope": "$account-encryption-key", | ||
"x-ms-deny-encryption-scope-override": "false", | ||
"x-ms-has-immutability-policy": "false", | ||
"x-ms-has-legal-hold": "false", | ||
"x-ms-immutable-storage-with-versioning-enabled": "false", | ||
"x-ms-lease-state": "available", | ||
"x-ms-lease-status": "unlocked", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "GET", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:14 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:13 GMT", | ||
"ETag": "\u00220x8DA7BDAF28D6250\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"Vary": "Origin", | ||
"x-ms-default-encryption-scope": "$account-encryption-key", | ||
"x-ms-deny-encryption-scope-override": "false", | ||
"x-ms-has-immutability-policy": "false", | ||
"x-ms-has-legal-hold": "false", | ||
"x-ms-immutable-storage-with-versioning-enabled": "false", | ||
"x-ms-lease-state": "available", | ||
"x-ms-lease-status": "unlocked", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "GET", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:26 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:25 GMT", | ||
"ETag": "\u00220x8DA7BDAF28D6250\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"Vary": "Origin", | ||
"x-ms-default-encryption-scope": "$account-encryption-key", | ||
"x-ms-deny-encryption-scope-override": "false", | ||
"x-ms-has-immutability-policy": "false", | ||
"x-ms-has-legal-hold": "false", | ||
"x-ms-immutable-storage-with-versioning-enabled": "false", | ||
"x-ms-lease-state": "available", | ||
"x-ms-lease-status": "unlocked", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "GET", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:53 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 200, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:52 GMT", | ||
"ETag": "\u00220x8DA7BDAF28D6250\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"Vary": "Origin", | ||
"x-ms-default-encryption-scope": "$account-encryption-key", | ||
"x-ms-deny-encryption-scope-override": "false", | ||
"x-ms-has-immutability-policy": "false", | ||
"x-ms-has-legal-hold": "false", | ||
"x-ms-immutable-storage-with-versioning-enabled": "false", | ||
"x-ms-lease-state": "available", | ||
"x-ms-lease-status": "unlocked", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainer8eae2683?restype=container", | ||
"RequestMethod": "DELETE", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:53 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 202, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:52 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
} | ||
], | ||
"Variables": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
...e-blob/tests/recordings/test_retry.pyTestStorageRetrytest_exponential_retry_interval.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Entries": [], | ||
"Variables": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
...-storage-blob/tests/recordings/test_retry.pyTestStorageRetrytest_invalid_account_key.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Entries": [], | ||
"Variables": {} | ||
} |
57 changes: 57 additions & 0 deletions
57
.../azure-storage-blob/tests/recordings/test_retry.pyTestStorageRetrytest_invalid_retry.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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainerf28824c3?restype=container", | ||
"RequestMethod": "PUT", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 22:43:17 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 201, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 22:43:17 GMT", | ||
"ETag": "\u00220x8DA7BEAE2A99D2B\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 22:43:18 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainerf28824c3?restype=container", | ||
"RequestMethod": "DELETE", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 22:43:18 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 202, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 22:43:17 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
} | ||
], | ||
"Variables": {} | ||
} |
88 changes: 88 additions & 0 deletions
88
...e/azure-storage-blob/tests/recordings/test_retry.pyTestStorageRetrytest_linear_retry.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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainerccc32457?restype=container", | ||
"RequestMethod": "PUT", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:08 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 201, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:08 GMT", | ||
"ETag": "\u00220x8DA7BDAF02FCEDA\u0022", | ||
"Last-Modified": "Thu, 11 Aug 2022 20:49:08 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainerccc32457?restype=container", | ||
"RequestMethod": "PUT", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 409, | ||
"ResponseHeaders": { | ||
"Content-Length": "230", | ||
"Content-Type": "application/xml", | ||
"Date": "Thu, 11 Aug 2022 20:49:11 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-error-code": "ContainerAlreadyExists", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": [ | ||
"\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EContainerAlreadyExists\u003C/Code\u003E\u003CMessage\u003EThe specified container already exists.\n", | ||
"RequestId:ac7e2bd6-501e-00a2-77c3-adcc38000000\n", | ||
"Time:2022-08-11T20:49:12.2157656Z\u003C/Message\u003E\u003C/Error\u003E" | ||
] | ||
}, | ||
{ | ||
"RequestUri": "https://storagename.blob.core.windows.net/utcontainerccc32457?restype=container", | ||
"RequestMethod": "DELETE", | ||
"RequestHeaders": { | ||
"Accept": "application/xml", | ||
"Accept-Encoding": "gzip, deflate", | ||
"Connection": "keep-alive", | ||
"Content-Length": "0", | ||
"User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", | ||
"x-ms-date": "Thu, 11 Aug 2022 20:49:12 GMT", | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"RequestBody": null, | ||
"StatusCode": 202, | ||
"ResponseHeaders": { | ||
"Content-Length": "0", | ||
"Date": "Thu, 11 Aug 2022 20:49:11 GMT", | ||
"Server": [ | ||
"Windows-Azure-Blob/1.0", | ||
"Microsoft-HTTPAPI/2.0" | ||
], | ||
"x-ms-version": "2021-08-06" | ||
}, | ||
"ResponseBody": null | ||
} | ||
], | ||
"Variables": {} | ||
} |
4 changes: 4 additions & 0 deletions
4
...torage-blob/tests/recordings/test_retry.pyTestStorageRetrytest_linear_retry_interval.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Entries": [], | ||
"Variables": {} | ||
} |
Oops, something went wrong.