From c34fee2b22cfea3826b13caf43990e142b35279c Mon Sep 17 00:00:00 2001 From: tasherif-msft <69483382+tasherif-msft@users.noreply.github.com> Date: Thu, 1 Oct 2020 11:19:09 -0700 Subject: [PATCH] Share Lease Feature (#13567) * added needed parameters for shares * added async methods * added more methods for interacting with the API * fixed small mistake with elif * added tests and access conditions * added more tests for leases * fixed tests * async changes * added await * corrected import * fixed async imports and wrote all tests * linting * share renaming * added file lease sample * added sample for share * fixed samples * added docs * removed checks * lease change * lease change * added correct lease durations * removed spacing * version correction * fixed snapshot * added snapshot tests * added snapshot tests * changed version * test * test * more docstrings * fixed docstrings * more docstring changes * removed etag * added exta check on test * fixed tests * added more tests for file * added tests for list shares * unused import * changed method signitures * fixed kwargs * linter Co-authored-by: Xiaoxi Fu <49707495+xiafu-msft@users.noreply.github.com> --- ...container.test_list_blobs_leased_blob.yaml | 66 +- .../azure/storage/fileshare/_file_client.py | 13 +- .../azure/storage/fileshare/_lease.py | 111 +- .../azure/storage/fileshare/_models.py | 8 +- .../azure/storage/fileshare/_share_client.py | 105 +- .../fileshare/aio/_file_client_async.py | 3 +- .../storage/fileshare/aio/_lease_async.py | 101 +- .../fileshare/aio/_share_client_async.py | 105 +- .../samples/file_samples_client.py | 25 + .../samples/file_samples_share.py | 16 + ..._break_lease_with_broken_period_fails.yaml | 200 + ..._break_lease_with_broken_period_fails.yaml | 139 + ...e.test_acquire_lease_on_sharesnapshot.yaml | 3484 +++++++++++++++++ ...share.test_delete_share_with_lease_id.yaml | 202 + ...hare.test_get_share_acl_with_lease_id.yaml | 129 + ...test_get_share_metadata_with_lease_id.yaml | 190 + ...st_get_share_properties_with_lease_id.yaml | 232 ++ ....test_lease_share_acquire_and_release.yaml | 130 + ...t_share.test_lease_share_break_period.yaml | 171 + ...hare.test_lease_share_change_lease_id.yaml | 176 + .../test_share.test_lease_share_renew.yaml | 205 + .../test_share.test_lease_share_twice.yaml | 132 + ..._share.test_lease_share_with_duration.yaml | 177 + ...st_lease_share_with_proposed_lease_id.yaml | 86 + ...t_share.test_list_shares_leased_share.yaml | 2997 ++++++++++++++ ...hare.test_set_share_acl_with_lease_id.yaml | 170 + ...test_set_share_metadata_with_lease_id.yaml | 190 + ...c.test_acquire_lease_on_sharesnapshot.yaml | 1856 +++++++++ ...async.test_delete_share_with_lease_id.yaml | 139 + ...sync.test_get_share_acl_with_lease_id.yaml | 91 + ...test_get_share_metadata_with_lease_id.yaml | 127 + ...st_get_share_properties_with_lease_id.yaml | 155 + ....test_lease_share_acquire_and_release.yaml | 89 + ...e_async.test_lease_share_break_period.yaml | 117 + ...sync.test_lease_share_change_lease_id.yaml | 121 + ...st_share_async.test_lease_share_renew.yaml | 140 + ...st_share_async.test_lease_share_twice.yaml | 91 + ..._async.test_lease_share_with_duration.yaml | 123 + ...st_lease_share_with_proposed_lease_id.yaml | 59 + ...e_async.test_list_shares_leased_share.yaml | 1945 +++++++++ ...sync.test_set_share_acl_with_lease_id.yaml | 121 + ...test_set_share_metadata_with_lease_id.yaml | 127 + .../tests/test_file.py | 11 + .../tests/test_file_async.py | 13 + .../tests/test_share.py | 252 ++ .../tests/test_share_async.py | 271 ++ 46 files changed, 15323 insertions(+), 88 deletions(-) create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_file.test_break_lease_with_broken_period_fails.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_file_async.test_break_lease_with_broken_period_fails.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_acquire_lease_on_sharesnapshot.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_delete_share_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_acl_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_metadata_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_properties_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_acquire_and_release.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_change_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_renew.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_twice.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_duration.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_proposed_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_list_shares_leased_share.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_acl_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_metadata_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_acquire_lease_on_sharesnapshot.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_delete_share_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_acl_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_metadata_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_properties_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_acquire_and_release.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_break_period.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_change_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_renew.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_twice.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_duration.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_proposed_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_list_shares_leased_share.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_acl_with_lease_id.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_metadata_with_lease_id.yaml diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_leased_blob.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_leased_blob.yaml index d51e03ae7b9a..1dc923f4058b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_leased_blob.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_list_blobs_leased_blob.yaml @@ -11,11 +11,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT x-ms-version: - - '2019-02-02' + - '2020-02-10' method: PUT uri: https://storagename.blob.core.windows.net/container73941128?restype=container response: @@ -25,15 +25,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Oct 2019 17:59:35 GMT + - Mon, 28 Sep 2020 14:59:47 GMT etag: - - '"0x8D7597518ECA775"' + - '"0x8D863BF24A1824F"' last-modified: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-02-02' + - '2020-02-10' status: code: 201 message: Created @@ -53,13 +53,13 @@ interactions: If-None-Match: - '*' User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-blob-type: - BlockBlob x-ms-date: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT x-ms-version: - - '2019-02-02' + - '2020-02-10' method: PUT uri: https://storagename.blob.core.windows.net/container73941128/blob1 response: @@ -71,11 +71,11 @@ interactions: content-md5: - XrY7u+Ae7tCTyyK7j1rNww== date: - - Fri, 25 Oct 2019 17:59:35 GMT + - Mon, 28 Sep 2020 14:59:47 GMT etag: - - '"0x8D7597518F66CB6"' + - '"0x8D863BF24BA54AE"' last-modified: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: @@ -83,7 +83,7 @@ interactions: x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2019-02-02' + - '2020-02-10' status: code: 201 message: Created @@ -99,17 +99,17 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 7c0a3856-5a7b-41a9-b2ea-46c007922f6c + - 7252b40b-7746-4557-be21-82f42dd16067 x-ms-version: - - '2019-02-02' + - '2020-02-10' method: PUT uri: https://storagename.blob.core.windows.net/container73941128/blob1?comp=lease response: @@ -119,17 +119,17 @@ interactions: content-length: - '0' date: - - Fri, 25 Oct 2019 17:59:35 GMT + - Mon, 28 Sep 2020 14:59:48 GMT etag: - - '"0x8D7597518F66CB6"' + - '"0x8D863BF24BA54AE"' last-modified: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:47 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 7c0a3856-5a7b-41a9-b2ea-46c007922f6c + - 7252b40b-7746-4557-be21-82f42dd16067 x-ms-version: - - '2019-02-02' + - '2020-02-10' status: code: 201 message: Created @@ -143,33 +143,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Oct 2019 17:59:36 GMT + - Mon, 28 Sep 2020 14:59:48 GMT x-ms-version: - - '2019-02-02' + - '2020-02-10' method: GET uri: https://storagename.blob.core.windows.net/container73941128?restype=container&comp=list response: body: string: "\uFEFFblob1Fri, - 25 Oct 2019 17:59:36 GMTFri, 25 Oct 2019 17:59:36 - GMT0x8D7597518F66CB611application/octet-streamblob1Mon, + 28 Sep 2020 14:59:47 GMTMon, 28 Sep 2020 14:59:47 + GMT0x8D863BF24BA54AE11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruelockedleasedinfinitetrue" + />Mon, 28 Sep 2020 14:59:47 GMTBlockBlobHottruelockedleasedinfinitetrue" headers: content-type: - application/xml date: - - Fri, 25 Oct 2019 17:59:35 GMT + - Mon, 28 Sep 2020 14:59:48 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-02-02' + - '2020-02-10' status: code: 200 message: OK diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py index 9e63e76433a0..631adac62418 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py @@ -266,7 +266,7 @@ def from_connection_string( @distributed_trace def acquire_lease(self, lease_id=None, **kwargs): - # type: (int, Optional[str], **Any) -> BlobLeaseClient + # type: (Optional[str], **Any) -> ShareLeaseClient """Requests a new lease. If the file does not have an active lease, the File @@ -283,13 +283,14 @@ def acquire_lease(self, lease_id=None, **kwargs): .. admonition:: Example: - .. literalinclude:: ../samples/blob_samples_common.py - :start-after: [START acquire_lease_on_blob] - :end-before: [END acquire_lease_on_blob] + .. literalinclude:: ../samples/file_samples_client.py + :start-after: [START acquire_and_release_lease_on_file] + :end-before: [END acquire_and_release_lease_on_file] :language: python - :dedent: 8 - :caption: Acquiring a lease on a blob. + :dedent: 12 + :caption: Acquiring a lease on a file. """ + kwargs['lease_duration'] = -1 lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore lease.acquire(**kwargs) return lease diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_lease.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_lease.py index f67264a95b59..789e147c0468 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_lease.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_lease.py @@ -7,23 +7,25 @@ import uuid from typing import ( # pylint: disable=unused-import - Optional, Any, TypeVar, TYPE_CHECKING + Union, Optional, Any, TypeVar, TYPE_CHECKING ) from azure.core.tracing.decorator import distributed_trace from ._shared.response_handlers import return_response_headers, process_storage_error from ._generated.models import StorageErrorException +from ._generated.operations import FileOperations, ShareOperations if TYPE_CHECKING: from datetime import datetime ShareFileClient = TypeVar("ShareFileClient") + ShareClient = TypeVar("ShareClient") class ShareLeaseClient(object): """Creates a new ShareLeaseClient. - This client provides lease operations on a ShareFileClient. + This client provides lease operations on a ShareClient or ShareFileClient. :ivar str id: The ID of the lease currently being maintained. This will be `None` if no @@ -36,8 +38,9 @@ class ShareLeaseClient(object): This will be `None` if no lease has yet been acquired or modified. :param client: - The client of the file to lease. - :type client: ~azure.storage.fileshare.ShareFileClient + The client of the file or share to lease. + :type client: ~azure.storage.fileshare.ShareFileClient or + ~azure.storage.fileshare.ShareClient :param str lease_id: A string representing the lease ID of an existing lease. This value does not need to be specified in order to acquire a new lease, or break one. @@ -45,14 +48,18 @@ class ShareLeaseClient(object): def __init__( self, client, lease_id=None ): # pylint: disable=missing-client-constructor-parameter-credential,missing-client-constructor-parameter-kwargs - # type: (ShareFileClient, Optional[str]) -> None + # type: (Union[ShareFileClient, ShareClient], Optional[str]) -> None self.id = lease_id or str(uuid.uuid4()) self.last_modified = None self.etag = None if hasattr(client, 'file_name'): self._client = client._client.file # type: ignore # pylint: disable=protected-access + self._snapshot = None + elif hasattr(client, 'share_name'): + self._client = client._client.share + self._snapshot = client.snapshot else: - raise TypeError("Lease must use ShareFileClient.") + raise TypeError("Lease must use ShareFileClient or ShareClient.") def __enter__(self): return self @@ -62,24 +69,33 @@ def __exit__(self, *args): @distributed_trace def acquire(self, **kwargs): - # type: (int, **Any) -> None + # type: (**Any) -> None """Requests a new lease. This operation establishes and manages a lock on a - file for write and delete operations. If the file does not have an active lease, - the File service creates a lease on the file. If the file has an active lease, + file or share for write and delete operations. If the file or share does not have an active lease, + the File or Share service creates a lease on the file or share. If the file has an active lease, you can only request a new lease using the active lease ID. - If the file does not have an active lease, the File service creates a + If the file or share does not have an active lease, the File or Share service creates a lease on the file and returns a new lease ID. + :keyword int lease_duration: + Specifies the duration of the lease, in seconds, or negative one + (-1) for a lease that never expires. File leases never expire. A non-infinite share lease can be + between 15 and 60 seconds. A share lease duration cannot be changed + using renew or change. Default is -1 (infinite share lease). + :keyword int timeout: The timeout parameter is expressed in seconds. :rtype: None """ try: + lease_duration = kwargs.pop('lease_duration', -1) + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = self._client.acquire_lease( timeout=kwargs.pop('timeout', None), - duration=-1, + duration=lease_duration, proposed_lease_id=self.id, cls=return_response_headers, **kwargs) @@ -90,22 +106,51 @@ def acquire(self, **kwargs): self.etag = response.get('etag') # type: str @distributed_trace - def release(self, **kwargs): + def renew(self, **kwargs): # type: (Any) -> None - """Releases the lease. The lease may be released if the lease ID specified on the request matches - that associated with the file. Releasing the lease allows another client to immediately acquire the lease - for the file as soon as the release is complete. + """Renews the share lease. + The share lease can be renewed if the lease ID specified in the + lease client matches that associated with the share. Note that + the lease may be renewed even if it has expired as long as the share + has not been leased again since the expiration of that lease. When you + renew a lease, the lease duration clock resets. - The lease may be released if the client lease id specified matches - that associated with the file. Releasing the lease allows another client - to immediately acquire the lease for the file as soon as the release is complete. + .. versionadded:: 12.6.0 :keyword int timeout: The timeout parameter is expressed in seconds. :return: None """ + if isinstance(self._client, FileOperations): + raise TypeError("Lease renewal operations are only valid for ShareClient.") try: + response = self._client.renew_lease( + lease_id=self.id, + timeout=kwargs.pop('timeout', None), + sharesnapshot=self._snapshot, + cls=return_response_headers, + **kwargs) + except StorageErrorException as error: + process_storage_error(error) + self.etag = response.get('etag') # type: str + self.id = response.get('lease_id') # type: str + self.last_modified = response.get('last_modified') # type: datetime + + @distributed_trace + def release(self, **kwargs): + # type: (Any) -> None + """Releases the lease. The lease may be released if the lease ID specified on the request matches + that associated with the share or file. Releasing the lease allows another client to immediately acquire + the lease for the share or file as soon as the release is complete. + + :keyword int timeout: + The timeout parameter is expressed in seconds. + :return: None + """ + try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = self._client.release_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), @@ -123,15 +168,16 @@ def change(self, proposed_lease_id, **kwargs): """ Changes the lease ID of an active lease. A change must include the current lease ID in x-ms-lease-id and a new lease ID in x-ms-proposed-lease-id. - :param str proposed_lease_id: - Proposed lease ID, in a GUID string format. The File service returns 400 + Proposed lease ID, in a GUID string format. The File or Share service will raise an error (Invalid request) if the proposed lease ID is not in the correct format. :keyword int timeout: The timeout parameter is expressed in seconds. :return: None """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = self._client.change_lease( lease_id=self.id, proposed_lease_id=proposed_lease_id, @@ -146,8 +192,8 @@ def change(self, proposed_lease_id, **kwargs): @distributed_trace def break_lease(self, **kwargs): - # type: (Optional[int], Any) -> int - """Force breaks the lease if the file has an active lease. Any authorized request can break the lease; + # type: (Any) -> int + """Force breaks the lease if the file or share has an active lease. Any authorized request can break the lease; the request is not required to specify a matching lease ID. An infinite lease breaks immediately. Once a lease is broken, it cannot be changed. Any authorized request can break the lease; @@ -155,12 +201,33 @@ def break_lease(self, **kwargs): When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. + :keyword int lease_break_period: + This is the proposed duration of seconds that the share lease + should continue before it is broken, between 0 and 60 seconds. This + break period is only used if it is shorter than the time remaining + on the share lease. If longer, the time remaining on the share lease is used. + A new share lease will not be available before the break period has + expired, but the share lease may be held for longer than the break + period. If this header does not appear with a break + operation, a fixed-duration share lease breaks after the remaining share lease + period elapses, and an infinite share lease breaks immediately. + + .. versionadded:: 12.6.0 + :keyword int timeout: The timeout parameter is expressed in seconds. :return: Approximate time remaining in the lease period, in seconds. :rtype: int """ try: + lease_break_period = kwargs.pop('lease_break_period', None) + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot + if isinstance(self._client, ShareOperations): + kwargs['break_period'] = lease_break_period + if isinstance(self._client, FileOperations) and lease_break_period: + raise TypeError("Setting a lease break period is only applicable to Share leases.") + response = self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py index 4882ad4d7277..5a96c48a6d82 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py @@ -225,11 +225,11 @@ class LeaseProperties(DictMixin): """File Lease Properties. :ivar str status: - The lease status of the file. Possible values: locked|unlocked + The lease status of the file or share. Possible values: locked|unlocked :ivar str state: - Lease state of the file. Possible values: available|leased|expired|breaking|broken + Lease state of the file or share. Possible values: available|leased|expired|breaking|broken :ivar str duration: - When a file is leased, specifies whether the lease is of infinite or fixed duration. + When a file or share is leased, specifies whether the lease is of infinite or fixed duration. """ def __init__(self, **kwargs): @@ -341,6 +341,7 @@ def __init__(self, **kwargs): self.provisioned_egress_mbps = kwargs.get('x-ms-share-provisioned-egress-mbps') self.provisioned_ingress_mbps = kwargs.get('x-ms-share-provisioned-ingress-mbps') self.provisioned_iops = kwargs.get('x-ms-share-provisioned-iops') + self.lease = LeaseProperties(**kwargs) @classmethod def _from_generated(cls, generated): @@ -359,6 +360,7 @@ def _from_generated(cls, generated): props.provisioned_egress_mbps = generated.properties.provisioned_egress_mbps props.provisioned_ingress_mbps = generated.properties.provisioned_ingress_mbps props.provisioned_iops = generated.properties.provisioned_iops + props.lease = LeaseProperties._from_generated(generated) # pylint: disable=protected-access return props diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py index 765ec5e6124a..111e91c3230a 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py @@ -30,9 +30,10 @@ DeleteSnapshotsOptionType, SharePermission) from ._deserialize import deserialize_share_properties, deserialize_permission_key, deserialize_permission -from ._serialize import get_api_version +from ._serialize import get_api_version, get_access_conditions from ._directory_client import ShareDirectoryClient from ._file_client import ShareFileClient +from ._lease import ShareLeaseClient if TYPE_CHECKING: from ._models import ShareProperties, AccessPolicy @@ -256,6 +257,44 @@ def get_file_client(self, file_path): _hosts=self._hosts, _configuration=self._config, _pipeline=_pipeline, _location_mode=self._location_mode) + @distributed_trace + def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): + # type: (int, Optional[str], **Any) -> ShareLeaseClient + """Requests a new lease. + + If the share does not have an active lease, the Share + Service creates a lease on the share and returns a new lease. + + .. versionadded:: 12.6.0 + + :param int lease_duration: + Specifies the duration of the lease, in seconds, or negative one + (-1) for a lease that never expires. A non-infinite lease can be + between 15 and 60 seconds. A lease duration cannot be changed + using renew or change. Default is -1 (infinite lease). + :param str lease_id: + Proposed lease ID, in a GUID string format. The Share Service + returns 400 (Invalid request) if the proposed lease ID is not + in the correct format. + :keyword int timeout: + The timeout parameter is expressed in seconds. + :returns: A ShareLeaseClient object. + :rtype: ~azure.storage.fileshare.ShareLeaseClient + + .. admonition:: Example: + + .. literalinclude:: ../samples/file_samples_share.py + :start-after: [START acquire_and_release_lease_on_share] + :end-before: [END acquire_and_release_lease_on_share] + :language: python + :dedent: 8 + :caption: Acquiring a lease on a share. + """ + kwargs['lease_duration'] = lease_duration + lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore + lease.acquire(**kwargs) + return lease + @distributed_trace def create_share(self, **kwargs): # type: (Any) -> Dict[str, Any] @@ -353,9 +392,15 @@ def delete_share( :param bool delete_snapshots: Indicates if snapshots are to be deleted. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :keyword int timeout: The timeout parameter is expressed in seconds. - :rtype: None .. admonition:: Example: @@ -366,6 +411,7 @@ def delete_share( :dedent: 12 :caption: Deletes the share and any snapshots. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) delete_include = None if delete_snapshots: @@ -374,6 +420,7 @@ def delete_share( self._client.share.delete( timeout=timeout, sharesnapshot=self.snapshot, + lease_access_conditions=access_conditions, delete_snapshots=delete_include, **kwargs) except StorageErrorException as error: @@ -388,6 +435,13 @@ def get_share_properties(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -400,12 +454,14 @@ def get_share_properties(self, **kwargs): :dedent: 12 :caption: Gets the share properties. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: props = self._client.share.get_properties( timeout=timeout, sharesnapshot=self.snapshot, cls=deserialize_share_properties, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -423,6 +479,13 @@ def set_share_quota(self, quota, **kwargs): Must be greater than 0, and less than or equal to 5TB. :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -435,11 +498,13 @@ def set_share_quota(self, quota, **kwargs): :dedent: 12 :caption: Sets the share quota. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: return self._client.share.set_quota( # type: ignore timeout=timeout, quota=quota, + lease_access_conditions=access_conditions, cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -459,6 +524,13 @@ def set_share_metadata(self, metadata, **kwargs): :type metadata: dict(str, str) :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -471,6 +543,7 @@ def set_share_metadata(self, metadata, **kwargs): :dedent: 12 :caption: Sets the share metadata. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) headers = kwargs.pop('headers', {}) headers.update(add_metadata_headers(metadata)) @@ -479,6 +552,7 @@ def set_share_metadata(self, metadata, **kwargs): timeout=timeout, cls=return_response_headers, headers=headers, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -491,14 +565,23 @@ def get_share_access_policy(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Access policy information in a dict. :rtype: dict[str, Any] """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: response, identifiers = self._client.share.get_access_policy( timeout=timeout, cls=return_headers_and_deserialized, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -521,9 +604,17 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): :type signed_identifiers: dict(str, :class:`~azure.storage.fileshare.AccessPolicy`) :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) if len(signed_identifiers) > 5: raise ValueError( @@ -541,6 +632,7 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): share_acl=signed_identifiers or None, timeout=timeout, cls=return_response_headers, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -555,13 +647,22 @@ def get_share_stats(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: stats = self._client.share.get_statistics( timeout=timeout, + lease_access_conditions=access_conditions, **kwargs) return stats.share_usage_bytes # type: ignore except StorageErrorException as error: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py index 18b63fbcd785..d008e1bc6539 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py @@ -141,7 +141,7 @@ def __init__( # type: ignore @distributed_trace_async async def acquire_lease(self, lease_id=None, **kwargs): - # type: (int, Optional[str], **Any) -> BlobLeaseClient + # type: (Optional[str], **Any) -> ShareLeaseClient """Requests a new lease. If the file does not have an active lease, the File @@ -165,6 +165,7 @@ async def acquire_lease(self, lease_id=None, **kwargs): :dedent: 8 :caption: Acquiring a lease on a blob. """ + kwargs['lease_duration'] = -1 lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore await lease.acquire(**kwargs) return lease diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py index 0a04484638f3..0f6fdb380cba 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py @@ -14,17 +14,19 @@ from .._shared.response_handlers import return_response_headers, process_storage_error from .._generated.models import ( StorageErrorException) +from .._generated.aio.operations_async import FileOperations, ShareOperations from .._lease import ShareLeaseClient as LeaseClientBase if TYPE_CHECKING: from datetime import datetime ShareFileClient = TypeVar("ShareFileClient") + ShareClient = TypeVar("ShareClient") class ShareLeaseClient(LeaseClientBase): """Creates a new ShareLeaseClient. - This client provides lease operations on a ShareFileClient. + This client provides lease operations on a ShareClient or ShareFileClient. :ivar str id: The ID of the lease currently being maintained. This will be `None` if no @@ -37,8 +39,9 @@ class ShareLeaseClient(LeaseClientBase): This will be `None` if no lease has yet been acquired or modified. :param client: - The client of the file to lease. - :type client: ~azure.storage.fileshare.aio.ShareFileClient + The client of the file or share to lease. + :type client: ~azure.storage.fileshare.ShareFileClient or + ~azure.storage.fileshare.ShareClient :param str lease_id: A string representing the lease ID of an existing lease. This value does not need to be specified in order to acquire a new lease, or break one. @@ -58,24 +61,33 @@ async def __aexit__(self, *args): @distributed_trace_async async def acquire(self, **kwargs): - # type: (int, Any) -> None + # type: (**Any) -> None """Requests a new lease. This operation establishes and manages a lock on a - file for write and delete operations. If the file does not have an active lease, - the File service creates a lease on the file. If the file has an active lease, + file or share for write and delete operations. If the file or share does not have an active lease, + the File or Share service creates a lease on the file or share. If the file has an active lease, you can only request a new lease using the active lease ID. - If the file does not have an active lease, the File service creates a + If the file or share does not have an active lease, the File or Share service creates a lease on the file and returns a new lease ID. + :keyword int lease_duration: + Specifies the duration of the lease, in seconds, or negative one + (-1) for a lease that never expires. File leases never expire. A non-infinite share lease can be + between 15 and 60 seconds. A share lease duration cannot be changed + using renew or change. Default is -1 (infinite share lease). + :keyword int timeout: The timeout parameter is expressed in seconds. :rtype: None """ try: + lease_duration = kwargs.pop('lease_duration', -1) + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = await self._client.acquire_lease( timeout=kwargs.pop('timeout', None), - duration=-1, + duration=lease_duration, proposed_lease_id=self.id, cls=return_response_headers, **kwargs) @@ -86,22 +98,51 @@ async def acquire(self, **kwargs): self.etag = response.get('etag') # type: str @distributed_trace_async - async def release(self, **kwargs): + async def renew(self, **kwargs): # type: (Any) -> None - """Releases the lease. The lease may be released if the lease ID specified on the request matches - that associated with the file. Releasing the lease allows another client to immediately acquire the lease - for the file as soon as the release is complete. + """Renews the share lease. + The share lease can be renewed if the lease ID specified in the + lease client matches that associated with the share. Note that + the lease may be renewed even if it has expired as long as the share + has not been leased again since the expiration of that lease. When you + renew a lease, the lease duration clock resets. - The lease may be released if the client lease id specified matches - that associated with the file. Releasing the lease allows another client - to immediately acquire the lease for the file as soon as the release is complete. + .. versionadded:: 12.6.0 :keyword int timeout: The timeout parameter is expressed in seconds. :return: None """ + if isinstance(self._client, FileOperations): + raise TypeError("Lease renewal operations are only valid for ShareClient.") try: + response = await self._client.renew_lease( + lease_id=self.id, + timeout=kwargs.pop('timeout', None), + sharesnapshot=self._snapshot, + cls=return_response_headers, + **kwargs) + except StorageErrorException as error: + process_storage_error(error) + self.etag = response.get('etag') # type: str + self.id = response.get('lease_id') # type: str + self.last_modified = response.get('last_modified') # type: datetime + + @distributed_trace_async + async def release(self, **kwargs): + # type: (Any) -> None + """Releases the lease. The lease may be released if the lease ID specified on the request matches + that associated with the share or file. Releasing the lease allows another client to immediately acquire + the lease for the share or file as soon as the release is complete. + + :keyword int timeout: + The timeout parameter is expressed in seconds. + :return: None + """ + try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = await self._client.release_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), @@ -119,15 +160,16 @@ async def change(self, proposed_lease_id, **kwargs): """ Changes the lease ID of an active lease. A change must include the current lease ID in x-ms-lease-id and a new lease ID in x-ms-proposed-lease-id. - :param str proposed_lease_id: - Proposed lease ID, in a GUID string format. The File service returns 400 + Proposed lease ID, in a GUID string format. The File or Share service raises an error (Invalid request) if the proposed lease ID is not in the correct format. :keyword int timeout: The timeout parameter is expressed in seconds. :return: None """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = await self._client.change_lease( lease_id=self.id, proposed_lease_id=proposed_lease_id, @@ -142,8 +184,8 @@ async def change(self, proposed_lease_id, **kwargs): @distributed_trace_async async def break_lease(self, **kwargs): - # type: (Optional[int], Any) -> int - """Force breaks the lease if the file has an active lease. Any authorized request can break the lease; + # type: (Any) -> int + """Force breaks the lease if the file or share has an active lease. Any authorized request can break the lease; the request is not required to specify a matching lease ID. An infinite lease breaks immediately. Once a lease is broken, it cannot be changed. Any authorized request can break the lease; @@ -151,12 +193,33 @@ async def break_lease(self, **kwargs): When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. + :keyword int lease_break_period: + This is the proposed duration of seconds that the share lease + should continue before it is broken, between 0 and 60 seconds. This + break period is only used if it is shorter than the time remaining + on the share lease. If longer, the time remaining on the share lease is used. + A new share lease will not be available before the break period has + expired, but the share lease may be held for longer than the break + period. If this header does not appear with a break + operation, a fixed-duration share lease breaks after the remaining share lease + period elapses, and an infinite share lease breaks immediately. + + .. versionadded:: 12.6.0 + :keyword int timeout: The timeout parameter is expressed in seconds. :return: Approximate time remaining in the lease period, in seconds. :rtype: int """ try: + lease_break_period = kwargs.pop('lease_break_period', None) + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot + if isinstance(self._client, ShareOperations): + kwargs['break_period'] = lease_break_period + if isinstance(self._client, FileOperations) and lease_break_period: + raise TypeError("Setting a lease break period is only applicable to Share leases.") + response = await self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py index b6fb243067e9..e4f9b6550647 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py @@ -25,10 +25,12 @@ SignedIdentifier, DeleteSnapshotsOptionType) from .._deserialize import deserialize_share_properties, deserialize_permission -from .._serialize import get_api_version +from .._serialize import get_api_version, get_access_conditions from .._share_client import ShareClient as ShareClientBase from ._directory_client_async import ShareDirectoryClient from ._file_client_async import ShareFileClient +from ..aio._lease_async import ShareLeaseClient + if TYPE_CHECKING: from .._models import ShareProperties, AccessPolicy @@ -126,6 +128,44 @@ def get_file_client(self, file_path): credential=self.credential, api_version=self.api_version, _hosts=self._hosts, _configuration=self._config, _pipeline=_pipeline, _location_mode=self._location_mode, loop=self._loop) + @distributed_trace_async() + async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): + # type: (int, Optional[str], **Any) -> ShareLeaseClient + """Requests a new lease. + + If the share does not have an active lease, the Share + Service creates a lease on the share and returns a new lease. + + .. versionadded:: 12.6.0 + + :param int lease_duration: + Specifies the duration of the lease, in seconds, or negative one + (-1) for a lease that never expires. A non-infinite lease can be + between 15 and 60 seconds. A lease duration cannot be changed + using renew or change. Default is -1 (infinite lease). + :param str lease_id: + Proposed lease ID, in a GUID string format. The Share Service + returns 400 (Invalid request) if the proposed lease ID is not + in the correct format. + :keyword int timeout: + The timeout parameter is expressed in seconds. + :returns: A ShareLeaseClient object. + :rtype: ~azure.storage.fileshare.ShareLeaseClient + + .. admonition:: Example: + + .. literalinclude:: ../samples/file_samples_share.py + :start-after: [START acquire_lease_on_share] + :end-before: [END acquire_lease_on_share] + :language: python + :dedent: 8 + :caption: Acquiring a lease on a share. + """ + kwargs['lease_duration'] = lease_duration + lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore + await lease.acquire(**kwargs) + return lease + @distributed_trace_async async def create_share(self, **kwargs): # type: (Any) -> Dict[str, Any] @@ -225,7 +265,12 @@ async def delete_share( Indicates if snapshots are to be deleted. :keyword int timeout: The timeout parameter is expressed in seconds. - :rtype: None + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. .. admonition:: Example: @@ -236,6 +281,7 @@ async def delete_share( :dedent: 16 :caption: Deletes the share and any snapshots. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) delete_include = None if delete_snapshots: @@ -245,6 +291,7 @@ async def delete_share( timeout=timeout, sharesnapshot=self.snapshot, delete_snapshots=delete_include, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -258,6 +305,13 @@ async def get_share_properties(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -270,12 +324,14 @@ async def get_share_properties(self, **kwargs): :dedent: 16 :caption: Gets the share properties. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: props = await self._client.share.get_properties( timeout=timeout, sharesnapshot=self.snapshot, cls=deserialize_share_properties, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -293,6 +349,13 @@ async def set_share_quota(self, quota, **kwargs): Must be greater than 0, and less than or equal to 5TB. :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -305,12 +368,14 @@ async def set_share_quota(self, quota, **kwargs): :dedent: 16 :caption: Sets the share quota. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: return await self._client.share.set_quota( # type: ignore timeout=timeout, quota=quota, cls=return_response_headers, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -329,6 +394,13 @@ async def set_share_metadata(self, metadata, **kwargs): :type metadata: dict(str, str) :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -341,6 +413,7 @@ async def set_share_metadata(self, metadata, **kwargs): :dedent: 16 :caption: Sets the share metadata. """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) headers = kwargs.pop('headers', {}) headers.update(add_metadata_headers(metadata)) @@ -349,6 +422,7 @@ async def set_share_metadata(self, metadata, **kwargs): timeout=timeout, cls=return_response_headers, headers=headers, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -361,14 +435,23 @@ async def get_share_access_policy(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Access policy information in a dict. :rtype: dict[str, Any] """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: response, identifiers = await self._client.share.get_access_policy( timeout=timeout, cls=return_headers_and_deserialized, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -391,9 +474,17 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): :type signed_identifiers: dict(str, :class:`~azure.storage.fileshare.AccessPolicy`) :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) if len(signed_identifiers) > 5: raise ValueError( @@ -412,6 +503,7 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): share_acl=signed_identifiers or None, timeout=timeout, cls=return_response_headers, + lease_access_conditions=access_conditions, **kwargs) except StorageErrorException as error: process_storage_error(error) @@ -426,13 +518,22 @@ async def get_share_stats(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :keyword lease: + Required if the share has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) timeout = kwargs.pop('timeout', None) try: stats = await self._client.share.get_statistics( timeout=timeout, + lease_access_conditions=access_conditions, **kwargs) return stats.share_usage_bytes # type: ignore except StorageErrorException as error: diff --git a/sdk/storage/azure-storage-file-share/samples/file_samples_client.py b/sdk/storage/azure-storage-file-share/samples/file_samples_client.py index dcab30e39e9d..c8a8355b3f2b 100644 --- a/sdk/storage/azure-storage-file-share/samples/file_samples_client.py +++ b/sdk/storage/azure-storage-file-share/samples/file_samples_client.py @@ -105,10 +105,35 @@ def copy_file_from_url(self): # Delete the share share.delete_share() + def acquire_file_lease(self): + # Instantiate the ShareClient from a connection string + from azure.storage.fileshare import ShareClient + share = ShareClient.from_connection_string(self.connection_string, "filesamples3") + + # Create the share + share.create_share() + + try: + # Get a file client and upload a file + source_file = share.get_file_client("sourcefile") + + # [START acquire_and_release_lease_on_file] + source_file.create_file(1024) + lease = source_file.acquire_lease() + source_file.upload_file(b'hello world', lease=lease) + + lease.release() + # [END acquire_and_release_lease_on_file] + + finally: + # Delete the share + share.delete_share() + if __name__ == '__main__': sample = FileSamples() sample.simple_file_operations() sample.copy_file_from_url() + sample.acquire_file_lease() diff --git a/sdk/storage/azure-storage-file-share/samples/file_samples_share.py b/sdk/storage/azure-storage-file-share/samples/file_samples_share.py index f4c9e1acac14..ec915500b825 100644 --- a/sdk/storage/azure-storage-file-share/samples/file_samples_share.py +++ b/sdk/storage/azure-storage-file-share/samples/file_samples_share.py @@ -111,6 +111,21 @@ def get_directory_or_file_client(self): # Get the file client to interact with a specific file my_file = share.get_file_client("dir1/myfile") + def acquire_share_lease(self): + # Instantiate the ShareClient from a connection string + from azure.storage.fileshare import ShareClient + share = ShareClient.from_connection_string(self.connection_string, "sharesamples") + + # Create the share + share.create_share() + + # [START acquire_and_release_lease_on_share] + share.create_directory("mydir") + lease = share.acquire_lease() + share.get_share_properties(lease=lease) + share.delete_share(lease=lease) + # [END acquire_and_release_lease_on_share] + if __name__ == '__main__': sample = ShareSamples() @@ -118,3 +133,4 @@ def get_directory_or_file_client(self): sample.set_share_quota_and_metadata() sample.list_directories_and_files() sample.get_directory_or_file_client() + sample.acquire_share_lease() diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_file.test_break_lease_with_broken_period_fails.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_file.test_break_lease_with_broken_period_fails.yaml new file mode 100644 index 000000000000..b08dae885272 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_file.test_break_lease_with_broken_period_fails.yaml @@ -0,0 +1,200 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:26:29 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utshare1a6414c6?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 16:26:29 GMT + etag: + - '"0x8D863CB41A9EF23"' + last-modified: + - Mon, 28 Sep 2020 16:26:30 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '1024' + x-ms-date: + - Mon, 28 Sep 2020 16:26:30 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utshare1a6414c6/file1a6414c6 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 16:26:29 GMT + etag: + - '"0x8D863CB41C0C68E"' + last-modified: + - Mon, 28 Sep 2020 16:26:30 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2020-09-28T16:26:30.5588878Z' + x-ms-file-creation-time: + - '2020-09-28T16:26:30.5588878Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2020-09-28T16:26:30.5588878Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 4010187179898695473*11459378189709739967 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:26:30 GMT + x-ms-range: + - bytes=0-1023 + x-ms-version: + - '2020-02-10' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utshare1a6414c6/file1a6414c6?comp=range + response: + body: + string: '' + headers: + content-length: + - '0' + content-md5: + - yaNM/IXZgmmMasifdgcavQ== + date: + - Mon, 28 Sep 2020 16:26:30 GMT + etag: + - '"0x8D863CB41D19278"' + last-modified: + - Mon, 28 Sep 2020 16:26:30 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:26:30 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 7931445f-d28f-4bab-b33b-484159a72648 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utshare1a6414c6/file1a6414c6?comp=lease + response: + body: + string: '' + headers: + date: + - Mon, 28 Sep 2020 16:26:30 GMT + etag: + - '"0x8D863CB41D19278"' + last-modified: + - Mon, 28 Sep 2020 16:26:30 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-lease-id: + - 7931445f-d28f-4bab-b33b-484159a72648 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_file_async.test_break_lease_with_broken_period_fails.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_file_async.test_break_lease_with_broken_period_fails.yaml new file mode 100644 index 000000000000..9e7d88e03033 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_file_async.test_break_lease_with_broken_period_fails.yaml @@ -0,0 +1,139 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:28:02 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utsharea1fb1743?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 16:28:03 GMT + etag: '"0x8D863CB79315436"' + last-modified: Mon, 28 Sep 2020 16:28:03 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/utsharea1fb1743?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '1024' + x-ms-date: + - Mon, 28 Sep 2020 16:28:03 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utsharea1fb1743/filea1fb1743 + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 16:28:03 GMT + etag: '"0x8D863CB795A82AE"' + last-modified: Mon, 28 Sep 2020 16:28:03 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2020-09-28T16:28:03.8410926Z' + x-ms-file-creation-time: '2020-09-28T16:28:03.8410926Z' + x-ms-file-id: '13835128424026341376' + x-ms-file-last-write-time: '2020-09-28T16:28:03.8410926Z' + x-ms-file-parent-id: '0' + x-ms-file-permission-key: 4010187179898695473*11459378189709739967 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/utsharea1fb1743/filea1fb1743 +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Content-Length: + - '1024' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:28:03 GMT + x-ms-range: + - bytes=0-1023 + x-ms-version: + - '2020-02-10' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utsharea1fb1743/filea1fb1743?comp=range + response: + body: + string: '' + headers: + content-length: '0' + content-md5: yaNM/IXZgmmMasifdgcavQ== + date: Mon, 28 Sep 2020 16:28:03 GMT + etag: '"0x8D863CB7964BDB6"' + last-modified: Mon, 28 Sep 2020 16:28:03 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/utsharea1fb1743/filea1fb1743?comp=range +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:28:03 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 6a5eaf76-51b9-4e3a-b41e-56fa15b46042 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/utsharea1fb1743/filea1fb1743?comp=lease + response: + body: + string: '' + headers: + date: Mon, 28 Sep 2020 16:28:03 GMT + etag: '"0x8D863CB7964BDB6"' + last-modified: Mon, 28 Sep 2020 16:28:03 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-lease-id: 6a5eaf76-51b9-4e3a-b41e-56fa15b46042 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/utsharea1fb1743/filea1fb1743?comp=lease +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_acquire_lease_on_sharesnapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_acquire_lease_on_sharesnapshot.yaml new file mode 100644 index 000000000000..8221aa50c7e1 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_acquire_lease_on_sharesnapshot.yaml @@ -0,0 +1,3484 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:26 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:26 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:27 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share&comp=snapshot + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:26 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-snapshot: + - '2020-09-28T14:07:27.0000000Z' + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:27 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - dbd11c56-6134-4f30-b330-b88e631ea233 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:26 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - dbd11c56-6134-4f30-b330-b88e631ea233 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:27 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 007d9fe8-3406-4481-95dd-dc4337e440d6 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:27 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 007d9fe8-3406-4481-95dd-dc4337e440d6 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:31 GMT + x-ms-lease-id: + - 007d9fe8-3406-4481-95dd-dc4337e440d6 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share + response: + body: + string: "\uFEFFLeaseIdMismatchWithContainerOperationThe + lease ID specified did not match the lease ID for the file share.\nRequestId:32d76f5c-a01a-002d-33a0-9569b1000000\nTime:2020-09-28T14:07:31.6658474Z" + headers: + content-length: + - '275' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:30 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: + - Origin + x-ms-error-code: + - LeaseIdMismatchWithContainerOperation + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: The lease ID specified did not match the lease ID for the file share. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:46 GMT + x-ms-lease-id: + - dbd11c56-6134-4f30-b330-b88e631ea233 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&restype=share + response: + body: + string: "\uFEFFLeaseIdMismatchWithContainerOperationThe + lease ID specified did not match the lease ID for the file share.\nRequestId:1c9b3cbf-901a-007b-5ea0-95985e000000\nTime:2020-09-28T14:07:46.8501182Z" + headers: + content-length: + - '275' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:46 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: + - Origin + x-ms-error-code: + - LeaseIdMismatchWithContainerOperation + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: The lease ID specified did not match the lease ID for the file share. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:49 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 007d9fe8-3406-4481-95dd-dc4337e440d6 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:49 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: + - '0' + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:49 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - dbd11c56-6134-4f30-b330-b88e631ea233 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:48 GMT + etag: + - '"0x8D863B7D4A57EE8"' + last-modified: + - Mon, 28 Sep 2020 14:07:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: + - '0' + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:49 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=snapshots&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f12020-09-28T14:03:31.0000000ZMon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalsetestshare1ba3e12f12020-09-28T14:07:27.0000000ZMon, + 28 Sep 2020 14:07:27 GMT\"0x8D863B7D4A57EE8\"unlockedavailable5120$account-encryption-keyfalsetestshare1ba3e12f1Mon, + 28 Sep 2020 14:07:27 GMT\"0x8D863B7D4A57EE8\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:07:27 GMT$account-encryption-keyfalseutshare1cf914ceFri, + 25 Sep 2020 13:06:11 GMT\"0x8D86153C67F13EA\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:06:11 GMT$account-encryption-keyfalseutshare20670f1d2020-09-25T13:06:56.0000000ZFri, + 25 Sep 2020 13:06:55 GMT\"0x8D86153E1115B2D\"unlockedavailable5120$account-encryption-keyfalseutshare20670f1d2020-09-25T13:06:57.0000000ZFri, + 25 Sep 2020 13:06:55 GMT\"0x8D86153E1115B2D\"unlockedavailable5120$account-encryption-keyfalseutshare20670f1dFri, + 25 Sep 2020 13:06:55 GMT\"0x8D86153E1115B2D\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:06:55 GMT$account-encryption-keyfalseutshare325d1544Fri, + 25 Sep 2020 12:56:51 GMT\"0x8D861527918EE3C\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 12:56:51 GMT$account-encryption-keyfalseutshare4ee91033Fri, + 25 Sep 2020 13:08:46 GMT\"0x8D861542341E830\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:08:46 GMT$account-encryption-keyfalseutshare539b1a3eFri, + 25 Sep 2020 13:05:57 GMT\"0x8D86153BE078BEA\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:05:57 GMT$account-encryption-keyfalseutshare5db416152020-09-25T13:09:26.0000000ZFri, + 25 Sep 2020 13:09:26 GMT\"0x8D861543A93CC28\"unlockedavailable5120$account-encryption-keyfalseutshare5db41615Fri, + 25 Sep 2020 13:09:26 GMT\"0x8D861543A93CC28\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:09:26 GMT$account-encryption-keyfalseutshare5ed210c0Fri, + 25 Sep 2020 12:56:34 GMT\"0x8D861526E674AAC\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 12:56:33 GMT$account-encryption-keyfalseutshare6e4e111b2020-09-25T13:02:47.0000000ZFri, + 25 Sep 2020 13:02:46 GMT\"0x8D861534C7974F5\"unlockedavailable5120$account-encryption-keyfalseutshare6e4e111bFri, + 25 Sep 2020 13:02:46 GMT\"0x8D861534C7974F5\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:02:46 GMT$account-encryption-keyfalseutshare847d11b1Fri, + 25 Sep 2020 13:06:25 GMT\"0x8D86153CED0B766\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:06:25 GMT$account-encryption-keyfalseutshare8e3816efFri, + 25 Sep 2020 13:01:37 GMT\"0x8D861532300C28B\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:01:36 GMT$account-encryption-keyfalseutsharea5a50b39Fri, + 25 Sep 2020 13:02:09 GMT\"0x8D8615336826AE6\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:02:09 GMT$account-encryption-keyfalseutsharea82c17932020-09-25T13:09:04.0000000ZFri, + 25 Sep 2020 13:09:03 GMT\"0x8D861542D3AAFF3\"unlockedavailable5120$account-encryption-keyfalseutsharea82c1793Fri, + 25 Sep 2020 13:09:03 GMT\"0x8D861542D3AAFF3\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:09:03 GMT$account-encryption-keyfalseutsharea85b12992020-09-25T13:02:28.0000000ZFri, + 25 Sep 2020 13:02:27 GMT\"0x8D8615341284CD1\"unlockedavailable5120$account-encryption-keyfalseutsharea85b1299Fri, + 25 Sep 2020 13:02:27 GMT\"0x8D8615341284CD1\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:02:25 GMT$account-encryption-keyfalseutshareca850ca02020-09-25T13:01:56.0000000ZFri, + 25 Sep 2020 13:01:55 GMT\"0x8D861532DF221C2\"unlockedavailable5120$account-encryption-keyfalseutshareca850ca02020-09-25T13:01:57.0000000ZFri, + 25 Sep 2020 13:01:55 GMT\"0x8D861532DF221C2\"unlockedavailable5120$account-encryption-keyfalseutshareca850ca0Fri, + 25 Sep 2020 13:01:55 GMT\"0x8D861532DF221C2\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:01:55 GMT$account-encryption-keyfalseutsharecd87133dFri, + 25 Sep 2020 13:05:35 GMT\"0x8D86153B0EBD9F9\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 13:05:35 GMT$account-encryption-keyfalse" + headers: + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + vary: + - Origin + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76feb-a01a-002d-27a0-9569b1000000\nTime:2020-09-28T14:07:50.2940482Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76fed-a01a-002d-29a0-9569b1000000\nTime:2020-09-28T14:07:50.4301448Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share336d1532?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76fef-a01a-002d-2ba0-9569b1000000\nTime:2020-09-28T14:07:50.5462281Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ff0-a01a-002d-2ca0-9569b1000000\nTime:2020-09-28T14:07:50.6773207Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ff1-a01a-002d-2da0-9569b1000000\nTime:2020-09-28T14:07:50.8314297Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ff3-a01a-002d-2ea0-9569b1000000\nTime:2020-09-28T14:07:50.9565189Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:50 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:32d76ff4-a01a-002d-2fa0-9569b1000000\nTime:2020-09-28T14:07:51.0896138Z" + headers: + content-length: + - '391' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - DeleteShareWhenSnapshotLeased + x-ms-version: + - '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:32d76ff9-a01a-002d-32a0-9569b1000000\nTime:2020-09-28T14:07:51.2177038Z" + headers: + content-length: + - '391' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - DeleteShareWhenSnapshotLeased + x-ms-version: + - '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharec80148e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ffa-a01a-002d-33a0-9569b1000000\nTime:2020-09-28T14:07:51.3487969Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ffc-a01a-002d-35a0-9569b1000000\nTime:2020-09-28T14:07:51.4788890Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d76ffe-a01a-002d-37a0-9569b1000000\nTime:2020-09-28T14:07:51.6079799Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77000-a01a-002d-39a0-9569b1000000\nTime:2020-09-28T14:07:51.7400724Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:50 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77001-a01a-002d-3aa0-9569b1000000\nTime:2020-09-28T14:07:51.8661612Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:51 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77002-a01a-002d-3ba0-9569b1000000\nTime:2020-09-28T14:07:51.9962531Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples6?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77003-a01a-002d-3ca0-9569b1000000\nTime:2020-09-28T14:07:52.1233426Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77006-a01a-002d-3ea0-9569b1000000\nTime:2020-09-28T14:07:52.2494313Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77007-a01a-002d-3fa0-9569b1000000\nTime:2020-09-28T14:07:52.3775216Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77009-a01a-002d-41a0-9569b1000000\nTime:2020-09-28T14:07:52.5126175Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7700b-a01a-002d-43a0-9569b1000000\nTime:2020-09-28T14:07:52.6467126Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7700c-a01a-002d-44a0-9569b1000000\nTime:2020-09-28T14:07:52.7808083Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7700d-a01a-002d-45a0-9569b1000000\nTime:2020-09-28T14:07:52.9088992Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:52 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7700f-a01a-002d-47a0-9569b1000000\nTime:2020-09-28T14:07:53.0479971Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77010-a01a-002d-48a0-9569b1000000\nTime:2020-09-28T14:07:53.1780898Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77011-a01a-002d-49a0-9569b1000000\nTime:2020-09-28T14:07:53.3041789Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77012-a01a-002d-4aa0-9569b1000000\nTime:2020-09-28T14:07:53.4462806Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77013-a01a-002d-4ba0-9569b1000000\nTime:2020-09-28T14:07:53.5723697Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77015-a01a-002d-4ca0-9569b1000000\nTime:2020-09-28T14:07:53.7024620Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:52 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77018-a01a-002d-4fa0-9569b1000000\nTime:2020-09-28T14:07:53.8335547Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701a-a01a-002d-51a0-9569b1000000\nTime:2020-09-28T14:07:53.9596442Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:53 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701b-a01a-002d-52a0-9569b1000000\nTime:2020-09-28T14:07:54.0847334Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test403e0ff4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701c-a01a-002d-53a0-9569b1000000\nTime:2020-09-28T14:07:54.2098222Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test49161594?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701d-a01a-002d-54a0-9569b1000000\nTime:2020-09-28T14:07:54.3379127Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701e-a01a-002d-55a0-9569b1000000\nTime:2020-09-28T14:07:54.4620012Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7701f-a01a-002d-56a0-9569b1000000\nTime:2020-09-28T14:07:54.5920935Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test6185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77020-a01a-002d-57a0-9569b1000000\nTime:2020-09-28T14:07:54.7221859Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77021-a01a-002d-58a0-9569b1000000\nTime:2020-09-28T14:07:54.8722920Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:54 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77022-a01a-002d-59a0-9569b1000000\nTime:2020-09-28T14:07:55.0013841Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77023-a01a-002d-5aa0-9569b1000000\nTime:2020-09-28T14:07:55.1364795Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test8fc916f4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77026-a01a-002d-5ca0-9569b1000000\nTime:2020-09-28T14:07:55.2655716Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77027-a01a-002d-5da0-9569b1000000\nTime:2020-09-28T14:07:55.3936625Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77028-a01a-002d-5ea0-9569b1000000\nTime:2020-09-28T14:07:55.5257558Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcf0d1359?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7702a-a01a-002d-60a0-9569b1000000\nTime:2020-09-28T14:07:55.6588503Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7702b-a01a-002d-61a0-9569b1000000\nTime:2020-09-28T14:07:55.7909445Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d7702f-a01a-002d-64a0-9569b1000000\nTime:2020-09-28T14:07:55.9160329Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77030-a01a-002d-65a0-9569b1000000\nTime:2020-09-28T14:07:56.0391207Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf3ff13d3?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77031-a01a-002d-66a0-9569b1000000\nTime:2020-09-28T14:07:56.1642090Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77033-a01a-002d-67a0-9569b1000000\nTime:2020-09-28T14:07:56.2943018Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:32d77035-a01a-002d-69a0-9569b1000000\nTime:2020-09-28T14:07:56.4283966Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare1cf914ce?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare20670f1d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare20670f1d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare20670f1d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare325d1544?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare4ee91033?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare539b1a3e?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare5db41615?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare5db41615?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare5ed210c0?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare6e4e111b?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare6e4e111b?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare847d11b1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare8e3816ef?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea5a50b39?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea82c1793?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea82c1793?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea85b1299?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea85b1299?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshareca850ca0?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshareca850ca0?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshareca850ca0?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:07:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharecd87133d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 14:07:58 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 202 + message: Accepted +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_delete_share_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_delete_share_with_lease_id.yaml new file mode 100644 index 000000000000..49e579e4b464 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_delete_share_with_lease_id.yaml @@ -0,0 +1,202 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:55:10 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test708a1115?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 13:55:13 GMT + etag: + - '"0x8D863B61E49D9B2"' + last-modified: + - Mon, 28 Sep 2020 13:55:11 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:55:13 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - e342583e-1904-4911-842b-7fd778ecb708 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test708a1115?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 13:55:13 GMT + etag: + - '"0x8D863B61E49D9B2"' + last-modified: + - Mon, 28 Sep 2020 13:55:11 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - e342583e-1904-4911-842b-7fd778ecb708 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:55:13 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test708a1115?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ed2373b9-201a-0033-259e-958569000000\nTime:2020-09-28T13:55:13.8795191Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 13:55:13 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:55:13 GMT + x-ms-lease-id: + - e342583e-1904-4911-842b-7fd778ecb708 + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test708a1115?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 13:55:13 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:55:14 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test708a1115?restype=share + response: + body: + string: "\uFEFFShareNotFoundThe + specified share does not exist.\nRequestId:ed2373bb-201a-0033-279e-958569000000\nTime:2020-09-28T13:55:14.1106826Z" + headers: + content-length: + - '217' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 13:55:13 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: + - Origin + x-ms-error-code: + - ShareNotFound + x-ms-version: + - '2020-02-10' + status: + code: 404 + message: The specified share does not exist. +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_acl_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_acl_with_lease_id.yaml new file mode 100644 index 000000000000..554af9376d0a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_acl_with_lease_id.yaml @@ -0,0 +1,129 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:02 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test816f1171?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:44:03 GMT + etag: + - '"0x8D855F429A8569E"' + last-modified: + - Fri, 11 Sep 2020 01:44:03 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:02 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test816f1171?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:44:03 GMT + etag: + - '"0x8D855F429A8569E"' + last-modified: + - Fri, 11 Sep 2020 01:44:03 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:03 GMT + x-ms-lease-id: + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test816f1171?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + access-control-allow-origin: + - '*' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 01:44:04 GMT + etag: + - '"0x8D855F429A8569E"' + last-modified: + - Fri, 11 Sep 2020 01:44:03 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_metadata_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_metadata_with_lease_id.yaml new file mode 100644 index 000000000000..c03df3e951f2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_metadata_with_lease_id.yaml @@ -0,0 +1,190 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:50 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:50 GMT + etag: + - '"0x8D855F4229FBAAC"' + last-modified: + - Fri, 11 Sep 2020 01:43:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:50 GMT + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:50 GMT + etag: + - '"0x8D855F422BEA24C"' + last-modified: + - Fri, 11 Sep 2020 01:43:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:51 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 716ea9cb-18d5-4a68-978b-fc1917f03cc8 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testdfa11382?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:50 GMT + etag: + - '"0x8D855F422BEA24C"' + last-modified: + - Fri, 11 Sep 2020 01:43:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 716ea9cb-18d5-4a68-978b-fc1917f03cc8 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:51 GMT + x-ms-lease-id: + - 716ea9cb-18d5-4a68-978b-fc1917f03cc8 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: + - '*' + access-control-expose-headers: + - x-ms-meta-hello,x-ms-meta-number + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:50 GMT + etag: + - '"0x8D855F422BEA24C"' + last-modified: + - Fri, 11 Sep 2020 01:43:51 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - TransactionOptimized + x-ms-access-tier-change-time: + - Fri, 11 Sep 2020 01:43:51 GMT + x-ms-has-immutability-policy: + - 'false' + x-ms-has-legal-hold: + - 'false' + x-ms-lease-duration: + - infinite + x-ms-lease-state: + - leased + x-ms-lease-status: + - locked + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-share-quota: + - '5120' + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_properties_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_properties_with_lease_id.yaml new file mode 100644 index 000000000000..37ece2e5582a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_properties_with_lease_id.yaml @@ -0,0 +1,232 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:56 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testc80148e?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:56 GMT + etag: + - '"0x8D855F42623E1A7"' + last-modified: + - Fri, 11 Sep 2020 01:43:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:56 GMT + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testc80148e?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:57 GMT + etag: + - '"0x8D855F42645FCE9"' + last-modified: + - Fri, 11 Sep 2020 01:43:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:57 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 78769c36-b338-4b22-b617-f028fd8f9afd + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testc80148e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:57 GMT + etag: + - '"0x8D855F42645FCE9"' + last-modified: + - Fri, 11 Sep 2020 01:43:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 78769c36-b338-4b22-b617-f028fd8f9afd + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:57 GMT + x-ms-lease-id: + - 78769c36-b338-4b22-b617-f028fd8f9afd + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testc80148e?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: + - '*' + access-control-expose-headers: + - x-ms-meta-hello,x-ms-meta-number + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:57 GMT + etag: + - '"0x8D855F42645FCE9"' + last-modified: + - Fri, 11 Sep 2020 01:43:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - TransactionOptimized + x-ms-access-tier-change-time: + - Fri, 11 Sep 2020 01:43:57 GMT + x-ms-has-immutability-policy: + - 'false' + x-ms-has-legal-hold: + - 'false' + x-ms-lease-duration: + - infinite + x-ms-lease-state: + - leased + x-ms-lease-status: + - locked + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-share-quota: + - '5120' + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:57 GMT + x-ms-lease-action: + - break + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testc80148e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:57 GMT + etag: + - '"0x8D855F42645FCE9"' + last-modified: + - Fri, 11 Sep 2020 01:43:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: + - '0' + x-ms-version: + - '2020-02-10' + status: + code: 202 + message: Accepted +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_acquire_and_release.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_acquire_and_release.yaml new file mode 100644 index 000000000000..ae2ecc90a225 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_acquire_and_release.yaml @@ -0,0 +1,130 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:35:52 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcb2f1317?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:35:53 GMT + etag: + - '"0x8D855F305C89D8C"' + last-modified: + - Fri, 11 Sep 2020 01:35:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:35:53 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 6816fa25-bfb6-4069-afde-775923c277e7 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcb2f1317?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:35:53 GMT + etag: + - '"0x8D855F305C89D8C"' + last-modified: + - Fri, 11 Sep 2020 01:35:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 6816fa25-bfb6-4069-afde-775923c277e7 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:35:53 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 6816fa25-bfb6-4069-afde-775923c277e7 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcb2f1317?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:35:53 GMT + etag: + - '"0x8D855F305C89D8C"' + last-modified: + - Fri, 11 Sep 2020 01:35:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 6816fa25-bfb6-4069-afde-775923c277e7 + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml new file mode 100644 index 000000000000..7b5eeb907357 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml @@ -0,0 +1,171 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:21 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test4ddb1042?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 16:23:21 GMT + etag: + - '"0x8D863CAD142DAFE"' + last-modified: + - Mon, 28 Sep 2020 16:23:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:21 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test4ddb1042?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 16:23:21 GMT + etag: + - '"0x8D863CAD142DAFE"' + last-modified: + - Mon, 28 Sep 2020 16:23:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:22 GMT + x-ms-lease-action: + - break + x-ms-lease-break-period: + - '5' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test4ddb1042?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 28 Sep 2020 16:23:21 GMT + etag: + - '"0x8D863CAD142DAFE"' + last-modified: + - Mon, 28 Sep 2020 16:23:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: + - '5' + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:28 GMT + x-ms-lease-id: + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test4ddb1042?restype=share + response: + body: + string: "\uFEFFLeaseLostA + lease ID was specified, but the lease for the file share has expired.\nRequestId:d45bd86b-801a-0067-3cb3-95ca3e000000\nTime:2020-09-28T16:23:28.3284490Z" + headers: + content-length: + - '249' + content-type: + - application/xml + date: + - Mon, 28 Sep 2020 16:23:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseLost + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: A lease ID was specified, but the lease for the file share has expired. +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_change_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_change_lease_id.yaml new file mode 100644 index 000000000000..d6561612b75b --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_change_lease_id.yaml @@ -0,0 +1,176 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:38 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test801b1156?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:38 GMT + etag: + - '"0x8D855F41B7485A5"' + last-modified: + - Fri, 11 Sep 2020 01:43:39 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:38 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - e74a3972-4935-415c-808b-7e08ce3117d2 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:39 GMT + etag: + - '"0x8D855F41B7485A5"' + last-modified: + - Fri, 11 Sep 2020 01:43:39 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - e74a3972-4935-415c-808b-7e08ce3117d2 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:39 GMT + x-ms-lease-action: + - change + x-ms-lease-id: + - e74a3972-4935-415c-808b-7e08ce3117d2 + x-ms-proposed-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:39 GMT + etag: + - '"0x8D855F41B7485A5"' + last-modified: + - Fri, 11 Sep 2020 01:43:39 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:39 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:39 GMT + etag: + - '"0x8D855F41B7485A5"' + last-modified: + - Fri, 11 Sep 2020 01:43:39 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_renew.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_renew.yaml new file mode 100644 index 000000000000..5c5c94b12088 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_renew.yaml @@ -0,0 +1,205 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:36:00 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:36:01 GMT + etag: + - '"0x8D855F30A798EAA"' + last-modified: + - Fri, 11 Sep 2020 01:36:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:36:00 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:36:01 GMT + etag: + - '"0x8D855F30A798EAA"' + last-modified: + - Fri, 11 Sep 2020 01:36:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:36:11 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:36:11 GMT + etag: + - '"0x8D855F30A798EAA"' + last-modified: + - Fri, 11 Sep 2020 01:36:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:36:16 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:b32790a3-701a-003e-47db-874dbd000000\nTime:2020-09-11T01:36:16.8688480Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 01:36:16 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:36:26 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:36:26 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 202 + message: Accepted +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_twice.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_twice.yaml new file mode 100644 index 000000000000..a7c722d5d65f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_twice.yaml @@ -0,0 +1,132 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:42:18 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:42:19 GMT + etag: + - '"0x8D855F3EC19CB5C"' + last-modified: + - Fri, 11 Sep 2020 01:42:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:42:19 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste52d0d77?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:42:19 GMT + etag: + - '"0x8D855F3EC19CB5C"' + last-modified: + - Fri, 11 Sep 2020 01:42:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:42:19 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste52d0d77?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:42:19 GMT + etag: + - '"0x8D855F3EC19CB5C"' + last-modified: + - Fri, 11 Sep 2020 01:42:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_duration.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_duration.yaml new file mode 100644 index 000000000000..2bd882a3a2ff --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_duration.yaml @@ -0,0 +1,177 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:46:54 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test602310dc?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:46:54 GMT + etag: + - '"0x8D855F490678FD9"' + last-modified: + - Fri, 11 Sep 2020 01:46:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:46:55 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 9a8324a0-203e-4427-b7e1-1f5cb4aea33f + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:46:55 GMT + etag: + - '"0x8D855F490678FD9"' + last-modified: + - Fri, 11 Sep 2020 01:46:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 9a8324a0-203e-4427-b7e1-1f5cb4aea33f + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:46:55 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 5d2218fd-c234-4e2c-8f86-6f447d5a0460 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share + response: + body: + string: "\uFEFFLeaseAlreadyPresentThere + is already a lease present.\nRequestId:5e49a6ed-701a-0001-6fdd-87851e000000\nTime:2020-09-11T01:46:56.8661505Z" + headers: + content-length: + - '221' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 01:46:56 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseAlreadyPresent + x-ms-version: + - '2020-02-10' + status: + code: 409 + message: There is already a lease present. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:47:11 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 74fe09cc-586b-4909-99f3-d7322d684308 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:47:11 GMT + etag: + - '"0x8D855F490678FD9"' + last-modified: + - Fri, 11 Sep 2020 01:46:55 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 74fe09cc-586b-4909-99f3-d7322d684308 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_proposed_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_proposed_lease_id.yaml new file mode 100644 index 000000000000..a6dde8a68315 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_with_proposed_lease_id.yaml @@ -0,0 +1,86 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:42:26 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:42:27 GMT + etag: + - '"0x8D855F3F0B3CE4D"' + last-modified: + - Fri, 11 Sep 2020 01:42:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:42:27 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 55e97f64-73e8-4390-838d-d9e84a374321 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testa7a1477?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:42:27 GMT + etag: + - '"0x8D855F3F0B3CE4D"' + last-modified: + - Fri, 11 Sep 2020 01:42:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 55e97f64-73e8-4390-838d-d9e84a374321 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_list_shares_leased_share.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_list_shares_leased_share.yaml new file mode 100644 index 000000000000..6f3883f81c51 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_list_shares_leased_share.yaml @@ -0,0 +1,2997 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:16 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test150ad1060?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:17 GMT + etag: + - '"0x8D864C78594DD2C"' + last-modified: + - Tue, 29 Sep 2020 22:32:17 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:17 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 7815c117-c899-40b8-962d-9e2aabff976f + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test150ad1060?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:17 GMT + etag: + - '"0x8D864C78594DD2C"' + last-modified: + - Tue, 29 Sep 2020 22:32:17 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 7815c117-c899-40b8-962d-9e2aabff976f + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:17 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare50ad1060Tue, + 29 Sep 2020 22:27:37 GMT\"0x8D864C6DE6E6B78\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:27:37 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest150ad1060Tue, + 29 Sep 2020 22:32:17 GMT\"0x8D864C78594DD2C\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:32:17 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest22f780f7aMon, + 28 Sep 2020 14:25:49 GMT\"0x8D863BA65CD0F11\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:25:49 GMT$account-encryption-keyfalsetest32f780f7aMon, + 28 Sep 2020 14:38:26 GMT\"0x8D863BC28C3893C\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:38:26 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest42f780f7aMon, + 28 Sep 2020 14:42:20 GMT\"0x8D863BCB4228D96\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:42:19 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest4ddb1042Mon, + 28 Sep 2020 16:23:21 GMT\"0x8D863CAD142DAFE\"unlockedbroken5120TransactionOptimizedMon, + 28 Sep 2020 16:23:21 GMT$account-encryption-keyfalsetest50ad1060Tue, + 29 Sep 2020 22:31:15 GMT\"0x8D864C760543D56\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:31:14 GMT$account-encryption-keyfalsetest52f780f7aMon, + 28 Sep 2020 14:48:47 GMT\"0x8D863BD9AE2D24D\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:48:47 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest62f780f7aMon, + 28 Sep 2020 14:50:39 GMT\"0x8D863BDDDBA247B\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:50:39 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest82f780f7aMon, + 28 Sep 2020 14:59:07 GMT\"0x8D863BF0CAE6088\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:59:07 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestba4812bfMon, + 28 Sep 2020 16:23:05 GMT\"0x8D863CAC758462F\"unlockedbroken5120TransactionOptimizedMon, + 28 Sep 2020 16:23:05 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalseutshare1a6414c6Mon, + 28 Sep 2020 16:26:30 GMT\"0x8D863CB41A9EF23\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 16:26:30 GMT$account-encryption-keyfalseutsharea1fb1743Mon, + 28 Sep 2020 16:28:03 GMT\"0x8D863CB79315436\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 16:28:03 GMT$account-encryption-keyfalse" + headers: + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:17 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + vary: + - Origin + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 7815c117-c899-40b8-962d-9e2aabff976f + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test150ad1060?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:17 GMT + etag: + - '"0x8D864C78594DD2C"' + last-modified: + - Tue, 29 Sep 2020 22:32:17 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: + - '0' + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=snapshots&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare50ad1060Tue, + 29 Sep 2020 22:27:37 GMT\"0x8D864C6DE6E6B78\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:27:37 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f12020-09-28T14:03:31.0000000ZMon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest150ad1060Tue, + 29 Sep 2020 22:32:17 GMT\"0x8D864C78594DD2C\"unlockedavailable5120TransactionOptimizedTue, + 29 Sep 2020 22:32:17 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest22f780f7aMon, + 28 Sep 2020 14:25:49 GMT\"0x8D863BA65CD0F11\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:25:49 GMT$account-encryption-keyfalsetest32f780f7aMon, + 28 Sep 2020 14:38:26 GMT\"0x8D863BC28C3893C\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:38:26 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest42f780f7aMon, + 28 Sep 2020 14:42:20 GMT\"0x8D863BCB4228D96\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:42:19 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest4ddb1042Mon, + 28 Sep 2020 16:23:21 GMT\"0x8D863CAD142DAFE\"unlockedbroken5120TransactionOptimizedMon, + 28 Sep 2020 16:23:21 GMT$account-encryption-keyfalsetest50ad1060Tue, + 29 Sep 2020 22:31:15 GMT\"0x8D864C760543D56\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:31:14 GMT$account-encryption-keyfalsetest52f780f7aMon, + 28 Sep 2020 14:48:47 GMT\"0x8D863BD9AE2D24D\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:48:47 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest62f780f7aMon, + 28 Sep 2020 14:50:39 GMT\"0x8D863BDDDBA247B\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:50:39 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest82f780f7aMon, + 28 Sep 2020 14:59:07 GMT\"0x8D863BF0CAE6088\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:59:07 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestba4812bfMon, + 28 Sep 2020 16:23:05 GMT\"0x8D863CAC758462F\"unlockedbroken5120TransactionOptimizedMon, + 28 Sep 2020 16:23:05 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalseutshare1a6414c6Mon, + 28 Sep 2020 16:26:30 GMT\"0x8D863CB41A9EF23\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 16:26:30 GMT$account-encryption-keyfalseutsharea1fb1743Mon, + 28 Sep 2020 16:28:03 GMT\"0x8D863CB79315436\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 16:28:03 GMT$account-encryption-keyfalse" + headers: + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:17 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + vary: + - Origin + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7311c-a01a-005f-6eb0-966efe000000\nTime:2020-09-29T22:32:18.5797761Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7311d-a01a-005f-6fb0-966efe000000\nTime:2020-09-29T22:32:18.7078660Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share336d1532?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7311f-a01a-005f-70b0-966efe000000\nTime:2020-09-29T22:32:18.8419606Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:18 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share50ad1060?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73120-a01a-005f-71b0-966efe000000\nTime:2020-09-29T22:32:18.9670489Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73121-a01a-005f-72b0-966efe000000\nTime:2020-09-29T22:32:19.1091492Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73122-a01a-005f-73b0-966efe000000\nTime:2020-09-29T22:32:19.2522505Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:18 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73123-a01a-005f-74b0-966efe000000\nTime:2020-09-29T22:32:19.3883461Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:bac73124-a01a-005f-75b0-966efe000000\nTime:2020-09-29T22:32:19.5214400Z" + headers: + content-length: + - '391' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - DeleteShareWhenSnapshotLeased + x-ms-version: + - '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:bac73125-a01a-005f-76b0-966efe000000\nTime:2020-09-29T22:32:19.6455276Z" + headers: + content-length: + - '391' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - DeleteShareWhenSnapshotLeased + x-ms-version: + - '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharec80148e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73126-a01a-005f-77b0-966efe000000\nTime:2020-09-29T22:32:19.7656123Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:19 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73128-a01a-005f-78b0-966efe000000\nTime:2020-09-29T22:32:19.8866982Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7312a-a01a-005f-7ab0-966efe000000\nTime:2020-09-29T22:32:20.0107857Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7312b-a01a-005f-7bb0-966efe000000\nTime:2020-09-29T22:32:20.1338730Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7312c-a01a-005f-7cb0-966efe000000\nTime:2020-09-29T22:32:20.2659654Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:19 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7312d-a01a-005f-7db0-966efe000000\nTime:2020-09-29T22:32:20.3910536Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples6?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73130-a01a-005f-7fb0-966efe000000\nTime:2020-09-29T22:32:20.5171434Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73134-a01a-005f-01b0-966efe000000\nTime:2020-09-29T22:32:20.6462341Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73137-a01a-005f-04b0-966efe000000\nTime:2020-09-29T22:32:20.7703212Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:20 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73138-a01a-005f-05b0-966efe000000\nTime:2020-09-29T22:32:20.9044158Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73139-a01a-005f-06b0-966efe000000\nTime:2020-09-29T22:32:21.0305048Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7313a-a01a-005f-07b0-966efe000000\nTime:2020-09-29T22:32:21.1645994Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7313c-a01a-005f-09b0-966efe000000\nTime:2020-09-29T22:32:21.2916891Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73146-a01a-005f-0ab0-966efe000000\nTime:2020-09-29T22:32:21.4177780Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73147-a01a-005f-0bb0-966efe000000\nTime:2020-09-29T22:32:21.5438670Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73148-a01a-005f-0cb0-966efe000000\nTime:2020-09-29T22:32:21.6679545Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73149-a01a-005f-0db0-966efe000000\nTime:2020-09-29T22:32:21.7910414Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:21 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7314b-a01a-005f-0fb0-966efe000000\nTime:2020-09-29T22:32:21.9181310Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7314d-a01a-005f-11b0-966efe000000\nTime:2020-09-29T22:32:22.0302106Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7314e-a01a-005f-12b0-966efe000000\nTime:2020-09-29T22:32:22.1542977Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7314f-a01a-005f-13b0-966efe000000\nTime:2020-09-29T22:32:22.2723810Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:21 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test150ad1060?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73151-a01a-005f-15b0-966efe000000\nTime:2020-09-29T22:32:22.5135511Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test22f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test32f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:22 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test403e0ff4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73158-a01a-005f-1ab0-966efe000000\nTime:2020-09-29T22:32:22.8988230Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test42f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test49161594?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7315a-a01a-005f-1cb0-966efe000000\nTime:2020-09-29T22:32:23.1530027Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test4ddb1042?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:22 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test50ad1060?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7315e-a01a-005f-1fb0-966efe000000\nTime:2020-09-29T22:32:23.4181894Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test52f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73161-a01a-005f-21b0-966efe000000\nTime:2020-09-29T22:32:23.6823758Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73162-a01a-005f-22b0-966efe000000\nTime:2020-09-29T22:32:23.8124680Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:23 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test6185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73164-a01a-005f-23b0-966efe000000\nTime:2020-09-29T22:32:23.9555690Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test62f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73168-a01a-005f-27b0-966efe000000\nTime:2020-09-29T22:32:24.2547797Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:23 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73169-a01a-005f-28b0-966efe000000\nTime:2020-09-29T22:32:24.4088884Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7316c-a01a-005f-29b0-966efe000000\nTime:2020-09-29T22:32:24.5389811Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test82f780f7a?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test8fc916f4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73171-a01a-005f-2eb0-966efe000000\nTime:2020-09-29T22:32:24.8071698Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:24 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73177-a01a-005f-33b0-966efe000000\nTime:2020-09-29T22:32:24.9352598Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testba4812bf?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73179-a01a-005f-35b0-966efe000000\nTime:2020-09-29T22:32:25.1904398Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcf0d1359?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7317a-a01a-005f-36b0-966efe000000\nTime:2020-09-29T22:32:25.3175299Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:24 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7317c-a01a-005f-38b0-966efe000000\nTime:2020-09-29T22:32:25.4466206Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7317d-a01a-005f-39b0-966efe000000\nTime:2020-09-29T22:32:25.5597004Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac7317f-a01a-005f-3ab0-966efe000000\nTime:2020-09-29T22:32:25.6837879Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf3ff13d3?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73181-a01a-005f-3cb0-966efe000000\nTime:2020-09-29T22:32:25.8078755Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:25 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73182-a01a-005f-3db0-966efe000000\nTime:2020-09-29T22:32:25.9379673Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:26 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:bac73183-a01a-005f-3eb0-966efe000000\nTime:2020-09-29T22:32:26.0690598Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - LeaseIdMissing + x-ms-version: + - '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:26 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utshare1a6414c6?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:32:26 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/utsharea1fb1743?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 29 Sep 2020 22:32:25 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 202 + message: Accepted +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_acl_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_acl_with_lease_id.yaml new file mode 100644 index 000000000000..650c8403ad80 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_acl_with_lease_id.yaml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:08 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:44:09 GMT + etag: + - '"0x8D855F42D63A1C8"' + last-modified: + - Fri, 11 Sep 2020 01:44:09 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:08 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - f3232009-9b44-4b54-9f8b-4d679af40c47 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test82b3117d?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:44:09 GMT + etag: + - '"0x8D855F42D63A1C8"' + last-modified: + - Fri, 11 Sep 2020 01:44:09 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - f3232009-9b44-4b54-9f8b-4d679af40c47 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: ' + + testid2020-09-11T01:44:09Z2020-09-11T02:44:09Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:09 GMT + x-ms-lease-id: + - f3232009-9b44-4b54-9f8b-4d679af40c47 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:44:09 GMT + etag: + - '"0x8D855F42D9DFD7A"' + last-modified: + - Fri, 11 Sep 2020 01:44:09 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:44:09 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share&comp=acl + response: + body: + string: "\uFEFFtestid2020-09-11T01:44:09.0000000Z2020-09-11T02:44:09.0000000Zr" + headers: + access-control-allow-origin: + - '*' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 01:44:09 GMT + etag: + - '"0x8D855F42D9DFD7A"' + last-modified: + - Fri, 11 Sep 2020 01:44:09 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_metadata_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_metadata_with_lease_id.yaml new file mode 100644 index 000000000000..eb3c42225ff2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_set_share_metadata_with_lease_id.yaml @@ -0,0 +1,190 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:44 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:44 GMT + etag: + - '"0x8D855F41F17142E"' + last-modified: + - Fri, 11 Sep 2020 01:43:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:45 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste121138e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:45 GMT + etag: + - '"0x8D855F41F17142E"' + last-modified: + - Fri, 11 Sep 2020 01:43:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 + x-ms-version: + - '2020-02-10' + 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-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:45 GMT + x-ms-lease-id: + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste121138e?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:45 GMT + etag: + - '"0x8D855F41F52C3FB"' + last-modified: + - Fri, 11 Sep 2020 01:43:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 01:43:45 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: + - '*' + access-control-expose-headers: + - x-ms-meta-hello,x-ms-meta-number + content-length: + - '0' + date: + - Fri, 11 Sep 2020 01:43:45 GMT + etag: + - '"0x8D855F41F52C3FB"' + last-modified: + - Fri, 11 Sep 2020 01:43:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - TransactionOptimized + x-ms-access-tier-change-time: + - Fri, 11 Sep 2020 01:43:45 GMT + x-ms-has-immutability-policy: + - 'false' + x-ms-has-legal-hold: + - 'false' + x-ms-lease-duration: + - infinite + x-ms-lease-state: + - leased + x-ms-lease-status: + - locked + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-share-quota: + - '5120' + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_acquire_lease_on_sharesnapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_acquire_lease_on_sharesnapshot.yaml new file mode 100644 index 000000000000..a0a7a0918d06 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_acquire_lease_on_sharesnapshot.yaml @@ -0,0 +1,1856 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:29 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:28 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:29 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share&comp=snapshot + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:28 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-snapshot: '2020-09-28T14:09:29.0000000Z' + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?restype=share&comp=snapshot +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:29 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 60a40c0f-a703-48a6-a1e9-127ca070af39 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:29 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 60a40c0f-a703-48a6-a1e9-127ca070af39 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:30 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - bbd73b46-5572-446a-af4c-b2cdea9ac5a3 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:30 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: bbd73b46-5572-446a-af4c-b2cdea9ac5a3 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:30 GMT + x-ms-lease-id: + - bbd73b46-5572-446a-af4c-b2cdea9ac5a3 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share + response: + body: + string: "\uFEFFLeaseIdMismatchWithContainerOperationThe + lease ID specified did not match the lease ID for the file share.\nRequestId:ea48274d-901a-0009-62a0-959f11000000\nTime:2020-09-28T14:09:30.6607872Z" + headers: + content-length: '275' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: Origin + x-ms-error-code: LeaseIdMismatchWithContainerOperation + x-ms-version: '2020-02-10' + status: + code: 412 + message: The lease ID specified did not match the lease ID for the file share. + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:30 GMT + x-ms-lease-id: + - 60a40c0f-a703-48a6-a1e9-127ca070af39 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&restype=share + response: + body: + string: "\uFEFFLeaseIdMismatchWithContainerOperationThe + lease ID specified did not match the lease ID for the file share.\nRequestId:0c1243e1-101a-0017-35a0-9573c9000000\nTime:2020-09-28T14:09:30.7471617Z" + headers: + content-length: '275' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:30 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: Origin + x-ms-error-code: LeaseIdMismatchWithContainerOperation + x-ms-version: '2020-02-10' + status: + code: 412 + message: The lease ID specified did not match the lease ID for the file share. + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:30 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - bbd73b46-5572-446a-af4c-b2cdea9ac5a3 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:31 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: '0' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 60a40c0f-a703-48a6-a1e9-127ca070af39 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:31 GMT + etag: '"0x8D863B81DD47C14"' + last-modified: Mon, 28 Sep 2020 14:09:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: '0' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?comp=lease&restype=share +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=snapshots&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare35a8156e2020-09-28T14:09:29.0000000ZMon, + 28 Sep 2020 14:09:29 GMT\"0x8D863B81DD47C14\"unlockedavailable5120$account-encryption-keyfalseshare35a8156eMon, + 28 Sep 2020 14:09:29 GMT\"0x8D863B81DD47C14\"unlockedavailable5120TransactionOptimizedMon, + 28 Sep 2020 14:09:29 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f12020-09-28T14:03:31.0000000ZMon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalse" + headers: + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + vary: Origin + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/?include=snapshots&comp=list +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482756-901a-0009-69a0-959f11000000\nTime:2020-09-28T14:09:31.5834413Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share1816f1171?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482757-901a-0009-6aa0-959f11000000\nTime:2020-09-28T14:09:31.6574939Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share182b3117d?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share336d1532?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482758-901a-0009-6ba0-959f11000000\nTime:2020-09-28T14:09:31.7365499Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share336d1532?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48275d-901a-0009-70a0-959f11000000\nTime:2020-09-28T14:09:31.9507019Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:31 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share602310dc?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:31 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48275e-901a-0009-71a0-959f11000000\nTime:2020-09-28T14:09:32.0267558Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share801b1156?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48275f-901a-0009-72a0-959f11000000\nTime:2020-09-28T14:09:32.1028102Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharea7a1477?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:ea482760-901a-0009-73a0-959f11000000\nTime:2020-09-28T14:09:32.1938748Z" + headers: + content-length: '391' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: DeleteShareWhenSnapshotLeased + x-ms-version: '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. + url: https://seanmcccanary3.file.core.windows.net/shareba3e12f1?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:ea482761-901a-0009-74a0-959f11000000\nTime:2020-09-28T14:09:32.2699288Z" + headers: + content-length: '391' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: DeleteShareWhenSnapshotLeased + x-ms-version: '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. + url: https://seanmcccanary3.file.core.windows.net/shareba3e12f1?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharec80148e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482763-901a-0009-76a0-959f11000000\nTime:2020-09-28T14:09:32.3439809Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharec80148e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482764-901a-0009-77a0-959f11000000\nTime:2020-09-28T14:09:32.4200352Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharecb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482765-901a-0009-78a0-959f11000000\nTime:2020-09-28T14:09:32.4950881Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharee121138e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482766-901a-0009-79a0-959f11000000\nTime:2020-09-28T14:09:32.5671392Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharee52d0d77?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482767-901a-0009-7aa0-959f11000000\nTime:2020-09-28T14:09:32.6441938Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharerestorecb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482768-901a-0009-7ba0-959f11000000\nTime:2020-09-28T14:09:32.7232499Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples5?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples6?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48276a-901a-0009-7da0-959f11000000\nTime:2020-09-28T14:09:32.7912982Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples6?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48276d-901a-0009-80a0-959f11000000\nTime:2020-09-28T14:09:32.8623486Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48276f-901a-0009-01a0-959f11000000\nTime:2020-09-28T14:09:32.9354008Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:32 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:32 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482770-901a-0009-02a0-959f11000000\nTime:2020-09-28T14:09:33.0134558Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482772-901a-0009-03a0-959f11000000\nTime:2020-09-28T14:09:33.0885090Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482774-901a-0009-05a0-959f11000000\nTime:2020-09-28T14:09:33.1645630Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482777-901a-0009-07a0-959f11000000\nTime:2020-09-28T14:09:33.2426184Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482778-901a-0009-08a0-959f11000000\nTime:2020-09-28T14:09:33.3166709Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48277a-901a-0009-0aa0-959f11000000\nTime:2020-09-28T14:09:33.3927248Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482783-901a-0009-11a0-959f11000000\nTime:2020-09-28T14:09:33.4667774Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482789-901a-0009-17a0-959f11000000\nTime:2020-09-28T14:09:33.5428318Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48278b-901a-0009-19a0-959f11000000\nTime:2020-09-28T14:09:33.6168839Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea482793-901a-0009-20a0-959f11000000\nTime:2020-09-28T14:09:33.6909364Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea48279e-901a-0009-2ba0-959f11000000\nTime:2020-09-28T14:09:33.7960109Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827a0-901a-0009-2da0-959f11000000\nTime:2020-09-28T14:09:33.8820720Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827a2-901a-0009-2ea0-959f11000000\nTime:2020-09-28T14:09:33.9541227Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:33 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test16185160b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:33 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test403e0ff4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827a7-901a-0009-31a0-959f11000000\nTime:2020-09-28T14:09:34.0311786Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test403e0ff4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test49161594?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827a8-901a-0009-32a0-959f11000000\nTime:2020-09-28T14:09:34.1092336Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test49161594?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827a9-901a-0009-33a0-959f11000000\nTime:2020-09-28T14:09:34.1832857Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test600515ff?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827aa-901a-0009-34a0-959f11000000\nTime:2020-09-28T14:09:34.2563375Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test602310dc?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test6185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827ad-901a-0009-36a0-959f11000000\nTime:2020-09-28T14:09:34.3213836Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test6185160b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827ae-901a-0009-37a0-959f11000000\nTime:2020-09-28T14:09:34.3984387Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test801b1156?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827af-901a-0009-38a0-959f11000000\nTime:2020-09-28T14:09:34.4804969Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test816f1171?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b0-901a-0009-39a0-959f11000000\nTime:2020-09-28T14:09:34.5765651Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test82b3117d?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test8fc916f4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b2-901a-0009-3ba0-959f11000000\nTime:2020-09-28T14:09:34.6566215Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test8fc916f4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b3-901a-0009-3ca0-959f11000000\nTime:2020-09-28T14:09:34.7376790Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testa7a1477?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b4-901a-0009-3da0-959f11000000\nTime:2020-09-28T14:09:34.8137329Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testcb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcf0d1359?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b5-901a-0009-3ea0-959f11000000\nTime:2020-09-28T14:09:34.8927890Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b6-901a-0009-3fa0-959f11000000\nTime:2020-09-28T14:09:34.9698437Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:34 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testdfa11382?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:34 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b7-901a-0009-40a0-959f11000000\nTime:2020-09-28T14:09:35.0499004Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/teste121138e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:35 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827b9-901a-0009-42a0-959f11000000\nTime:2020-09-28T14:09:35.1279562Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/teste52d0d77?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:35 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf3ff13d3?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827ba-901a-0009-43a0-959f11000000\nTime:2020-09-28T14:09:35.2050105Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:35 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827bb-901a-0009-44a0-959f11000000\nTime:2020-09-28T14:09:35.2810649Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf55313ee?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 14:09:35 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:ea4827bc-901a-0009-45a0-959f11000000\nTime:2020-09-28T14:09:35.3671255Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 14:09:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_delete_share_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_delete_share_with_lease_id.yaml new file mode 100644 index 000000000000..19bc05aa79b4 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_delete_share_with_lease_id.yaml @@ -0,0 +1,139 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:57:01 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste1f11392?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 13:57:01 GMT + etag: '"0x8D863B6604BE9A3"' + last-modified: Mon, 28 Sep 2020 13:57:02 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/teste1f11392?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:57:02 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - cf138b27-c420-48ac-a049-a7f89c277b51 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/teste1f11392?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 13:57:01 GMT + etag: '"0x8D863B6604BE9A3"' + last-modified: Mon, 28 Sep 2020 13:57:02 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: cf138b27-c420-48ac-a049-a7f89c277b51 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/teste1f11392?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:57:02 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste1f11392?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:8dfacc3b-b01a-0088-549f-953fcb000000\nTime:2020-09-28T13:57:02.6482582Z" + headers: + content-length: '273' + content-type: application/xml + date: Mon, 28 Sep 2020 13:57:01 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/teste1f11392?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:57:02 GMT + x-ms-lease-id: + - cf138b27-c420-48ac-a049-a7f89c277b51 + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste1f11392?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 13:57:01 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/teste1f11392?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 13:57:02 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/teste1f11392?restype=share + response: + body: + string: "\uFEFFShareNotFoundThe + specified share does not exist.\nRequestId:8dfacc3d-b01a-0088-569f-953fcb000000\nTime:2020-09-28T13:57:02.7833541Z" + headers: + content-length: '217' + content-type: application/xml + date: Mon, 28 Sep 2020 13:57:02 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: Origin + x-ms-error-code: ShareNotFound + x-ms-version: '2020-02-10' + status: + code: 404 + message: The specified share does not exist. + url: https://seanmcccanary3.file.core.windows.net/teste1f11392?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_acl_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_acl_with_lease_id.yaml new file mode 100644 index 000000000000..3b27c123572a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_acl_with_lease_id.yaml @@ -0,0 +1,91 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:57 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:57 GMT + etag: '"0x8D8565A21BA7745"' + last-modified: Fri, 11 Sep 2020 13:53:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf55313ee?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:58 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - a90ad49b-1ac0-41c5-8c91-cd13dadb7516 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf55313ee?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:58 GMT + etag: '"0x8D8565A21BA7745"' + last-modified: Fri, 11 Sep 2020 13:53:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: a90ad49b-1ac0-41c5-8c91-cd13dadb7516 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf55313ee?comp=lease&restype=share +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:58 GMT + x-ms-lease-id: + - a90ad49b-1ac0-41c5-8c91-cd13dadb7516 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + access-control-allow-origin: '*' + content-type: application/xml + date: Fri, 11 Sep 2020 13:53:58 GMT + etag: '"0x8D8565A21BA7745"' + last-modified: Fri, 11 Sep 2020 13:53:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/testf55313ee?restype=share&comp=acl +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_metadata_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_metadata_with_lease_id.yaml new file mode 100644 index 000000000000..5f219d691e2d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_metadata_with_lease_id.yaml @@ -0,0 +1,127 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:52:28 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:52:28 GMT + etag: '"0x8D85659ECB20A25"' + last-modified: Fri, 11 Sep 2020 13:52:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test600515ff?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:52:29 GMT + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test600515ff?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:52:28 GMT + etag: '"0x8D85659ECC7BFF5"' + last-modified: Fri, 11 Sep 2020 13:52:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test600515ff?restype=share&comp=metadata +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:52:29 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - bad7deb8-a596-4a1a-8147-ac5b67032970 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test600515ff?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:52:29 GMT + etag: '"0x8D85659ECC7BFF5"' + last-modified: Fri, 11 Sep 2020 13:52:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: bad7deb8-a596-4a1a-8147-ac5b67032970 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test600515ff?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:52:29 GMT + x-ms-lease-id: + - bad7deb8-a596-4a1a-8147-ac5b67032970 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: '*' + access-control-expose-headers: x-ms-meta-hello,x-ms-meta-number + content-length: '0' + date: Fri, 11 Sep 2020 13:52:29 GMT + etag: '"0x8D85659ECC7BFF5"' + last-modified: Fri, 11 Sep 2020 13:52:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: TransactionOptimized + x-ms-access-tier-change-time: Fri, 11 Sep 2020 13:52:29 GMT + x-ms-has-immutability-policy: 'false' + x-ms-has-legal-hold: 'false' + x-ms-lease-duration: infinite + x-ms-lease-state: leased + x-ms-lease-status: locked + x-ms-meta-hello: world + x-ms-meta-number: '43' + x-ms-share-quota: '5120' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test600515ff?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_properties_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_properties_with_lease_id.yaml new file mode 100644 index 000000000000..ac06eab4f011 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_get_share_properties_with_lease_id.yaml @@ -0,0 +1,155 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:18 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test91cf170b?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:18 GMT + etag: '"0x8D8565A0A2A9F1F"' + last-modified: Fri, 11 Sep 2020 13:53:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test91cf170b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:18 GMT + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test91cf170b?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:18 GMT + etag: '"0x8D8565A0A5569C6"' + last-modified: Fri, 11 Sep 2020 13:53:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test91cf170b?restype=share&comp=metadata +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:19 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - a7fd9d7a-dcc5-4c76-a2c2-7a2317f9bf04 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test91cf170b?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:19 GMT + etag: '"0x8D8565A0A5569C6"' + last-modified: Fri, 11 Sep 2020 13:53:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: a7fd9d7a-dcc5-4c76-a2c2-7a2317f9bf04 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test91cf170b?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:19 GMT + x-ms-lease-id: + - a7fd9d7a-dcc5-4c76-a2c2-7a2317f9bf04 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test91cf170b?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: '*' + access-control-expose-headers: x-ms-meta-hello,x-ms-meta-number + content-length: '0' + date: Fri, 11 Sep 2020 13:53:19 GMT + etag: '"0x8D8565A0A5569C6"' + last-modified: Fri, 11 Sep 2020 13:53:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: TransactionOptimized + x-ms-access-tier-change-time: Fri, 11 Sep 2020 13:53:19 GMT + x-ms-has-immutability-policy: 'false' + x-ms-has-legal-hold: 'false' + x-ms-lease-duration: infinite + x-ms-lease-state: leased + x-ms-lease-status: locked + x-ms-meta-hello: world + x-ms-meta-number: '43' + x-ms-share-quota: '5120' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test91cf170b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:53:19 GMT + x-ms-lease-action: + - break + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test91cf170b?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:53:19 GMT + etag: '"0x8D8565A0A5569C6"' + last-modified: Fri, 11 Sep 2020 13:53:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: '0' + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/test91cf170b?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_acquire_and_release.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_acquire_and_release.yaml new file mode 100644 index 000000000000..1def71dc8568 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_acquire_and_release.yaml @@ -0,0 +1,89 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:44:28 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test49161594?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:44:29 GMT + etag: '"0x8D85658CEB83E6D"' + last-modified: Fri, 11 Sep 2020 13:44:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test49161594?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:44:29 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - f74c3b1b-ee85-4eac-8116-8585080eb439 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test49161594?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:44:29 GMT + etag: '"0x8D85658CEB83E6D"' + last-modified: Fri, 11 Sep 2020 13:44:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: f74c3b1b-ee85-4eac-8116-8585080eb439 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test49161594?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:44:29 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - f74c3b1b-ee85-4eac-8116-8585080eb439 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test49161594?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:44:29 GMT + etag: '"0x8D85658CEB83E6D"' + last-modified: Fri, 11 Sep 2020 13:44:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: f74c3b1b-ee85-4eac-8116-8585080eb439 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test49161594?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_break_period.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_break_period.yaml new file mode 100644 index 000000000000..88a4e4b5745d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_break_period.yaml @@ -0,0 +1,117 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:22:47 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testba4812bf?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 16:23:04 GMT + etag: '"0x8D863CAC758462F"' + last-modified: Mon, 28 Sep 2020 16:23:05 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testba4812bf?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:05 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - db6e2d34-67d9-4050-873c-1c0680c0430c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testba4812bf?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 16:23:04 GMT + etag: '"0x8D863CAC758462F"' + last-modified: Mon, 28 Sep 2020 16:23:05 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: db6e2d34-67d9-4050-873c-1c0680c0430c + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testba4812bf?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:05 GMT + x-ms-lease-action: + - break + x-ms-lease-break-period: + - '5' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testba4812bf?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Mon, 28 Sep 2020 16:23:04 GMT + etag: '"0x8D863CAC758462F"' + last-modified: Mon, 28 Sep 2020 16:23:05 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: '5' + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/testba4812bf?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Mon, 28 Sep 2020 16:23:11 GMT + x-ms-lease-id: + - db6e2d34-67d9-4050-873c-1c0680c0430c + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testba4812bf?restype=share + response: + body: + string: "\uFEFFLeaseLostA + lease ID was specified, but the lease for the file share has expired.\nRequestId:4a57bdab-301a-0062-3db3-9518e5000000\nTime:2020-09-28T16:23:11.5195262Z" + headers: + content-length: '249' + content-type: application/xml + date: Mon, 28 Sep 2020 16:23:10 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseLost + x-ms-version: '2020-02-10' + status: + code: 412 + message: A lease ID was specified, but the lease for the file share has expired. + url: https://seanmcccanary3.file.core.windows.net/testba4812bf?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_change_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_change_lease_id.yaml new file mode 100644 index 000000000000..cf170769d4bb --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_change_lease_id.yaml @@ -0,0 +1,121 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:49:17 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf3ff13d3?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:49:18 GMT + etag: '"0x8D856597B1CC145"' + last-modified: Fri, 11 Sep 2020 13:49:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:49:18 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - bdcde8cb-7fd4-402b-837d-2d48feb4b0da + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf3ff13d3?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:49:18 GMT + etag: '"0x8D856597B1CC145"' + last-modified: Fri, 11 Sep 2020 13:49:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: bdcde8cb-7fd4-402b-837d-2d48feb4b0da + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:49:18 GMT + x-ms-lease-action: + - change + x-ms-lease-id: + - bdcde8cb-7fd4-402b-837d-2d48feb4b0da + x-ms-proposed-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf3ff13d3?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:49:18 GMT + etag: '"0x8D856597B1CC145"' + last-modified: Fri, 11 Sep 2020 13:49:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:49:18 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf3ff13d3?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:49:18 GMT + etag: '"0x8D856597B1CC145"' + last-modified: Fri, 11 Sep 2020 13:49:19 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 29e0b239-ecda-4f69-bfa3-95f6af91464c + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_renew.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_renew.yaml new file mode 100644 index 000000000000..7892e947556c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_renew.yaml @@ -0,0 +1,140 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:45:12 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test40110ff9?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:45:13 GMT + etag: '"0x8D85658E9158413"' + last-modified: Fri, 11 Sep 2020 13:45:14 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test40110ff9?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:45:14 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 64962ad4-f139-4341-a9f5-f5a03a0593ed + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test40110ff9?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:45:14 GMT + etag: '"0x8D85658E9158413"' + last-modified: Fri, 11 Sep 2020 13:45:14 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 64962ad4-f139-4341-a9f5-f5a03a0593ed + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test40110ff9?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:45:24 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 64962ad4-f139-4341-a9f5-f5a03a0593ed + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test40110ff9?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:45:24 GMT + etag: '"0x8D85658E9158413"' + last-modified: Fri, 11 Sep 2020 13:45:14 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 64962ad4-f139-4341-a9f5-f5a03a0593ed + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test40110ff9?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:45:29 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test40110ff9?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:8963fb17-601a-006f-1841-88d031000000\nTime:2020-09-11T13:45:30.0872356Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 11 Sep 2020 13:45:29 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test40110ff9?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:45:39 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test40110ff9?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:45:39 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/test40110ff9?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_twice.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_twice.yaml new file mode 100644 index 000000000000..27e5530a21bf --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_twice.yaml @@ -0,0 +1,91 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:47:59 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test403e0ff4?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:48:01 GMT + etag: '"0x8D856594D05BB2E"' + last-modified: Fri, 11 Sep 2020 13:48:01 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test403e0ff4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:48:01 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 1057ec6d-d171-4e3f-8ae1-86963b4f353c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test403e0ff4?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:48:02 GMT + etag: '"0x8D856594D05BB2E"' + last-modified: Fri, 11 Sep 2020 13:48:01 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 1057ec6d-d171-4e3f-8ae1-86963b4f353c + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test403e0ff4?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:48:02 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 1057ec6d-d171-4e3f-8ae1-86963b4f353c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test403e0ff4?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:48:02 GMT + etag: '"0x8D856594D05BB2E"' + last-modified: Fri, 11 Sep 2020 13:48:01 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 1057ec6d-d171-4e3f-8ae1-86963b4f353c + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test403e0ff4?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_duration.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_duration.yaml new file mode 100644 index 000000000000..ad74144cbccb --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_duration.yaml @@ -0,0 +1,123 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:46:51 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcf0d1359?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:46:52 GMT + etag: '"0x8D856592431D1AA"' + last-modified: Fri, 11 Sep 2020 13:46:53 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:46:52 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 7425fc1a-b197-42a4-9063-809c00caaf55 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcf0d1359?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:46:52 GMT + etag: '"0x8D856592431D1AA"' + last-modified: Fri, 11 Sep 2020 13:46:53 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 7425fc1a-b197-42a4-9063-809c00caaf55 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:46:52 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 5f638806-4b5f-4010-9bec-fb82e55b225c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcf0d1359?comp=lease&restype=share + response: + body: + string: "\uFEFFLeaseAlreadyPresentThere + is already a lease present.\nRequestId:1673faec-101a-0038-0f42-887e02000000\nTime:2020-09-11T13:46:53.5670394Z" + headers: + content-length: '221' + content-type: application/xml + date: Fri, 11 Sep 2020 13:46:52 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseAlreadyPresent + x-ms-version: '2020-02-10' + status: + code: 409 + message: There is already a lease present. + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:47:08 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 3af188b6-f122-4db7-8ee1-06a32a13c3ba + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testcf0d1359?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:47:08 GMT + etag: '"0x8D856592431D1AA"' + last-modified: Fri, 11 Sep 2020 13:46:53 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 3af188b6-f122-4db7-8ee1-06a32a13c3ba + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_proposed_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_proposed_lease_id.yaml new file mode 100644 index 000000000000..496df00bc624 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_lease_share_with_proposed_lease_id.yaml @@ -0,0 +1,59 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:48:34 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test8fc916f4?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:48:35 GMT + etag: '"0x8D8565961566D0E"' + last-modified: Fri, 11 Sep 2020 13:48:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test8fc916f4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:48:35 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 55e97f64-73e8-4390-838d-d9e84a374321 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test8fc916f4?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:48:35 GMT + etag: '"0x8D8565961566D0E"' + last-modified: Fri, 11 Sep 2020 13:48:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 55e97f64-73e8-4390-838d-d9e84a374321 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test8fc916f4?comp=lease&restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_list_shares_leased_share.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_list_shares_leased_share.yaml new file mode 100644 index 000000000000..e312d7ccd37f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_list_shares_leased_share.yaml @@ -0,0 +1,1945 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:54 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharebd1a12dd?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Tue, 29 Sep 2020 22:40:54 GMT + etag: '"0x8D864C8B9D886E7"' + last-modified: Tue, 29 Sep 2020 22:40:54 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/sharebd1a12dd?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:54 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 777c966a-031c-4494-83aa-d0ddb074f2dc + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharebd1a12dd?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Tue, 29 Sep 2020 22:40:54 GMT + etag: '"0x8D864C8B9D886E7"' + last-modified: Tue, 29 Sep 2020 22:40:54 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 777c966a-031c-4494-83aa-d0ddb074f2dc + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/sharebd1a12dd?comp=lease&restype=share +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:54 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare50ad1060Tue, + 29 Sep 2020 22:27:37 GMT\"0x8D864C6DE6E6B78\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:27:37 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharebd1a12ddTue, + 29 Sep 2020 22:40:54 GMT\"0x8D864C8B9D886E7\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:40:54 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest1bd1a12ddTue, + 29 Sep 2020 22:34:36 GMT\"0x8D864C7D8628CD4\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:34:36 GMT$account-encryption-keyfalsetest2bd1a12ddTue, + 29 Sep 2020 22:38:12 GMT\"0x8D864C858E9FC21\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:38:12 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest50ad1060Tue, + 29 Sep 2020 22:31:15 GMT\"0x8D864C760543D56\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:31:14 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalse" + headers: + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:54 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + vary: Origin + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/?include=&comp=list +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 777c966a-031c-4494-83aa-d0ddb074f2dc + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharebd1a12dd?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Tue, 29 Sep 2020 22:40:54 GMT + etag: '"0x8D864C8B9D886E7"' + last-modified: Tue, 29 Sep 2020 22:40:54 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-time: '0' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/sharebd1a12dd?comp=lease&restype=share +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/?include=snapshots&comp=list + response: + body: + string: "\uFEFFshare1816f1171Fri, + 11 Sep 2020 00:43:37 GMT\"0x8D855EBB87CFF33\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:43:37 GMT$account-encryption-keyfalseshare182b3117dFri, + 11 Sep 2020 00:44:44 GMT\"0x8D855EBE0710239\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:44:44 GMT$account-encryption-keyfalseshare336d1532Fri, + 11 Sep 2020 00:02:03 GMT\"0x8D855E5EA1BA89C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare50ad1060Tue, + 29 Sep 2020 22:27:37 GMT\"0x8D864C6DE6E6B78\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:27:37 GMT$account-encryption-keyfalseshare602310dcThu, + 10 Sep 2020 23:45:57 GMT\"0x8D855E3AA5BA817\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:45:57 GMT$account-encryption-keyfalseshare801b1156Thu, + 10 Sep 2020 23:48:33 GMT\"0x8D855E4070545FC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:33 GMT$account-encryption-keyfalsesharea7a1477Thu, + 10 Sep 2020 23:48:04 GMT\"0x8D855E3F609C583\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f12020-09-28T14:03:31.0000000ZMon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120$account-encryption-keyfalseshareba3e12f1Mon, + 28 Sep 2020 14:03:31 GMT\"0x8D863B748689793\"lockedleasedinfinite5120TransactionOptimizedMon, + 28 Sep 2020 14:03:31 GMT$account-encryption-keyfalsesharebd1a12ddTue, + 29 Sep 2020 22:40:54 GMT\"0x8D864C8B9D886E7\"unlockedavailable5120TransactionOptimizedTue, + 29 Sep 2020 22:40:54 GMT$account-encryption-keyfalsesharec80148eFri, + 11 Sep 2020 00:25:51 GMT\"0x8D855E93D722BB0\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:03:40 GMT$account-encryption-keyfalsesharecb2f1317Fri, + 11 Sep 2020 00:59:09 GMT\"0x8D855EDE422992F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:59:09 GMT$account-encryption-keyfalsesharee121138eFri, + 11 Sep 2020 00:00:54 GMT\"0x8D855E5C0C0BD1C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 00:00:53 GMT$account-encryption-keyfalsesharee52d0d77Thu, + 10 Sep 2020 23:47:27 GMT\"0x8D855E3DFBB5CB3\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 23:47:20 GMT$account-encryption-keyfalsesharerestorecb2f1317Thu, + 10 Sep 2020 22:44:32 GMT\"0x8D855DB159313DC\"lockedleasedinfinite5120TransactionOptimizedThu, + 10 Sep 2020 22:44:32 GMT$account-encryption-keyfalsesharesamples5Tue, + 15 Sep 2020 19:39:56 GMT\"0x8D859AF1FEB001F\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:39:55 GMT$account-encryption-keyfalsesharesamples6Tue, + 15 Sep 2020 19:43:57 GMT\"0x8D859AFAFBA3E88\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:43:57 GMT$account-encryption-keyfalsesharesamples7Tue, + 15 Sep 2020 19:44:49 GMT\"0x8D859AFCEB7CC2D\"lockedleasedinfinite5120TransactionOptimizedTue, + 15 Sep 2020 19:44:49 GMT$account-encryption-keyfalsetest-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7Wed, + 05 Aug 2020 19:06:51 GMT\"0x8D83972B5D1302D\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:51 GMT$account-encryption-keyfalsetest-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31Wed, + 05 Aug 2020 19:06:49 GMT\"0x8D83972B5025718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:49 GMT$account-encryption-keyfalsetest-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3aWed, + 05 Aug 2020 17:24:15 GMT\"0x8D8396460C3E165\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:15 GMT$account-encryption-keyfalsetest-share-26ae488a-f23e-4b65-aa5b-f273d6179074Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B592F011\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-49d22d21-4363-478e-8f26-1357ef6bd183Wed, + 05 Aug 2020 17:24:21 GMT\"0x8D8396464063943\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:21 GMT$account-encryption-keyfalsetest-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680Wed, + 05 Aug 2020 17:24:17 GMT\"0x8D8396461D987E1\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604Wed, + 05 Aug 2020 17:24:19 GMT\"0x8D83964633A2718\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:19 GMT$account-encryption-keyfalsetest-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52Wed, + 05 Aug 2020 19:06:50 GMT\"0x8D83972B538E3FD\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 19:06:50 GMT$account-encryption-keyfalsetest-share-8903864e-96ec-44f5-8912-837a9f23cbb5Wed, + 05 Aug 2020 00:04:00 GMT\"0x8D838D30E563856\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 00:04:00 GMT$account-encryption-keyfalsetest-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67aWed, + 05 Aug 2020 17:24:18 GMT\"0x8D8396462815131\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-d5852df4-944a-48b9-8552-eea5bfd94b6bWed, + 05 Aug 2020 17:24:20 GMT\"0x8D8396463BD465A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:20 GMT$account-encryption-keyfalsetest-share-fa7d1a1f-d065-4d58-bb12-a59f22106473Wed, + 05 Aug 2020 17:24:18 GMT\"0x8D839646251B45A\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:18 GMT$account-encryption-keyfalsetest-share-fcc35a78-e231-4233-a311-d48ee9bb2df7Wed, + 05 Aug 2020 17:24:16 GMT\"0x8D83964610EBC77\"lockedleasedinfinite5120TransactionOptimizedWed, + 05 Aug 2020 17:24:16 GMT$account-encryption-keyfalsetest16185160bFri, + 11 Sep 2020 13:51:30 GMT\"0x8D85659C98711F1\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:51:30 GMT$account-encryption-keyfalsetest1bd1a12ddTue, + 29 Sep 2020 22:34:36 GMT\"0x8D864C7D8628CD4\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:34:36 GMT$account-encryption-keyfalsetest2bd1a12ddTue, + 29 Sep 2020 22:38:12 GMT\"0x8D864C858E9FC21\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:38:12 GMT$account-encryption-keyfalsetest403e0ff4Fri, + 11 Sep 2020 13:48:01 GMT\"0x8D856594D05BB2E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:01 GMT$account-encryption-keyfalsetest49161594Fri, + 11 Sep 2020 13:44:29 GMT\"0x8D85658CEB83E6D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:44:29 GMT$account-encryption-keyfalsetest50ad1060Tue, + 29 Sep 2020 22:31:15 GMT\"0x8D864C760543D56\"lockedleasedinfinite5120TransactionOptimizedTue, + 29 Sep 2020 22:31:14 GMT$account-encryption-keyfalsetest600515ffFri, + 11 Sep 2020 13:52:29 GMT\"0x8D85659ECC7BFF5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:52:29 GMT$account-encryption-keyfalsetest602310dcFri, + 11 Sep 2020 01:46:55 GMT\"0x8D855F490678FD9\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:46:55 GMT$account-encryption-keyfalsetest6185160bFri, + 11 Sep 2020 13:50:04 GMT\"0x8D85659960A4A9F\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:50:03 GMT$account-encryption-keyfalsetest801b1156Fri, + 11 Sep 2020 01:43:39 GMT\"0x8D855F41B7485A5\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:39 GMT$account-encryption-keyfalsetest816f1171Fri, + 11 Sep 2020 01:44:03 GMT\"0x8D855F429A8569E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:03 GMT$account-encryption-keyfalsetest82b3117dFri, + 11 Sep 2020 01:44:09 GMT\"0x8D855F42D9DFD7A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:44:09 GMT$account-encryption-keyfalsetest8fc916f4Fri, + 11 Sep 2020 13:48:35 GMT\"0x8D8565961566D0E\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:48:35 GMT$account-encryption-keyfalsetesta7a1477Fri, + 11 Sep 2020 01:42:27 GMT\"0x8D855F3F0B3CE4D\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:27 GMT$account-encryption-keyfalsetestcb2f1317Fri, + 11 Sep 2020 01:35:53 GMT\"0x8D855F305C89D8C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:35:53 GMT$account-encryption-keyfalsetestcf0d1359Fri, + 11 Sep 2020 13:46:53 GMT\"0x8D856592431D1AA\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:46:53 GMT$account-encryption-keyfalsetestdfa11382Fri, + 11 Sep 2020 01:43:51 GMT\"0x8D855F422BEA24C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:51 GMT$account-encryption-keyfalseteste121138eFri, + 11 Sep 2020 01:43:45 GMT\"0x8D855F41F52C3FB\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:43:45 GMT$account-encryption-keyfalseteste52d0d77Fri, + 11 Sep 2020 01:42:19 GMT\"0x8D855F3EC19CB5C\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 01:42:19 GMT$account-encryption-keyfalsetestf3ff13d3Fri, + 11 Sep 2020 13:49:19 GMT\"0x8D856597B1CC145\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:49:19 GMT$account-encryption-keyfalsetestf55313eeFri, + 11 Sep 2020 13:53:58 GMT\"0x8D8565A21BA7745\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:53:58 GMT$account-encryption-keyfalsetestf69713faFri, + 11 Sep 2020 13:54:36 GMT\"0x8D8565A3813B91A\"lockedleasedinfinite5120TransactionOptimizedFri, + 11 Sep 2020 13:54:35 GMT$account-encryption-keyfalse" + headers: + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:54 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + vary: Origin + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/?include=snapshots&comp=list +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290f8-101a-0038-27b1-967e02000000\nTime:2020-09-29T22:40:55.6303715Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share1816f1171?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290f9-101a-0038-28b1-967e02000000\nTime:2020-09-29T22:40:55.6994205Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share182b3117d?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share336d1532?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290fa-101a-0038-29b1-967e02000000\nTime:2020-09-29T22:40:55.7694695Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share336d1532?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share50ad1060?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290fb-101a-0038-2ab1-967e02000000\nTime:2020-09-29T22:40:55.8345153Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share50ad1060?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:55 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290fc-101a-0038-2bb1-967e02000000\nTime:2020-09-29T22:40:55.9115696Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share602310dc?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290fd-101a-0038-2cb1-967e02000000\nTime:2020-09-29T22:40:55.9786169Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/share801b1156?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b6290fe-101a-0038-2db1-967e02000000\nTime:2020-09-29T22:40:56.0476655Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharea7a1477?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:6b629100-101a-0038-2eb1-967e02000000\nTime:2020-09-29T22:40:56.1147128Z" + headers: + content-length: '391' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: DeleteShareWhenSnapshotLeased + x-ms-version: '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. + url: https://seanmcccanary3.file.core.windows.net/shareba3e12f1?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: "\uFEFFDeleteShareWhenSnapshotLeasedUnable + to delete share because one or more share snapshots have active leases. Release + the share snapshot leases or delete the share with the include-leased parameter + for x-ms-delete-snapshots.\nRequestId:6b629102-101a-0038-30b1-967e02000000\nTime:2020-09-29T22:40:56.1817600Z" + headers: + content-length: '391' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: DeleteShareWhenSnapshotLeased + x-ms-version: '2020-02-10' + status: + code: 409 + message: Unable to delete share because one or more share snapshots have active + leases. Release the share snapshot leases or delete the share with the include-leased + parameter for x-ms-delete-snapshots. + url: https://seanmcccanary3.file.core.windows.net/shareba3e12f1?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharebd1a12dd?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 202 + message: Accepted + url: https://seanmcccanary3.file.core.windows.net/sharebd1a12dd?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharec80148e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629105-101a-0038-33b1-967e02000000\nTime:2020-09-29T22:40:56.3168552Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:55 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharec80148e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629106-101a-0038-34b1-967e02000000\nTime:2020-09-29T22:40:56.3859043Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharecb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629108-101a-0038-36b1-967e02000000\nTime:2020-09-29T22:40:56.4529516Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharee121138e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629109-101a-0038-37b1-967e02000000\nTime:2020-09-29T22:40:56.5240012Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharee52d0d77?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62910b-101a-0038-38b1-967e02000000\nTime:2020-09-29T22:40:56.5910489Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharerestorecb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62910c-101a-0038-39b1-967e02000000\nTime:2020-09-29T22:40:56.6590968Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples5?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples6?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62910d-101a-0038-3ab1-967e02000000\nTime:2020-09-29T22:40:56.7281451Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples6?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharesamples7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62910e-101a-0038-3bb1-967e02000000\nTime:2020-09-29T22:40:56.7991956Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/sharesamples7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:56 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62910f-101a-0038-3cb1-967e02000000\nTime:2020-09-29T22:40:56.8722466Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-1200db32-dbe6-47c3-8fdc-badfe55a17f7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629110-101a-0038-3db1-967e02000000\nTime:2020-09-29T22:40:56.9422960Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-1c02c6e2-910b-4118-9cc7-3e906d0f6a31?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629111-101a-0038-3eb1-967e02000000\nTime:2020-09-29T22:40:57.0123462Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-22baebbe-ef2b-4735-8a37-d5cfb01e5b3a?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629112-101a-0038-3fb1-967e02000000\nTime:2020-09-29T22:40:57.0813936Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-26ae488a-f23e-4b65-aa5b-f273d6179074?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629113-101a-0038-40b1-967e02000000\nTime:2020-09-29T22:40:57.1514425Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-49d22d21-4363-478e-8f26-1357ef6bd183?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629116-101a-0038-42b1-967e02000000\nTime:2020-09-29T22:40:57.2204907Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-56abb3eb-0fe3-47ec-802c-288e9eb1c680?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62911b-101a-0038-47b1-967e02000000\nTime:2020-09-29T22:40:57.2915408Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-6ddb1225-7c7a-40c8-9c79-0ade2aedc604?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62911c-101a-0038-48b1-967e02000000\nTime:2020-09-29T22:40:57.3625900Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:56 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-82dc1679-40d4-49f1-adfa-bb6a853a0b52?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62911e-101a-0038-4ab1-967e02000000\nTime:2020-09-29T22:40:57.4316386Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-8903864e-96ec-44f5-8912-837a9f23cbb5?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62911f-101a-0038-4bb1-967e02000000\nTime:2020-09-29T22:40:57.5026878Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-bc25d6be-e54a-4d6f-9c39-9003c3c9e67a?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629120-101a-0038-4cb1-967e02000000\nTime:2020-09-29T22:40:57.5727367Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-d5852df4-944a-48b9-8552-eea5bfd94b6b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629121-101a-0038-4db1-967e02000000\nTime:2020-09-29T22:40:57.6377821Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-fa7d1a1f-d065-4d58-bb12-a59f22106473?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629122-101a-0038-4eb1-967e02000000\nTime:2020-09-29T22:40:57.7098324Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test-share-fcc35a78-e231-4233-a311-d48ee9bb2df7?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629123-101a-0038-4fb1-967e02000000\nTime:2020-09-29T22:40:57.7798814Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test16185160b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test1bd1a12dd?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629124-101a-0038-50b1-967e02000000\nTime:2020-09-29T22:40:57.8499303Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test1bd1a12dd?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:57 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test2bd1a12dd?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629125-101a-0038-51b1-967e02000000\nTime:2020-09-29T22:40:57.9209803Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test2bd1a12dd?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test403e0ff4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629126-101a-0038-52b1-967e02000000\nTime:2020-09-29T22:40:57.9920295Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test403e0ff4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test49161594?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629127-101a-0038-53b1-967e02000000\nTime:2020-09-29T22:40:58.1001055Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test49161594?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test50ad1060?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629129-101a-0038-55b1-967e02000000\nTime:2020-09-29T22:40:58.1711555Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test50ad1060?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test600515ff?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62912b-101a-0038-56b1-967e02000000\nTime:2020-09-29T22:40:58.2462089Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test600515ff?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test602310dc?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62912c-101a-0038-57b1-967e02000000\nTime:2020-09-29T22:40:58.3182592Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:57 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test602310dc?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test6185160b?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62912d-101a-0038-58b1-967e02000000\nTime:2020-09-29T22:40:58.3933121Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test6185160b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test801b1156?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62912e-101a-0038-59b1-967e02000000\nTime:2020-09-29T22:40:58.4663636Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test801b1156?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test816f1171?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629130-101a-0038-5bb1-967e02000000\nTime:2020-09-29T22:40:58.5434179Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test816f1171?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629131-101a-0038-5cb1-967e02000000\nTime:2020-09-29T22:40:58.6174701Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test82b3117d?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/test8fc916f4?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629132-101a-0038-5db1-967e02000000\nTime:2020-09-29T22:40:58.6895208Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/test8fc916f4?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629135-101a-0038-5eb1-967e02000000\nTime:2020-09-29T22:40:58.7645737Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testa7a1477?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcb2f1317?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629137-101a-0038-60b1-967e02000000\nTime:2020-09-29T22:40:58.8406277Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testcb2f1317?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:58 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testcf0d1359?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629138-101a-0038-61b1-967e02000000\nTime:2020-09-29T22:40:58.9156802Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testcf0d1359?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testdfa11382?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629139-101a-0038-62b1-967e02000000\nTime:2020-09-29T22:40:58.9917338Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testdfa11382?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste121138e?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b62913b-101a-0038-63b1-967e02000000\nTime:2020-09-29T22:40:59.0737916Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/teste121138e?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629142-101a-0038-69b1-967e02000000\nTime:2020-09-29T22:40:59.1398390Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/teste52d0d77?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf3ff13d3?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629149-101a-0038-70b1-967e02000000\nTime:2020-09-29T22:40:59.2148911Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf3ff13d3?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf55313ee?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629151-101a-0038-78b1-967e02000000\nTime:2020-09-29T22:40:59.2899444Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf55313ee?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 29 Sep 2020 22:40:59 GMT + x-ms-delete-snapshots: + - include + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:6b629158-101a-0038-7fb1-967e02000000\nTime:2020-09-29T22:40:59.3720018Z" + headers: + content-length: '273' + content-type: application/xml + date: Tue, 29 Sep 2020 22:40:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: LeaseIdMissing + x-ms-version: '2020-02-10' + status: + code: 412 + message: There is currently a lease on the file share and no lease ID was specified + in the request. + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_acl_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_acl_with_lease_id.yaml new file mode 100644 index 000000000000..66c3947fb0b1 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_acl_with_lease_id.yaml @@ -0,0 +1,121 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:54:34 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:54:34 GMT + etag: '"0x8D8565A37CEB610"' + last-modified: Fri, 11 Sep 2020 13:54:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:54:35 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - d08a53dd-18f6-405f-bbc7-b2de9373eb87 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf69713fa?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:54:35 GMT + etag: '"0x8D8565A37CEB610"' + last-modified: Fri, 11 Sep 2020 13:54:35 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: d08a53dd-18f6-405f-bbc7-b2de9373eb87 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?comp=lease&restype=share +- request: + body: ' + + testid2020-09-11T13:54:35Z2020-09-11T14:54:35Zr' + headers: + Content-Length: + - '257' + Content-Type: + - application/xml; charset=utf-8 + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:54:35 GMT + x-ms-lease-id: + - d08a53dd-18f6-405f-bbc7-b2de9373eb87 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:54:35 GMT + etag: '"0x8D8565A3813B91A"' + last-modified: Fri, 11 Sep 2020 13:54:36 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share&comp=acl +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:54:35 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/testf69713fa?restype=share&comp=acl + response: + body: + string: "\uFEFFtestid2020-09-11T13:54:35.0000000Z2020-09-11T14:54:35.0000000Zr" + headers: + access-control-allow-origin: '*' + content-type: application/xml + date: Fri, 11 Sep 2020 13:54:35 GMT + etag: '"0x8D8565A3813B91A"' + last-modified: Fri, 11 Sep 2020 13:54:36 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share&comp=acl +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_metadata_with_lease_id.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_metadata_with_lease_id.yaml new file mode 100644 index 000000000000..bbf7bbba67d2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_set_share_metadata_with_lease_id.yaml @@ -0,0 +1,127 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:51:29 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:51:29 GMT + etag: '"0x8D85659C9470CF6"' + last-modified: Fri, 11 Sep 2020 13:51:30 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test16185160b?restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:51:29 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - a9ff1661-fd93-42ed-95b5-bbc9deb0f45c + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test16185160b?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:51:29 GMT + etag: '"0x8D85659C9470CF6"' + last-modified: Fri, 11 Sep 2020 13:51:30 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: a9ff1661-fd93-42ed-95b5-bbc9deb0f45c + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/test16185160b?comp=lease&restype=share +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:51:30 GMT + x-ms-lease-id: + - a9ff1661-fd93-42ed-95b5-bbc9deb0f45c + x-ms-meta-hello: + - world + x-ms-meta-number: + - '43' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/test16185160b?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 11 Sep 2020 13:51:29 GMT + etag: '"0x8D85659C98711F1"' + last-modified: Fri, 11 Sep 2020 13:51:30 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test16185160b?restype=share&comp=metadata +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:51:30 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/test16185160b?restype=share + response: + body: + string: '' + headers: + access-control-allow-origin: '*' + access-control-expose-headers: x-ms-meta-hello,x-ms-meta-number + content-length: '0' + date: Fri, 11 Sep 2020 13:51:29 GMT + etag: '"0x8D85659C98711F1"' + last-modified: Fri, 11 Sep 2020 13:51:30 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: TransactionOptimized + x-ms-access-tier-change-time: Fri, 11 Sep 2020 13:51:30 GMT + x-ms-has-immutability-policy: 'false' + x-ms-has-legal-hold: 'false' + x-ms-lease-duration: infinite + x-ms-lease-state: leased + x-ms-lease-status: locked + x-ms-meta-hello: world + x-ms-meta-number: '43' + x-ms-share-quota: '5120' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/test16185160b?restype=share +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/test_file.py b/sdk/storage/azure-storage-file-share/tests/test_file.py index e3961edcb548..08e1cf91c69e 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_file.py +++ b/sdk/storage/azure-storage-file-share/tests/test_file.py @@ -591,6 +591,17 @@ def test_set_file_metadata_with_upper_case(self, resource_group, location, stora self.assertEqual(md['UP'], 'UPval') self.assertFalse('up' in md) + @GlobalStorageAccountPreparer() + def test_break_lease_with_broken_period_fails(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + file_client = self._create_file() + lease = file_client.acquire_lease() + + # Assert + self.assertIsNotNone(lease) + with self.assertRaises(TypeError): + lease.break_lease(lease_break_period=5) + @GlobalStorageAccountPreparer() def test_set_file_metadata_with_broken_lease(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) diff --git a/sdk/storage/azure-storage-file-share/tests/test_file_async.py b/sdk/storage/azure-storage-file-share/tests/test_file_async.py index cb6ad5986a8b..3ea6e3d0d082 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_file_async.py +++ b/sdk/storage/azure-storage-file-share/tests/test_file_async.py @@ -643,6 +643,19 @@ async def test_set_file_metadata_with_upper_case_async(self, resource_group, loc self.assertEqual(md['UP'], 'UPval') self.assertFalse('up' in md) + @pytest.mark.live_test_only + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_break_lease_with_broken_period_fails(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + file_client = await self._create_file(storage_account, storage_account_key) + lease = await file_client.acquire_lease() + + # Assert + self.assertIsNotNone(lease) + with self.assertRaises(TypeError): + await lease.break_lease(lease_break_period=5) + @pytest.mark.live_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test diff --git a/sdk/storage/azure-storage-file-share/tests/test_share.py b/sdk/storage/azure-storage-file-share/tests/test_share.py index c304e7e10a4d..990bb58fb686 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -184,6 +184,239 @@ def test_undelete_share(self, resource_group, location, storage_account, storage props = restored_share_client.get_share_properties() self.assertIsNotNone(props) + @GlobalStorageAccountPreparer() + def test_lease_share_acquire_and_release(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + # Act + lease = share_client.acquire_lease() + lease.release() + # Assert + + @GlobalStorageAccountPreparer() + def test_acquire_lease_on_sharesnapshot(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share = self._get_share_reference("testshare1") + + # Act + share.create_share() + snapshot = share.create_snapshot() + + snapshot_client = ShareClient( + self.account_url(storage_account, "file"), + share_name=share.share_name, + snapshot=snapshot, + credential=storage_account_key + ) + + share_lease = share.acquire_lease() + share_snapshot_lease = snapshot_client.acquire_lease() + + # Assert + with self.assertRaises(HttpResponseError): + share.get_share_properties(lease=share_snapshot_lease) + + with self.assertRaises(HttpResponseError): + snapshot_client.get_share_properties(lease=share_lease) + + self.assertIsNotNone(snapshot['snapshot']) + self.assertIsNotNone(snapshot['etag']) + self.assertIsNotNone(snapshot['last_modified']) + self.assertIsNotNone(share_lease) + self.assertIsNotNone(share_snapshot_lease) + self.assertNotEqual(share_lease, share_snapshot_lease) + + share_snapshot_lease.release() + share_lease.release() + self._delete_shares(share.share_name) + + @GlobalStorageAccountPreparer() + def test_lease_share_renew(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + lease = share_client.acquire_lease(lease_duration=15) + self.sleep(10) + lease_id_start = lease.id + + # Act + lease.renew() + + # Assert + self.assertEqual(lease.id, lease_id_start) + self.sleep(5) + with self.assertRaises(HttpResponseError): + share_client.delete_share() + self.sleep(10) + share_client.delete_share() + + @GlobalStorageAccountPreparer() + def test_lease_share_with_duration(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + + # Act + lease = share_client.acquire_lease(lease_duration=15) + + # Assert + with self.assertRaises(HttpResponseError): + share_client.acquire_lease() + self.sleep(15) + share_client.acquire_lease() + + @GlobalStorageAccountPreparer() + def test_lease_share_twice(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + + # Act + lease = share_client.acquire_lease(lease_duration=15) + + # Assert + lease2 = share_client.acquire_lease(lease_id=lease.id) + self.assertEqual(lease.id, lease2.id) + + @GlobalStorageAccountPreparer() + def test_lease_share_with_proposed_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + + # Act + proposed_lease_id = '55e97f64-73e8-4390-838d-d9e84a374321' + lease = share_client.acquire_lease(lease_id=proposed_lease_id) + + # Assert + self.assertEqual(proposed_lease_id, lease.id) + + @GlobalStorageAccountPreparer() + def test_lease_share_change_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + + # Act + lease_id = '29e0b239-ecda-4f69-bfa3-95f6af91464c' + lease = share_client.acquire_lease() + lease_id1 = lease.id + lease.change(proposed_lease_id=lease_id) + lease.renew() + lease_id2 = lease.id + + # Assert + self.assertIsNotNone(lease_id1) + self.assertIsNotNone(lease_id2) + self.assertNotEqual(lease_id1, lease_id) + self.assertEqual(lease_id2, lease_id) + + @GlobalStorageAccountPreparer() + def test_set_share_metadata_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + metadata = {'hello': 'world', 'number': '43'} + lease_id = share_client.acquire_lease() + + # Act + share_client.set_share_metadata(metadata, lease=lease_id) + + # Assert + md = share_client.get_share_properties().metadata + self.assertDictEqual(md, metadata) + + @GlobalStorageAccountPreparer() + def test_get_share_metadata_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + metadata = {'hello': 'world', 'number': '43'} + share_client.set_share_metadata(metadata) + lease_id = share_client.acquire_lease() + + # Act + md = share_client.get_share_properties(lease=lease_id).metadata + + # Assert + self.assertDictEqual(md, metadata) + + @GlobalStorageAccountPreparer() + def test_get_share_properties_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + metadata = {'hello': 'world', 'number': '43'} + share_client.set_share_metadata(metadata) + lease_id = share_client.acquire_lease() + + # Act + props = share_client.get_share_properties(lease=lease_id) + lease_id.break_lease() + + # Assert + self.assertIsNotNone(props) + self.assertDictEqual(props.metadata, metadata) + self.assertEqual(props.lease.duration, 'infinite') + self.assertEqual(props.lease.state, 'leased') + self.assertEqual(props.lease.status, 'locked') + + @GlobalStorageAccountPreparer() + def test_get_share_acl_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + lease_id = share_client.acquire_lease() + + # Act + acl = share_client.get_share_access_policy(lease=lease_id) + + # Assert + self.assertIsNotNone(acl) + self.assertIsNone(acl.get('public_access')) + + @GlobalStorageAccountPreparer() + def test_set_share_acl_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + lease_id = share_client.acquire_lease() + + # Act + access_policy = AccessPolicy(permission=ShareSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + + share_client.set_share_access_policy(signed_identifiers, lease=lease_id) + + # Assert + acl = share_client.get_share_access_policy() + self.assertIsNotNone(acl) + self.assertIsNone(acl.get('public_access')) + + @GlobalStorageAccountPreparer() + def test_lease_share_break_period(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + + # Act + lease = share_client.acquire_lease(lease_duration=15) + + # Assert + lease.break_lease(lease_break_period=5) + self.sleep(6) + with self.assertRaises(HttpResponseError): + share_client.delete_share(lease=lease) + + @GlobalStorageAccountPreparer() + def test_delete_share_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share('test') + lease = share_client.acquire_lease(lease_duration=15) + + # Assert + with self.assertRaises(HttpResponseError): + share_client.delete_share() + + # Act + deleted = share_client.delete_share(lease=lease) + + # Assert + self.assertIsNone(deleted) + with self.assertRaises(ResourceNotFoundError): + share_client.get_share_properties() + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_restore_to_existing_share(self, resource_group, location, storage_account, storage_account_key): @@ -386,6 +619,25 @@ def test_list_shares_no_options_for_premium_account(self, resource_group, locati self.assertIsNotNone(shares[0].next_allowed_quota_downgrade_time) self._delete_shares() + @GlobalStorageAccountPreparer() + def test_list_shares_leased_share(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share = self._create_share("test1") + + # Act + lease = share.acquire_lease() + resp = list(self.fsc.list_shares()) + + # Assert + self.assertIsNotNone(resp) + self.assertGreaterEqual(len(resp), 1) + self.assertIsNotNone(resp[0]) + self.assertEqual(resp[0].lease.duration, 'infinite') + self.assertEqual(resp[0].lease.status, 'locked') + self.assertEqual(resp[0].lease.state, 'leased') + lease.release() + self._delete_shares() + @GlobalStorageAccountPreparer() def test_list_shares_with_snapshot(self, resource_group, location, storage_account, storage_account_key): self._setup(storage_account, storage_account_key) diff --git a/sdk/storage/azure-storage-file-share/tests/test_share_async.py b/sdk/storage/azure-storage-file-share/tests/test_share_async.py index 671575a03ca9..f87ad5fab041 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share_async.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share_async.py @@ -201,6 +201,255 @@ async def test_undelete_share(self, resource_group, location, storage_account, s self.assertIsNotNone(props) break + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_acquire_and_release(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + # Act + lease = await share_client.acquire_lease() + await lease.release() + # Assert + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_acquire_lease_on_sharesnapshot(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share = self._get_share_reference() + + # Act + await share.create_share() + snapshot = await share.create_snapshot() + + snapshot_client = ShareClient( + self.account_url(storage_account, "file"), + share_name=share.share_name, + snapshot=snapshot, + credential=storage_account_key + ) + + share_lease = await share.acquire_lease() + share_snapshot_lease = await snapshot_client.acquire_lease() + + # Assert + with self.assertRaises(HttpResponseError): + await share.get_share_properties(lease=share_snapshot_lease) + + with self.assertRaises(HttpResponseError): + await snapshot_client.get_share_properties(lease=share_lease) + + self.assertIsNotNone(snapshot['snapshot']) + self.assertIsNotNone(snapshot['etag']) + self.assertIsNotNone(snapshot['last_modified']) + self.assertIsNotNone(share_lease) + self.assertIsNotNone(share_snapshot_lease) + self.assertNotEqual(share_lease, share_snapshot_lease) + + await share_snapshot_lease.release() + await share_lease.release() + await self._delete_shares(share.share_name) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_renew(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + lease = await share_client.acquire_lease(lease_duration=15) + self.sleep(10) + lease_id_start = lease.id + + # Act + await lease.renew() + + # Assert + self.assertEqual(lease.id, lease_id_start) + self.sleep(5) + with self.assertRaises(HttpResponseError): + await share_client.delete_share() + self.sleep(10) + await share_client.delete_share() + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_with_duration(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + + # Act + lease = await share_client.acquire_lease(lease_duration=15) + + # Assert + with self.assertRaises(HttpResponseError): + await share_client.acquire_lease() + self.sleep(15) + await share_client.acquire_lease() + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_twice(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + + # Act + lease = await share_client.acquire_lease(lease_duration=15) + + # Assert + lease2 = await share_client.acquire_lease(lease_id=lease.id) + self.assertEqual(lease.id, lease2.id) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_with_proposed_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + + # Act + proposed_lease_id = '55e97f64-73e8-4390-838d-d9e84a374321' + lease = await share_client.acquire_lease(lease_id=proposed_lease_id) + + # Assert + self.assertEqual(proposed_lease_id, lease.id) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_change_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + + # Act + lease_id = '29e0b239-ecda-4f69-bfa3-95f6af91464c' + lease = await share_client.acquire_lease() + lease_id1 = lease.id + await lease.change(proposed_lease_id=lease_id) + await lease.renew() + lease_id2 = lease.id + + # Assert + self.assertIsNotNone(lease_id1) + self.assertIsNotNone(lease_id2) + self.assertNotEqual(lease_id1, lease_id) + self.assertEqual(lease_id2, lease_id) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_set_share_metadata_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test1') + metadata = {'hello': 'world', 'number': '43'} + lease_id = await share_client.acquire_lease() + + # Act + await share_client.set_share_metadata(metadata, lease=lease_id) + + # Assert + props = await share_client.get_share_properties() + md = props.metadata + self.assertDictEqual(md, metadata) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_get_share_metadata_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + metadata = {'hello': 'world', 'number': '43'} + await share_client.set_share_metadata(metadata) + lease_id = await share_client.acquire_lease() + + # Act + props = await share_client.get_share_properties(lease=lease_id) + md = props.metadata + + # Assert + self.assertDictEqual(md, metadata) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_get_share_properties_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + metadata = {'hello': 'world', 'number': '43'} + await share_client.set_share_metadata(metadata) + lease_id = await share_client.acquire_lease() + + # Act + props = await share_client.get_share_properties(lease=lease_id) + await lease_id.break_lease() + + # Assert + self.assertIsNotNone(props) + self.assertDictEqual(props.metadata, metadata) + self.assertEqual(props.lease.duration, 'infinite') + self.assertEqual(props.lease.state, 'leased') + self.assertEqual(props.lease.status, 'locked') + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_get_share_acl_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + lease_id = await share_client.acquire_lease() + + # Act + acl = await share_client.get_share_access_policy(lease=lease_id) + + # Assert + self.assertIsNotNone(acl) + self.assertIsNone(acl.get('public_access')) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_set_share_acl_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + lease_id = await share_client.acquire_lease() + + # Act + access_policy = AccessPolicy(permission=ShareSasPermissions(read=True), + expiry=datetime.utcnow() + timedelta(hours=1), + start=datetime.utcnow()) + signed_identifiers = {'testid': access_policy} + + await share_client.set_share_access_policy(signed_identifiers, lease=lease_id) + + # Assert + acl = await share_client.get_share_access_policy() + self.assertIsNotNone(acl) + self.assertIsNone(acl.get('public_access')) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_lease_share_break_period(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + + # Act + lease = await share_client.acquire_lease(lease_duration=15) + + # Assert + await lease.break_lease(lease_break_period=5) + self.sleep(6) + with self.assertRaises(HttpResponseError): + await share_client.delete_share(lease=lease) + + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_delete_share_with_lease_id(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = await self._create_share('test') + lease = await share_client.acquire_lease(lease_duration=15) + + # Assert + with self.assertRaises(HttpResponseError): + await share_client.delete_share() + + # Act + deleted = await share_client.delete_share(lease=lease) + + # Assert + self.assertIsNone(deleted) + with self.assertRaises(ResourceNotFoundError): + await share_client.get_share_properties() + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test @@ -425,6 +674,28 @@ async def test_list_shares_no_options_for_premium_account_async(self, resource_g self.assertIsNotNone(shares[0].next_allowed_quota_downgrade_time) await self._delete_shares(share.share_name) + @GlobalStorageAccountPreparer() + @AsyncStorageTestCase.await_prepared_test + async def test_list_shares_leased_share(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share = await self._create_share() + + # Act + lease = await share.acquire_lease() + resp = [] + async for s in self.fsc.list_shares(): + resp.append(s) + + # Assert + self.assertIsNotNone(resp) + self.assertGreaterEqual(len(resp), 1) + self.assertIsNotNone(resp[0]) + self.assertEqual(resp[0].lease.duration, 'infinite') + self.assertEqual(resp[0].lease.status, 'locked') + self.assertEqual(resp[0].lease.state, 'leased') + await lease.release() + await self._delete_shares() + @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_list_shares_with_snapshot_async(self, resource_group, location, storage_account, storage_account_key):