diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_rehydration_status.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_rehydration_status.json new file mode 100644 index 000000000000..07300cbeaca2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_rehydration_status.json @@ -0,0 +1,354 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32?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": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "ETag": "\u00220x8DA6A946CEAAC63\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:34 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/utcontainer4b742f32/rehydration_test_blob_1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "ETag": "\u00220x8DA6A946CF98D19\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:34 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32/rehydration_test_blob_1?comp=tier", + "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-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:33 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/utcontainer4b742f32/rehydration_test_blob_1?comp=tier", + "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-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:33 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/utcontainer4b742f32/rehydration_test_blob_1", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "ETag": "\u00220x8DA6A946CF98D19\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:34 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-archive-status": "rehydrate-pending-to-cool", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32?restype=container\u0026comp=list", + "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": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.blob.core.windows.net/\u0022 ContainerName=\u0022utcontainer4b742f32\u0022\u003E\u003CBlobs\u003E\u003CBlob\u003E\u003CName\u003Erehydration_test_blob_1\u003C/Name\u003E\u003CProperties\u003E\u003CCreation-Time\u003EWed, 20 Jul 2022 21:11:34 GMT\u003C/Creation-Time\u003E\u003CLast-Modified\u003EWed, 20 Jul 2022 21:11:34 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E0x8DA6A946CF98D19\u003C/Etag\u003E\u003CContent-Length\u003E11\u003C/Content-Length\u003E\u003CContent-Type\u003Eapplication/octet-stream\u003C/Content-Type\u003E\u003CContent-Encoding /\u003E\u003CContent-Language /\u003E\u003CContent-CRC64 /\u003E\u003CContent-MD5\u003EXrY7u\u002BAe7tCTyyK7j1rNww==\u003C/Content-MD5\u003E\u003CCache-Control /\u003E\u003CContent-Disposition /\u003E\u003CBlobType\u003EBlockBlob\u003C/BlobType\u003E\u003CAccessTier\u003EArchive\u003C/AccessTier\u003E\u003CArchiveStatus\u003Erehydrate-pending-to-cool\u003C/ArchiveStatus\u003E\u003CRehydratePriority\u003EStandard\u003C/RehydratePriority\u003E\u003CAccessTierChangeTime\u003EWed, 20 Jul 2022 21:11:34 GMT\u003C/AccessTierChangeTime\u003E\u003CLeaseStatus\u003Eunlocked\u003C/LeaseStatus\u003E\u003CLeaseState\u003Eavailable\u003C/LeaseState\u003E\u003CServerEncrypted\u003Etrue\u003C/ServerEncrypted\u003E\u003C/Properties\u003E\u003COrMetadata /\u003E\u003C/Blob\u003E\u003C/Blobs\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32/rehydration_test_blob_1", + "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": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32/rehydration_test_blob_2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:11:33 GMT", + "ETag": "\u00220x8DA6A946D5D288F\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:34 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32/rehydration_test_blob_2?comp=tier", + "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-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:34 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/utcontainer4b742f32/rehydration_test_blob_2?comp=tier", + "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-access-tier": "Hot", + "x-ms-date": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:34 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/utcontainer4b742f32/rehydration_test_blob_2", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:34 GMT", + "ETag": "\u00220x8DA6A946D5D288F\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:34 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-archive-status": "rehydrate-pending-to-hot", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer4b742f32?restype=container\u0026comp=list", + "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": "Wed, 20 Jul 2022 21:11:35 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 20 Jul 2022 21:11:34 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.blob.core.windows.net/\u0022 ContainerName=\u0022utcontainer4b742f32\u0022\u003E\u003CBlobs\u003E\u003CBlob\u003E\u003CName\u003Erehydration_test_blob_2\u003C/Name\u003E\u003CProperties\u003E\u003CCreation-Time\u003EWed, 20 Jul 2022 21:11:34 GMT\u003C/Creation-Time\u003E\u003CLast-Modified\u003EWed, 20 Jul 2022 21:11:34 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E0x8DA6A946D5D288F\u003C/Etag\u003E\u003CContent-Length\u003E11\u003C/Content-Length\u003E\u003CContent-Type\u003Eapplication/octet-stream\u003C/Content-Type\u003E\u003CContent-Encoding /\u003E\u003CContent-Language /\u003E\u003CContent-CRC64 /\u003E\u003CContent-MD5\u003EXrY7u\u002BAe7tCTyyK7j1rNww==\u003C/Content-MD5\u003E\u003CCache-Control /\u003E\u003CContent-Disposition /\u003E\u003CBlobType\u003EBlockBlob\u003C/BlobType\u003E\u003CAccessTier\u003EArchive\u003C/AccessTier\u003E\u003CArchiveStatus\u003Erehydrate-pending-to-hot\u003C/ArchiveStatus\u003E\u003CRehydratePriority\u003EStandard\u003C/RehydratePriority\u003E\u003CAccessTierChangeTime\u003EWed, 20 Jul 2022 21:11:35 GMT\u003C/AccessTierChangeTime\u003E\u003CLeaseStatus\u003Eunlocked\u003C/LeaseStatus\u003E\u003CLeaseState\u003Eavailable\u003C/LeaseState\u003E\u003CServerEncrypted\u003Etrue\u003C/ServerEncrypted\u003E\u003C/Properties\u003E\u003COrMetadata /\u003E\u003C/Blob\u003E\u003C/Blobs\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_set_standard_blob_tier_with_rehydrate_priority.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_set_standard_blob_tier_with_rehydrate_priority.json new file mode 100644 index 000000000000..7621d05d92cb --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_set_standard_blob_tier_with_rehydrate_priority.json @@ -0,0 +1,156 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer2c793ab6?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": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:32 GMT", + "ETag": "\u00220x8DA6A946C618A95\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:33 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/utcontainer2c793ab6/blob2c793ab6", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "1B2M2Y8AsgTpgAmY7PhCfg==", + "Date": "Wed, 20 Jul 2022 21:11:32 GMT", + "ETag": "\u00220x8DA6A946C706B6E\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:33 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "AAAAAAAAAAA=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer2c793ab6/blob2c793ab6?comp=tier", + "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-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-rehydrate-priority": "Standard", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:32 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/utcontainer2c793ab6/blob2c793ab6?comp=tier", + "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-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:32 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/utcontainer2c793ab6/blob2c793ab6", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:34 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "0", + "Content-MD5": "1B2M2Y8AsgTpgAmY7PhCfg==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:32 GMT", + "ETag": "\u00220x8DA6A946C706B6E\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:33 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-archive-status": "rehydrate-pending-to-cool", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_standard_blob_tier_set_tier_api.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_standard_blob_tier_set_tier_api.json new file mode 100644 index 000000000000..afa56e19c379 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.pyTestBlobStorageAccounttest_standard_blob_tier_set_tier_api.json @@ -0,0 +1,503 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f?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": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B18F93D\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 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/utcontainerd975343f/Archived975343f", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B2CE30B\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Archived975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B2CE30B\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Archived975343f?comp=tier", + "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-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:30 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/utcontainerd975343f/Archived975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B2CE30B\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Archived975343f", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Coold975343f", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B83603C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Coold975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:30 GMT", + "ETag": "\u00220x8DA6A946B83603C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Coold975343f?comp=tier", + "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-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:31 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/utcontainerd975343f/Coold975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "ETag": "\u00220x8DA6A946B83603C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Cool", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:31 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Coold975343f", + "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": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Hotd975343f", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "ETag": "\u00220x8DA6A946BCD0D35\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:32 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Hotd975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "ETag": "\u00220x8DA6A946BCD0D35\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:32 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Hotd975343f?comp=tier", + "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-access-tier": "Hot", + "x-ms-date": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:31 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/utcontainerd975343f/Hotd975343f", + "RequestMethod": "HEAD", + "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": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "ETag": "\u00220x8DA6A946BCD0D35\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:11:32 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:11:32 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainerd975343f/Hotd975343f", + "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": "Wed, 20 Jul 2022 21:11:33 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:11:31 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_rehydration_status.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_rehydration_status.yaml deleted file mode 100644 index 5c6c3195560b..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_rehydration_status.yaml +++ /dev/null @@ -1,518 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:42 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458?restype=container - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - etag: - - '"0x8D7597B1ECF244A"' - last-modified: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: hello world - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_1 - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Fri, 25 Oct 2019 18:42:42 GMT - etag: - - '"0x8D7597B1ED9E32F"' - last-modified: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - vo7q9sPVKY0= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_1?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_1?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_1 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Fri, 25 Oct 2019 18:42:42 GMT - etag: - - '"0x8D7597B1ED9E32F"' - last-modified: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: - - Archive - x-ms-access-tier-change-time: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-archive-status: - - rehydrate-pending-to-cool - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Fri, 25 Oct 2019 18:42:42 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.blob.core.windows.net/utcontainerf9461458?restype=container&comp=list - response: - body: - string: "\uFEFFrehydration_test_blob_1Fri, - 25 Oct 2019 18:42:42 GMTFri, 25 Oct 2019 18:42:42 - GMT0x8D7597B1ED9E32F11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobArchiverehydrate-pending-to-coolFri, - 25 Oct 2019 18:42:43 GMTunlockedavailabletrue" - headers: - content-type: - - application/xml - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: hello world - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_2 - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Fri, 25 Oct 2019 18:42:42 GMT - etag: - - '"0x8D7597B1F386730"' - last-modified: - - Fri, 25 Oct 2019 18:42:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - vo7q9sPVKY0= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_2?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Hot - x-ms-date: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_2?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerf9461458/rehydration_test_blob_2 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Fri, 25 Oct 2019 18:42:42 GMT - etag: - - '"0x8D7597B1F386730"' - last-modified: - - Fri, 25 Oct 2019 18:42:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: - - Archive - x-ms-access-tier-change-time: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-archive-status: - - rehydrate-pending-to-hot - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Fri, 25 Oct 2019 18:42:43 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.blob.core.windows.net/utcontainerf9461458?restype=container&comp=list - response: - body: - string: "\uFEFFrehydration_test_blob_2Fri, - 25 Oct 2019 18:42:43 GMTFri, 25 Oct 2019 18:42:43 - GMT0x8D7597B1F38673011application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobArchiverehydrate-pending-to-hotFri, - 25 Oct 2019 18:42:43 GMTunlockedavailabletrue" - headers: - content-type: - - application/xml - date: - - Fri, 25 Oct 2019 18:42:42 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_set_standard_blob_tier_with_rehydrate_priority.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_set_standard_blob_tier_with_rehydrate_priority.yaml deleted file mode 100644 index 0fbabde2bd1b..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_set_standard_blob_tier_with_rehydrate_priority.yaml +++ /dev/null @@ -1,222 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerd3161fdc?restype=container - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:43 GMT - etag: - - '"0x8D7597B1F7920F0"' - last-modified: - - Fri, 25 Oct 2019 18:42:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerd3161fdc/blobd3161fdc - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - 1B2M2Y8AsgTpgAmY7PhCfg== - date: - - Fri, 25 Oct 2019 18:42:43 GMT - etag: - - '"0x8D7597B1F822724"' - last-modified: - - Fri, 25 Oct 2019 18:42:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - AAAAAAAAAAA= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-rehydrate-priority: - - Standard - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerd3161fdc/blobd3161fdc?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerd3161fdc/blobd3161fdc?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Fri, 25 Oct 2019 18:42:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerd3161fdc/blobd3161fdc - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '0' - content-md5: - - 1B2M2Y8AsgTpgAmY7PhCfg== - content-type: - - application/octet-stream - date: - - Fri, 25 Oct 2019 18:42:44 GMT - etag: - - '"0x8D7597B1F822724"' - last-modified: - - Fri, 25 Oct 2019 18:42:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: - - Archive - x-ms-access-tier-change-time: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-archive-status: - - rehydrate-pending-to-cool - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Fri, 25 Oct 2019 18:42:44 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_standard_blob_tier_set_tier_api.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_standard_blob_tier_set_tier_api.yaml deleted file mode 100644 index c89b2d3fe40a..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account.test_standard_blob_tier_set_tier_api.yaml +++ /dev/null @@ -1,754 +0,0 @@ -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.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965?restype=container - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A21CA2D8"' - last-modified: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: hello world - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Archive21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A228D98C"' - last-modified: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - vo7q9sPVKY0= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Archive21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A228D98C"' - last-modified: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Hot - x-ms-access-tier-inferred: - - 'true' - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Archive21831965?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Archive21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A228D98C"' - last-modified: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Archive - x-ms-access-tier-change-time: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:43 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Archive21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:43 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 202 - message: Accepted -- request: - body: hello world - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Cool21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A265D9BE"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - vo7q9sPVKY0= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Cool21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:43 GMT - etag: - - '"0x8DA0F74A265D9BE"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Hot - x-ms-access-tier-inferred: - - 'true' - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Cool21831965?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Cool21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:44 GMT - etag: - - '"0x8DA0F74A265D9BE"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Cool - x-ms-access-tier-change-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Cool21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 202 - message: Accepted -- request: - body: hello world - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Hot21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Sat, 26 Mar 2022 22:04:44 GMT - etag: - - '"0x8DA0F74A29B39EA"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: - - vo7q9sPVKY0= - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Hot21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:44 GMT - etag: - - '"0x8DA0F74A29B39EA"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Hot - x-ms-access-tier-inferred: - - 'true' - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Hot - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Hot21831965?comp=tier - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Hot21831965 - response: - body: - string: '' - headers: - accept-ranges: - - bytes - content-length: - - '11' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - content-type: - - application/octet-stream - date: - - Sat, 26 Mar 2022 22:04:44 GMT - etag: - - '"0x8DA0F74A29B39EA"' - last-modified: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: - - Origin - x-ms-access-tier: - - Hot - x-ms-access-tier-change-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-blob-type: - - BlockBlob - x-ms-creation-time: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:04:44 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainer21831965/Hot21831965 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 26 Mar 2022 22:04:44 GMT - server: - - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 202 - message: Accepted -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_rehydration_status.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_rehydration_status.json new file mode 100644 index 000000000000..065285330925 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_rehydration_status.json @@ -0,0 +1,342 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:42 GMT", + "ETag": "\u00220x8DA6A95D7A5B4F0\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:42 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/utcontainer7afc33ad/rehydration_test_blob_1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:21:42 GMT", + "ETag": "\u00220x8DA6A95D7B370FC\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:42 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad/rehydration_test_blob_1?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:42 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/utcontainer7afc33ad/rehydration_test_blob_1?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:42 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/utcontainer7afc33ad/rehydration_test_blob_1", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:42 GMT", + "ETag": "\u00220x8DA6A95D7B370FC\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:42 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-archive-status": "rehydrate-pending-to-cool", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad?restype=container\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 20 Jul 2022 21:21:42 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.blob.core.windows.net/\u0022 ContainerName=\u0022utcontainer7afc33ad\u0022\u003E\u003CBlobs\u003E\u003CBlob\u003E\u003CName\u003Erehydration_test_blob_1\u003C/Name\u003E\u003CProperties\u003E\u003CCreation-Time\u003EWed, 20 Jul 2022 21:21:42 GMT\u003C/Creation-Time\u003E\u003CLast-Modified\u003EWed, 20 Jul 2022 21:21:42 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E0x8DA6A95D7B370FC\u003C/Etag\u003E\u003CContent-Length\u003E11\u003C/Content-Length\u003E\u003CContent-Type\u003Eapplication/octet-stream\u003C/Content-Type\u003E\u003CContent-Encoding /\u003E\u003CContent-Language /\u003E\u003CContent-CRC64 /\u003E\u003CContent-MD5\u003EXrY7u\u002BAe7tCTyyK7j1rNww==\u003C/Content-MD5\u003E\u003CCache-Control /\u003E\u003CContent-Disposition /\u003E\u003CBlobType\u003EBlockBlob\u003C/BlobType\u003E\u003CAccessTier\u003EArchive\u003C/AccessTier\u003E\u003CArchiveStatus\u003Erehydrate-pending-to-cool\u003C/ArchiveStatus\u003E\u003CRehydratePriority\u003EStandard\u003C/RehydratePriority\u003E\u003CAccessTierChangeTime\u003EWed, 20 Jul 2022 21:21:42 GMT\u003C/AccessTierChangeTime\u003E\u003CLeaseStatus\u003Eunlocked\u003C/LeaseStatus\u003E\u003CLeaseState\u003Eavailable\u003C/LeaseState\u003E\u003CServerEncrypted\u003Etrue\u003C/ServerEncrypted\u003E\u003C/Properties\u003E\u003COrMetadata /\u003E\u003C/Blob\u003E\u003C/Blobs\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad/rehydration_test_blob_1", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad/rehydration_test_blob_2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:21:43 GMT", + "ETag": "\u00220x8DA6A95D8092AE9\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad/rehydration_test_blob_2?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:21:44 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:43 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/utcontainer7afc33ad/rehydration_test_blob_2?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Hot", + "x-ms-date": "Wed, 20 Jul 2022 21:21:44 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:43 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/utcontainer7afc33ad/rehydration_test_blob_2", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:44 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:43 GMT", + "ETag": "\u00220x8DA6A95D8092AE9\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-archive-status": "rehydrate-pending-to-hot", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:43 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer7afc33ad?restype=container\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:44 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 20 Jul 2022 21:21:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.blob.core.windows.net/\u0022 ContainerName=\u0022utcontainer7afc33ad\u0022\u003E\u003CBlobs\u003E\u003CBlob\u003E\u003CName\u003Erehydration_test_blob_2\u003C/Name\u003E\u003CProperties\u003E\u003CCreation-Time\u003EWed, 20 Jul 2022 21:21:43 GMT\u003C/Creation-Time\u003E\u003CLast-Modified\u003EWed, 20 Jul 2022 21:21:43 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E0x8DA6A95D8092AE9\u003C/Etag\u003E\u003CContent-Length\u003E11\u003C/Content-Length\u003E\u003CContent-Type\u003Eapplication/octet-stream\u003C/Content-Type\u003E\u003CContent-Encoding /\u003E\u003CContent-Language /\u003E\u003CContent-CRC64 /\u003E\u003CContent-MD5\u003EXrY7u\u002BAe7tCTyyK7j1rNww==\u003C/Content-MD5\u003E\u003CCache-Control /\u003E\u003CContent-Disposition /\u003E\u003CBlobType\u003EBlockBlob\u003C/BlobType\u003E\u003CAccessTier\u003EArchive\u003C/AccessTier\u003E\u003CArchiveStatus\u003Erehydrate-pending-to-hot\u003C/ArchiveStatus\u003E\u003CRehydratePriority\u003EStandard\u003C/RehydratePriority\u003E\u003CAccessTierChangeTime\u003EWed, 20 Jul 2022 21:21:43 GMT\u003C/AccessTierChangeTime\u003E\u003CLeaseStatus\u003Eunlocked\u003C/LeaseStatus\u003E\u003CLeaseState\u003Eavailable\u003C/LeaseState\u003E\u003CServerEncrypted\u003Etrue\u003C/ServerEncrypted\u003E\u003C/Properties\u003E\u003COrMetadata /\u003E\u003C/Blob\u003E\u003C/Blobs\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_set_std_blob_tier_w_rehydrate_priority.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_set_std_blob_tier_w_rehydrate_priority.json new file mode 100644 index 000000000000..c4b80ede67d5 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_set_std_blob_tier_w_rehydrate_priority.json @@ -0,0 +1,151 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainere6c03be6?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:41 GMT", + "ETag": "\u00220x8DA6A95D72719E3\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 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/utcontainere6c03be6/blobe6c03be6", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "1B2M2Y8AsgTpgAmY7PhCfg==", + "Date": "Wed, 20 Jul 2022 21:21:41 GMT", + "ETag": "\u00220x8DA6A95D734127B\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "AAAAAAAAAAA=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainere6c03be6/blobe6c03be6?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-rehydrate-priority": "Standard", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:41 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/utcontainere6c03be6/blobe6c03be6?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:41 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/utcontainere6c03be6/blobe6c03be6", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "0", + "Content-MD5": "1B2M2Y8AsgTpgAmY7PhCfg==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:42 GMT", + "ETag": "\u00220x8DA6A95D734127B\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-archive-status": "rehydrate-pending-to-cool", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-rehydrate-priority": "Standard", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_standard_blob_tier_set_tier_api.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_standard_blob_tier_set_tier_api.json new file mode 100644 index 000000000000..48e168f9b455 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.pyTestBlobStorageAccountAsynctest_standard_blob_tier_set_tier_api.json @@ -0,0 +1,487 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:39 GMT", + "ETag": "\u00220x8DA6A95D6008D5A\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:39 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/utcontainer434b38ba/Archive434b38ba", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:21:39 GMT", + "ETag": "\u00220x8DA6A95D613C68C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Archive434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D613C68C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Archive434b38ba?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Archive", + "x-ms-date": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:40 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/utcontainer434b38ba/Archive434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D613C68C\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Archive", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Archive434b38ba", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Cool434b38ba", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D6605983\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Cool434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D6605983\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Cool434b38ba?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Cool", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:40 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/utcontainer434b38ba/Cool434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D6605983\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Cool", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:40 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Cool434b38ba", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Hot434b38ba", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "If-None-Match": "*", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-blob-type": "BlockBlob", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D6A32943\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-content-crc64": "vo7q9sPVKY0=", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Hot434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:40 GMT", + "ETag": "\u00220x8DA6A95D6A32943\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Hot434b38ba?comp=tier", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-access-tier": "Hot", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:41 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/utcontainer434b38ba/Hot434b38ba", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "11", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Content-Type": "application/octet-stream", + "Date": "Wed, 20 Jul 2022 21:21:41 GMT", + "ETag": "\u00220x8DA6A95D6A32943\u0022", + "Last-Modified": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-change-time": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 20 Jul 2022 21:21:41 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.blob.core.windows.net/utcontainer434b38ba/Hot434b38ba", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "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": "Wed, 20 Jul 2022 21:21:42 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 20 Jul 2022 21:21:41 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-delete-type-permanent": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_rehydration_status.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_rehydration_status.yaml deleted file mode 100644 index 646032fe7cef..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_rehydration_status.yaml +++ /dev/null @@ -1,445 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5?restype=container - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:35 GMT - etag: '"0x8D7597B3EAEB721"' - last-modified: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5 - - restype=container - - '' -- request: - body: hello world - headers: - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_1 - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Fri, 25 Oct 2019 18:43:36 GMT - etag: '"0x8D7597B3EB84C00"' - last-modified: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_1 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_1?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_1 - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_1?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_1 - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_1 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Fri, 25 Oct 2019 18:43:36 GMT - etag: '"0x8D7597B3EB84C00"' - last-modified: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: Archive - x-ms-access-tier-change-time: Fri, 25 Oct 2019 18:43:36 GMT - x-ms-archive-status: rehydrate-pending-to-cool - x-ms-blob-type: BlockBlob - x-ms-creation-time: Fri, 25 Oct 2019 18:43:36 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_1 - - '' - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:36 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5?restype=container&comp=list - response: - body: - string: "\uFEFFrehydration_test_blob_1Fri, - 25 Oct 2019 18:43:36 GMTFri, 25 Oct 2019 18:43:36 - GMT0x8D7597B3EB84C0011application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobArchiverehydrate-pending-to-coolFri, - 25 Oct 2019 18:43:36 GMTunlockedavailabletrue" - headers: - content-type: application/xml - date: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5 - - restype=container&comp=list - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_1 - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: 'true' - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_1 - - '' - - '' -- request: - body: hello world - headers: - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_2 - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Fri, 25 Oct 2019 18:43:36 GMT - etag: '"0x8D7597B3EFBCA18"' - last-modified: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_2 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_2?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_2 - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Hot - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_2?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_2 - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5/rehydration_test_blob_2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Fri, 25 Oct 2019 18:43:37 GMT - etag: '"0x8D7597B3EFBCA18"' - last-modified: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: Archive - x-ms-access-tier-change-time: Fri, 25 Oct 2019 18:43:37 GMT - x-ms-archive-status: rehydrate-pending-to-hot - x-ms-blob-type: BlockBlob - x-ms-creation-time: Fri, 25 Oct 2019 18:43:36 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5/rehydration_test_blob_2 - - '' - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.blob.core.windows.net/utcontainer7bdc16d5?restype=container&comp=list - response: - body: - string: "\uFEFFrehydration_test_blob_2Fri, - 25 Oct 2019 18:43:36 GMTFri, 25 Oct 2019 18:43:36 - GMT0x8D7597B3EFBCA1811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobArchiverehydrate-pending-to-hotFri, - 25 Oct 2019 18:43:37 GMTunlockedavailabletrue" - headers: - content-type: application/xml - date: Fri, 25 Oct 2019 18:43:36 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer7bdc16d5 - - restype=container&comp=list - - '' -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_set_std_blob_tier_w_rehydrate_priority.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_set_std_blob_tier_w_rehydrate_priority.yaml deleted file mode 100644 index 79d9ce1820e9..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_set_std_blob_tier_w_rehydrate_priority.yaml +++ /dev/null @@ -1,186 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer96171f0e?restype=container - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:37 GMT - etag: '"0x8D7597B3F56DCCA"' - last-modified: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer96171f0e - - restype=container - - '' -- request: - body: null - headers: - Content-Length: - - '0' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer96171f0e/blob96171f0e - response: - body: - string: '' - headers: - content-length: '0' - content-md5: 1B2M2Y8AsgTpgAmY7PhCfg== - date: Fri, 25 Oct 2019 18:43:37 GMT - etag: '"0x8D7597B3F5E2085"' - last-modified: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: AAAAAAAAAAA= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer96171f0e/blob96171f0e - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-rehydrate-priority: - - Standard - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer96171f0e/blob96171f0e?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer96171f0e/blob96171f0e - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainer96171f0e/blob96171f0e?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer96171f0e/blob96171f0e - - comp=tier - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) - x-ms-date: - - Fri, 25 Oct 2019 18:43:37 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainer96171f0e/blob96171f0e - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '0' - content-md5: 1B2M2Y8AsgTpgAmY7PhCfg== - content-type: application/octet-stream - date: Fri, 25 Oct 2019 18:43:37 GMT - etag: '"0x8D7597B3F5E2085"' - last-modified: Fri, 25 Oct 2019 18:43:37 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-access-tier: Archive - x-ms-access-tier-change-time: Fri, 25 Oct 2019 18:43:37 GMT - x-ms-archive-status: rehydrate-pending-to-cool - x-ms-blob-type: BlockBlob - x-ms-creation-time: Fri, 25 Oct 2019 18:43:37 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstoragewzo2a3il3cqj.blob.core.windows.net - - /utcontainer96171f0e/blob96171f0e - - '' - - '' -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_standard_blob_tier_set_tier_api.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_standard_blob_tier_set_tier_api.yaml deleted file mode 100644 index d0e577938f8c..000000000000 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_storage_account_async.test_standard_blob_tier_set_tier_api.yaml +++ /dev/null @@ -1,530 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2?restype=container - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BAA8A85"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2?restype=container -- request: - body: hello world - headers: - Accept: - - application/xml - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BB3DE9C"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BB3DE9C"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Hot - x-ms-access-tier-inferred: 'true' - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Archive - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2?comp=tier -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BB3DE9C"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Archive - x-ms-access-tier-change-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: 'true' - x-ms-version: '2021-04-10' - status: - code: 202 - message: Accepted - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Archivec4631be2 -- request: - body: hello world - headers: - Accept: - - application/xml - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BE45D72"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BE45D72"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Hot - x-ms-access-tier-inferred: 'true' - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Cool - x-ms-date: - - Sat, 26 Mar 2022 22:11:15 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2?comp=tier -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758BE45D72"' - last-modified: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Cool - x-ms-access-tier-change-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:15 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: 'true' - x-ms-version: '2021-04-10' - status: - code: 202 - message: Accepted - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Coolc4631be2 -- request: - body: hello world - headers: - Accept: - - application/xml - Content-Length: - - '11' - Content-Type: - - application/octet-stream - If-None-Match: - - '*' - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-blob-type: - - BlockBlob - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758C0C790D"' - last-modified: Sat, 26 Mar 2022 22:11:16 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758C0C790D"' - last-modified: Sat, 26 Mar 2022 22:11:16 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Hot - x-ms-access-tier-inferred: 'true' - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:16 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-access-tier: - - Hot - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2?comp=tier - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2?comp=tier -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: HEAD - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 - response: - body: - string: '' - headers: - accept-ranges: bytes - content-length: '11' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - content-type: application/octet-stream - date: Sat, 26 Mar 2022 22:11:15 GMT - etag: '"0x8DA0F758C0C790D"' - last-modified: Sat, 26 Mar 2022 22:11:16 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - vary: Origin - x-ms-access-tier: Hot - x-ms-access-tier-change-time: Sat, 26 Mar 2022 22:11:16 GMT - x-ms-blob-type: BlockBlob - x-ms-creation-time: Sat, 26 Mar 2022 22:11:16 GMT - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-blob/12.10.1 Python/3.10.4 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 26 Mar 2022 22:11:16 GMT - x-ms-version: - - '2021-04-10' - method: DELETE - uri: https://storagename.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 26 Mar 2022 22:11:15 GMT - server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-delete-type-permanent: 'true' - x-ms-version: '2021-04-10' - status: - code: 202 - message: Accepted - url: https://jalauzoncanary.blob.core.windows.net/utcontainerc4631be2/Hotc4631be2 -version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_storage_account.py b/sdk/storage/azure-storage-blob/tests/test_blob_storage_account.py index 7425cbc0becb..123fd2b50e46 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_storage_account.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_storage_account.py @@ -1,24 +1,21 @@ -# coding: utf-8 - # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from azure.storage.blob import ( - BlobServiceClient, - StandardBlobTier -) +from azure.storage.blob import BlobServiceClient, StandardBlobTier from azure.storage.blob._generated.models import RehydratePriority + +from devtools_testutils import recorded_by_proxy +from devtools_testutils.storage import StorageRecordedTestCase from settings.testcase import BlobPreparer -from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' # ------------------------------------------------------------------------------ -class BlobStorageAccountTest(StorageTestCase): +class TestBlobStorageAccount(StorageRecordedTestCase): def _setup(self, bsc): self.container_name = self.get_resource_name('utcontainer') @@ -41,11 +38,15 @@ def _create_blob(self, bsc): def assertBlobEqual(self, container_name, blob_name, expected_data, bsc): blob = bsc.get_blob_client(container_name, blob_name) actual_data = blob.download_blob().readall() - self.assertEqual(actual_data, expected_data) + assert actual_data == expected_data # -------------------------------------------------------------------------- @BlobPreparer() - def test_standard_blob_tier_set_tier_api(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_standard_blob_tier_set_tier_api(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) self._setup(bsc) @@ -57,23 +58,27 @@ def test_standard_blob_tier_set_tier_api(self, storage_account_name, storage_acc blob.upload_blob(b'hello world') blob_ref = blob.get_blob_properties() - self.assertIsNotNone(blob_ref.blob_tier) - self.assertTrue(blob_ref.blob_tier_inferred) - self.assertIsNone(blob_ref.blob_tier_change_time) + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + assert blob_ref.blob_tier_change_time is None # Act blob.set_standard_blob_tier(tier) # Assert blob_ref2 = blob.get_blob_properties() - self.assertEqual(tier, blob_ref2.blob_tier) - self.assertFalse(blob_ref2.blob_tier_inferred) - self.assertIsNotNone(blob_ref2.blob_tier_change_time) + assert tier == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + assert blob_ref2.blob_tier_change_time is not None blob.delete_blob() @BlobPreparer() - def test_set_standard_blob_tier_with_rehydrate_priority(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_set_standard_blob_tier_with_rehydrate_priority(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) self._setup(bsc) @@ -89,10 +94,14 @@ def test_set_standard_blob_tier_with_rehydrate_priority(self, storage_account_na blob_props = blob_client.get_blob_properties() # Assert - self.assertEqual('rehydrate-pending-to-cool', blob_props.archive_status) + assert 'rehydrate-pending-to-cool' == blob_props.archive_status @BlobPreparer() - def test_rehydration_status(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rehydration_status(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) self._setup(bsc) blob_name = 'rehydration_test_blob_1' @@ -105,38 +114,38 @@ def test_rehydration_status(self, storage_account_name, storage_account_key): blob.set_standard_blob_tier(StandardBlobTier.Cool) blob_ref = blob.get_blob_properties() - self.assertEqual(StandardBlobTier.Archive, blob_ref.blob_tier) - self.assertEqual("rehydrate-pending-to-cool", blob_ref.archive_status) - self.assertFalse(blob_ref.blob_tier_inferred) + assert StandardBlobTier.Archive == blob_ref.blob_tier + assert "rehydrate-pending-to-cool" == blob_ref.archive_status + assert not blob_ref.blob_tier_inferred blobs = list(container.list_blobs()) blob.delete_blob() # Assert - self.assertIsNotNone(blobs) - self.assertGreaterEqual(len(blobs), 1) - self.assertIsNotNone(blobs[0]) + assert blobs is not None + assert len(blobs) >= 1 + assert blobs[0] is not None self.assertNamedItemInContainer(blobs, blob.blob_name) - self.assertEqual(StandardBlobTier.Archive, blobs[0].blob_tier) - self.assertEqual("rehydrate-pending-to-cool", blobs[0].archive_status) - self.assertFalse(blobs[0].blob_tier_inferred) + assert StandardBlobTier.Archive == blobs[0].blob_tier + assert "rehydrate-pending-to-cool" == blobs[0].archive_status + assert not blobs[0].blob_tier_inferred blob2 = container.upload_blob(blob_name2, data) blob2.set_standard_blob_tier(StandardBlobTier.Archive) blob2.set_standard_blob_tier(StandardBlobTier.Hot) blob_ref2 = blob2.get_blob_properties() - self.assertEqual(StandardBlobTier.Archive, blob_ref2.blob_tier) - self.assertEqual("rehydrate-pending-to-hot", blob_ref2.archive_status) - self.assertFalse(blob_ref2.blob_tier_inferred) + assert StandardBlobTier.Archive == blob_ref2.blob_tier + assert "rehydrate-pending-to-hot" == blob_ref2.archive_status + assert not blob_ref2.blob_tier_inferred blobs = list(container.list_blobs()) # Assert - self.assertIsNotNone(blobs) - self.assertGreaterEqual(len(blobs), 1) - self.assertIsNotNone(blobs[0]) + assert blobs is not None + assert len(blobs) >= 1 + assert blobs[0] is not None self.assertNamedItemInContainer(blobs, blob2.blob_name) - self.assertEqual(StandardBlobTier.Archive, blobs[0].blob_tier) - self.assertEqual("rehydrate-pending-to-hot", blobs[0].archive_status) - self.assertFalse(blobs[0].blob_tier_inferred) + assert StandardBlobTier.Archive == blobs[0].blob_tier + assert "rehydrate-pending-to-hot" == blobs[0].archive_status + assert not blobs[0].blob_tier_inferred diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_storage_account_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_storage_account_async.py index 4c9e8f2decbb..82b1ee006244 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_storage_account_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_storage_account_async.py @@ -1,40 +1,23 @@ -# coding: utf-8 - # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from azure.core.pipeline.transport import AioHttpTransport -from multidict import CIMultiDict, CIMultiDictProxy - -from azure.storage.blob.aio import ( - BlobServiceClient -) -from azure.storage.blob import ( - StandardBlobTier -) +from azure.storage.blob import StandardBlobTier +from azure.storage.blob.aio import BlobServiceClient from azure.storage.blob._generated.models import RehydratePriority + +from devtools_testutils.aio import recorded_by_proxy_async +from devtools_testutils.storage.aio import AsyncStorageRecordedTestCase from settings.testcase import BlobPreparer -from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' # ------------------------------------------------------------------------------ -class AiohttpTestTransport(AioHttpTransport): - """Workaround to vcrpy bug: https://github.com/kevin1024/vcrpy/pull/461 - """ - async def send(self, request, **config): - response = await super(AiohttpTestTransport, self).send(request, **config) - if not isinstance(response.headers, CIMultiDictProxy): - response.headers = CIMultiDictProxy(CIMultiDict(response.internal_response.headers)) - response.content_type = response.headers.get("content-type") - return response - - -class BlobStorageAccountTestAsync(AsyncStorageTestCase): +class TestBlobStorageAccountAsync(AsyncStorageRecordedTestCase): # --Helpers----------------------------------------------------------------- async def _setup(self, bsc): self.container_name = self.get_resource_name('utcontainer') @@ -56,13 +39,16 @@ async def _create_blob(self, bsc): async def assertBlobEqual(self, container_name, blob_name, expected_data, bsc): blob = bsc.get_blob_client(container_name, blob_name) actual_data = await blob.download_blob().readall() - self.assertEqual(actual_data, expected_data) + assert actual_data == expected_data # -------------------------------------------------------------------------- @BlobPreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_standard_blob_tier_set_tier_api(self, storage_account_name, storage_account_key): - bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport()) + @recorded_by_proxy_async + async def test_standard_blob_tier_set_tier_api(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + + bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) await self._setup(bsc) tiers = [StandardBlobTier.Archive, StandardBlobTier.Cool, StandardBlobTier.Hot] @@ -73,26 +59,29 @@ async def test_standard_blob_tier_set_tier_api(self, storage_account_name, stora await blob.upload_blob(b'hello world') blob_ref = await blob.get_blob_properties() - self.assertIsNotNone(blob_ref.blob_tier) - self.assertTrue(blob_ref.blob_tier_inferred) - self.assertIsNone(blob_ref.blob_tier_change_time) + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + assert blob_ref.blob_tier_change_time is None # Act await blob.set_standard_blob_tier(tier) # Assert blob_ref2 = await blob.get_blob_properties() - self.assertEqual(tier, blob_ref2.blob_tier) - self.assertFalse(blob_ref2.blob_tier_inferred) - self.assertIsNotNone(blob_ref2.blob_tier_change_time) + assert tier == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + assert blob_ref2.blob_tier_change_time is not None await blob.delete_blob() @BlobPreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_set_std_blob_tier_w_rehydrate_priority(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_set_std_blob_tier_w_rehydrate_priority(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange - bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport()) + bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) await self._setup(bsc) blob_client = await self._create_blob(bsc) blob_tier = StandardBlobTier.Archive @@ -106,12 +95,15 @@ async def test_set_std_blob_tier_w_rehydrate_priority(self, storage_account_name blob_props = await blob_client.get_blob_properties() # Assert - self.assertEqual('rehydrate-pending-to-cool', blob_props.archive_status) + assert 'rehydrate-pending-to-cool' == blob_props.archive_status @BlobPreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rehydration_status(self, storage_account_name, storage_account_key): - bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport()) + @recorded_by_proxy_async + async def test_rehydration_status(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + + bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) await self._setup(bsc) blob_name = 'rehydration_test_blob_1' blob_name2 = 'rehydration_test_blob_2' @@ -123,9 +115,9 @@ async def test_rehydration_status(self, storage_account_name, storage_account_ke await blob.set_standard_blob_tier(StandardBlobTier.Cool) blob_ref = await blob.get_blob_properties() - self.assertEqual(StandardBlobTier.Archive, blob_ref.blob_tier) - self.assertEqual("rehydrate-pending-to-cool", blob_ref.archive_status) - self.assertFalse(blob_ref.blob_tier_inferred) + assert StandardBlobTier.Archive == blob_ref.blob_tier + assert "rehydrate-pending-to-cool" == blob_ref.archive_status + assert not blob_ref.blob_tier_inferred blobs = [] async for b in container.list_blobs(): @@ -134,32 +126,32 @@ async def test_rehydration_status(self, storage_account_name, storage_account_ke await blob.delete_blob() # Assert - self.assertIsNotNone(blobs) - self.assertGreaterEqual(len(blobs), 1) - self.assertIsNotNone(blobs[0]) + assert blobs is not None + assert len(blobs) >= 1 + assert blobs[0] is not None self.assertNamedItemInContainer(blobs, blob.blob_name) - self.assertEqual(StandardBlobTier.Archive, blobs[0].blob_tier) - self.assertEqual("rehydrate-pending-to-cool", blobs[0].archive_status) - self.assertFalse(blobs[0].blob_tier_inferred) + assert StandardBlobTier.Archive == blobs[0].blob_tier + assert "rehydrate-pending-to-cool" == blobs[0].archive_status + assert not blobs[0].blob_tier_inferred blob2 = await container.upload_blob(blob_name2, data) await blob2.set_standard_blob_tier(StandardBlobTier.Archive) await blob2.set_standard_blob_tier(StandardBlobTier.Hot) blob_ref2 = await blob2.get_blob_properties() - self.assertEqual(StandardBlobTier.Archive, blob_ref2.blob_tier) - self.assertEqual("rehydrate-pending-to-hot", blob_ref2.archive_status) - self.assertFalse(blob_ref2.blob_tier_inferred) + assert StandardBlobTier.Archive == blob_ref2.blob_tier + assert "rehydrate-pending-to-hot" == blob_ref2.archive_status + assert not blob_ref2.blob_tier_inferred blobs = [] async for b in container.list_blobs(): blobs.append(b) # Assert - self.assertIsNotNone(blobs) - self.assertGreaterEqual(len(blobs), 1) - self.assertIsNotNone(blobs[0]) + assert blobs is not None + assert len(blobs) >= 1 + assert blobs[0] is not None self.assertNamedItemInContainer(blobs, blob2.blob_name) - self.assertEqual(StandardBlobTier.Archive, blobs[0].blob_tier) - self.assertEqual("rehydrate-pending-to-hot", blobs[0].archive_status) - self.assertFalse(blobs[0].blob_tier_inferred) + assert StandardBlobTier.Archive == blobs[0].blob_tier + assert "rehydrate-pending-to-hot" == blobs[0].archive_status + assert not blobs[0].blob_tier_inferred