From a4df849eefeba4862350f2818d52f180ec3163a5 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Fri, 11 Oct 2019 14:55:04 -0700 Subject: [PATCH 1/4] makes signed_identifiers a required param --- .../azure/storage/blob/aio/container_client_async.py | 2 +- .../azure-storage-blob/azure/storage/blob/container_client.py | 2 +- .../azure/storage/file/aio/share_client_async.py | 4 ++-- .../azure-storage-file/azure/storage/file/share_client.py | 4 ++-- .../azure/storage/queue/aio/queue_client_async.py | 4 ++-- .../azure-storage-queue/azure/storage/queue/queue_client.py | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 9c8a31e44d19..a78da29dc9ec 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -427,7 +427,7 @@ async def get_container_access_policy(self, **kwargs): @distributed_trace_async async def set_container_access_policy( - self, signed_identifiers=None, # type: Optional[Dict[str, Optional[AccessPolicy]]] + self, signed_identifiers, # type: Dict[str, AccessPolicy] public_access=None, # type: Optional[Union[str, PublicAccess]] **kwargs # type: Any ): # type: (...) -> Dict[str, Union[str, datetime]] diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index af7df5963630..aaa9f58e2586 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -635,7 +635,7 @@ def get_container_access_policy(self, **kwargs): @distributed_trace def set_container_access_policy( - self, signed_identifiers=None, # type: Optional[Dict[str, Optional[AccessPolicy]]] + self, signed_identifiers, # type: Dict[str, AccessPolicy] public_access=None, # type: Optional[Union[str, PublicAccess]] **kwargs ): # type: (...) -> Dict[str, Union[str, datetime]] diff --git a/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py b/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py index 2d430ab77b60..512149a64892 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py @@ -368,8 +368,8 @@ async def get_share_access_policy(self, timeout=None, **kwargs): } @distributed_trace_async - async def set_share_access_policy(self, signed_identifiers=None, timeout=None, **kwargs): # type: ignore - # type: (Optional[Dict[str, Optional[AccessPolicy]]], Optional[int], **Any) -> Dict[str, str] + async def set_share_access_policy(self, signed_identifiers, timeout=None, **kwargs): # type: ignore + # type: (Dict[str, AccessPolicy], Optional[int], **Any) -> Dict[str, str] """Sets the permissions for the share, or stored access policies that may be used with Shared Access Signatures. The permissions indicate whether files in a share may be accessed publicly. diff --git a/sdk/storage/azure-storage-file/azure/storage/file/share_client.py b/sdk/storage/azure-storage-file/azure/storage/file/share_client.py index 2f5636dc334c..da8164f45495 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/share_client.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/share_client.py @@ -536,8 +536,8 @@ def get_share_access_policy(self, timeout=None, **kwargs): } @distributed_trace - def set_share_access_policy(self, signed_identifiers=None, timeout=None, **kwargs): # type: ignore - # type: (Optional[Dict[str, Optional[AccessPolicy]]], Optional[int], **Any) -> Dict[str, str] + def set_share_access_policy(self, signed_identifiers, timeout=None, **kwargs): # type: ignore + # type: (Dict[str, AccessPolicy], Optional[int], **Any) -> Dict[str, str] """Sets the permissions for the share, or stored access policies that may be used with Shared Access Signatures. The permissions indicate whether files in a share may be accessed publicly. diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py index 1ff48fc8fd0f..e2549c91cad8 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py @@ -265,8 +265,8 @@ async def get_queue_access_policy(self, timeout=None, **kwargs): # type: ignore return {s.id: s.access_policy or AccessPolicy() for s in identifiers} @distributed_trace_async - async def set_queue_access_policy(self, signed_identifiers=None, timeout=None, **kwargs): # type: ignore - # type: (Optional[Dict[str, Optional[AccessPolicy]]], Optional[int], Optional[Any]) -> None + async def set_queue_access_policy(self, signed_identifiers, timeout=None, **kwargs): # type: ignore + # type: (Dict[str, AccessPolicy], Optional[int], Optional[Any]) -> None """Sets stored access policies for the queue that may be used with Shared Access Signatures. diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py index 102625c660cb..363899d13ffc 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py @@ -391,8 +391,8 @@ def get_queue_access_policy(self, timeout=None, **kwargs): return {s.id: s.access_policy or AccessPolicy() for s in identifiers} @distributed_trace - def set_queue_access_policy(self, signed_identifiers=None, timeout=None, **kwargs): - # type: (Optional[Dict[str, Optional[AccessPolicy]]], Optional[int], Optional[Any]) -> None + def set_queue_access_policy(self, signed_identifiers, timeout=None, **kwargs): + # type: (Dict[str, AccessPolicy], Optional[int], Optional[Any]) -> None """Sets stored access policies for the queue that may be used with Shared Access Signatures. From d7fdd44b27ec19f6b72aacfa9e8d6f294aba0392 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Fri, 11 Oct 2019 17:30:54 -0700 Subject: [PATCH 2/4] fix tests and update history --- sdk/storage/azure-storage-blob/HISTORY.md | 5 + ...st_set_container_acl_with_if_modified.yaml | 142 ++- ...t_container_acl_with_if_modified_fail.yaml | 101 +- ..._set_container_acl_with_if_unmodified.yaml | 142 ++- ..._container_acl_with_if_modified_async.yaml | 151 +++ ...ontainer_acl_with_if_unmodified_async.yaml | 151 +++ ...st_list_containers_with_public_access.yaml | 290 +++++- ...test_container.test_set_container_acl.yaml | 329 +++++-- ....test_set_container_acl_with_lease_id.yaml | 381 +++++++- ..._set_container_acl_with_public_access.yaml | 148 ++- ...st_list_containers_with_public_access.yaml | 148 +++ ...ontainer_async.test_set_container_acl.yaml | 361 ++++++- ...c.test_set_container_acl_too_many_ids.yaml | 225 +++++ ..._container_acl_with_empty_identifiers.yaml | 745 ++++++++++++++ ...ner_acl_with_empty_signed_identifiers.yaml | 730 ++++++++++++++ ....test_set_container_acl_with_lease_id.yaml | 909 ++++++++++++++++++ ...tainer_acl_with_one_signed_identifier.yaml | 480 +++++++++ ..._set_container_acl_with_public_access.yaml | 653 +++++++++++++ ...container_acl_with_signed_identifiers.yaml | 745 ++++++++++++++ ..._container_acl_with_three_identifiers.yaml | 745 ++++++++++++++ .../tests/test_blob_access_conditions.py | 302 +++--- .../test_blob_access_conditions_async.py | 302 +++--- .../tests/test_container.py | 23 +- .../tests/test_container_async.py | 26 +- sdk/storage/azure-storage-file/HISTORY.md | 6 + sdk/storage/azure-storage-queue/HISTORY.md | 6 + 26 files changed, 7784 insertions(+), 462 deletions(-) diff --git a/sdk/storage/azure-storage-blob/HISTORY.md b/sdk/storage/azure-storage-blob/HISTORY.md index a8c7497fdd69..706c73897e0f 100644 --- a/sdk/storage/azure-storage-blob/HISTORY.md +++ b/sdk/storage/azure-storage-blob/HISTORY.md @@ -1,5 +1,10 @@ # Change Log azure-storage-blob +## Version 12.0.0: + +**Breaking changes** + +- `set_container_access_policy` has required parameter `signed_identifiers`. ## Version 12.0.0b4: diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified.yaml index 3629d2377a99..98feb1f45d81 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified.yaml @@ -108,8 +108,8 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/utcontainera4ad1b5c?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -241,8 +241,8 @@ interactions: uri: https://storagename.blob.core.windows.net/utcontainera4ad1b5c?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -265,4 +265,138 @@ interactions: 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2d14fd68-ec82-11e9-ab8c-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:52:25 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainera4ad1b5c?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:52:25 GMT + ETag: + - '"0x8D74EA61176CF51"' + Last-Modified: + - Fri, 11 Oct 2019 23:52:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - eb7a1742-201e-007b-518e-800fb0000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:52:26Z2019-10-12T00:52:26Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + If-Modified-Since: + - Fri, 11 Oct 2019 23:37:26 GMT + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2d685e10-ec82-11e9-b855-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:52:26 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainera4ad1b5c?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:52:25 GMT + ETag: + - '"0x8D74EA6118184BD"' + Last-Modified: + - Fri, 11 Oct 2019 23:52:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - eb7a178d-201e-007b-188e-800fb0000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2d71d352-ec82-11e9-b01f-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:52:26 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/utcontainera4ad1b5c?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:52:26.0000000Z2019-10-12T00:52:26.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:52:25 GMT + ETag: + - '"0x8D74EA6118184BD"' + Last-Modified: + - Fri, 11 Oct 2019 23:52:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - eb7a17a3-201e-007b-2c8e-800fb0000000 + 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_access_conditions.test_set_container_acl_with_if_modified_fail.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified_fail.yaml index 45071a5cbb18..784dddf47e96 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified_fail.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_modified_fail.yaml @@ -68,9 +68,8 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/utcontainer335c1d57?restype=container&comp=acl response: body: - string: "\uFEFFConditionNotMetThe\ - \ condition specified using HTTP conditional header(s) is not met.\nRequestId:57e22d37-601e-0077-15d7-22e141000000\n\ - Time:2019-06-14T17:33:32.9009539Z" + string: "\uFEFFConditionNotMetThe + condition specified using HTTP conditional header(s) is not met.\nRequestId:57e22d37-601e-0077-15d7-22e141000000\nTime:2019-06-14T17:33:32.9009539Z" headers: Content-Length: - '252' @@ -158,9 +157,8 @@ interactions: uri: https://storagename.blob.core.windows.net/utcontainer335c1d57?restype=container&comp=acl response: body: - string: "\uFEFFConditionNotMetThe\ - \ condition specified using HTTP conditional header(s) is not met.\nRequestId:e127eba1-801e-00d7-65e0-222e27000000\n\ - Time:2019-06-14T18:36:01.6265171Z" + string: "\uFEFFConditionNotMetThe + condition specified using HTTP conditional header(s) is not met.\nRequestId:e127eba1-801e-00d7-65e0-222e27000000\nTime:2019-06-14T18:36:01.6265171Z" headers: Content-Length: - '252' @@ -179,4 +177,95 @@ interactions: status: code: 412 message: The condition specified using HTTP conditional header(s) is not met. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 8dfea392-ec83-11e9-8e23-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:02:17 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainer335c1d57?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Sat, 12 Oct 2019 00:02:17 GMT + ETag: + - '"0x8D74EA7723A4757"' + Last-Modified: + - Sat, 12 Oct 2019 00:02:17 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 98a0c07f-b01e-0013-4090-8051e1000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-12T00:02:18Z2019-10-12T01:02:18Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + If-Modified-Since: + - Sat, 12 Oct 2019 00:17:18 GMT + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 8e2c6bb6-ec83-11e9-a8b5-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:02:18 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainer335c1d57?restype=container&comp=acl + response: + body: + string: "\uFEFFConditionNotMetThe + condition specified using HTTP conditional header(s) is not met.\nRequestId:98a0c09a-b01e-0013-5790-8051e1000000\nTime:2019-10-12T00:02:17.9791922Z" + headers: + Content-Length: + - '252' + Content-Type: + - application/xml + Date: + - Sat, 12 Oct 2019 00:02:17 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - ConditionNotMet + x-ms-request-id: + - 98a0c09a-b01e-0013-5790-8051e1000000 + x-ms-version: + - '2019-02-02' + status: + code: 412 + message: The condition specified using HTTP conditional header(s) is not met. version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_unmodified.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_unmodified.yaml index 6f387d334854..ec24e78bed57 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_unmodified.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions.test_set_container_acl_with_if_unmodified.yaml @@ -108,8 +108,8 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/utcontainerdd531c3f?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -241,8 +241,8 @@ interactions: uri: https://storagename.blob.core.windows.net/utcontainerdd531c3f?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -265,4 +265,138 @@ interactions: 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - e85de814-ec81-11e9-b162-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:50:30 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainerdd531c3f?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:50:30 GMT + ETag: + - '"0x8D74EA5CCA6373E"' + Last-Modified: + - Fri, 11 Oct 2019 23:50:30 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - ff77b6da-f01e-0097-118e-8007c9000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:50:30Z2019-10-12T00:50:30Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + If-Unmodified-Since: + - Sat, 12 Oct 2019 00:05:30 GMT + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - e8998aec-ec81-11e9-b57e-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:50:30 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainerdd531c3f?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:50:30 GMT + ETag: + - '"0x8D74EA5CCB2E61A"' + Last-Modified: + - Fri, 11 Oct 2019 23:50:30 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - ff77b73d-f01e-0097-6d8e-8007c9000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - e8a5244a-ec81-11e9-b24a-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:50:30 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/utcontainerdd531c3f?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:50:30.0000000Z2019-10-12T00:50:30.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:50:30 GMT + ETag: + - '"0x8D74EA5CCB2E61A"' + Last-Modified: + - Fri, 11 Oct 2019 23:50:30 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - ff77b767-f01e-0097-178e-8007c9000000 + 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_access_conditions_async.test_set_container_acl_with_if_modified_async.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_modified_async.yaml index 3e74ca7b72de..df8bbbcd7eb6 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_modified_async.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_modified_async.yaml @@ -151,4 +151,155 @@ interactions: - /utcontainerf892056 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 97a0e32c-ec82-11e9-b23d-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:55:24 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainerf892056?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:55:23 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA67BCDDC0B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:55:24 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 2e0f2c12-601e-0011-018f-80531b000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainerf892056 + - restype=container + - '' +- request: + body: ' + + testid2019-10-11T23:55:24Z2019-10-12T00:55:24Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + If-Modified-Since: + - Fri, 11 Oct 2019 23:40:24 GMT + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 97c0ed38-ec82-11e9-8ea4-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:55:24 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainerf892056?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:55:23 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA67BD6E06A"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:55:24 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 2e0f2c1b-601e-0011-088f-80531b000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainerf892056 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 97c7a3fa-ec82-11e9-8095-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:55:24 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/utcontainerf892056?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:55:24.0000000Z2019-10-12T00:55:24.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:55:23 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA67BD6E06A"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:55:24 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 2e0f2c22-601e-0011-0f8f-80531b000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainerf892056 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_unmodified_async.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_unmodified_async.yaml index ee4eb3e18f7a..bac5b2b939ef 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_unmodified_async.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_access_conditions_async.test_set_container_acl_with_if_unmodified_async.yaml @@ -151,4 +151,155 @@ interactions: - /utcontainer527b2139 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - c326bbd2-ec82-11e9-ae56-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:56:37 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainer527b2139?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6A75939AA"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4a7b6f70-b01e-005c-488f-8095f9000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainer527b2139 + - restype=container + - '' +- request: + body: ' + + testid2019-10-11T23:56:37Z2019-10-12T00:56:37Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + If-Unmodified-Since: + - Sat, 12 Oct 2019 00:11:37 GMT + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - c34d569a-ec82-11e9-b950-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:56:37 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/utcontainer527b2139?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6A76BEAC5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4a7b6f7b-b01e-005c-508f-8095f9000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainer527b2139 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - c35f31e4-ec82-11e9-a4a8-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:56:37 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/utcontainer527b2139?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:56:37.0000000Z2019-10-12T00:56:37.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6A76BEAC5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:56:37 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 4a7b6f89-b01e-005c-5a8f-8095f9000000 + 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 + - amqptest.blob.core.windows.net + - /utcontainer527b2139 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_containers_with_public_access.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_containers_with_public_access.yaml index f06dfe9fa424..ec87c5829c40 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_containers_with_public_access.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_containers_with_public_access.yaml @@ -108,10 +108,10 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/?prefix=container664b164b&comp=list response: body: - string: "\uFEFFcontainer664b164bcontainer664b164bFri,\ - \ 14 Jun 2019 17:42:49 GMT\"0x8D6F0EFB7BFD30A\"unlockedavailableblobfalsefalse" + string: "\uFEFFcontainer664b164bcontainer664b164bFri, + 14 Jun 2019 17:42:49 GMT\"0x8D6F0EFB7BFD30A\"unlockedavailableblobfalsefalse" headers: Content-Type: - application/xml @@ -239,10 +239,10 @@ interactions: uri: https://storagename.blob.core.windows.net/?prefix=container664b164b&comp=list response: body: - string: "\uFEFFcontainer664b164bcontainer664b164bFri,\ - \ 14 Jun 2019 18:49:28 GMT\"0x8D6F0F90771D66D\"unlockedavailableblobfalsefalse" + string: "\uFEFFcontainer664b164bcontainer664b164bFri, + 14 Jun 2019 18:49:28 GMT\"0x8D6F0F90771D66D\"unlockedavailableblobfalsefalse" headers: Content-Type: - application/xml @@ -370,10 +370,10 @@ interactions: uri: https://storagename.blob.core.windows.net/?prefix=container664b164b&comp=list response: body: - string: "\uFEFFcontainer664b164bcontainer664b164bFri,\ - \ 14 Jun 2019 19:25:20 GMT\"0x8D6F0FE0A4F981E\"unlockedavailableblobfalsefalse" + string: "\uFEFFcontainer664b164bcontainer664b164bFri, + 14 Jun 2019 19:25:20 GMT\"0x8D6F0FE0A4F981E\"unlockedavailableblobfalsefalse" headers: Content-Type: - application/xml @@ -392,4 +392,270 @@ interactions: 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2bb75ef6-ec7d-11e9-b1de-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:16:35 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container664b164b?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:16:35 GMT + ETag: + - '"0x8D74EA10FEEEECE"' + Last-Modified: + - Fri, 11 Oct 2019 23:16:36 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 4775ccb6-f01e-0090-1489-80f032000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:16:36Z2019-10-12T00:16:36Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - blob + x-ms-client-request-id: + - 2bdb1480-ec7d-11e9-9528-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:16:36 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container664b164b?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:16:35 GMT + ETag: + - '"0x8D74EA10FF6C16D"' + Last-Modified: + - Fri, 11 Oct 2019 23:16:36 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 4775cd37-f01e-0090-0889-80f032000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2be1f252-ec7d-11e9-b23f-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:16:36 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/?prefix=container664b164b&comp=list + response: + body: + string: "\uFEFFcontainer664b164bcontainer664b164bFri, + 11 Oct 2019 23:16:36 GMT\"0x8D74EA10FF6C16D\"unlockedavailableblob$account-encryption-keyfalsefalsefalse" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:16:35 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - 4775cd7f-f01e-0090-4d89-80f032000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - f4b9679e-ec80-11e9-a6c5-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:43:41 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container664b164b?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:43:41 GMT + ETag: + - '"0x8D74EA4D8F3E5BE"' + Last-Modified: + - Fri, 11 Oct 2019 23:43:41 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - dfac4036-e01e-00aa-6d8d-80b2ef000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:43:42Z2019-10-12T00:43:42Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - blob + x-ms-client-request-id: + - f4e5f440-ec80-11e9-b90b-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:43:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container664b164b?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:43:41 GMT + ETag: + - '"0x8D74EA4D8FF49F6"' + Last-Modified: + - Fri, 11 Oct 2019 23:43:41 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - dfac4049-e01e-00aa-7b8d-80b2ef000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - f4ee7f8a-ec80-11e9-a835-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:43:42 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/?prefix=container664b164b&comp=list + response: + body: + string: "\uFEFFcontainer664b164bcontainer664b164bFri, + 11 Oct 2019 23:43:41 GMT\"0x8D74EA4D8FF49F6\"unlockedavailableblob$account-encryption-keyfalsefalsefalse" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:43:41 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - dfac4056-e01e-00aa-068d-80b2ef000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl.yaml index 1566d63f1759..c404c4cb1d48 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl.yaml @@ -11,15 +11,15 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - d3a6ac02-8ecb-11e9-b32d-f45c89a7d159 + - ec4e7140-ec7e-11e9-95a6-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 17:42:49 GMT + - Fri, 11 Oct 2019 23:29:08 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT - uri: https://remotestoragename.blob.core.windows.net/container22000f2d?restype=container + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container response: body: string: '' @@ -27,20 +27,110 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 17:42:49 GMT + - Fri, 11 Oct 2019 23:29:08 GMT ETag: - - '"0x8D6F0EFB86BCDE3"' + - '"0x8D74EA2D07F854B"' Last-Modified: - - Fri, 14 Jun 2019 17:42:50 GMT + - Fri, 11 Oct 2019 23:29:08 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 669ae5d6-901e-004b-1ed8-22559a000000 + - f5ee3cf3-701e-0055-6c8b-80dad7000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 201 message: Created +- request: + body: ' + + testid2019-10-11T23:29:08Z2019-10-12T00:29:08Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ec6cf5a4-ec7e-11e9-b9da-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:29:08 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:29:08 GMT + ETag: + - '"0x8D74EA2D08564E6"' + Last-Modified: + - Fri, 11 Oct 2019 23:29:08 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - f5ee3d11-701e-0055-038b-80dad7000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ec71b0ae-ec7e-11e9-88b0-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:29:08 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:29:08.0000000Z2019-10-12T00:29:08.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:29:08 GMT + ETag: + - '"0x8D74EA2D08564E6"' + Last-Modified: + - Fri, 11 Oct 2019 23:29:08 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - f5ee3d22-701e-0055-138b-80dad7000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: body: null headers: @@ -52,18 +142,62 @@ interactions: - keep-alive Content-Length: - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4f3d7ffe-ec7f-11e9-a10a-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:31:54 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:31:54 GMT + ETag: + - '"0x8D74EA33378593A"' + Last-Modified: + - Fri, 11 Oct 2019 23:31:54 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - f4b6345c-a01e-0069-698c-80f310000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:31:54Z2019-10-12T00:31:54Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' Content-Type: - application/xml; charset=utf-8 User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - d3c6b402-8ecb-11e9-862e-f45c89a7d159 + - 4f67928c-ec7f-11e9-b497-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 17:42:49 GMT + - Fri, 11 Oct 2019 23:31:54 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT - uri: https://remotestoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: body: string: '' @@ -71,17 +205,17 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 17:42:49 GMT + - Fri, 11 Oct 2019 23:31:54 GMT ETag: - - '"0x8D6F0EFB87512F2"' + - '"0x8D74EA333815CFC"' Last-Modified: - - Fri, 14 Jun 2019 17:42:50 GMT + - Fri, 11 Oct 2019 23:31:54 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 669ae5ed-901e-004b-31d8-22559a000000 + - f4b634e7-a01e-0069-6a8c-80f310000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK @@ -95,28 +229,27 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - d3cf7952-8ecb-11e9-a756-f45c89a7d159 + - 4f6df978-ec7f-11e9-b04c-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 17:42:49 GMT + - Fri, 11 Oct 2019 23:31:54 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: GET - uri: https://remotestoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFFtestid2019-10-11T23:31:54.0000000Z2019-10-12T00:31:54.0000000Zr" headers: Content-Type: - application/xml Date: - - Fri, 14 Jun 2019 17:42:50 GMT + - Fri, 11 Oct 2019 23:31:54 GMT ETag: - - '"0x8D6F0EFB87512F2"' + - '"0x8D74EA333815CFC"' Last-Modified: - - Fri, 14 Jun 2019 17:42:50 GMT + - Fri, 11 Oct 2019 23:31:54 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: @@ -124,9 +257,9 @@ interactions: Vary: - Origin x-ms-request-id: - - 669ae601-901e-004b-43d8-22559a000000 + - f4b6351b-a01e-0069-1a8c-80f310000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK @@ -142,13 +275,13 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 23f55808-8ed5-11e9-b38c-f45c89a7d159 + - e5a1c8ba-ec7f-11e9-866f-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:06 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container response: @@ -158,22 +291,24 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:06 GMT ETag: - - '"0x8D6F0F908455C9D"' + - '"0x8D74EA3CA002443"' Last-Modified: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:07 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - ec47c72b-b01e-0090-1be1-22f14c000000 + - 5c157824-101e-00b7-7a8c-80e7f6000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 201 message: Created - request: - body: null + body: ' + + testid2019-10-11T23:36:07Z2019-10-12T00:36:07Zr' headers: Accept: - '*/*' @@ -182,17 +317,17 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '257' Content-Type: - application/xml; charset=utf-8 User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 2415239a-8ed5-11e9-820c-f45c89a7d159 + - e5ef9acc-ec7f-11e9-a76c-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:07 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: @@ -202,17 +337,17 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:06 GMT ETag: - - '"0x8D6F0F9084E0650"' + - '"0x8D74EA3CA0996C5"' Last-Modified: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:07 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - ec47c759-b01e-0090-46e1-22f14c000000 + - 5c1578c3-101e-00b7-7f8c-80e7f6000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK @@ -226,28 +361,27 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 241de674-8ed5-11e9-9f84-f45c89a7d159 + - e5fcf7e8-ec7f-11e9-94f9-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:07 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFFtestid2019-10-11T23:36:07.0000000Z2019-10-12T00:36:07.0000000Zr" headers: Content-Type: - application/xml Date: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:06 GMT ETag: - - '"0x8D6F0F9084E0650"' + - '"0x8D74EA3CA0996C5"' Last-Modified: - - Fri, 14 Jun 2019 18:49:29 GMT + - Fri, 11 Oct 2019 23:36:07 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: @@ -255,9 +389,9 @@ interactions: Vary: - Origin x-ms-request-id: - - ec47c785-b01e-0090-70e1-22f14c000000 + - 5c1578f7-101e-00b7-308c-80e7f6000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK @@ -273,15 +407,15 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 272bec08-8eda-11e9-82ee-f45c89a7d159 + - c213fb2e-ec80-11e9-a40c-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:16 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT - uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container response: body: string: '' @@ -289,22 +423,24 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 19:25:21 GMT + - Fri, 11 Oct 2019 23:42:17 GMT ETag: - - '"0x8D6F0FE0B8449D1"' + - '"0x8D74EA4A6F3536D"' Last-Modified: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:17 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 521068a6-101e-0051-06e6-227af5000000 + - 8cae3a72-701e-0063-798d-802225000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 201 message: Created - request: - body: null + body: ' + + testid2019-10-11T23:42:18Z2019-10-12T00:42:18Zr' headers: Accept: - '*/*' @@ -313,19 +449,19 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '257' Content-Type: - application/xml; charset=utf-8 User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 275611cc-8eda-11e9-b443-f45c89a7d159 + - c2e38180-ec80-11e9-aa29-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:18 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT - uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: body: string: '' @@ -333,17 +469,17 @@ interactions: Content-Length: - '0' Date: - - Fri, 14 Jun 2019 19:25:21 GMT + - Fri, 11 Oct 2019 23:42:17 GMT ETag: - - '"0x8D6F0FE0B8F088C"' + - '"0x8D74EA4A6FC8589"' Last-Modified: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:17 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 521068b8-101e-0051-13e6-227af5000000 + - 8cae3a95-701e-0063-178d-802225000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK @@ -357,28 +493,27 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 275f1182-8eda-11e9-8d19-f45c89a7d159 + - c2ebe4c2-ec80-11e9-b542-b831b58100e8 x-ms-date: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:18 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: GET - uri: https://storagename.blob.core.windows.net/container22000f2d?restype=container&comp=acl + uri: https://blobstoragename.blob.core.windows.net/container22000f2d?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFFtestid2019-10-11T23:42:18.0000000Z2019-10-12T00:42:18.0000000Zr" headers: Content-Type: - application/xml Date: - - Fri, 14 Jun 2019 19:25:21 GMT + - Fri, 11 Oct 2019 23:42:17 GMT ETag: - - '"0x8D6F0FE0B8F088C"' + - '"0x8D74EA4A6FC8589"' Last-Modified: - - Fri, 14 Jun 2019 19:25:22 GMT + - Fri, 11 Oct 2019 23:42:17 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: @@ -386,9 +521,9 @@ interactions: Vary: - Origin x-ms-request-id: - - 521068c5-101e-0051-1ee6-227af5000000 + - 8cae3aa7-701e-0063-298d-802225000000 x-ms-version: - - '2018-03-28' + - '2019-02-02' status: code: 200 message: OK diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_lease_id.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_lease_id.yaml index aa2819983b52..75e6deee7ab6 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_lease_id.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_lease_id.yaml @@ -158,8 +158,8 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/container21a014dd?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -205,9 +205,8 @@ interactions: uri: https://storagename.blob.core.windows.net/container21a014dd?restype=container response: body: - string: "\uFEFFContainerAlreadyExistsThe\ - \ specified container already exists.\nRequestId:7a1fd125-701e-00e0-30e1-228288000000\n\ - Time:2019-06-14T18:49:31.9168161Z" + string: "\uFEFFContainerAlreadyExistsThe + specified container already exists.\nRequestId:7a1fd125-701e-00e0-30e1-228288000000\nTime:2019-06-14T18:49:31.9168161Z" headers: Content-Length: - '230' @@ -385,8 +384,8 @@ interactions: uri: https://storagename.blob.core.windows.net/container21a014dd?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -409,4 +408,372 @@ interactions: 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 75c7e2fe-ec7b-11e9-a6a9-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:04:21 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:04:20 GMT + ETag: + - '"0x8D74E9F5A179162"' + Last-Modified: + - Fri, 11 Oct 2019 23:04:21 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 4f509984-401e-0061-2e88-80e91f000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 7602cbba-ec7b-11e9-ac43-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:04:21 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 8288789d-d369-41a1-9824-295bb1eaa475 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?comp=lease&restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:04:20 GMT + ETag: + - '"0x8D74E9F5A179162"' + Last-Modified: + - Fri, 11 Oct 2019 23:04:21 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 8288789d-d369-41a1-9824-295bb1eaa475 + x-ms-request-id: + - 4f5099ce-401e-0061-6b88-80e91f000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:04:21Z2019-10-12T00:04:21Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 760821ae-ec7b-11e9-a832-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:04:21 GMT + x-ms-lease-id: + - 8288789d-d369-41a1-9824-295bb1eaa475 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:04:20 GMT + ETag: + - '"0x8D74E9F5A239D5B"' + Last-Modified: + - Fri, 11 Oct 2019 23:04:21 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 4f5099d7-401e-0061-7488-80e91f000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 760d51b4-ec7b-11e9-a496-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:04:21 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:04:21.0000000Z2019-10-12T00:04:21.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:04:20 GMT + ETag: + - '"0x8D74E9F5A239D5B"' + Last-Modified: + - Fri, 11 Oct 2019 23:04:21 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - 4f5099e0-401e-0061-7b88-80e91f000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 162555ae-ec81-11e9-abf9-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:44:37 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:44:37 GMT + ETag: + - '"0x8D74EA4FA666ADC"' + Last-Modified: + - Fri, 11 Oct 2019 23:44:37 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f286f84-401e-0060-1e8d-802122000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 165707e8-ec81-11e9-a265-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:44:38 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - d7e8470d-69da-46db-ab60-a5f94d4fa92f + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?comp=lease&restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:44:37 GMT + ETag: + - '"0x8D74EA4FA666ADC"' + Last-Modified: + - Fri, 11 Oct 2019 23:44:37 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - d7e8470d-69da-46db-ab60-a5f94d4fa92f + x-ms-request-id: + - 9f286fa3-401e-0060-368d-802122000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:44:38Z2019-10-12T00:44:38Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 16600898-ec81-11e9-b83e-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:44:38 GMT + x-ms-lease-id: + - d7e8470d-69da-46db-ab60-a5f94d4fa92f + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:44:37 GMT + ETag: + - '"0x8D74EA4FA794FA3"' + Last-Modified: + - Fri, 11 Oct 2019 23:44:38 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f286faf-401e-0060-418d-802122000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 16686bb4-ec81-11e9-b0b6-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:44:38 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container21a014dd?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:44:38.0000000Z2019-10-12T00:44:38.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:44:37 GMT + ETag: + - '"0x8D74EA4FA794FA3"' + Last-Modified: + - Fri, 11 Oct 2019 23:44:38 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - 9f286fc0-401e-0060-518d-802122000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_public_access.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_public_access.yaml index fa2a46f5e589..8741278578be 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_public_access.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_set_container_acl_with_public_access.yaml @@ -108,8 +108,8 @@ interactions: uri: https://remotestoragename.blob.core.windows.net/container909916f7?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -243,8 +243,8 @@ interactions: uri: https://storagename.blob.core.windows.net/container909916f7?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -378,8 +378,8 @@ interactions: uri: https://storagename.blob.core.windows.net/container909916f7?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFF" headers: Content-Type: - application/xml @@ -404,4 +404,140 @@ interactions: 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2cf76100-ec81-11e9-aa24-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:45:16 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container909916f7?restype=container + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:45:15 GMT + ETag: + - '"0x8D74EA5112C850E"' + Last-Modified: + - Fri, 11 Oct 2019 23:45:16 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 8aa6abd9-001e-00e4-0f8d-80770a000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: ' + + testid2019-10-11T23:45:16Z2019-10-12T00:45:16Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - container + x-ms-client-request-id: + - 2d1f338a-ec81-11e9-b4ac-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:45:16 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container909916f7?restype=container&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Fri, 11 Oct 2019 23:45:15 GMT + ETag: + - '"0x8D74EA51138996D"' + Last-Modified: + - Fri, 11 Oct 2019 23:45:16 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 8aa6abfd-001e-00e4-298d-80770a000000 + 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.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2d285b52-ec81-11e9-80c8-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:45:16 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container909916f7?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:45:16.0000000Z2019-10-12T00:45:16.0000000Zr" + headers: + Content-Type: + - application/xml + Date: + - Fri, 11 Oct 2019 23:45:15 GMT + ETag: + - '"0x8D74EA51138996D"' + Last-Modified: + - Fri, 11 Oct 2019 23:45:16 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-blob-public-access: + - container + x-ms-request-id: + - 8aa6ac0f-001e-00e4-388d-80770a000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_list_containers_with_public_access.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_list_containers_with_public_access.yaml index 47dad70e594b..9524864265f7 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_list_containers_with_public_access.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_list_containers_with_public_access.yaml @@ -147,4 +147,152 @@ interactions: - / - prefix=containerf5ba18c8&comp=list - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 271481ae-ec85-11e9-8b64-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:13:44 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerf5ba18c8?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:13:43 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA90B467EC3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:13:44 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4dbf8bd5-501e-0012-1191-80501c000000 + 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 + - amqptest.blob.core.windows.net + - /containerf5ba18c8 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:13:44Z2019-10-12T01:13:44Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - blob + x-ms-client-request-id: + - 273a80d0-ec85-11e9-8ed0-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:13:44 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerf5ba18c8?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:13:43 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA90B4E5AC2"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:13:44 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4dbf8be7-501e-0012-1e91-80501c000000 + 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 + - amqptest.blob.core.windows.net + - /containerf5ba18c8 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 2740c224-ec85-11e9-b2b6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:13:44 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/?prefix=containerf5ba18c8&comp=list + response: + body: + string: "\uFEFFcontainerf5ba18c8containerf5ba18c8Sat, + 12 Oct 2019 00:13:44 GMT\"0x8D74EA90B4E5AC2\"unlockedavailableblob$account-encryption-keyfalsefalsefalse" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:13:43 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 4dbf8bf3-501e-0012-2791-80501c000000 + 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 + - amqptest.blob.core.windows.net + - / + - prefix=containerf5ba18c8&comp=list + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl.yaml index e2af590d19fa..748eb400eb84 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl.yaml @@ -3,15 +3,13 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-blob/12.0.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0) - content-type: - - application/xml; charset=utf-8 + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 64f5ee24-b4d5-11e9-80ba-b831b58100e8 + - 49fdc818-ec86-11e9-8151-b831b58100e8 x-ms-date: - - Fri, 02 Aug 2019 03:27:02 GMT + - Sat, 12 Oct 2019 00:21:52 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container872211aa?restype=container response: @@ -23,18 +21,18 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:21:51 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D716F949396837"' + : '"0x8D74EAA2E2E7A84"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:21:52 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: 02efca6f-d01e-00a9-5ae2-48b1e8000000 - x-ms-version: '2018-03-28' + x-ms-request-id: 8cbbc3f7-701e-0063-2393-802225000000 + x-ms-version: '2019-02-02' status: code: 201 message: Created @@ -46,19 +44,172 @@ interactions: - /container872211aa - restype=container - '' +- request: + body: ' + + testid2019-10-12T00:21:52Z2019-10-12T01:21:52Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a22a84a-ec86-11e9-a295-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E35C2A3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 8cbbc408-701e-0063-3293-802225000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a289c3a-ec86-11e9-aec8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:52 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:21:52.0000000Z2019-10-12T01:21:52.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E35C2A3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 8cbbc41a-701e-0063-4393-802225000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container&comp=acl + - '' - request: body: null headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - addf2bd2-ec86-11e9-b6aa-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:39 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA920DAA8A"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 46ef32ff-101e-00b4-4693-806802000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:24:40Z2019-10-12T01:24:40Zr' + headers: + Content-Length: + - '257' Content-Type: - application/xml; charset=utf-8 User-Agent: - - azsdk-python-storage-blob/12.0.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 650e0af8-b4d5-11e9-b215-b831b58100e8 + - ae03c914-ec86-11e9-89c5-b831b58100e8 x-ms-date: - - Fri, 02 Aug 2019 03:27:02 GMT + - Sat, 12 Oct 2019 00:24:40 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl response: @@ -70,18 +221,18 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:24:39 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D716F94941022F"' + : '"0x8D74EAA9216834F"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:24:39 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: 02efca86-d01e-00a9-6fe2-48b1e8000000 - x-ms-version: '2018-03-28' + x-ms-request-id: 46ef3325-101e-00b4-6a93-806802000000 + x-ms-version: '2019-02-02' status: code: 200 message: OK @@ -99,34 +250,180 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-storage-blob/12.0.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0) - content-type: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae09b492-ec86-11e9-87e6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:24:40.0000000Z2019-10-12T01:24:40.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA9216834F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 46ef333b-101e-00b4-7f93-806802000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 088a7170-ec87-11e9-aece-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:11 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:11 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAECB7C63B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:11 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: e12383e9-101e-00bf-3693-807076000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:27:12Z2019-10-12T01:27:12Zr' + headers: + Content-Length: + - '257' + Content-Type: - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 08ae732e-ec87-11e9-b1c3-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:12 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:11 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAECC13686"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:11 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: e1238402-101e-00bf-4d93-807076000000 + 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 + - amqptest.blob.core.windows.net + - /container872211aa + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 6513fe38-b4d5-11e9-8753-b831b58100e8 + - 08b52b06-ec87-11e9-97e0-b831b58100e8 x-ms-date: - - Fri, 02 Aug 2019 03:27:02 GMT + - Sat, 12 Oct 2019 00:27:12 GMT x-ms-version: - - '2018-03-28' + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/container872211aa?restype=container&comp=acl response: body: - string: "\uFEFF" + string: "\uFEFFtestid2019-10-12T00:27:12.0000000Z2019-10-12T01:27:12.0000000Zr" headers: ? !!python/object/new:multidict._istr.istr - Content-Type : application/xml ? !!python/object/new:multidict._istr.istr - Date - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:27:11 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D716F94941022F"' + : '"0x8D74EAAECC13686"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Fri, 02 Aug 2019 03:27:02 GMT + : Sat, 12 Oct 2019 00:27:11 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 @@ -136,8 +433,8 @@ interactions: ? !!python/object/new:multidict._istr.istr - Vary : Origin - x-ms-request-id: 02efca8f-d01e-00a9-77e2-48b1e8000000 - x-ms-version: '2018-03-28' + x-ms-request-id: e123840e-101e-00bf-5993-807076000000 + x-ms-version: '2019-02-02' status: code: 200 message: OK diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_too_many_ids.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_too_many_ids.yaml index 38b72ac3cf1b..f7c59b1a142b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_too_many_ids.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_too_many_ids.yaml @@ -46,4 +46,229 @@ interactions: - /container927a170e - restype=container - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ede63108-ec82-11e9-a0b2-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container927a170e?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D20C6111"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: fbccb4fd-901e-0026-3d8f-80ffb4000000 + 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 + - amqptest.blob.core.windows.net + - /container927a170e + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - fff93a78-ec85-11e9-9287-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container927a170e?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E41F2496"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: d47e9454-d01e-00c4-0e92-801bc6000000 + 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 + - amqptest.blob.core.windows.net + - /container927a170e + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a411608-ec86-11e9-b5e7-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container927a170e?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E669BE9"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: d87c277e-d01e-0021-7d93-800931000000 + 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 + - amqptest.blob.core.windows.net + - /container927a170e + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae1fd470-ec86-11e9-b424-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container927a170e?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92439592"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 37cccc04-401e-00a7-0993-805de3000000 + 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 + - amqptest.blob.core.windows.net + - /container927a170e + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 08ccff12-ec87-11e9-819b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:12 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container927a170e?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:11 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAECF1A286"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 8b069050-f01e-003d-7f93-80d126000000 + 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 + - amqptest.blob.core.windows.net + - /container927a170e + - restype=container + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_identifiers.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_identifiers.yaml index 29987556a97a..9374c7ef63d4 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_identifiers.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_identifiers.yaml @@ -305,4 +305,749 @@ interactions: - /container90941b48 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee16f7a4-ec82-11e9-a8ae-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D23D5BC9"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: b547d606-401e-002f-358f-80e53a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container + - '' +- request: + body: ' + + 012' + headers: + Content-Length: + - '219' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee2e9f42-ec82-11e9-a227-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D244AFAC"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: b547d60e-401e-002f-3b8f-80e53a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee35a354-ec82-11e9-99b5-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:49 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: "\uFEFF012" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D244AFAC"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: b547d61d-401e-002f-488f-80e53a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00277802-ec86-11e9-a179-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E44B4D5E"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4d596e13-f01e-0079-3192-800d4a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container + - '' +- request: + body: ' + + 012' + headers: + Content-Length: + - '219' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 003ef1b0-ec86-11e9-b1d9-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E45341D5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4d596e33-f01e-0079-4a92-800d4a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 004a1406-ec86-11e9-be31-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: "\uFEFF012" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E45341D5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 4d596e5f-f01e-0079-6e92-800d4a000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a6d1c36-ec86-11e9-8f7a-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E91976B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: abc5c212-701e-004a-4693-805467000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container + - '' +- request: + body: ' + + 012' + headers: + Content-Length: + - '219' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a85abd8-ec86-11e9-b3f5-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E99ED8F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: abc5c22f-701e-004a-5f93-805467000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4a8d325a-ec86-11e9-b0b1-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: "\uFEFF012" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2E99ED8F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: abc5c246-701e-004a-7393-805467000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae4ed3ae-ec86-11e9-8be6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA927289FB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: f4fc9460-401e-0024-5493-80fd4e000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container + - '' +- request: + body: ' + + 012' + headers: + Content-Length: + - '219' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae665200-ec86-11e9-9dea-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA9279C3B6"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: f4fc947a-401e-0024-6b93-80fd4e000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae6d5748-ec86-11e9-ac4c-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: "\uFEFF012" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:39 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA9279C3B6"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: f4fc9492-401e-0024-0193-80fd4e000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 08feeed4-ec87-11e9-affc-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:12 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED23042E"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: a749a16d-301e-0064-0d93-80d4a0000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container + - '' +- request: + body: ' + + 012' + headers: + Content-Length: + - '219' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0916bc3a-ec87-11e9-9400-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:12 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED290B9D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: a749a182-301e-0064-2093-80d4a0000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 091cafe2-ec87-11e9-9208-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:12 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container90941b48?restype=container&comp=acl + response: + body: + string: "\uFEFF012" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED290B9D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: a749a198-301e-0064-3493-80d4a0000000 + 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 + - amqptest.blob.core.windows.net + - /container90941b48 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_signed_identifiers.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_signed_identifiers.yaml index 54ae1bd17947..06e6074c6bdd 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_signed_identifiers.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_empty_signed_identifiers.yaml @@ -149,4 +149,734 @@ interactions: - /container5a801e21 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee586764-ec82-11e9-adfe-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D27EBA8C"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 3f0cb36b-401e-008e-648f-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee70fada-ec82-11e9-8144-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D286A65E"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 3f0cb384-401e-008e-7a8f-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee77d814-ec82-11e9-b985-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:50 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D286A65E"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 3f0cb395-401e-008e-0b8f-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0060eb80-ec86-11e9-95af-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E4861F95"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: e2317801-d01e-002a-7c92-801145000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0079cbdc-ec86-11e9-b865-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:47 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E48E0B52"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: e231780c-d01e-002a-0592-801145000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00816cc8-ec86-11e9-97c8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:48 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E48E0B52"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: e2317813-d01e-002a-0c92-801145000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4aa8d006-ec86-11e9-97e3-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2ECC10BE"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: abeb631b-401e-0006-7c93-809378000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4abfdb5a-ec86-11e9-87a5-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2ED3CC9F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: abeb632b-401e-0006-0993-809378000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4ac72e12-ec86-11e9-b9e2-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2ED3CC9F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: abeb633d-401e-0006-1993-809378000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ae899a5a-ec86-11e9-9260-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:40 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92AE1F39"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 62254b9a-701e-00eb-6093-809afc000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aea3783e-ec86-11e9-8e9b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92BC7DDB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 62254b9f-701e-00eb-6393-809afc000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aeb1f93a-ec86-11e9-935b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92BC7DDB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 62254bad-701e-00eb-6f93-809afc000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0944bff0-ec87-11e9-93ec-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:12 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED68D5D4"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 245d8fe9-901e-0069-7e93-803bac000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 095e12e8-ec87-11e9-9a5f-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED71E157"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 245d8ff7-901e-0069-0893-803bac000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0965b530-ec87-11e9-acbd-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container5a801e21?restype=container&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAED71E157"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 245d8ffd-901e-0069-0e93-803bac000000 + 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 + - amqptest.blob.core.windows.net + - /container5a801e21 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_lease_id.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_lease_id.yaml index ab5fa6c834e5..9ae9f749e709 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_lease_id.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_lease_id.yaml @@ -205,4 +205,913 @@ interactions: - /containera998175a - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ee94a300-ec82-11e9-9b0a-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D2BD0F19"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: d9dcdb85-f01e-0050-1f8f-807b08000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eeb01a9e-ec82-11e9-a08d-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:50 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - dd30745b-2181-4e84-9668-4bdda0fbfabb + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?comp=lease&restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D2BD0F19"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: dd30745b-2181-4e84-9668-4bdda0fbfabb + x-ms-request-id: d9dcdb98-f01e-0050-308f-807b08000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - comp=lease&restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 009a2400-ec86-11e9-93e2-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E4BF18BE"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: bb4ef0d0-201e-0059-7192-806186000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00b28d1a-ec86-11e9-9658-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - c6afd091-b35d-44cf-bb41-9a762fca9b44 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?comp=lease&restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E4BF18BE"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: c6afd091-b35d-44cf-bb41-9a762fca9b44 + x-ms-request-id: bb4ef10c-201e-0059-2992-806186000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - comp=lease&restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:19:49Z2019-10-12T01:19:49Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00c04ac0-ec86-11e9-b451-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-lease-id: + - c6afd091-b35d-44cf-bb41-9a762fca9b44 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E4D496B5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: bb4ef11e-201e-0059-3892-806186000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00c775f4-ec86-11e9-baca-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:19:49.0000000Z2019-10-12T01:19:49.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E4D496B5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: bb4ef13b-201e-0059-5492-806186000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4ae05a9c-ec86-11e9-a0c9-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2F0460D2"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 1bbc9d43-801e-0054-5293-808e8a000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4af83b5e-ec86-11e9-a69b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 24bc9913-268d-47c3-b5de-6bb6b95d1210 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?comp=lease&restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2F0460D2"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 24bc9913-268d-47c3-b5de-6bb6b95d1210 + x-ms-request-id: 1bbc9d76-801e-0054-0293-808e8a000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - comp=lease&restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:21:53Z2019-10-12T01:21:53Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4affb552-ec86-11e9-9ac6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:53 GMT + x-ms-lease-id: + - 24bc9913-268d-47c3-b5de-6bb6b95d1210 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2F13EE39"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 1bbc9da5-801e-0054-3193-808e8a000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4b072fa2-ec86-11e9-84b5-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:54 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:21:53.0000000Z2019-10-12T01:21:53.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2F13EE39"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:53 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 1bbc9dea-801e-0054-7693-808e8a000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aecf6be8-ec86-11e9-90e7-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92F3CD80"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: a9891e97-e01e-00cc-5293-8000b5000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aee893ca-ec86-11e9-94d4-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 2633e494-402d-45ad-835d-dce03bac1542 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?comp=lease&restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA92F3CD80"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 2633e494-402d-45ad-835d-dce03bac1542 + x-ms-request-id: a9891ea9-e01e-00cc-6193-8000b5000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - comp=lease&restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:24:41Z2019-10-12T01:24:41Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aef00bae-ec86-11e9-b7bf-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-lease-id: + - 2633e494-402d-45ad-835d-dce03bac1542 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93037E83"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: a9891eb6-e01e-00cc-6c93-8000b5000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - aef7121e-ec86-11e9-a267-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:24:41.0000000Z2019-10-12T01:24:41.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:40 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93037E83"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: a9891ec1-e01e-00cc-7693-8000b5000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 09801adc-ec87-11e9-a799-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDA34435"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 9d3ca769-201e-009e-4993-801d47000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0997c082-ec87-11e9-94a4-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - fc9392ec-3e5b-401e-ab93-b93c8d1e7298 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?comp=lease&restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDA34435"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: fc9392ec-3e5b-401e-ab93-b93c8d1e7298 + x-ms-request-id: 9d3ca778-201e-009e-5593-801d47000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - comp=lease&restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:27:13Z2019-10-12T01:27:13Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 099f3d14-ec87-11e9-b473-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-lease-id: + - fc9392ec-3e5b-401e-ab93-b93c8d1e7298 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDB29F53"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 9d3ca77e-201e-009e-5b93-801d47000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 09a6b6c6-ec87-11e9-85da-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:13 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containera998175a?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:27:13.0000000Z2019-10-12T01:27:13.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDB29F53"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 9d3ca78a-201e-009e-6693-801d47000000 + 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 + - amqptest.blob.core.windows.net + - /containera998175a + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_one_signed_identifier.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_one_signed_identifier.yaml index 45cc0e97788c..1a0ca0d6d995 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_one_signed_identifier.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_one_signed_identifier.yaml @@ -97,4 +97,484 @@ interactions: - /containerff8e1cc1 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef109eb0-ec82-11e9-865a-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:51 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D33A1D2B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4a7dc43f-f01e-0072-478f-80153e000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container + - '' +- request: + body: ' + + testid2019-10-11T23:57:51Z2019-10-12T00:57:51Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef2b54c0-ec82-11e9-bf36-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:51 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D340EFBF"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4a7dc44f-f01e-0072-548f-80153e000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 00f49fb0-ec86-11e9-8607-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5184A67"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 243d1111-901e-002d-7892-80e7c0000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:19:49Z2019-10-12T01:19:49Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 010bf60c-ec86-11e9-ba0c-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:49 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:48 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E52004F5"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 243d111f-901e-002d-0292-80e7c0000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4b82f368-ec86-11e9-9b44-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:54 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2FA727F8"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4181b700-701e-0041-2a93-804c13000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:21:54Z2019-10-12T01:21:54Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4b9b35ac-ec86-11e9-9c0a-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:54 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2FAE9BF8"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 4181b716-701e-0041-3c93-804c13000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - af212f00-ec86-11e9-a2a8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:41 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA9344963A"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 95107d71-e01e-0000-1293-806400000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:24:42Z2019-10-12T01:24:42Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - af38610c-ec86-11e9-ad94-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA934B90CB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 95107d89-e01e-0000-2593-806400000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 09d1753a-ec87-11e9-b1b3-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDF49252"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 67ac0aa5-801e-00ba-1d93-808409000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:27:14Z2019-10-12T01:27:14Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 09e8ce3a-ec87-11e9-9c32-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerff8e1cc1?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEDFB9C24"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 67ac0ab3-801e-00ba-2993-808409000000 + 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 + - amqptest.blob.core.windows.net + - /containerff8e1cc1 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_public_access.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_public_access.yaml index 13d6b0a39a1d..c337417ac519 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_public_access.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_public_access.yaml @@ -152,4 +152,657 @@ interactions: - /container25111974 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef4172be-ec82-11e9-a07f-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:51 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3672962"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: c27cc134-901e-00e1-078f-808375000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0128583e-ec86-11e9-a025-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E54DA8EC"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 3f14f291-401e-008e-3492-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:19:50Z2019-10-12T01:19:50Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - container + x-ms-client-request-id: + - 0140ea58-ec86-11e9-aa9a-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5552826"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 3f14f2a0-401e-008e-3f92-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0147ee0a-ec86-11e9-ac96-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:19:50.0000000Z2019-10-12T01:19:50.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:49 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5552826"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-blob-public-access: container + x-ms-request-id: 3f14f2b4-401e-008e-4c92-802ba1000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4bb30426-ec86-11e9-8e3f-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2FD85AC1"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 81834893-001e-000a-7493-807d89000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:21:55Z2019-10-12T01:21:55Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - container + x-ms-client-request-id: + - 4bcb6da4-ec86-11e9-85b6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2FDF0362"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 818348b1-001e-000a-0c93-807d89000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4bd24bb0-ec86-11e9-b97c-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:21:55.0000000Z2019-10-12T01:21:55.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA2FDF0362"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-blob-public-access: container + x-ms-request-id: 818348c6-001e-000a-2193-807d89000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - af536250-ec86-11e9-91b5-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:41 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93770974"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 0f676524-501e-003b-4493-80265e000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:24:42Z2019-10-12T01:24:42Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - container + x-ms-client-request-id: + - af6a6d1a-ec86-11e9-8ce6-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA937D30E8"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 0f676534-501e-003b-5193-80265e000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - af706092-ec86-11e9-856e-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:24:42.0000000Z2019-10-12T01:24:42.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA937D30E8"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-blob-public-access: container + x-ms-request-id: 0f67653f-501e-003b-5b93-80265e000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a046a8a-ec87-11e9-9359-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE299114"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: bb521fea-201e-0059-0d93-806186000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:27:14Z2019-10-12T01:27:14Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-public-access: + - container + x-ms-client-request-id: + - 0a1e36d2-ec87-11e9-9a07-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE33A600"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: bb52200c-201e-0059-2393-806186000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a284842-ec87-11e9-bc27-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container25111974?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:27:14.0000000Z2019-10-12T01:27:14.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE33A600"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-blob-public-access: container + x-ms-request-id: bb522035-201e-0059-4293-806186000000 + 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 + - amqptest.blob.core.windows.net + - /container25111974 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_signed_identifiers.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_signed_identifiers.yaml index 8c53b41c8709..a4ebe7a36a05 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_signed_identifiers.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_signed_identifiers.yaml @@ -152,4 +152,749 @@ interactions: - /containeraab11b93 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef7e3edc-ec82-11e9-8f33-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:51 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3A60208"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 673ebe1e-b01e-00b2-4b8f-809f7a000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container + - '' +- request: + body: ' + + testid2019-10-11T23:56:52Z2019-10-12T00:57:52Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef971d9c-ec82-11e9-b5c1-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3AC960F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 673ebe2b-b01e-00b2-558f-809f7a000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - ef9d60e2-ec82-11e9-a8a3-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:52 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-11T23:56:52.0000000Z2019-10-12T00:57:52.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3AC960F"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:51 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 673ebe37-b01e-00b2-608f-809f7a000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0162541c-ec86-11e9-b876-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5887C52"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: fc5fa1be-001e-0023-3b92-800bcb000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:18:50Z2019-10-12T01:19:50Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 017c45e2-ec86-11e9-b8ea-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E59066EB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: fc5fa1e7-001e-0023-5d92-800bcb000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 01837102-ec86-11e9-9ea1-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:18:50.0000000Z2019-10-12T01:19:50.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E59066EB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: fc5fa1f5-001e-0023-6892-800bcb000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4bec8a2c-ec86-11e9-9130-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA30112638"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 98a5f7d5-b01e-0013-1093-8051e1000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:20:55Z2019-10-12T01:21:55Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4c04a4b4-ec86-11e9-805c-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA3017F7C7"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 98a5f7e5-b01e-0013-1d93-8051e1000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4c0b0eec-ec86-11e9-956d-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:20:55.0000000Z2019-10-12T01:21:55.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA3017F7C7"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 98a5f7f6-b01e-0013-2b93-8051e1000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - af8bfee8-ec86-11e9-81fc-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93B0A1AE"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 33c1ade8-401e-000d-6793-808b0c000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:23:42Z2019-10-12T01:24:42Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - afa48e9a-ec86-11e9-9c3a-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93B7AC3D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 33c1ae05-401e-000d-8093-808b0c000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - afab471a-ec86-11e9-a579-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:42 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:23:42.0000000Z2019-10-12T01:24:42.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93B7AC3D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 33c1ae1e-401e-000d-1993-808b0c000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a4942e4-ec87-11e9-b4ed-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:14 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE6C2E32"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 0ae5bcc3-601e-007c-5e93-80f935000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container + - '' +- request: + body: ' + + testid2019-10-12T00:26:15Z2019-10-12T01:27:15Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a607452-ec87-11e9-a072-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:15 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE72DD23"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 0ae5bcd2-601e-007c-6793-80f935000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a668ec8-ec87-11e9-81fc-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:15 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/containeraab11b93?restype=container&comp=acl + response: + body: + string: "\uFEFFtestid2019-10-12T00:26:15.0000000Z2019-10-12T01:27:15.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEE72DD23"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 0ae5bce0-601e-007c-7593-80f935000000 + 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 + - amqptest.blob.core.windows.net + - /containeraab11b93 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_three_identifiers.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_three_identifiers.yaml index 71053def2a76..b6b1c28f11de 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_three_identifiers.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_set_container_acl_with_three_identifiers.yaml @@ -152,4 +152,749 @@ interactions: - /container8f8b1b31 - restype=container&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - efbbe746-ec82-11e9-b25c-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3E2408C"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 98de45be-301e-002b-738f-8010b8000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container + - '' +- request: + body: ' + + 02019-10-11T23:56:52Z2019-10-12T00:57:52Zr12019-10-11T23:56:52Z2019-10-12T00:57:52Zr' + headers: + Content-Length: + - '426' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - efd589ee-ec82-11e9-ae8b-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:52 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3EA946D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 98de45c7-301e-002b-7a8f-8010b8000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - efdb5766-ec82-11e9-8e47-b831b58100e8 + x-ms-date: + - Fri, 11 Oct 2019 23:57:52 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: "\uFEFF02019-10-11T23:56:52.0000000Z2019-10-12T00:57:52.0000000Zr12019-10-11T23:56:52.0000000Z2019-10-12T00:57:52.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA6D3EA946D"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Fri, 11 Oct 2019 23:57:52 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 98de45c9-301e-002b-7c8f-8010b8000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 019cc35a-ec86-11e9-aea8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:50 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5C114A4"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: d9e44ea6-f01e-0050-6392-807b08000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container + - '' +- request: + body: ' + + 02019-10-12T00:18:50Z2019-10-12T01:19:50Zr12019-10-12T00:18:50Z2019-10-12T01:19:50Zr' + headers: + Content-Length: + - '426' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 01b7c7ee-ec86-11e9-8b50-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:51 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5CBA5C1"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: d9e44ebb-f01e-0050-7492-807b08000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 01bea51c-ec86-11e9-851f-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:19:51 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: "\uFEFF02019-10-12T00:18:50.0000000Z2019-10-12T01:19:50.0000000Zr12019-10-12T00:18:50.0000000Z2019-10-12T01:19:50.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EA9E5CBA5C1"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:19:50 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: d9e44eca-f01e-0050-0292-807b08000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4c24d68c-ec86-11e9-9f99-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:55 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:54 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA304A9313"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 677d1342-601e-00bb-5b93-8085f4000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container + - '' +- request: + body: ' + + 02019-10-12T00:20:56Z2019-10-12T01:21:56Zr12019-10-12T00:20:56Z2019-10-12T01:21:56Zr' + headers: + Content-Length: + - '426' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4c41fb7e-ec86-11e9-9a9e-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:56 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA305532B3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 677d135c-601e-00bb-7293-8085f4000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4c481786-ec86-11e9-a08b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:21:56 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: "\uFEFF02019-10-12T00:20:56.0000000Z2019-10-12T01:21:56.0000000Zr12019-10-12T00:20:56.0000000Z2019-10-12T01:21:56.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA305532B3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:21:55 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 677d1366-601e-00bb-7c93-8085f4000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - afc389ba-ec86-11e9-9da8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:43 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93E687D8"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: faae1b0d-d01e-004c-0993-80a31f000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container + - '' +- request: + body: ' + + 02019-10-12T00:23:43Z2019-10-12T01:24:43Zr12019-10-12T00:23:43Z2019-10-12T01:24:43Zr' + headers: + Content-Length: + - '426' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - afde632c-ec86-11e9-8c01-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:43 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93F18B48"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: faae1b3b-d01e-004c-3593-80a31f000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - afe4cd18-ec86-11e9-bd9b-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:24:43 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: "\uFEFF02019-10-12T00:23:43.0000000Z2019-10-12T01:24:43.0000000Zr12019-10-12T00:23:43.0000000Z2019-10-12T01:24:43.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAA93F18B48"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:24:42 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: faae1b4b-d01e-004c-4493-80a31f000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a81b7f8-ec87-11e9-9659-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:15 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEEA67CD3"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 436515cc-c01e-009f-1893-801cba000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container + - '' +- request: + body: ' + + 02019-10-12T00:26:15Z2019-10-12T01:27:15Zr12019-10-12T00:26:15Z2019-10-12T01:27:15Zr' + headers: + Content-Length: + - '426' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0a9b818c-ec87-11e9-8cb8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:15 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEEADF4EB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 436515e5-c01e-009f-2993-801cba000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 0aa19c0a-ec87-11e9-8fee-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 00:27:15 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://blobstoragename.blob.core.windows.net/container8f8b1b31?restype=container&comp=acl + response: + body: + string: "\uFEFF02019-10-12T00:26:15.0000000Z2019-10-12T01:27:15.0000000Zr12019-10-12T00:26:15.0000000Z2019-10-12T01:27:15.0000000Zr" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 00:27:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74EAAEEADF4EB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 00:27:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 436515ec-c01e-009f-3093-801cba000000 + 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 + - amqptest.blob.core.windows.net + - /container8f8b1b31 + - restype=container&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py index 92ddf681e805..aff426ffe27c 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import pytest -import datetime +from datetime import datetime, timedelta import os import unittest @@ -22,7 +22,9 @@ BlobBlock, BlobType, ContentSettings, - BlobProperties + BlobProperties, + ContainerSasPermissions, + AccessPolicy, ) from testcase import ( StorageTestCase, @@ -88,8 +90,8 @@ def _create_container_and_append_blob(self, container_name, blob_name): def test_set_container_metadata_with_if_modified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '43'} @@ -103,8 +105,8 @@ def test_set_container_metadata_with_if_modified(self): def test_set_container_metadata_with_if_modified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -118,10 +120,14 @@ def test_set_container_metadata_with_if_modified_fail(self): def test_set_container_acl_with_if_modified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act - container.set_container_access_policy(if_modified_since=test_datetime) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + container.set_container_access_policy(signed_identifiers, if_modified_since=test_datetime) # Assert acl = container.get_container_access_policy() @@ -131,11 +137,15 @@ def test_set_container_acl_with_if_modified(self): def test_set_container_acl_with_if_modified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} with self.assertRaises(ResourceModifiedError) as e: - container.set_container_access_policy(if_modified_since=test_datetime) + container.set_container_access_policy(signed_identifiers, if_modified_since=test_datetime) # Assert self.assertEqual(StorageErrorCode.condition_not_met, e.exception.error_code) @@ -144,10 +154,14 @@ def test_set_container_acl_with_if_modified_fail(self): def test_set_container_acl_with_if_unmodified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act - container.set_container_access_policy(if_unmodified_since=test_datetime) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + container.set_container_access_policy(signed_identifiers, if_unmodified_since=test_datetime) # Assert acl = container.get_container_access_policy() @@ -157,11 +171,15 @@ def test_set_container_acl_with_if_unmodified(self): def test_set_container_acl_with_if_unmodified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} with self.assertRaises(ResourceModifiedError) as e: - container.set_container_access_policy(if_unmodified_since=test_datetime) + container.set_container_access_policy(signed_identifiers, if_unmodified_since=test_datetime) # Assert self.assertEqual(StorageErrorCode.condition_not_met, e.exception.error_code) @@ -170,8 +188,8 @@ def test_set_container_acl_with_if_unmodified_fail(self): def test_lease_container_acquire_with_if_modified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act lease = container.acquire_lease(if_modified_since=test_datetime) @@ -183,8 +201,8 @@ def test_lease_container_acquire_with_if_modified(self): def test_lease_container_acquire_with_if_modified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -197,8 +215,8 @@ def test_lease_container_acquire_with_if_modified_fail(self): def test_lease_container_acquire_with_if_unmodified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act lease = container.acquire_lease(if_unmodified_since=test_datetime) @@ -210,8 +228,8 @@ def test_lease_container_acquire_with_if_unmodified(self): def test_lease_container_acquire_with_if_unmodified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -224,8 +242,8 @@ def test_lease_container_acquire_with_if_unmodified_fail(self): def test_delete_container_with_if_modified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act deleted = container.delete_container(if_modified_since=test_datetime) @@ -238,8 +256,8 @@ def test_delete_container_with_if_modified(self): def test_delete_container_with_if_modified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: container.delete_container(if_modified_since=test_datetime) @@ -251,8 +269,8 @@ def test_delete_container_with_if_modified_fail(self): def test_delete_container_with_if_unmodified(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act container.delete_container(if_unmodified_since=test_datetime) @@ -264,8 +282,8 @@ def test_delete_container_with_if_unmodified(self): def test_delete_container_with_if_unmodified_fail(self): # Arrange container = self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: container.delete_container(if_unmodified_since=test_datetime) @@ -278,8 +296,8 @@ def test_put_blob_with_if_modified(self): data = b'hello world' container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act resp = blob.upload_blob(data, length=len(data), if_modified_since=test_datetime) @@ -293,8 +311,8 @@ def test_put_blob_with_if_modified_fail(self): data = b'hello world' container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -309,8 +327,8 @@ def test_put_blob_with_if_unmodified(self): data = b'hello world' container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act resp = blob.upload_blob(data, length=len(data), if_unmodified_since=test_datetime) @@ -324,8 +342,8 @@ def test_put_blob_with_if_unmodified_fail(self): data = b'hello world' container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -395,8 +413,8 @@ def test_get_blob_with_if_modified(self): # Arrange container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act content = blob.download_blob(if_modified_since=test_datetime) @@ -410,8 +428,8 @@ def test_get_blob_with_if_modified_fail(self): # Arrange container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -425,8 +443,8 @@ def test_get_blob_with_if_unmodified(self): # Arrange container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act content = blob.download_blob(if_unmodified_since=test_datetime) @@ -440,8 +458,8 @@ def test_get_blob_with_if_unmodified_fail(self): # Arrange container, blob = self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -509,8 +527,8 @@ def test_set_blob_properties_with_if_modified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act content_settings = ContentSettings( content_language='spanish', @@ -528,8 +546,8 @@ def test_set_blob_properties_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: content_settings = ContentSettings( @@ -546,8 +564,8 @@ def test_set_blob_properties_with_if_unmodified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act content_settings = ContentSettings( content_language='spanish', @@ -565,8 +583,8 @@ def test_set_blob_properties_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: content_settings = ContentSettings( @@ -655,8 +673,8 @@ def test_get_blob_properties_with_if_modified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') properties = blob.get_blob_properties(if_modified_since=test_datetime) @@ -672,8 +690,8 @@ def test_get_blob_properties_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -687,8 +705,8 @@ def test_get_blob_properties_with_if_unmodified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') properties = blob.get_blob_properties(if_unmodified_since=test_datetime) @@ -704,8 +722,8 @@ def test_get_blob_properties_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -781,8 +799,8 @@ def test_get_blob_metadata_with_if_modified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -796,8 +814,8 @@ def test_get_blob_metadata_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -812,8 +830,8 @@ def test_get_blob_metadata_with_if_unmodified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -827,8 +845,8 @@ def test_get_blob_metadata_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -899,8 +917,8 @@ def test_set_blob_metadata_with_if_modified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '42'} @@ -916,8 +934,8 @@ def test_set_blob_metadata_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -933,8 +951,8 @@ def test_set_blob_metadata_with_if_unmodified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '42'} @@ -950,8 +968,8 @@ def test_set_blob_metadata_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1027,8 +1045,8 @@ def test_set_blob_metadata_with_if_none_match_fail(self): @record def test_delete_blob_with_if_modified(self): # Arrange - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1042,8 +1060,8 @@ def test_delete_blob_with_if_modified(self): @record def test_delete_blob_with_if_modified_fail(self): # Arrange - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1058,8 +1076,8 @@ def test_delete_blob_with_if_modified_fail(self): @record def test_delete_blob_with_if_unmodified(self): # Arrange - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1073,8 +1091,8 @@ def test_delete_blob_with_if_unmodified(self): @record def test_delete_blob_with_if_unmodified_fail(self): # Arrange - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1148,8 +1166,8 @@ def test_snapshot_blob_with_if_modified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1164,8 +1182,8 @@ def test_snapshot_blob_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1180,8 +1198,8 @@ def test_snapshot_blob_with_if_unmodified(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1196,8 +1214,8 @@ def test_snapshot_blob_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1271,8 +1289,8 @@ def test_lease_blob_with_if_modified(self): self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') test_lease_id = '00000000-1111-2222-3333-444444444444' - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1291,8 +1309,8 @@ def test_lease_blob_with_if_modified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1308,8 +1326,8 @@ def test_lease_blob_with_if_unmodified(self): self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') test_lease_id = '00000000-1111-2222-3333-444444444444' - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1328,8 +1346,8 @@ def test_lease_blob_with_if_unmodified_fail(self): # Arrange self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1415,8 +1433,8 @@ def test_put_block_list_with_if_modified(self): blob.stage_block('1', b'AAA') blob.stage_block('2', b'BBB') blob.stage_block('3', b'CCC') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act block_list = [BlobBlock(block_id='1'), BlobBlock(block_id='2'), BlobBlock(block_id='3')] @@ -1434,8 +1452,8 @@ def test_put_block_list_with_if_modified_fail(self): blob.stage_block('1', b'AAA') blob.stage_block('2', b'BBB') blob.stage_block('3', b'CCC') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1454,8 +1472,8 @@ def test_put_block_list_with_if_unmodified(self): blob.stage_block('1', b'AAA') blob.stage_block('2', b'BBB') blob.stage_block('3', b'CCC') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act block_list = [BlobBlock(block_id='1'), BlobBlock(block_id='2'), BlobBlock(block_id='3')] @@ -1473,8 +1491,8 @@ def test_put_block_list_with_if_unmodified_fail(self): blob.stage_block('1', b'AAA') blob.stage_block('2', b'BBB') blob.stage_block('3', b'CCC') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1561,8 +1579,8 @@ def test_update_page_with_if_modified(self): # Arrange self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -1576,8 +1594,8 @@ def test_update_page_with_if_modified_fail(self): # Arrange self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -1593,8 +1611,8 @@ def test_update_page_with_if_unmodified(self): # Arrange self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -1608,8 +1626,8 @@ def test_update_page_with_if_unmodified_fail(self): # Arrange self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -1684,8 +1702,8 @@ def test_get_page_ranges_iter_with_if_modified(self): container, blob = self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) blob.upload_page(data, offset=0, length=512) blob.upload_page(data, offset=1024, length=512) @@ -1703,8 +1721,8 @@ def test_get_page_ranges_iter_with_if_modified_fail(self): container, blob = self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) blob.upload_page(data, offset=0, length=512) blob.upload_page(data, offset=1024, length=512) @@ -1721,8 +1739,8 @@ def test_get_page_ranges_iter_with_if_unmodified(self): container, blob = self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) blob.upload_page(data, offset=0, length=512) blob.upload_page(data, offset=1024, length=512) @@ -1740,8 +1758,8 @@ def test_get_page_ranges_iter_with_if_unmodified_fail(self): container, blob = self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) blob.upload_page(data, offset=0, length=512) blob.upload_page(data, offset=1024, length=512) @@ -1825,8 +1843,8 @@ def test_get_page_ranges_iter_with_if_none_match_fail(self): def test_append_block_with_if_modified(self): # Arrange container, blob = self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act for i in range(5): resp = blob.append_block(u'block {0}'.format(i), if_modified_since=test_datetime) @@ -1840,8 +1858,8 @@ def test_append_block_with_if_modified(self): def test_append_block_with_if_modified_fail(self): # Arrange container, blob = self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: for i in range(5): @@ -1854,8 +1872,8 @@ def test_append_block_with_if_modified_fail(self): def test_append_block_with_if_unmodified(self): # Arrange container, blob = self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act for i in range(5): resp = blob.append_block(u'block {0}'.format(i), if_unmodified_since=test_datetime) @@ -1869,8 +1887,8 @@ def test_append_block_with_if_unmodified(self): def test_append_block_with_if_unmodified_fail(self): # Arrange container, blob = self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: for i in range(5): @@ -1940,7 +1958,7 @@ def test_append_blob_from_bytes_with_if_modified(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - timedelta(minutes=15)) # Act data = self.get_random_bytes(LARGE_APPEND_BLOB_SIZE) @@ -1955,7 +1973,7 @@ def test_append_blob_from_bytes_with_if_modified_fail(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() + datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1969,7 +1987,7 @@ def test_append_blob_from_bytes_with_if_unmodified(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() + datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + timedelta(minutes=15)) # Act data = self.get_random_bytes(LARGE_APPEND_BLOB_SIZE) @@ -1984,7 +2002,7 @@ def test_append_blob_from_bytes_with_if_unmodified_fail(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py index 23f46604ac07..74daa51545ea 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py @@ -8,7 +8,7 @@ import pytest import asyncio -import datetime +from datetime import datetime, timedelta import os import unittest @@ -25,7 +25,9 @@ BlobBlock, BlobType, ContentSettings, - BlobProperties + BlobProperties, + ContainerSasPermissions, + AccessPolicy, ) from testcase import ( StorageTestCase, @@ -101,8 +103,8 @@ async def _create_container_and_append_blob(self, container_name, blob_name): async def _test_set_container_metadata_with_if_modified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '43'} @@ -120,8 +122,8 @@ def test_set_container_metadata_with_if_modified_async(self): async def _test_set_container_metadata_with_if_modified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -139,10 +141,14 @@ def test_set_container_metadata_with_if_modified_fail_async(self): async def _test_set_container_acl_with_if_modified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act - await container.set_container_access_policy(if_modified_since=test_datetime) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + await container.set_container_access_policy(signed_identifiers, if_modified_since=test_datetime) # Assert acl = await container.get_container_access_policy() @@ -156,11 +162,15 @@ def test_set_container_acl_with_if_modified_async(self): async def _test_set_container_acl_with_if_modified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} with self.assertRaises(ResourceModifiedError) as e: - await container.set_container_access_policy(if_modified_since=test_datetime) + await container.set_container_access_policy(signed_identifiers, if_modified_since=test_datetime) # Assert self.assertEqual(StorageErrorCode.condition_not_met, e.exception.error_code) @@ -173,10 +183,14 @@ def test_set_container_acl_with_if_modified_fail_async(self): async def _test_set_container_acl_with_if_unmodified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act - await container.set_container_access_policy(if_unmodified_since=test_datetime) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + await container.set_container_access_policy(signed_identifiers, if_unmodified_since=test_datetime) # Assert acl = await container.get_container_access_policy() @@ -190,11 +204,15 @@ def test_set_container_acl_with_if_unmodified_async(self): async def _test_set_container_acl_with_if_unmodified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} with self.assertRaises(ResourceModifiedError) as e: - await container.set_container_access_policy(if_unmodified_since=test_datetime) + await container.set_container_access_policy(signed_identifiers, if_unmodified_since=test_datetime) # Assert self.assertEqual(StorageErrorCode.condition_not_met, e.exception.error_code) @@ -207,8 +225,8 @@ def test_set_container_acl_with_if_unmodified_fail_async(self): async def _test_lease_container_acquire_with_if_modified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act lease = await container.acquire_lease(if_modified_since=test_datetime) @@ -224,8 +242,8 @@ def test_lease_container_acquire_with_if_modified_async(self): async def _test_lease_container_acquire_with_if_modified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -242,8 +260,8 @@ def test_lease_container_acquire_with_if_modified_fail_async(self): async def _test_lease_container_acquire_with_if_unmodified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act lease = await container.acquire_lease(if_unmodified_since=test_datetime) @@ -259,8 +277,8 @@ def test_lease_container_acquire_with_if_unmodified_async(self): async def _test_lease_container_acquire_with_if_unmodified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -277,8 +295,8 @@ def test_lease_container_acquire_with_if_unmodified_fail_async(self): async def _test_delete_container_with_if_modified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act deleted = await container.delete_container(if_modified_since=test_datetime) @@ -295,8 +313,8 @@ def test_delete_container_with_if_modified_async(self): async def _test_delete_container_with_if_modified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: await container.delete_container(if_modified_since=test_datetime) @@ -312,8 +330,8 @@ def test_delete_container_with_if_modified_fail_async(self): async def _test_delete_container_with_if_unmodified_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act await container.delete_container(if_unmodified_since=test_datetime) @@ -329,8 +347,8 @@ def test_delete_container_with_if_unmodified_async(self): async def _test_delete_container_with_if_unmodified_fail_async(self): # Arrange container = await self._create_container(self.container_name) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: await container.delete_container(if_unmodified_since=test_datetime) @@ -347,8 +365,8 @@ async def _test_put_blob_with_if_modified_async(self): data = b'hello world' container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act resp = await blob.upload_blob(data, length=len(data), if_modified_since=test_datetime) @@ -366,8 +384,8 @@ async def _test_put_blob_with_if_modified_fail_async(self): data = b'hello world' container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -386,8 +404,8 @@ async def _test_put_blob_with_if_unmodified_async(self): data = b'hello world' container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act resp = await blob.upload_blob(data, length=len(data), if_unmodified_since=test_datetime) @@ -405,8 +423,8 @@ async def _test_put_blob_with_if_unmodified_fail_async(self): data = b'hello world' container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', data) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -496,8 +514,8 @@ async def _test_get_blob_with_if_modified_async(self): # Arrange container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act content = await blob.download_blob(if_modified_since=test_datetime) @@ -515,8 +533,8 @@ async def _test_get_blob_with_if_modified_fail_async(self): # Arrange container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -534,8 +552,8 @@ async def _test_get_blob_with_if_unmodified_async(self): # Arrange container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act content = await blob.download_blob(if_unmodified_since=test_datetime) @@ -553,8 +571,8 @@ async def _test_get_blob_with_if_unmodified_fail_async(self): # Arrange container, blob = await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -642,8 +660,8 @@ async def _test_set_blob_properties_with_if_modified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act content_settings = ContentSettings( content_language='spanish', @@ -665,8 +683,8 @@ async def _test_set_blob_properties_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: content_settings = ContentSettings( @@ -687,8 +705,8 @@ async def _test_set_blob_properties_with_if_unmodified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act content_settings = ContentSettings( content_language='spanish', @@ -710,8 +728,8 @@ async def _test_set_blob_properties_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: content_settings = ContentSettings( @@ -820,8 +838,8 @@ async def _test_get_blob_properties_with_if_modified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') properties = await blob.get_blob_properties(if_modified_since=test_datetime) @@ -841,8 +859,8 @@ async def _test_get_blob_properties_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -860,8 +878,8 @@ async def _test_get_blob_properties_with_if_unmodified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') properties = await blob.get_blob_properties(if_unmodified_since=test_datetime) @@ -881,8 +899,8 @@ async def _test_get_blob_properties_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -978,8 +996,8 @@ async def _test_get_blob_metadata_with_if_modified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -997,8 +1015,8 @@ async def _test_get_blob_metadata_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1017,8 +1035,8 @@ async def _test_get_blob_metadata_with_if_unmodified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1036,8 +1054,8 @@ async def _test_get_blob_metadata_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1128,8 +1146,8 @@ async def _test_set_blob_metadata_with_if_modified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '42'} @@ -1149,8 +1167,8 @@ async def _test_set_blob_metadata_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1170,8 +1188,8 @@ async def _test_set_blob_metadata_with_if_unmodified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act metadata = {'hello': 'world', 'number': '42'} @@ -1191,8 +1209,8 @@ async def _test_set_blob_metadata_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1288,8 +1306,8 @@ def test_set_blob_metadata_with_if_none_match_fail_async(self): async def _test_delete_blob_with_if_modified_async(self): # Arrange - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1307,8 +1325,8 @@ def test_delete_blob_with_if_modified_async(self): async def _test_delete_blob_with_if_modified_fail_async(self): # Arrange - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1327,8 +1345,8 @@ def test_delete_blob_with_if_modified_fail_async(self): async def _test_delete_blob_with_if_unmodified_async(self): # Arrange - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1346,8 +1364,8 @@ def test_delete_blob_with_if_unmodified_async(self): async def _test_delete_blob_with_if_unmodified_fail_async(self): # Arrange - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') @@ -1441,8 +1459,8 @@ async def _test_snapshot_blob_with_if_modified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1461,8 +1479,8 @@ async def _test_snapshot_blob_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1481,8 +1499,8 @@ async def _test_snapshot_blob_with_if_unmodified_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1501,8 +1519,8 @@ async def _test_snapshot_blob_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1596,8 +1614,8 @@ async def _test_lease_blob_with_if_modified_async(self): await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') test_lease_id = '00000000-1111-2222-3333-444444444444' - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1620,8 +1638,8 @@ async def _test_lease_blob_with_if_modified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1641,8 +1659,8 @@ async def _test_lease_blob_with_if_unmodified_async(self): await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') test_lease_id = '00000000-1111-2222-3333-444444444444' - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1665,8 +1683,8 @@ async def _test_lease_blob_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_block_blob( self.container_name, 'blob1', b'hello world') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act blob = self.bsc.get_blob_client(self.container_name, 'blob1') @@ -1773,8 +1791,8 @@ async def _test_put_block_list_with_if_modified_async(self): blob.stage_block('1', b'AAA'), blob.stage_block('2', b'BBB'), blob.stage_block('3', b'CCC')]) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act block_list = [BlobBlock(block_id='1'), BlobBlock(block_id='2'), BlobBlock(block_id='3')] @@ -1798,8 +1816,8 @@ async def _test_put_block_list_with_if_modified_fail_async(self): blob.stage_block('1', b'AAA'), blob.stage_block('2', b'BBB'), blob.stage_block('3', b'CCC')]) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1823,8 +1841,8 @@ async def _test_put_block_list_with_if_unmodified_async(self): blob.stage_block('1', b'AAA'), blob.stage_block('2', b'BBB'), blob.stage_block('3', b'CCC')]) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act block_list = [BlobBlock(block_id='1'), BlobBlock(block_id='2'), BlobBlock(block_id='3')] @@ -1848,8 +1866,8 @@ async def _test_put_block_list_with_if_unmodified_fail_async(self): blob.stage_block('1', b'AAA'), blob.stage_block('2', b'BBB'), blob.stage_block('3', b'CCC')]) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -1962,8 +1980,8 @@ async def _test_update_page_with_if_modified_async(self): # Arrange await self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -1981,8 +1999,8 @@ async def _test_update_page_with_if_modified_fail_async(self): # Arrange await self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -2002,8 +2020,8 @@ async def _test_update_page_with_if_unmodified_async(self): # Arrange await self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -2021,8 +2039,8 @@ async def _test_update_page_with_if_unmodified_fail_async(self): # Arrange await self._create_container_and_page_blob( self.container_name, 'blob1', 1024) - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) data = b'abcdefghijklmnop' * 32 # Act @@ -2117,8 +2135,8 @@ async def _test_get_page_ranges_iter_with_if_modified_async(self): container, blob = await self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) await asyncio.gather(blob.upload_page(data, offset=0, length=512), blob.upload_page(data, offset=1024, length=512)) # Act @@ -2139,8 +2157,8 @@ async def _test_get_page_ranges_iter_with_if_modified_fail_async(self): container, blob = await self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) await asyncio.gather(blob.upload_page(data, offset=0, length=512), blob.upload_page(data, offset=1024, length=512)) # Act @@ -2160,8 +2178,8 @@ async def _test_get_page_ranges_iter_with_if_unmodified_async(self): container, blob = await self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) await asyncio.gather(blob.upload_page(data, offset=0, length=512), blob.upload_page(data, offset=1024, length=512)) # Act @@ -2182,8 +2200,8 @@ async def _test_get_page_ranges_iter_with_if_unmodified_fail_async(self): container, blob = await self._create_container_and_page_blob( self.container_name, 'blob1', 2048) data = b'abcdefghijklmnop' * 32 - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) await asyncio.gather(blob.upload_page(data, offset=0, length=512), blob.upload_page(data, offset=1024, length=512)) # Act @@ -2282,8 +2300,8 @@ def test_get_page_ranges_iter_with_if_none_match_fail_async(self): async def _test_append_block_with_if_modified_async(self): # Arrange container, blob = await self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act for i in range(5): resp = await blob.append_block(u'block {0}'.format(i), if_modified_since=test_datetime) @@ -2302,8 +2320,8 @@ def test_append_block_with_if_modified_async(self): async def _test_append_block_with_if_modified_fail_async(self): # Arrange container, blob = await self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: for i in range(5): @@ -2320,8 +2338,8 @@ def test_append_block_with_if_modified_fail_async(self): async def _test_append_block_with_if_unmodified_async(self): # Arrange container, blob = await self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() + - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + + timedelta(minutes=15)) # Act for i in range(5): resp = await blob.append_block(u'block {0}'.format(i), if_unmodified_since=test_datetime) @@ -2340,8 +2358,8 @@ def test_append_block_with_if_unmodified_async(self): async def _test_append_block_with_if_unmodified_fail_async(self): # Arrange container, blob = await self._create_container_and_append_blob(self.container_name, 'blob1') - test_datetime = (datetime.datetime.utcnow() - - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: for i in range(5): @@ -2433,7 +2451,7 @@ async def _test_append_blob_from_bytes_with_if_modified_async(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = await self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - timedelta(minutes=15)) # Act data = self.get_random_bytes(LARGE_APPEND_BLOB_SIZE) @@ -2453,7 +2471,7 @@ async def _test_append_blob_from_bytes_with_if_modified_fail_async(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = await self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() + datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: @@ -2471,7 +2489,7 @@ async def _test_append_blob_from_bytes_with_if_unmodified_async(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = await self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() + datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() + timedelta(minutes=15)) # Act data = self.get_random_bytes(LARGE_APPEND_BLOB_SIZE) @@ -2491,7 +2509,7 @@ async def _test_append_blob_from_bytes_with_if_unmodified_fail_async(self): # Arrange blob_name = self.get_resource_name("blob") container, blob = await self._create_container_and_append_blob(self.container_name, blob_name) - test_datetime = (datetime.datetime.utcnow() - datetime.timedelta(minutes=15)) + test_datetime = (datetime.utcnow() - timedelta(minutes=15)) # Act with self.assertRaises(ResourceModifiedError) as e: diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 72e439ba4ddb..3bd206d347a6 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -240,7 +240,11 @@ def test_list_containers_with_include_metadata(self): def test_list_containers_with_public_access(self): # Arrange container = self._create_container() - resp = container.set_container_access_policy(public_access=PublicAccess.Blob) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + resp = container.set_container_access_policy(signed_identifiers, public_access=PublicAccess.Blob) # Act containers = list(self.bsc.list_containers(name_starts_with=container.container_name)) @@ -416,7 +420,11 @@ def test_set_container_acl(self): container = self._create_container() # Act - response = container.set_container_access_policy() + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifier = {'testid': access_policy} + response = container.set_container_access_policy(signed_identifier) self.assertIsNotNone(response.get('etag')) self.assertIsNotNone(response.get('last_modified')) @@ -424,7 +432,7 @@ def test_set_container_acl(self): # Assert acl = container.get_container_access_policy() self.assertIsNotNone(acl) - self.assertEqual(len(acl.get('signed_identifiers')), 0) + self.assertEqual(len(acl.get('signed_identifiers')), 1) self.assertIsNone(acl.get('public_access')) @record @@ -468,7 +476,12 @@ def test_set_container_acl_with_lease_id(self): lease_id = container.acquire_lease() # Act - container.set_container_access_policy(lease=lease_id) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + + container.set_container_access_policy(signed_identifiers, lease=lease_id) # Assert acl = container.get_container_access_policy() @@ -481,7 +494,7 @@ def test_set_container_acl_with_public_access(self): container = self._create_container() # Act - container.set_container_access_policy(public_access='container') + container.set_container_access_policy(signed_identifiers=dict(), public_access='container') # Assert acl = container.get_container_access_policy() 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 40de97139c54..919e11bd4103 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -305,7 +305,11 @@ def test_list_containers_with_include_metadata(self): async def _test_list_containers_with_public_access(self): # Arrange container = await self._create_container() - resp = await container.set_container_access_policy(public_access=PublicAccess.Blob) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifier = {'testid': access_policy} + resp = await container.set_container_access_policy(signed_identifier, public_access=PublicAccess.Blob) # Act containers = [] @@ -536,7 +540,11 @@ async def _test_set_container_acl(self): container = await self._create_container() # Act - response = await container.set_container_access_policy() + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifier = {'testid': access_policy} + response = await container.set_container_access_policy(signed_identifier) self.assertIsNotNone(response.get('etag')) self.assertIsNotNone(response.get('last_modified')) @@ -544,7 +552,7 @@ async def _test_set_container_acl(self): # Assert acl = await container.get_container_access_policy() self.assertIsNotNone(acl) - self.assertEqual(len(acl.get('signed_identifiers')), 0) + self.assertEqual(len(acl.get('signed_identifiers')), 1) self.assertIsNone(acl.get('public_access')) @record @@ -580,7 +588,11 @@ async def _test_set_container_acl_with_lease_id(self): lease_id = await container.acquire_lease() # Act - await container.set_container_access_policy(lease=lease_id) + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifier = {'testid': access_policy} + await container.set_container_access_policy(signed_identifier, lease=lease_id) # Assert acl = await container.get_container_access_policy() @@ -597,7 +609,11 @@ async def _test_set_container_acl_with_public_access(self): container = await self._create_container() # Act - await container.set_container_access_policy(public_access='container') + access_policy = AccessPolicy(permission=ContainerSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifier = {'testid': access_policy} + await container.set_container_access_policy(signed_identifier, public_access='container') # Assert acl = await container.get_container_access_policy() diff --git a/sdk/storage/azure-storage-file/HISTORY.md b/sdk/storage/azure-storage-file/HISTORY.md index f6c58c60b66b..8b8dd4569808 100644 --- a/sdk/storage/azure-storage-file/HISTORY.md +++ b/sdk/storage/azure-storage-file/HISTORY.md @@ -1,5 +1,11 @@ # Change Log azure-storage-file +## Version 12.0.0: + +**Breaking changes** + +- `set_share_access_policy` has required parameter `signed_identifiers`. + ## Version 12.0.0b4: **Breaking changes** diff --git a/sdk/storage/azure-storage-queue/HISTORY.md b/sdk/storage/azure-storage-queue/HISTORY.md index e24413b759d1..451827a3fa0e 100644 --- a/sdk/storage/azure-storage-queue/HISTORY.md +++ b/sdk/storage/azure-storage-queue/HISTORY.md @@ -1,5 +1,11 @@ # Change Log azure-storage-queue +## Version 12.0.0: + +**Breaking changes** + +- `set_queue_access_policy` has required parameter `signed_identifiers`. + ## Version 12.0.0b4: **Breaking changes** From 1e70d9bac14c69faf0ab28e92c840fd3da203663 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Fri, 11 Oct 2019 17:55:58 -0700 Subject: [PATCH 3/4] removes unecessary check --- .../blob/aio/container_client_async.py | 23 ++++++++--------- .../azure/storage/blob/container_client.py | 23 ++++++++--------- .../storage/file/aio/share_client_async.py | 23 ++++++++--------- .../azure/storage/file/share_client.py | 24 ++++++++---------- .../storage/queue/aio/queue_client_async.py | 25 +++++++++---------- .../azure/storage/queue/queue_client.py | 23 ++++++++--------- 6 files changed, 67 insertions(+), 74 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index a78da29dc9ec..a91c5b2c51b5 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -473,18 +473,17 @@ async def set_container_access_policy( """ timeout = kwargs.pop('timeout', None) lease = kwargs.pop('lease', None) - if signed_identifiers: - if len(signed_identifiers) > 5: - raise ValueError( - 'Too many access policies provided. The server does not support setting ' - 'more than 5 access policies on a single resource.') - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) # type: ignore - signed_identifiers = identifiers # type: ignore + if len(signed_identifiers) > 5: + raise ValueError( + 'Too many access policies provided. The server does not support setting ' + 'more than 5 access policies on a single resource.') + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) # type: ignore + signed_identifiers = identifiers # type: ignore mod_conditions = ModifiedAccessConditions( if_modified_since=kwargs.pop('if_modified_since', None), diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index aaa9f58e2586..1c9f0e761615 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -680,18 +680,17 @@ def set_container_access_policy( :dedent: 12 :caption: Setting access policy on the container. """ - if signed_identifiers: - if len(signed_identifiers) > 5: - raise ValueError( - 'Too many access policies provided. The server does not support setting ' - 'more than 5 access policies on a single resource.') - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) # type: ignore - signed_identifiers = identifiers # type: ignore + if len(signed_identifiers) > 5: + raise ValueError( + 'Too many access policies provided. The server does not support setting ' + 'more than 5 access policies on a single resource.') + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) # type: ignore + signed_identifiers = identifiers # type: ignore lease = kwargs.pop('lease', None) mod_conditions = ModifiedAccessConditions( if_modified_since=kwargs.pop('if_modified_since', None), diff --git a/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py b/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py index 512149a64892..c7013cfe59fe 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/aio/share_client_async.py @@ -384,18 +384,17 @@ async def set_share_access_policy(self, signed_identifiers, timeout=None, **kwar :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ - if signed_identifiers: - if len(signed_identifiers) > 5: - raise ValueError( - 'Too many access policies provided. The server does not support setting ' - 'more than 5 access policies on a single resource.') - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) - signed_identifiers = identifiers # type: ignore + if len(signed_identifiers) > 5: + raise ValueError( + 'Too many access policies provided. The server does not support setting ' + 'more than 5 access policies on a single resource.') + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) + signed_identifiers = identifiers # type: ignore try: return await self._client.share.set_access_policy( # type: ignore diff --git a/sdk/storage/azure-storage-file/azure/storage/file/share_client.py b/sdk/storage/azure-storage-file/azure/storage/file/share_client.py index da8164f45495..7e4f7b11ed65 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/share_client.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/share_client.py @@ -552,19 +552,17 @@ def set_share_access_policy(self, signed_identifiers, timeout=None, **kwargs): # :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ - if signed_identifiers: - if len(signed_identifiers) > 5: - raise ValueError( - 'Too many access policies provided. The server does not support setting ' - 'more than 5 access policies on a single resource.') - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) - signed_identifiers = identifiers # type: ignore - + if len(signed_identifiers) > 5: + raise ValueError( + 'Too many access policies provided. The server does not support setting ' + 'more than 5 access policies on a single resource.') + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) + signed_identifiers = identifiers # type: ignore try: return self._client.share.set_access_policy( # type: ignore share_acl=signed_identifiers or None, diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py index e2549c91cad8..b8cf779f01ac 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/queue_client_async.py @@ -298,19 +298,18 @@ async def set_queue_access_policy(self, signed_identifiers, timeout=None, **kwar :dedent: 12 :caption: Set an access policy on the queue. """ - if signed_identifiers: - if len(signed_identifiers) > 15: - raise ValueError( - "Too many access policies provided. The server does not support setting " - "more than 15 access policies on a single resource." - ) - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) - signed_identifiers = identifiers # type: ignore + if len(signed_identifiers) > 15: + raise ValueError( + "Too many access policies provided. The server does not support setting " + "more than 15 access policies on a single resource." + ) + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) + signed_identifiers = identifiers # type: ignore try: await self._client.queue.set_access_policy(queue_acl=signed_identifiers or None, timeout=timeout, **kwargs) except StorageErrorException as error: diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py index 363899d13ffc..d71f729c2482 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/queue_client.py @@ -424,18 +424,17 @@ def set_queue_access_policy(self, signed_identifiers, timeout=None, **kwargs): :dedent: 12 :caption: Set an access policy on the queue. """ - if signed_identifiers: - if len(signed_identifiers) > 15: - raise ValueError( - 'Too many access policies provided. The server does not support setting ' - 'more than 15 access policies on a single resource.') - identifiers = [] - for key, value in signed_identifiers.items(): - if value: - value.start = serialize_iso(value.start) - value.expiry = serialize_iso(value.expiry) - identifiers.append(SignedIdentifier(id=key, access_policy=value)) - signed_identifiers = identifiers # type: ignore + if len(signed_identifiers) > 15: + raise ValueError( + 'Too many access policies provided. The server does not support setting ' + 'more than 15 access policies on a single resource.') + identifiers = [] + for key, value in signed_identifiers.items(): + if value: + value.start = serialize_iso(value.start) + value.expiry = serialize_iso(value.expiry) + identifiers.append(SignedIdentifier(id=key, access_policy=value)) + signed_identifiers = identifiers # type: ignore try: self._client.queue.set_access_policy( queue_acl=signed_identifiers or None, From 7e78735e3ac31279ec44abaf0bdd409f440d5e19 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Sat, 12 Oct 2019 09:54:16 -0700 Subject: [PATCH 4/4] fix files and queues tests --- .../test_share.test_set_share_acl.yaml | 214 ++++++++++++++++++ ..._share_async.test_set_share_acl_async.yaml | 146 ++++++++++++ .../azure-storage-file/tests/test_share.py | 2 +- .../tests/test_share_async.py | 2 +- .../test_queue.test_set_queue_acl.yaml | 22 +- ...set_queue_acl_with_non_existing_queue.yaml | 8 +- .../test_queue_async.test_set_queue_acl.yaml | 22 +- ...set_queue_acl_with_non_existing_queue.yaml | 8 +- .../azure-storage-queue/tests/test_queue.py | 4 +- .../tests/test_queue_async.py | 4 +- 10 files changed, 392 insertions(+), 40 deletions(-) diff --git a/sdk/storage/azure-storage-file/tests/recordings/test_share.test_set_share_acl.yaml b/sdk/storage/azure-storage-file/tests/recordings/test_share.test_set_share_acl.yaml index 9647c7215b93..c05e0803bcb8 100644 --- a/sdk/storage/azure-storage-file/tests/recordings/test_share.test_set_share_acl.yaml +++ b/sdk/storage/azure-storage-file/tests/recordings/test_share.test_set_share_acl.yaml @@ -217,4 +217,218 @@ interactions: status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 67804ef6-ed0e-11e9-8630-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:36:13 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.file.core.windows.net/shareb2530bcd?restype=share + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Sat, 12 Oct 2019 16:36:11 GMT + ETag: + - '"0x8D74F324B3D2564"' + Last-Modified: + - Sat, 12 Oct 2019 16:36:12 GMT + Server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - c21a7d4f-001a-00a0-721b-81ab66000000 + 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/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 67d46168-ed0e-11e9-97f8-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:36:13 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.file.core.windows.net/shareb2530bcd?restype=share&comp=acl + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Sat, 12 Oct 2019 16:36:12 GMT + ETag: + - '"0x8D74F324B586A8F"' + Last-Modified: + - Sat, 12 Oct 2019 16:36:12 GMT + Server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - c21a7d52-001a-00a0-731b-81ab66000000 + 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-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 67e0bd58-ed0e-11e9-914a-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:36:13 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://storagename.file.core.windows.net/shareb2530bcd?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + Content-Type: + - application/xml + Date: + - Sat, 12 Oct 2019 16:36:12 GMT + ETag: + - '"0x8D74F324B586A8F"' + Last-Modified: + - Sat, 12 Oct 2019 16:36:12 GMT + Server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - c21a7d53-001a-00a0-741b-81ab66000000 + 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-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 67ee2ac2-ed0e-11e9-a1a9-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:36:14 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://storagename.file.core.windows.net/?include=snapshots&comp=list + response: + body: + string: "\uFEFFshareb2530bcdSat, + 12 Oct 2019 16:36:12 GMT\"0x8D74F324B586A8F\"5120" + headers: + Content-Type: + - application/xml + Date: + - Sat, 12 Oct 2019 16:36:12 GMT + Server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + Vary: + - Origin + x-ms-request-id: + - c21a7d54-001a-00a0-751b-81ab66000000 + 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-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 67f94e52-ed0e-11e9-a959-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:36:14 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://storagename.file.core.windows.net/shareb2530bcd?restype=share + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Sat, 12 Oct 2019 16:36:12 GMT + Server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - c21a7d55-001a-00a0-761b-81ab66000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted version: 1 diff --git a/sdk/storage/azure-storage-file/tests/recordings/test_share_async.test_set_share_acl_async.yaml b/sdk/storage/azure-storage-file/tests/recordings/test_share_async.test_set_share_acl_async.yaml index f5d7df47eb8e..5ddf4f42d242 100644 --- a/sdk/storage/azure-storage-file/tests/recordings/test_share_async.test_set_share_acl_async.yaml +++ b/sdk/storage/azure-storage-file/tests/recordings/test_share_async.test_set_share_acl_async.yaml @@ -146,4 +146,150 @@ interactions: - /share61c110c7 - restype=share&comp=acl - '' +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 8d339fc2-ed0e-11e9-b782-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:37:16 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.file.core.windows.net/share61c110c7?restype=share + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74F3270E49BB6"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 00570683-001a-00ef-521b-816f7e000000 + 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 + - amqptest.file.core.windows.net + - /share61c110c7 + - restype=share + - '' +- request: + body: null + headers: + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 8d70821c-ed0e-11e9-b454-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:37:16 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://storagename.file.core.windows.net/share61c110c7?restype=share&comp=acl + response: + body: + string: '' + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Length + : '0' + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74F3270F12706"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 00570686-001a-00ef-531b-816f7e000000 + 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 + - amqptest.file.core.windows.net + - /share61c110c7 + - restype=share&comp=acl + - '' +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 8d795af6-ed0e-11e9-a239-b831b58100e8 + x-ms-date: + - Sat, 12 Oct 2019 16:37:17 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://storagename.file.core.windows.net/share61c110c7?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : application/xml + ? !!python/object/new:multidict._istr.istr + - Date + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74F3270F12706"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Sat, 12 Oct 2019 16:37:15 GMT + ? !!python/object/new:multidict._istr.istr + - Server + : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding + : chunked + ? !!python/object/new:multidict._istr.istr + - Vary + : Origin + x-ms-request-id: 00570687-001a-00ef-541b-816f7e000000 + 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 + - amqptest.file.core.windows.net + - /share61c110c7 + - restype=share&comp=acl + - '' version: 1 diff --git a/sdk/storage/azure-storage-file/tests/test_share.py b/sdk/storage/azure-storage-file/tests/test_share.py index dd58eaf88061..b38591c0f4f8 100644 --- a/sdk/storage/azure-storage-file/tests/test_share.py +++ b/sdk/storage/azure-storage-file/tests/test_share.py @@ -518,7 +518,7 @@ def test_set_share_acl(self): share.create_share() # Act - resp = share.set_share_access_policy() + resp = share.set_share_access_policy(signed_identifiers=dict()) # Assert acl = share.get_share_access_policy() diff --git a/sdk/storage/azure-storage-file/tests/test_share_async.py b/sdk/storage/azure-storage-file/tests/test_share_async.py index 2c05eaf89f4c..b29aef333a05 100644 --- a/sdk/storage/azure-storage-file/tests/test_share_async.py +++ b/sdk/storage/azure-storage-file/tests/test_share_async.py @@ -625,7 +625,7 @@ async def _test_set_share_acl_async(self): await share.create_share() # Act - resp = await share.set_share_access_policy() + resp = await share.set_share_access_policy(signed_identifiers=dict()) # Assert acl = await share.get_share_access_policy() diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl.yaml index 3f40e608b47f..ca785c85d49e 100644 --- a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl.yaml +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl.yaml @@ -11,11 +11,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) - content-type: - - application/xml; charset=utf-8 + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:53:27 GMT + - Sat, 12 Oct 2019 16:44:48 GMT x-ms-version: - '2018-03-28' method: PUT @@ -27,7 +25,7 @@ interactions: content-length: - '0' date: - - Fri, 06 Sep 2019 21:53:25 GMT + - Sat, 12 Oct 2019 16:44:47 GMT server: - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -49,9 +47,9 @@ interactions: Content-Type: - application/xml; charset=utf-8 User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:53:28 GMT + - Sat, 12 Oct 2019 16:44:48 GMT x-ms-version: - '2018-03-28' method: PUT @@ -63,7 +61,7 @@ interactions: content-length: - '0' date: - - Fri, 06 Sep 2019 21:53:25 GMT + - Sat, 12 Oct 2019 16:44:47 GMT server: - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -81,11 +79,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) - content-type: - - application/xml; charset=utf-8 + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:53:28 GMT + - Sat, 12 Oct 2019 16:44:48 GMT x-ms-version: - '2018-03-28' method: GET @@ -100,7 +96,7 @@ interactions: content-type: - application/xml date: - - Fri, 06 Sep 2019 21:53:25 GMT + - Sat, 12 Oct 2019 16:44:47 GMT server: - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl_with_non_existing_queue.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl_with_non_existing_queue.yaml index c7de3823a010..cced79af6fe5 100644 --- a/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl_with_non_existing_queue.yaml +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue.test_set_queue_acl_with_non_existing_queue.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/xml; charset=utf-8 User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:53:07 GMT + - Sat, 12 Oct 2019 16:46:17 GMT x-ms-version: - '2018-03-28' method: PUT @@ -23,14 +23,14 @@ interactions: response: body: string: "\uFEFFQueueNotFoundThe - specified queue does not exist.\nRequestId:6aa3ff26-e003-010a-60fd-640a1d000000\nTime:2019-09-06T21:53:06.3439073Z" + specified queue does not exist.\nRequestId:96f14291-3003-00f9-231c-81fa96000000\nTime:2019-10-12T16:46:16.9210025Z" headers: content-length: - '217' content-type: - application/xml date: - - Fri, 06 Sep 2019 21:53:06 GMT + - Sat, 12 Oct 2019 16:46:16 GMT server: - Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl.yaml index 3077f9e55e4b..590b87222ee2 100644 --- a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl.yaml +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl.yaml @@ -3,11 +3,9 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) - content-type: - - application/xml; charset=utf-8 + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:54:35 GMT + - Sat, 12 Oct 2019 16:48:51 GMT x-ms-version: - '2018-03-28' method: PUT @@ -17,7 +15,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 06 Sep 2019 21:54:33 GMT + date: Sat, 12 Oct 2019 16:48:50 GMT server: Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: '2018-03-28' status: @@ -37,9 +35,9 @@ interactions: Content-Type: - application/xml; charset=utf-8 User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:54:35 GMT + - Sat, 12 Oct 2019 16:48:51 GMT x-ms-version: - '2018-03-28' method: PUT @@ -49,7 +47,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 06 Sep 2019 21:54:34 GMT + date: Sat, 12 Oct 2019 16:48:50 GMT server: Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: '2018-03-28' status: @@ -69,11 +67,9 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) - content-type: - - application/xml; charset=utf-8 + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:54:36 GMT + - Sat, 12 Oct 2019 16:48:51 GMT x-ms-version: - '2018-03-28' method: GET @@ -85,7 +81,7 @@ interactions: headers: cache-control: no-cache content-type: application/xml - date: Fri, 06 Sep 2019 21:54:34 GMT + date: Sat, 12 Oct 2019 16:48:50 GMT server: Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked x-ms-version: '2018-03-28' diff --git a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl_with_non_existing_queue.yaml b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl_with_non_existing_queue.yaml index ed0eddfbbbf1..023b7d6308b9 100644 --- a/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl_with_non_existing_queue.yaml +++ b/sdk/storage/azure-storage-queue/tests/recordings/test_queue_async.test_set_queue_acl_with_non_existing_queue.yaml @@ -5,9 +5,9 @@ interactions: Content-Type: - application/xml; charset=utf-8 User-Agent: - - azsdk-python-storage-queue/12.0.0b2 Python/3.7.3 (Windows-10-10.0.17763-SP0) + - azsdk-python-storage-queue/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0) x-ms-date: - - Fri, 06 Sep 2019 21:56:09 GMT + - Sat, 12 Oct 2019 16:51:22 GMT x-ms-version: - '2018-03-28' method: PUT @@ -15,11 +15,11 @@ interactions: response: body: string: "\uFEFFQueueNotFoundThe - specified queue does not exist.\nRequestId:c48bcb12-6003-00be-18fd-64404a000000\nTime:2019-09-06T21:56:07.6446717Z" + specified queue does not exist.\nRequestId:89439dc2-b003-00e8-2c1d-81cd8d000000\nTime:2019-10-12T16:51:22.1070682Z" headers: content-length: '217' content-type: application/xml - date: Fri, 06 Sep 2019 21:56:07 GMT + date: Sat, 12 Oct 2019 16:51:22 GMT server: Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: QueueNotFound x-ms-version: '2018-03-28' diff --git a/sdk/storage/azure-storage-queue/tests/test_queue.py b/sdk/storage/azure-storage-queue/tests/test_queue.py index de4e58b1d453..54f68f1fd929 100644 --- a/sdk/storage/azure-storage-queue/tests/test_queue.py +++ b/sdk/storage/azure-storage-queue/tests/test_queue.py @@ -806,7 +806,7 @@ def test_set_queue_acl(self, resource_group, location, storage_account, storage_ queue_client.create_queue() # Act - resp = queue_client.set_queue_access_policy() + resp = queue_client.set_queue_access_policy(signed_identifiers=dict()) # Assert self.assertIsNone(resp) @@ -898,7 +898,7 @@ def test_set_queue_acl_with_non_existing_queue(self, resource_group, location, s # Act with self.assertRaises(ResourceNotFoundError): - queue_client.set_queue_access_policy() + queue_client.set_queue_access_policy(signed_identifiers=dict()) # Assert diff --git a/sdk/storage/azure-storage-queue/tests/test_queue_async.py b/sdk/storage/azure-storage-queue/tests/test_queue_async.py index 9849a44de57f..f09ff148da2c 100644 --- a/sdk/storage/azure-storage-queue/tests/test_queue_async.py +++ b/sdk/storage/azure-storage-queue/tests/test_queue_async.py @@ -865,7 +865,7 @@ async def test_set_queue_acl(self, resource_group, location, storage_account, st queue_client = await self._create_queue(qsc) # Act - resp = await queue_client.set_queue_access_policy() + resp = await queue_client.set_queue_access_policy(signed_identifiers=dict()) # Assert self.assertIsNone(resp) @@ -958,7 +958,7 @@ async def test_set_queue_acl_with_non_existing_queue(self, resource_group, locat # Act with self.assertRaises(ResourceNotFoundError): - await queue_client.set_queue_access_policy() + await queue_client.set_queue_access_policy(signed_identifiers=dict()) @ResourceGroupPreparer() @StorageAccountPreparer(name_prefix='pyacrstorage')