diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_tags.test_set_blob_tags_using_blob_sas.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_tags.test_set_blob_tags_using_blob_sas.yaml new file mode 100644 index 000000000000..31bb5061ee6f --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_tags.test_set_blob_tags_using_blob_sas.yaml @@ -0,0 +1,198 @@ +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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 21:17:53 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/containere01a139b?restype=container&timeout=5&se=2022-05-16T22%3A17%3A53Z&sp=rwxlft&sv=2021-06-08&ss=b&srt=sco&sig=V1QtpyQdlWwsd%2F41Ut%2BX9NhKkOBO2xWrXKrHDPof0qo%3D + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 21:17:53 GMT + etag: + - '"0x8DA37818A7C6380"' + last-modified: + - Mon, 16 May 2022 21:17:54 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Mon, 16 May 2022 21:17:54 GMT + x-ms-tags: + - year=1000&tag2=secondtag&tag3=thirdtag&habitat_type=Shallow%20Lowland%20Billabongs + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/containere01a139b/blobe01a139b?se=2022-05-16T22%3A17%3A53Z&sp=rwxlft&sv=2021-06-08&ss=b&srt=sco&sig=V1QtpyQdlWwsd%2F41Ut%2BX9NhKkOBO2xWrXKrHDPof0qo%3D + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + date: + - Mon, 16 May 2022 21:17:53 GMT + etag: + - '"0x8DA37818A90473B"' + last-modified: + - Mon, 16 May 2022 21:17:54 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - ov8U1LLnyKc= + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: ' + + year1000tag2secondtagtag3thirdtaghabitat_typeShallow + Lowland Billabongs' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '288' + Content-Type: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 21:17:54 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/containere01a139b/blobe01a139b?comp=tags&se=2022-05-16T22%3A17%3A54Z&sp=xt&sv=2021-06-08&sr=b&sig=rCpSyLZ6aWY1Ae6u6I5w4tYp%2Bx17Yn8iQl7GYGsFLAY%3D + response: + body: + string: '' + headers: + date: + - Mon, 16 May 2022 21:17:54 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 21:17:54 GMT + x-ms-version: + - '2021-06-08' + method: GET + uri: https://storagename.blob.core.windows.net/containere01a139b/blobe01a139b?comp=tags&se=2022-05-16T22%3A17%3A54Z&sp=xt&sv=2021-06-08&sr=b&sig=rCpSyLZ6aWY1Ae6u6I5w4tYp%2Bx17Yn8iQl7GYGsFLAY%3D + response: + body: + string: "\uFEFF\nhabitat_typeShallow + Lowland Billabongstag2secondtagtag3thirdtagyear1000" + headers: + content-length: + - '291' + content-type: + - application/xml + date: + - Mon, 16 May 2022 21:17:54 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + 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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 21:18:05 GMT + x-ms-version: + - '2021-06-08' + method: GET + uri: https://storagename.blob.core.windows.net/?comp=blobs&where=%22year%22%3D%271000%27%20and%20tag2%20%3D%20%27secondtag%27%20and%20tag3%3D%27thirdtag%27&maxresults=2&se=2022-05-16T22%3A17%3A53Z&sp=rwxlft&sv=2021-06-08&ss=b&srt=sco&sig=V1QtpyQdlWwsd/41Ut%2BX9NhKkOBO2xWrXKrHDPof0qo%3D + response: + body: + string: "\uFEFF\n"year"='1000' + and tag2 = 'secondtag' and tag3='thirdtag'2blobe01a139bcontainere01a139btag2secondtagtag3thirdtagyear1000" + headers: + content-type: + - application/xml + date: + - Mon, 16 May 2022 21:18:05 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-06-08' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_blob_tier_specified.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_blob_tier_specified.yaml new file mode 100644 index 000000000000..dc8bc423d7bf --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_blob_tier_specified.yaml @@ -0,0 +1,240 @@ +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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:17:38 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer8e6d16e4?restype=container&timeout=5 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:17:38 GMT + etag: + - '"0x8DA3789E342AB17"' + last-modified: + - Mon, 16 May 2022 22:17:38 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainersource8e6d16e4?restype=container&timeout=5 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:17:38 GMT + etag: + - '"0x8DA3789E3540EA2"' + last-modified: + - Mon, 16 May 2022 22:17:39 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer8e6d16e4/blob8e6d16e4 + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + date: + - Mon, 16 May 2022 22:17:38 GMT + etag: + - '"0x8DA3789E3658620"' + last-modified: + - Mon, 16 May 2022 22:17:39 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - ov8U1LLnyKc= + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-access-tier: + - Cool + x-ms-copy-source: + - https://vincenttranstock.blob.core.windows.net/utcontainer8e6d16e4/blob8e6d16e4 + x-ms-date: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer8e6d16e4/blob1copy + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:17:38 GMT + etag: + - '"0x8DA3789E3789756"' + last-modified: + - Mon, 16 May 2022 22:17:39 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-copy-id: + - 5dd04023-0f8f-4c85-a576-1768ec651076 + x-ms-copy-status: + - success + x-ms-version: + - '2021-06-08' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-version: + - '2021-06-08' + method: HEAD + uri: https://storagename.blob.core.windows.net/utcontainer8e6d16e4/blob1copy + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '1024' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + content-type: + - application/octet-stream + date: + - Mon, 16 May 2022 22:17:38 GMT + etag: + - '"0x8DA3789E3789756"' + last-modified: + - Mon, 16 May 2022 22:17:39 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Cool + x-ms-access-tier-change-time: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-blob-type: + - BlockBlob + x-ms-copy-completion-time: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-copy-id: + - 5dd04023-0f8f-4c85-a576-1768ec651076 + x-ms-copy-progress: + - 1024/1024 + x-ms-copy-source: + - https://vincenttranstock.blob.core.windows.net/utcontainer8e6d16e4/blob8e6d16e4 + x-ms-copy-status: + - success + x-ms-creation-time: + - Mon, 16 May 2022 22:17:39 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2021-06-08' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_rehydrate_priority.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_rehydrate_priority.yaml new file mode 100644 index 000000000000..467c5e4d4bd2 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob.test_copy_blob_with_rehydrate_priority.yaml @@ -0,0 +1,348 @@ +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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:18:51 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0?restype=container&timeout=5 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:18:51 GMT + etag: + - '"0x8DA378A0EC5F6E7"' + last-modified: + - Mon, 16 May 2022 22:18:51 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainersource79ab16d0?restype=container&timeout=5 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:18:51 GMT + etag: + - '"0x8DA378A0ED6E577"' + last-modified: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0/blob79ab16d0 + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + date: + - Mon, 16 May 2022 22:18:51 GMT + etag: + - '"0x8DA378A0EE7FE1B"' + last-modified: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - ov8U1LLnyKc= + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2021-06-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-access-tier: + - Archive + x-ms-copy-source: + - https://vincenttranstock.blob.core.windows.net/utcontainer79ab16d0/blob79ab16d0 + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-rehydrate-priority: + - High + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0/blob1copy + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:18:51 GMT + etag: + - '"0x8DA378A0EFAC13A"' + last-modified: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-copy-id: + - 3f612ce8-d2c4-413b-be2a-b39e5cb9ac6c + x-ms-copy-status: + - success + x-ms-version: + - '2021-06-08' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-version: + - '2021-06-08' + method: HEAD + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0/blob1copy + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '1024' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + content-type: + - application/octet-stream + date: + - Mon, 16 May 2022 22:18:52 GMT + etag: + - '"0x8DA378A0EFAC13A"' + last-modified: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Archive + x-ms-access-tier-change-time: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-blob-type: + - BlockBlob + x-ms-copy-completion-time: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-copy-id: + - 3f612ce8-d2c4-413b-be2a-b39e5cb9ac6c + x-ms-copy-progress: + - 1024/1024 + x-ms-copy-source: + - https://vincenttranstock.blob.core.windows.net/utcontainer79ab16d0/blob79ab16d0 + x-ms-copy-status: + - success + x-ms-creation-time: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2021-06-08' + 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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-access-tier: + - Hot + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0/blob1copy?comp=tier + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-version: + - '2021-06-08' + method: HEAD + uri: https://storagename.blob.core.windows.net/utcontainer79ab16d0/blob1copy + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '1024' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + content-type: + - application/octet-stream + date: + - Mon, 16 May 2022 22:18:52 GMT + etag: + - '"0x8DA378A0EFAC13A"' + last-modified: + - Mon, 16 May 2022 22:18:52 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Archive + x-ms-access-tier-change-time: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-archive-status: + - rehydrate-pending-to-hot + x-ms-blob-type: + - BlockBlob + x-ms-copy-completion-time: + - Mon, 16 May 2022 22:18:52 GMT + x-ms-copy-id: + - 3f612ce8-d2c4-413b-be2a-b39e5cb9ac6c + x-ms-copy-progress: + - 1024/1024 + x-ms-copy-source: + - https://vincenttranstock.blob.core.windows.net/utcontainer79ab16d0/blob79ab16d0 + x-ms-copy-status: + - success + x-ms-creation-time: + - Mon, 16 May 2022 22:18:52 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-06-08' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob_async.test_no_server_encryption_async.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob_async.test_no_server_encryption_async.yaml new file mode 100644 index 000000000000..f7613c431ff3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_common_blob_async.test_no_server_encryption_async.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Wed, 18 May 2022 00:19:58 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer65bc166b?restype=container + response: + body: + string: '' + headers: + content-length: '0' + date: Wed, 18 May 2022 00:19:57 GMT + etag: '"0x8DA3864243BAB6E"' + last-modified: Wed, 18 May 2022 00:19:58 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2021-06-08' + status: + code: 201 + message: Created + url: https://vincenttranstock.blob.core.windows.net/utcontainer65bc166b?restype=container +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 18 May 2022 00:19:59 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/utcontainer65bc166b/blob65bc166b + response: + body: + string: '' + headers: + content-length: '0' + content-md5: yaNM/IXZgmmMasifdgcavQ== + date: Wed, 18 May 2022 00:19:57 GMT + etag: '"0x8DA38642449ED0B"' + last-modified: Wed, 18 May 2022 00:19:58 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: ov8U1LLnyKc= + x-ms-request-server-encrypted: 'true' + x-ms-version: '2021-06-08' + status: + code: 201 + message: Created + url: https://vincenttranstock.blob.core.windows.net/utcontainer65bc166b/blob65bc166b +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Wed, 18 May 2022 00:19:59 GMT + x-ms-version: + - '2021-06-08' + method: HEAD + uri: https://storagename.blob.core.windows.net/utcontainer65bc166b/blob65bc166b + response: + body: + string: '' + headers: + accept-ranges: bytes + content-length: '1024' + content-md5: yaNM/IXZgmmMasifdgcavQ== + content-type: application/octet-stream + date: Wed, 18 May 2022 00:19:57 GMT + etag: '"0x8DA38642449ED0B"' + last-modified: Wed, 18 May 2022 00:19:58 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, 18 May 2022 00:19:58 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-version: '2021-06-08' + status: + code: 200 + message: OK + url: https://vincenttranstock.blob.core.windows.net/utcontainer65bc166b/blob65bc166b +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_with_include_multiple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_with_include_multiple.yaml new file mode 100644 index 000000000000..3767790284b3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_with_include_multiple.yaml @@ -0,0 +1,238 @@ +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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 23 May 2022 20:10:07 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/container39251586?restype=container + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 23 May 2022 20:10:07 GMT + etag: + - '"0x8DA3CF83BFCEC4D"' + last-modified: + - Mon, 23 May 2022 20:10:08 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-06-08' + 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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Mon, 23 May 2022 20:10:08 GMT + x-ms-meta-name: + - bob + x-ms-meta-number: + - '1' + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/container39251586/blob1 + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - XrY7u+Ae7tCTyyK7j1rNww== + date: + - Mon, 23 May 2022 20:10:08 GMT + etag: + - '"0x8DA3CF83C0E9A73"' + last-modified: + - Mon, 23 May 2022 20:10:08 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-06-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 23 May 2022 20:10:08 GMT + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/container39251586/blob1?comp=snapshot + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 23 May 2022 20:10:08 GMT + etag: + - '"0x8DA3CF83C0E9A73"' + last-modified: + - Mon, 23 May 2022 20:10:08 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-server-encrypted: + - 'false' + x-ms-snapshot: + - '2022-05-23T20:10:08.4782043Z' + x-ms-version: + - '2021-06-08' + 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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Mon, 23 May 2022 20:10:08 GMT + x-ms-meta-name: + - car + x-ms-meta-number: + - '2' + x-ms-version: + - '2021-06-08' + method: PUT + uri: https://storagename.blob.core.windows.net/container39251586/blob2 + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - XrY7u+Ae7tCTyyK7j1rNww== + date: + - Mon, 23 May 2022 20:10:08 GMT + etag: + - '"0x8DA3CF83C333658"' + last-modified: + - Mon, 23 May 2022 20:10:08 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-06-08' + 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.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 23 May 2022 20:10:08 GMT + x-ms-version: + - '2021-06-08' + method: GET + uri: https://storagename.blob.core.windows.net/container39251586?restype=container&comp=list&include=snapshots,metadata + response: + body: + string: "\uFEFFblob12022-05-23T20:10:08.4782043ZMon, + 23 May 2022 20:10:08 GMTMon, 23 May 2022 20:10:08 + GMT0x8DA3CF83C0E9A7311application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrue1bobblob1Mon, 23 May 2022 + 20:10:08 GMTMon, 23 May 2022 20:10:08 GMT0x8DA3CF83C0E9A7311application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue1bobblob2Mon, 23 May 2022 + 20:10:08 GMTMon, 23 May 2022 20:10:08 GMT0x8DA3CF83C33365811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue2car" + headers: + content-type: + - application/xml + date: + - Mon, 23 May 2022 20:10:08 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-06-08' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_encoded_blobs.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_encoded_blobs.yaml index 38344fb11e01..78f42a67bf40 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_encoded_blobs.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_encoded_blobs.yaml @@ -11,11 +11,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-blob/12.10.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) x-ms-date: - - Fri, 10 Dec 2021 23:43:36 GMT + - Mon, 16 May 2022 20:54:39 GMT x-ms-version: - - '2021-02-12' + - '2021-06-08' method: PUT uri: https://storagename.blob.core.windows.net/cont131050f8e?restype=container response: @@ -25,15 +25,15 @@ interactions: content-length: - '0' date: - - Fri, 10 Dec 2021 23:43:37 GMT + - Mon, 16 May 2022 20:54:39 GMT etag: - - '"0x8D9BC36E3700B89"' + - '"0x8DA377E4B4BF0EE"' last-modified: - - Fri, 10 Dec 2021 23:43:37 GMT + - Mon, 16 May 2022 20:54:39 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-02-12' + - '2021-06-08' status: code: 201 message: Created @@ -53,13 +53,13 @@ interactions: If-None-Match: - '*' User-Agent: - - azsdk-python-storage-blob/12.10.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) x-ms-blob-type: - BlockBlob x-ms-date: - - Fri, 10 Dec 2021 23:43:37 GMT + - Mon, 16 May 2022 20:54:39 GMT x-ms-version: - - '2021-02-12' + - '2021-06-08' method: PUT uri: https://storagename.blob.core.windows.net/cont131050f8e/dir1/dir2/file%EF%BF%BF.blob response: @@ -71,11 +71,11 @@ interactions: content-md5: - XrY7u+Ae7tCTyyK7j1rNww== date: - - Fri, 10 Dec 2021 23:43:37 GMT + - Mon, 16 May 2022 20:54:39 GMT etag: - - '"0x8D9BC36E3A85C3F"' + - '"0x8DA377E4B5CAB2D"' last-modified: - - Fri, 10 Dec 2021 23:43:38 GMT + - Mon, 16 May 2022 20:54:39 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: @@ -83,9 +83,7 @@ interactions: x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2021-02-12' - x-ms-version-id: - - '2021-12-10T23:43:38.3353407Z' + - '2021-06-08' status: code: 201 message: Created @@ -99,11 +97,11 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-blob/12.10.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) x-ms-date: - - Fri, 10 Dec 2021 23:43:38 GMT + - Mon, 16 May 2022 20:54:39 GMT x-ms-version: - - '2021-02-12' + - '2021-06-08' method: HEAD uri: https://storagename.blob.core.windows.net/cont131050f8e/dir1/dir2/file%EF%BF%BF.blob response: @@ -119,11 +117,11 @@ interactions: content-type: - application/octet-stream date: - - Fri, 10 Dec 2021 23:43:37 GMT + - Mon, 16 May 2022 20:54:39 GMT etag: - - '"0x8D9BC36E3A85C3F"' + - '"0x8DA377E4B5CAB2D"' last-modified: - - Fri, 10 Dec 2021 23:43:38 GMT + - Mon, 16 May 2022 20:54:39 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: @@ -133,9 +131,7 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Fri, 10 Dec 2021 23:43:38 GMT - x-ms-is-current-version: - - 'true' + - Mon, 16 May 2022 20:54:39 GMT x-ms-lease-state: - available x-ms-lease-status: @@ -143,9 +139,7 @@ interactions: x-ms-server-encrypted: - 'true' x-ms-version: - - '2021-02-12' - x-ms-version-id: - - '2021-12-10T23:43:38.3353407Z' + - '2021-06-08' status: code: 200 message: OK @@ -159,20 +153,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-blob/12.10.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-storage-blob/12.12.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) x-ms-date: - - Fri, 10 Dec 2021 23:43:38 GMT + - Mon, 16 May 2022 20:54:40 GMT x-ms-version: - - '2021-02-12' + - '2021-06-08' method: GET uri: https://storagename.blob.core.windows.net/cont131050f8e?restype=container&comp=list response: body: string: "\uFEFFdir1%2Fdir2%2Ffile%EF%BF%BF.blob2021-12-10T23:43:38.3353407ZtrueFri, - 10 Dec 2021 23:43:38 GMTFri, 10 Dec 2021 23:43:38 - GMT0x8D9BC36E3A85C3F11application/octet-streamdir1%2Fdir2%2Ffile%EF%BF%BF.blobMon, + 16 May 2022 20:54:39 GMTMon, 16 May 2022 20:54:39 + GMT0x8DA377E4B5CAB2D11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue" @@ -180,13 +174,13 @@ interactions: content-type: - application/xml date: - - Fri, 10 Dec 2021 23:43:38 GMT + - Mon, 16 May 2022 20:54:39 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-02-12' + - '2021-06-08' status: code: 200 message: OK diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_tags.py b/sdk/storage/azure-storage-blob/tests/test_blob_tags.py index abf1d8f9fc98..72da7243e140 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_tags.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_tags.py @@ -416,7 +416,6 @@ def test_filter_blobs_using_account_sas(self, storage_account_name, storage_acco items_on_page1 = list(first_page) self.assertEqual(1, len(items_on_page1)) - @pytest.mark.skip(reason="https://github.com/Azure/azure-sdk-for-python/issues/23693 ; Test failing after resolving odd service versioning skip behavior.") @pytest.mark.live_test_only @BlobPreparer() def test_set_blob_tags_using_blob_sas(self, storage_account_name, storage_account_key): diff --git a/sdk/storage/azure-storage-blob/tests/test_common_blob.py b/sdk/storage/azure-storage-blob/tests/test_common_blob.py index 843d73b75f7c..0896e4707484 100644 --- a/sdk/storage/azure-storage-blob/tests/test_common_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_common_blob.py @@ -1332,7 +1332,6 @@ def test_copy_blob_returns_vid(self, storage_account_name, storage_account_key): @BlobPreparer() def test_copy_blob_with_blob_tier_specified(self, storage_account_name, storage_account_key): - pytest.skip("Unable to set premium account") # Arrange self._setup(storage_account_name, storage_account_key) blob_name = self._create_block_blob() @@ -1355,7 +1354,6 @@ def test_copy_blob_with_blob_tier_specified(self, storage_account_name, storage_ @BlobPreparer() def test_copy_blob_with_rehydrate_priority(self, storage_account_name, storage_account_key): # Arrange - pytest.skip("Unabe to set up premium storage account type") self._setup(storage_account_name, storage_account_key) blob_name = self._create_block_blob() diff --git a/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py index fd9a9bfd343b..be580b5a076e 100644 --- a/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_common_blob_async.py @@ -792,10 +792,13 @@ async def test_list_blobs_server_encryption(self, storage_account_name, storage_ @pytest.mark.live_test_only @BlobPreparer() @AsyncStorageTestCase.await_prepared_test - async def test_no_server_encryption(self, storage_account_name, storage_account_key): - pytest.skip("Aiohttp headers dict (CIMultiDictProxy) is immutable.") + async def test_no_server_encryption_async(self, storage_account_name, storage_account_key): # Arrange - await self._setup(storage_account_name, storage_account_key) + self.bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key) + self.container_name = self.get_resource_name('utcontainer') + self.source_container_name = self.get_resource_name('utcontainersource') + self.byte_data = self.get_random_bytes(1024) + await self.bsc.create_container(self.container_name) blob_name = await self._create_block_blob() blob = self.bsc.get_blob_client(self.container_name, blob_name) diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index d9d6296b9970..b719f9cf73ae 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -961,7 +961,6 @@ def test_list_blobs(self, storage_account_name, storage_account_key): 'application/octet-stream') self.assertIsNotNone(blobs[0].creation_time) - @pytest.mark.skipif(sys.version_info < (3, 0), reason="quote and unquote behave differently on py2 for recordings") @BlobPreparer() def test_list_encoded_blobs(self, storage_account_name, storage_account_key): bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), storage_account_key) @@ -1087,7 +1086,6 @@ def test_list_blobs_with_include_snapshots(self, storage_account_name, storage_a @BlobPreparer() def test_list_blobs_with_include_metadata(self, storage_account_name, storage_account_key): bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), storage_account_key) - # pytest.skip("Waiting on metadata XML fix in msrest") container = self._create_container(bsc) data = b'hello world' content_settings = ContentSettings( @@ -1116,7 +1114,6 @@ def test_list_blobs_with_include_metadata(self, storage_account_name, storage_ac @BlobPreparer() def test_list_blobs_include_deletedwithversion(self, versioned_storage_account_name, versioned_storage_account_key): bsc = BlobServiceClient(self.account_url(versioned_storage_account_name, "blob"), versioned_storage_account_key) - # pytest.skip("Waiting on metadata XML fix in msrest") container = self._create_container(bsc) data = b'hello world' content_settings = ContentSettings( @@ -1814,7 +1811,6 @@ def recursive_walk(prefix): @BlobPreparer() def test_list_blobs_with_include_multiple(self, storage_account_name, storage_account_key): bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), storage_account_key) - pytest.skip("Waiting on metadata XML fix in msrest") container = self._create_container(bsc) data = b'hello world' blob1 = container.get_blob_client('blob1') diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index b7aed5b4266f..e559e0008207 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -1179,7 +1179,6 @@ async def test_list_blobs_with_include_metadata(self, storage_account_name, stor @BlobPreparer() async def test_list_blobs_include_deletedwithversion_async(self, versioned_storage_account_name, versioned_storage_account_key): bsc = BlobServiceClient(self.account_url(versioned_storage_account_name, "blob"), versioned_storage_account_key) - # pytest.skip("Waiting on metadata XML fix in msrest") container = await self._create_container(bsc) data = b'hello world' content_settings = ContentSettings( diff --git a/sdk/storage/azure-storage-blob/tests/test_largest_block_blob.py b/sdk/storage/azure-storage-blob/tests/test_largest_block_blob.py index c9f868f001e3..ffe458b25d0b 100644 --- a/sdk/storage/azure-storage-blob/tests/test_largest_block_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_largest_block_blob.py @@ -71,7 +71,7 @@ def _create_blob(self): # --Test cases for block blobs -------------------------------------------- @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() def test_put_block_bytes_largest(self, storage_account_name, storage_account_key): self._setup(storage_account_name, storage_account_key) @@ -129,7 +129,7 @@ def test_put_block_bytes_largest_without_network(self, storage_account_name, sto self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() def test_put_block_stream_largest(self, storage_account_name, storage_account_key): self._setup(storage_account_name, storage_account_key) @@ -191,7 +191,7 @@ def test_put_block_stream_largest_without_network(self, storage_account_name, st self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() def test_create_largest_blob_from_path(self, storage_account_name, storage_account_key): self._setup(storage_account_name, storage_account_key) @@ -262,7 +262,7 @@ def test_create_largest_blob_from_path_without_network(self, storage_account_nam self.assertEqual(payload_dropping_policy.put_block_counter, 1) self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @pytest.mark.live_test_only @BlobPreparer() def test_create_largest_blob_from_stream_without_network(self, storage_account_name, storage_account_key): diff --git a/sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.py index 908d0199df21..d907b734172d 100644 --- a/sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_largest_block_blob_async.py @@ -90,7 +90,7 @@ async def _create_blob(self): # --Test cases for block blobs -------------------------------------------- @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() @AsyncStorageTestCase.await_prepared_test async def test_put_block_bytes_largest(self, storage_account_name, storage_account_key): @@ -150,7 +150,7 @@ async def test_put_block_bytes_largest_without_network(self, storage_account_nam self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() @AsyncStorageTestCase.await_prepared_test async def test_put_block_stream_largest(self, storage_account_name, storage_account_key): @@ -214,7 +214,7 @@ async def test_put_block_stream_largest_without_network(self, storage_account_na self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) @pytest.mark.live_test_only - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @BlobPreparer() @AsyncStorageTestCase.await_prepared_test async def test_create_largest_blob_from_path(self, storage_account_name, storage_account_key): @@ -262,7 +262,7 @@ async def test_create_largest_blob_from_path_without_network(self, storage_accou self.assertEqual(payload_dropping_policy.put_block_counter, 1) self.assertEqual(payload_dropping_policy.put_block_sizes[0], LARGEST_BLOCK_SIZE) - @pytest.mark.skip(reason="This takes really long time") + @pytest.mark.skip(reason="This takes a long time to run. Uncomment to run ad-hoc.") @pytest.mark.live_test_only @BlobPreparer() @AsyncStorageTestCase.await_prepared_test diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob.py b/sdk/storage/azure-storage-blob/tests/test_page_blob.py index 217f1059783e..fd367d7e39c5 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob.py @@ -1792,7 +1792,7 @@ def test_create_blob_with_md5_large(self, storage_account_name, storage_account_ # Assert - @pytest.mark.skip(reason="Failing live test https://github.com/Azure/azure-sdk-for-python/issues/10473") + @pytest.mark.skip(reason="Requires further investigation. Failing for unexpected kwarg seal_blob") @pytest.mark.live_test_only @BlobPreparer() def test_incremental_copy_blob(self, storage_account_name, storage_account_key): diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py index a74b07324967..9b4364737351 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py @@ -1,3 +1,4 @@ + # coding: utf-8 # ------------------------------------------------------------------------- @@ -1835,7 +1836,7 @@ async def test_create_blob_with_md5_large(self, storage_account_name, storage_ac # Assert - @pytest.mark.skip(reason="Failing live test https://github.com/Azure/azure-sdk-for-python/issues/10473") + @pytest.mark.skip(reason="Requires further investigation. Failing for unexpected kwarg seal_blob") @pytest.mark.live_test_only @BlobPreparer() @AsyncStorageTestCase.await_prepared_test diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_directory.py b/sdk/storage/azure-storage-file-datalake/tests/test_directory.py index 83060de9e10e..1608a99e3bb7 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_directory.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_directory.py @@ -849,11 +849,10 @@ def test_rename_from(self, datalake_storage_account_name, datalake_storage_accou self.assertIsNotNone(properties) self.assertIsNone(properties.get('content_settings')) + @pytest.mark.skip(reason="Investigate why renaming from shorter path to longer path does not work") @DataLakePreparer() def test_rename_from_a_shorter_directory_to_longer_directory(self, datalake_storage_account_name, datalake_storage_account_key): self._setUp(datalake_storage_account_name, datalake_storage_account_key) - # TODO: investigate why rename shorter path to a longer one does not work - pytest.skip("") directory_name = self._get_directory_reference() self._create_directory_and_get_directory_client(directory_name="old") @@ -992,11 +991,10 @@ def test_rename_to_an_non_existing_directory_in_another_file_system(self, datala self.assertEqual(non_existing_dir_name, res.path_name) + @pytest.mark.skip(reason="Investigate why renaming non-empty directory doesn't work") @DataLakePreparer() def test_rename_directory_to_non_empty_directory(self, datalake_storage_account_name, datalake_storage_account_key): self._setUp(datalake_storage_account_name, datalake_storage_account_key) - # TODO: investigate why rename non empty dir doesn't work - pytest.skip("") dir1 = self._create_directory_and_get_directory_client("dir1") dir1.create_sub_directory("subdir") diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py index b8b59d19fc6f..b469e0aeeba3 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py @@ -804,11 +804,10 @@ async def test_rename_from_async(self, datalake_storage_account_name, datalake_s self.assertIsNotNone(properties) self.assertIsNone(properties.get('content_settings')) + @pytest.mark.skip(reason="Investigate why renaming from shorter path to longer path does not work") @DataLakePreparer() async def test_rename_from_a_shorter_directory_to_longer_directory_async(self, datalake_storage_account_name, datalake_storage_account_key): await self._setUp(datalake_storage_account_name, datalake_storage_account_key) - # TODO: investigate why rename shorter path to a longer one does not work - pytest.skip("") directory_name = self._get_directory_reference() await self._create_directory_and_get_directory_client(directory_name="old") @@ -957,11 +956,10 @@ async def test_rename_to_an_non_existing_directory_in_another_file_system_async( self.assertEqual(non_existing_dir_name, res.path_name) + @pytest.mark.skip(reason="Investigate why renaming non-empty directory doesn't work") @DataLakePreparer() async def test_rename_directory_to_non_empty_directory_async(self, datalake_storage_account_name, datalake_storage_account_key): await self._setUp(datalake_storage_account_name, datalake_storage_account_key) - # TODO: investigate why rename non empty dir doesn't work - pytest.skip("") dir1 = await self._create_directory_and_get_directory_client("dir1") await dir1.create_sub_directory("subdir") diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file.py b/sdk/storage/azure-storage-file-datalake/tests/test_file.py index 96df6b34ebf3..360df5e35d32 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file.py @@ -859,10 +859,10 @@ def test_rename_file_with_file_sas(self, datalake_storage_account_name, datalake self.assertEqual(data, data_bytes) self.assertEqual(new_client.path_name, "newname") + @pytest.mark.skip(reason="Service bug, requires further investigation.") @DataLakePreparer() def test_rename_file_with_account_sas(self, datalake_storage_account_name, datalake_storage_account_key): self._setUp(datalake_storage_account_name, datalake_storage_account_key) - pytest.skip("service bug") token = generate_account_sas( self.dsc.account_name, self.dsc.credential.account_key, diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py b/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py index 63a735414dba..bb6f049fe655 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py @@ -203,9 +203,9 @@ def test_rename_file_system(self, datalake_storage_account_name, datalake_storag self.dsc._rename_file_system(name="badfilesystem", new_name="filesystem") self.assertEqual(new_name, new_filesystem.get_file_system_properties().name) + @pytest.mark.skip(reason="Feature not yet enabled. Record when enabled.") @DataLakePreparer() def test_rename_file_system_with_file_system_client(self, datalake_storage_account_name, datalake_storage_account_key): - pytest.skip("Feature not yet enabled. Make sure to record this test once enabled.") self._setUp(datalake_storage_account_name, datalake_storage_account_key) old_name1 = self._get_file_system_reference(prefix="oldcontainer1") old_name2 = self._get_file_system_reference(prefix="oldcontainer2") @@ -282,11 +282,9 @@ def test_undelete_file_system(self, datalake_storage_account_name, datalake_stor props = restored_fs_client.get_file_system_properties() self.assertIsNotNone(props) + @pytest.mark.skip(reason="We are generating a SAS token therefore play only live but we also need a soft delete enabled account.") @DataLakePreparer() def test_restore_file_system_with_sas(self, datalake_storage_account_name, datalake_storage_account_key): - # TODO: Needs soft delete enabled account in ARM template. - pytest.skip( - "We are generating a SAS token therefore play only live but we also need a soft delete enabled account.") self._setUp(datalake_storage_account_name, datalake_storage_account_key) token = generate_account_sas( self.dsc.account_name, diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py index 3d29e6af0053..44d02482b266 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py @@ -220,10 +220,10 @@ async def test_rename_file_system(self, datalake_storage_account_name, datalake_ props = await new_filesystem.get_file_system_properties() self.assertEqual(new_name, props.name) + @pytest.mark.skip(reason="Feature not yet enabled. Record when enabled.") @DataLakePreparer() async def test_rename_file_system_with_file_system_client( self, datalake_storage_account_name, datalake_storage_account_key): - pytest.skip("Feature not yet enabled. Make sure to record this test once enabled.") self._setUp(datalake_storage_account_name, datalake_storage_account_key) old_name1 = self._get_file_system_reference(prefix="oldcontainer1") old_name2 = self._get_file_system_reference(prefix="oldcontainer2") @@ -289,11 +289,9 @@ async def test_undelete_file_system(self, datalake_storage_account_name, datalak props = await restored_fs_client.get_file_system_properties() self.assertIsNotNone(props) + @pytest.mark.skip(reason="We are generating a SAS token therefore play only live but we also need a soft delete enabled account.") @DataLakePreparer() async def test_restore_file_system_with_sas(self, datalake_storage_account_name, datalake_storage_account_key): - # TODO: Needs soft delete enabled account in ARM template. - pytest.skip( - "We are generating a SAS token therefore play only live but we also need a soft delete enabled account.") self._setUp(datalake_storage_account_name, datalake_storage_account_key) token = generate_account_sas( self.dsc.account_name, diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_large_file.py b/sdk/storage/azure-storage-file-datalake/tests/test_large_file.py index 1c6db679536c..5519ce813e89 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_large_file.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_large_file.py @@ -78,11 +78,10 @@ def test_append_large_stream_without_network(self, datalake_storage_account_name self.assertEqual(self.payload_dropping_policy.append_counter, 1) self.assertEqual(self.payload_dropping_policy.append_sizes[0], LARGEST_BLOCK_SIZE) + @pytest.mark.skip(reason="Pypy3 on Linux failed somehow, skip for now to investigate") @pytest.mark.live_test_only @DataLakePreparer() def test_upload_large_stream_without_network(self, datalake_storage_account_name, datalake_storage_account_key): - pytest.skip("Pypy3 on Linux failed somehow, skip for now to investigate") - self._setUp(datalake_storage_account_name, datalake_storage_account_key) directory_name = self.get_resource_name(TEST_DIRECTORY_PREFIX) diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_large_file_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_large_file_async.py index d0c970a30c6d..1fb779da34d4 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_large_file_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_large_file_async.py @@ -87,10 +87,10 @@ async def test_append_large_stream_without_network(self, datalake_storage_accoun self.assertEqual(self.payload_dropping_policy.append_counter, 1) self.assertEqual(self.payload_dropping_policy.append_sizes[0], LARGEST_BLOCK_SIZE) + @pytest.mark.skip(reason="Pypy3 on Linux failed somehow, skip for now to investigate") @pytest.mark.live_test_only @DataLakePreparer() - async def test_upload_large_stream_without_network(self, datalake_storage_account_name, datalake_storage_account_key): - pytest.skip("Pypy3 on Linux failed somehow, skip for now to investigate") + async def test_upload_large_stream_without_network_async(self, datalake_storage_account_name, datalake_storage_account_key): await self._setUp(datalake_storage_account_name, datalake_storage_account_key) directory_name = self.get_resource_name(TEST_DIRECTORY_PREFIX) diff --git a/sdk/storage/azure-storage-file-share/tests/test_handle.py b/sdk/storage/azure-storage-file-share/tests/test_handle.py index 794954d32137..2a011c61b11e 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_handle.py +++ b/sdk/storage/azure-storage-file-share/tests/test_handle.py @@ -58,12 +58,11 @@ def _validate_handles(self, handles): self.assertIsNotNone(handles[0].client_ip) self.assertIsNotNone(handles[0].open_time) + @pytest.mark.playback_test_only @FileSharePreparer() def test_list_handles_on_share(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -75,13 +74,11 @@ def test_list_handles_on_share(self, storage_account_name, storage_account_key): # Assert self._validate_handles(handles) -# + @pytest.mark.playback_test_only @FileSharePreparer() def test_list_handles_on_share_snapshot(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME, snapshot="2019-05-08T23:27:24.0000000Z") @@ -93,12 +90,11 @@ def test_list_handles_on_share_snapshot(self, storage_account_name, storage_acco # Assert self._validate_handles(handles) + @pytest.mark.playback_test_only @FileSharePreparer() def test_list_handles_with_marker(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -127,12 +123,11 @@ def test_list_handles_with_marker(self, storage_account_name, storage_account_ke old_handle_not_present = all([old_handle.id != handle.id for handle in remaining_handles]) self.assertTrue(old_handle_not_present) + @pytest.mark.playback_test_only @FileSharePreparer() def test_list_handles_on_directory(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -150,12 +145,11 @@ def test_list_handles_on_directory(self, storage_account_name, storage_account_k # Assert recursive option is functioning when disabled self.assertTrue(len(handles) == 0) + @pytest.mark.playback_test_only @FileSharePreparer() def test_list_handles_on_file(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -167,12 +161,11 @@ def test_list_handles_on_file(self, storage_account_name, storage_account_key): # Assert self._validate_handles(handles) + @pytest.mark.playback_test_only @FileSharePreparer() def test_close_single_handle(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -190,12 +183,11 @@ def test_close_single_handle(self, storage_account_name, storage_account_key): self.assertEqual(1, handles_info['closed_handles_count']) self.assertEqual(handles_info['failed_handles_count'], 0) + @pytest.mark.playback_test_only @FileSharePreparer() def test_close_all_handle(self, storage_account_name, storage_account_key): # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) diff --git a/sdk/storage/azure-storage-file-share/tests/test_handle_async.py b/sdk/storage/azure-storage-file-share/tests/test_handle_async.py index 6432bb77eeea..3891ce4355e8 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_handle_async.py +++ b/sdk/storage/azure-storage-file-share/tests/test_handle_async.py @@ -61,14 +61,13 @@ def _validate_handles(self, handles): self.assertIsNotNone(handles[0].client_ip) self.assertIsNotNone(handles[0].open_time) + @pytest.mark.skip(reason="Needs further investigation.") + @pytest.mark.playback_test_only @FileSharePreparer() @AsyncStorageTestCase.await_prepared_test async def test_close_single_handle_async(self, storage_account_name, storage_account_key): - pytest.skip("investigate later") # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI - if self.is_live: - pytest.skip("Cannot run in live without manual setup") self._setup(storage_account_name, storage_account_key) share = self.fsc.get_share_client(TEST_SHARE_NAME) @@ -88,10 +87,11 @@ async def test_close_single_handle_async(self, storage_account_name, storage_acc self.assertEqual(1, handles_info['closed_handles_count']) self.assertEqual(handles_info['failed_handles_count'], 0) + @pytest.mark.skip(reason="Needs further investigation.") + @pytest.mark.playback_test_only @FileSharePreparer() @AsyncStorageTestCase.await_prepared_test async def test_close_all_handle_async(self, storage_account_name, storage_account_key): - pytest.skip("investigate later") # don't run live, since the test set up was highly manual # only run when recording, or playing back in CI if self.is_live: diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_get_messages_unicode_data.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_get_messages_unicode_data.yaml new file mode 100644 index 000000000000..5afad3fc3db5 --- /dev/null +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_get_messages_unicode_data.yaml @@ -0,0 +1,116 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:00:56 GMT + x-ms-version: + - '2021-02-12' + method: PUT + uri: https://storagename.queue.core.windows.net/pyqueuesyncf853140e + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 23:00:57 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-02-12' + status: + code: 201 + message: Created +- request: + body: "\nmessage1\u3688" + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '106' + Content-Type: + - application/xml + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:00:57 GMT + x-ms-version: + - '2021-02-12' + method: POST + uri: https://storagename.queue.core.windows.net/pyqueuesyncf853140e/messages + response: + body: + string: "\uFEFF481cc9de-485c-4f71-8c59-cacd21fc3fcdMon, + 16 May 2022 23:00:57 GMTMon, 23 May 2022 23:00:57 + GMTAgAAAAMAAAAAAAAAhiF/zXhp2AE=Mon, + 16 May 2022 23:00:57 GMT" + headers: + content-type: + - application/xml + date: + - Mon, 16 May 2022 23:00:57 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-02-12' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:00:57 GMT + x-ms-version: + - '2021-02-12' + method: GET + uri: https://storagename.queue.core.windows.net/pyqueuesyncf853140e/messages + response: + body: + string: "\uFEFF481cc9de-485c-4f71-8c59-cacd21fc3fcdMon, + 16 May 2022 23:00:57 GMTMon, 23 May 2022 23:00:57 + GMTAgAAAAMAAAAAAAAAD81333hp2AE=Mon, + 16 May 2022 23:01:27 GMT1message1\u3688" + headers: + cache-control: + - no-cache + content-type: + - application/xml + date: + - Mon, 16 May 2022 23:00:57 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-02-12' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_update_message_unicode_data.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_update_message_unicode_data.yaml new file mode 100644 index 000000000000..8edfa8138f49 --- /dev/null +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_unicode_update_message_unicode_data.yaml @@ -0,0 +1,197 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:01:17 GMT + x-ms-version: + - '2021-02-12' + method: PUT + uri: https://storagename.queue.core.windows.net/pyqueuesync223e14de + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 23:01:17 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2021-02-12' + status: + code: 201 + message: Created +- request: + body: ' + + message1' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '103' + Content-Type: + - application/xml + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:01:18 GMT + x-ms-version: + - '2021-02-12' + method: POST + uri: https://storagename.queue.core.windows.net/pyqueuesync223e14de/messages + response: + body: + string: "\uFEFFa37c7d21-6fb5-4e45-9169-9bcf4142ab77Mon, + 16 May 2022 23:01:18 GMTMon, 23 May 2022 23:01:18 + GMTAgAAAAMAAAAAAAAAUzn42Xhp2AE=Mon, + 16 May 2022 23:01:18 GMT" + headers: + content-type: + - application/xml + date: + - Mon, 16 May 2022 23:01:17 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-02-12' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:01:18 GMT + x-ms-version: + - '2021-02-12' + method: GET + uri: https://storagename.queue.core.windows.net/pyqueuesync223e14de/messages + response: + body: + string: "\uFEFFa37c7d21-6fb5-4e45-9169-9bcf4142ab77Mon, + 16 May 2022 23:01:18 GMTMon, 23 May 2022 23:01:18 + GMTAgAAAAMAAAAAAAAAkODp63hp2AE=Mon, + 16 May 2022 23:01:48 GMT1message1" + headers: + cache-control: + - no-cache + content-type: + - application/xml + date: + - Mon, 16 May 2022 23:01:17 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-02-12' + status: + code: 200 + message: OK +- request: + body: "\n\u554A\u9F44\u4E02\u72DB\u72DC" + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/xml + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:01:18 GMT + x-ms-version: + - '2021-02-12' + method: PUT + uri: https://storagename.queue.core.windows.net/pyqueuesync223e14de/messages/a37c7d21-6fb5-4e45-9169-9bcf4142ab77?popreceipt=AgAAAAMAAAAAAAAAkODp63hp2AE%3D&visibilitytimeout=0 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 16 May 2022 23:01:17 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + x-ms-popreceipt: + - AwAAAAMAAAAAAAAAz0EY2nhp2AEBAAAA + x-ms-time-next-visible: + - Mon, 16 May 2022 23:01:18 GMT + x-ms-version: + - '2021-02-12' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) + x-ms-date: + - Mon, 16 May 2022 23:01:18 GMT + x-ms-version: + - '2021-02-12' + method: GET + uri: https://storagename.queue.core.windows.net/pyqueuesync223e14de/messages + response: + body: + string: "\uFEFFa37c7d21-6fb5-4e45-9169-9bcf4142ab77Mon, + 16 May 2022 23:01:18 GMTMon, 23 May 2022 23:01:18 + GMTAgAAAAMAAAAAAAAA20wJ7Hhp2AE=Mon, + 16 May 2022 23:01:48 GMT2\u554A\u9F44\u4E02\u72DB\u72DC" + headers: + cache-control: + - no-cache + content-type: + - application/xml + date: + - Mon, 16 May 2022 23:01:18 GMT + server: + - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2021-02-12' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_encodings.test_message_bytes_fails.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_encodings.test_message_bytes_fails.yaml index fe20dbcaf413..034ff8456a10 100644 --- a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_encodings.test_message_bytes_fails.yaml +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_encodings.test_message_bytes_fails.yaml @@ -3,7 +3,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate Connection: @@ -11,11 +11,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-queue/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-queue/12.3.1 Python/3.10.2 (Windows-10-10.0.19044-SP0) x-ms-date: - - Wed, 30 Oct 2019 19:51:44 GMT + - Thu, 12 May 2022 21:39:38 GMT x-ms-version: - - '2018-03-28' + - '2021-02-12' method: PUT uri: https://storagename.queue.core.windows.net/mytestqueueab781284 response: @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Wed, 30 Oct 2019 19:51:44 GMT + - Thu, 12 May 2022 21:39:38 GMT server: - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-03-28' + - '2021-02-12' status: code: 201 message: Created diff --git a/sdk/storage/azure-storage-queue/tests/test_queue.py b/sdk/storage/azure-storage-queue/tests/test_queue.py index 6273d2bc3ace..4c8e623ae383 100644 --- a/sdk/storage/azure-storage-queue/tests/test_queue.py +++ b/sdk/storage/azure-storage-queue/tests/test_queue.py @@ -1080,7 +1080,6 @@ def test_unicode_create_queue_unicode_name(self, storage_account_name, storage_a @QueuePreparer() def test_unicode_get_messages_unicode_data(self, storage_account_name, storage_account_key): # Action - pytest.skip("Uncomment after msrest fix") qsc = QueueServiceClient(self.account_url(storage_account_name, "queue"), storage_account_key) queue_client = self._get_queue_reference(qsc) queue_client.create_queue() @@ -1100,7 +1099,6 @@ def test_unicode_get_messages_unicode_data(self, storage_account_name, storage_a @QueuePreparer() def test_unicode_update_message_unicode_data(self, storage_account_name, storage_account_key): # Action - pytest.skip("Uncomment after msrest fix") qsc = QueueServiceClient(self.account_url(storage_account_name, "queue"), storage_account_key) queue_client = self._get_queue_reference(qsc) queue_client.create_queue() diff --git a/sdk/storage/azure-storage-queue/tests/test_queue_encodings.py b/sdk/storage/azure-storage-queue/tests/test_queue_encodings.py index fb6e5955141b..4a476101d86e 100644 --- a/sdk/storage/azure-storage-queue/tests/test_queue_encodings.py +++ b/sdk/storage/azure-storage-queue/tests/test_queue_encodings.py @@ -124,7 +124,6 @@ def test_message_bytes_base64(self, storage_account_name, storage_account_key): # Asserts self._validate_encoding(queue, message) - @pytest.mark.skipif(sys.version_info < (3, 0), reason="Not applicable on Python 2.7") @QueuePreparer() def test_message_bytes_fails(self, storage_account_name, storage_account_key): # Arrange