From 4023b8c45b67544d720ee60c6537860663ab0639 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 3 Sep 2020 22:41:43 -0700 Subject: [PATCH 01/41] added needed parameters for shares --- .../azure/storage/fileshare/_lease.py | 115 +++++++++++++++--- 1 file changed, 96 insertions(+), 19 deletions(-) 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..2ff9284c39a6 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 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 + if 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 @@ -61,17 +68,23 @@ def __exit__(self, *args): self.release() @distributed_trace - def acquire(self, **kwargs): + def acquire(self, lease_duration=-1, **kwargs): # type: (int, **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. + :param 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 @@ -82,7 +95,15 @@ def acquire(self, **kwargs): duration=-1, proposed_lease_id=self.id, cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.acquire_lease( + timeout=kwargs.pop('timeout', None), + duration=lease_duration, + sharesnapshot=self.snapshot, + proposed_lease_id=self.id, + cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) self.id = response.get('lease_id') # type: str @@ -90,16 +111,52 @@ 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. + :keyword str etag: + An ETag value, or the wildcard character (*). Used to check if the resource has changed, + and act according to the condition specified by the `match_condition` parameter. + :keyword ~azure.core.MatchConditions match_condition: + The match condition to use upon the etag. + :keyword str if_tags_match_condition + Specify a SQL where clause on blob tags to operate only on blob with a matching value. + eg. "\"tagname\"='my tag'" - 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.4.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. @@ -110,7 +167,14 @@ def release(self, **kwargs): lease_id=self.id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else 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 @@ -125,7 +189,7 @@ def change(self, proposed_lease_id, **kwargs): :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 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. @@ -137,7 +201,15 @@ def change(self, proposed_lease_id, **kwargs): proposed_lease_id=proposed_lease_id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.change_lease( + lease_id=self.id, + proposed_lease_id=proposed_lease_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 @@ -147,7 +219,7 @@ 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; + """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; @@ -164,6 +236,11 @@ def break_lease(self, **kwargs): response = self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.break_lease( + timeout=kwargs.pop('timeout', None), + sharesnapshot=self.snapshot, + cls=return_response_headers, **kwargs) except StorageErrorException as error: process_storage_error(error) From 89bd0b9eb2412b562f3266050df867b6d0c5e187 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 3 Sep 2020 22:53:26 -0700 Subject: [PATCH 02/41] added async methods --- .../storage/fileshare/aio/_lease_async.py | 102 +++++++++++++++--- 1 file changed, 87 insertions(+), 15 deletions(-) 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..6228d63d7bc9 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,12 +14,13 @@ from .._shared.response_handlers import return_response_headers, process_storage_error from .._generated.models import ( StorageErrorException) +from .._generated.operations import FileOperations 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. @@ -57,17 +58,23 @@ async def __aexit__(self, *args): await self.release() @distributed_trace_async - async def acquire(self, **kwargs): - # type: (int, Any) -> None + async def acquire(self, lease_duration=-1, **kwargs): + # type: (int, **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. + :param 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 @@ -78,7 +85,15 @@ async def acquire(self, **kwargs): duration=-1, proposed_lease_id=self.id, cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.acquire_lease( + timeout=kwargs.pop('timeout', None), + duration=lease_duration, + sharesnapshot=self.snapshot, + proposed_lease_id=self.id, + cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) self.id = response.get('lease_id') # type: str @@ -86,16 +101,52 @@ 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. + + :keyword str etag: + An ETag value, or the wildcard character (*). Used to check if the resource has changed, + and act according to the condition specified by the `match_condition` parameter. + :keyword ~azure.core.MatchConditions match_condition: + The match condition to use upon the etag. + :keyword str if_tags_match_condition + Specify a SQL where clause on blob tags to operate only on blob with a matching value. + eg. "\"tagname\"='my tag'" + .. versionadded:: 12.4.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 - 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. + @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. @@ -106,7 +157,14 @@ async def release(self, **kwargs): lease_id=self.id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else 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 @@ -121,7 +179,7 @@ async def change(self, proposed_lease_id, **kwargs): :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 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. @@ -133,7 +191,15 @@ async def change(self, proposed_lease_id, **kwargs): proposed_lease_id=proposed_lease_id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.change_lease( + lease_id=self.id, + proposed_lease_id=proposed_lease_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 @@ -143,7 +209,7 @@ 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; + """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; @@ -160,7 +226,13 @@ async def break_lease(self, **kwargs): response = await self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, + **kwargs) if isinstance(self._client, FileOperations) \ + else self._client.break_lease( + timeout=kwargs.pop('timeout', None), + sharesnapshot=self.snapshot, + cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore From b869c88ba70d18b3d1f99402acdf01e4d93879a5 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 3 Sep 2020 23:08:34 -0700 Subject: [PATCH 03/41] added more methods for interacting with the API --- .../azure/storage/fileshare/_file_client.py | 10 ++--- .../azure/storage/fileshare/_share_client.py | 36 ++++++++++++++++++ .../fileshare/aio/_share_client_async.py | 37 +++++++++++++++++++ 3 files changed, 78 insertions(+), 5 deletions(-) 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 3110a194a0c6..a6dede57c88f 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,12 +283,12 @@ 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_lease_on_file] + :end-before: [END acquire_lease_on_file] :language: python :dedent: 8 - :caption: Acquiring a lease on a blob. + :caption: Acquiring a lease on a file. """ lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore lease.acquire(**kwargs) 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..e1a5e34bfb57 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 @@ -33,6 +33,7 @@ from ._serialize import get_api_version 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,41 @@ 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 blob and returns a new lease. + + :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. + """ + lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore + lease.acquire(lease_duration, **kwargs) + return lease + @distributed_trace def create_share(self, **kwargs): # type: (Any) -> Dict[str, Any] 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..6273daeb1fe9 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 @@ -29,6 +29,8 @@ from .._share_client import ShareClient as ShareClientBase from ._directory_client_async import ShareDirectoryClient from ._file_client_async import ShareFileClient +from .._lease import ShareLeaseClient + if TYPE_CHECKING: from .._models import ShareProperties, AccessPolicy @@ -126,6 +128,41 @@ 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 blob and returns a new lease. + + :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. + """ + lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore + lease.acquire(lease_duration, **kwargs) + return lease + @distributed_trace_async async def create_share(self, **kwargs): # type: (Any) -> Dict[str, Any] From c82d692abdf964cc9d12372e914b4ac35f590f5f Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 10 Sep 2020 15:29:37 -0700 Subject: [PATCH 04/41] fixed small mistake with elif --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2ff9284c39a6..c84b084257eb 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 @@ -55,7 +55,7 @@ def __init__( if hasattr(client, 'file_name'): self._client = client._client.file # type: ignore # pylint: disable=protected-access self.snapshot = None - if hasattr(client, 'share_name'): + elif hasattr(client, 'share_name'): self._client = client._client.share self.snapshot = client.snapshot else: From 1df00f39b01db6272db506236873c8495b60c7e1 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 10 Sep 2020 16:56:19 -0700 Subject: [PATCH 05/41] added tests and access conditions --- .../azure/storage/fileshare/_share_client.py | 16 +- .../storage/fileshare/aio/_lease_async.py | 1 + ....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 ++++++++ .../tests/test_share.py | 99 +++++++++ 10 files changed, 1192 insertions(+), 1 deletion(-) 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 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 e1a5e34bfb57..5bf7ec6941ab 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,7 +30,7 @@ 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 @@ -402,6 +402,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: @@ -410,6 +411,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: @@ -436,12 +438,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) @@ -471,11 +475,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: @@ -507,6 +513,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)) @@ -515,6 +522,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) @@ -530,11 +538,13 @@ def get_share_access_policy(self, **kwargs): :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) @@ -560,6 +570,7 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): :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( @@ -577,6 +588,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) @@ -594,10 +606,12 @@ def get_share_stats(self, **kwargs): :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/_lease_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py index 6228d63d7bc9..4d883563435b 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 @@ -22,6 +22,7 @@ ShareFileClient = TypeVar("ShareFileClient") ShareClient = TypeVar("ShareClient") + class ShareLeaseClient(LeaseClientBase): """Creates a new ShareLeaseClient. 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..07a2bdd2f0c6 --- /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: + - Thu, 10 Sep 2020 22:44:09 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:44:31 GMT + etag: + - '"0x8D855DB159313DC"' + last-modified: + - Thu, 10 Sep 2020 22:44:32 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: + - Thu, 10 Sep 2020 22:44:31 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - ae5052bb-8afb-482d-9d31-a25bb5a14ff2 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:44:31 GMT + etag: + - '"0x8D855DB159313DC"' + last-modified: + - Thu, 10 Sep 2020 22:44:32 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - ae5052bb-8afb-482d-9d31-a25bb5a14ff2 + 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: + - Thu, 10 Sep 2020 22:44:31 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - ae5052bb-8afb-482d-9d31-a25bb5a14ff2 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestorecb2f1317?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:44:31 GMT + etag: + - '"0x8D855DB159313DC"' + last-modified: + - Thu, 10 Sep 2020 22:44:32 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - ae5052bb-8afb-482d-9d31-a25bb5a14ff2 + 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..6a5c95e2198a --- /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.18362-SP0) + x-ms-date: + - Thu, 10 Sep 2020 23:24:14 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share4ddb1042?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:24:34 GMT + etag: + - '"0x8D855E0ADD7E8E8"' + last-modified: + - Thu, 10 Sep 2020 23:24:35 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: + - Thu, 10 Sep 2020 23:24:34 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share4ddb1042?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:24:35 GMT + etag: + - '"0x8D855E0ADD7E8E8"' + last-modified: + - Thu, 10 Sep 2020 23:24:35 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + 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: + - Thu, 10 Sep 2020 23:24:35 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/share4ddb1042?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:24:35 GMT + etag: + - '"0x8D855E0ADD7E8E8"' + last-modified: + - Thu, 10 Sep 2020 23:24:35 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.18362-SP0) + x-ms-date: + - Thu, 10 Sep 2020 23:24:41 GMT + x-ms-lease-id: + - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share4ddb1042?restype=share + response: + body: + string: "\uFEFFLeaseLostA + lease ID was specified, but the lease for the file share has expired.\nRequestId:1f694760-501a-0029-72c9-87e4b6000000\nTime:2020-09-10T23:24:42.3180288Z" + headers: + content-length: + - '249' + content-type: + - application/xml + date: + - Thu, 10 Sep 2020 23:24:41 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..ac2c8b800e99 --- /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: + - Thu, 10 Sep 2020 23:48:32 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share801b1156?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:32 GMT + etag: + - '"0x8D855E4070545FC"' + last-modified: + - Thu, 10 Sep 2020 23:48:33 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: + - Thu, 10 Sep 2020 23:48:32 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 6fbe4347-faba-4058-84fe-36a2a115d950 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:32 GMT + etag: + - '"0x8D855E4070545FC"' + last-modified: + - Thu, 10 Sep 2020 23:48:33 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 6fbe4347-faba-4058-84fe-36a2a115d950 + 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: + - Thu, 10 Sep 2020 23:48:33 GMT + x-ms-lease-action: + - change + x-ms-lease-id: + - 6fbe4347-faba-4058-84fe-36a2a115d950 + 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/share801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:32 GMT + etag: + - '"0x8D855E4070545FC"' + last-modified: + - Thu, 10 Sep 2020 23:48:33 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: + - Thu, 10 Sep 2020 23:48:33 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/share801b1156?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:33 GMT + etag: + - '"0x8D855E4070545FC"' + last-modified: + - Thu, 10 Sep 2020 23:48:33 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..8a535247c606 --- /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: + - Thu, 10 Sep 2020 22:57:19 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:57:20 GMT + etag: + - '"0x8D855DCDFDAFE41"' + last-modified: + - Thu, 10 Sep 2020 22:57:20 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: + - Thu, 10 Sep 2020 22:57:20 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 57604223-4b55-4fdc-b24b-7dad91eeb91e + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:57:20 GMT + etag: + - '"0x8D855DCDFDAFE41"' + last-modified: + - Thu, 10 Sep 2020 22:57:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 57604223-4b55-4fdc-b24b-7dad91eeb91e + 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: + - Thu, 10 Sep 2020 22:57:30 GMT + x-ms-lease-action: + - renew + x-ms-lease-id: + - 57604223-4b55-4fdc-b24b-7dad91eeb91e + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:57:30 GMT + etag: + - '"0x8D855DCDFDAFE41"' + last-modified: + - Thu, 10 Sep 2020 22:57:20 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 57604223-4b55-4fdc-b24b-7dad91eeb91e + 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: + - Thu, 10 Sep 2020 22:57:35 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + response: + body: + string: "\uFEFFLeaseIdMissingThere + is currently a lease on the file share and no lease ID was specified in the + request.\nRequestId:4f5a9300-801a-0067-59c5-87ca3e000000\nTime:2020-09-10T22:57:36.7244042Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Thu, 10 Sep 2020 22:57:36 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: + - Thu, 10 Sep 2020 22:57:46 GMT + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 22:57:46 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..8fef3b8b58c7 --- /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: + - Thu, 10 Sep 2020 23:47:19 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:47:26 GMT + etag: + - '"0x8D855E3DFBB5CB3"' + last-modified: + - Thu, 10 Sep 2020 23:47: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: + - Thu, 10 Sep 2020 23:47:26 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharee52d0d77?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:47:27 GMT + etag: + - '"0x8D855E3DFBB5CB3"' + last-modified: + - Thu, 10 Sep 2020 23:47:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + 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: + - Thu, 10 Sep 2020 23:47:27 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharee52d0d77?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:47:27 GMT + etag: + - '"0x8D855E3DFBB5CB3"' + last-modified: + - Thu, 10 Sep 2020 23:47:27 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + 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..8927ad1ca803 --- /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: + - Thu, 10 Sep 2020 23:45:56 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share602310dc?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:45:56 GMT + etag: + - '"0x8D855E3AA5BA817"' + last-modified: + - Thu, 10 Sep 2020 23:45: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: + - Thu, 10 Sep 2020 23:45:57 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 41d9b40f-eb2d-4979-8b40-2d82af7b1c93 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:45:57 GMT + etag: + - '"0x8D855E3AA5BA817"' + last-modified: + - Thu, 10 Sep 2020 23:45:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 41d9b40f-eb2d-4979-8b40-2d82af7b1c93 + 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: + - Thu, 10 Sep 2020 23:45:57 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - a4d24944-3a47-4cb8-8a3c-37b3b4df4d57 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + response: + body: + string: "\uFEFFLeaseAlreadyPresentThere + is already a lease present.\nRequestId:3f22b9de-501a-005b-1bcc-87e3f9000000\nTime:2020-09-10T23:45:58.0478344Z" + headers: + content-length: + - '221' + content-type: + - application/xml + date: + - Thu, 10 Sep 2020 23:45:57 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: + - Thu, 10 Sep 2020 23:46:12 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - db9306b1-bd5a-4b32-8fbc-ee48087ef2f1 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:46:12 GMT + etag: + - '"0x8D855E3AA5BA817"' + last-modified: + - Thu, 10 Sep 2020 23:45:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - db9306b1-bd5a-4b32-8fbc-ee48087ef2f1 + 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..f8ffd4b33299 --- /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: + - Thu, 10 Sep 2020 23:48:03 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:04 GMT + etag: + - '"0x8D855E3F609C583"' + last-modified: + - Thu, 10 Sep 2020 23:48:04 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: + - Thu, 10 Sep 2020 23:48:04 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/sharea7a1477?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 10 Sep 2020 23:48:04 GMT + etag: + - '"0x8D855E3F609C583"' + last-modified: + - Thu, 10 Sep 2020 23:48:04 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/test_share.py b/sdk/storage/azure-storage-file-share/tests/test_share.py index c304e7e10a4d..9a6f0b84094e 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,105 @@ 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() + # Act + lease = share_client.acquire_lease() + lease.release() + # Assert + + @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() + 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_break_period(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + share_client = self._create_share() + + # Act + lease = share_client.acquire_lease(lease_duration=15) + + # Assert + lease.break_lease(break_period=5) + self.sleep(6) + with self.assertRaises(HttpResponseError): + share_client.delete_share(lease=lease) + + @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() + + # 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() + + # 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() + + # 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() + + # 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) + @pytest.mark.playback_test_only @GlobalStorageAccountPreparer() def test_restore_to_existing_share(self, resource_group, location, storage_account, storage_account_key): From 95642ec1a1b13db63aa1ebf78b2d3da752f9a6ab Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 10 Sep 2020 17:53:52 -0700 Subject: [PATCH 06/41] added more tests for leases --- .../azure/storage/fileshare/_models.py | 2 + ...share.test_delete_share_with_lease_id.yaml | 161 ++++++++++++ ...hare.test_get_share_acl_with_lease_id.yaml | 129 ++++++++++ ...st_get_share_properties_with_lease_id.yaml | 232 ++++++++++++++++++ ...t_share.test_lease_share_break_period.yaml | 57 ++--- ...hare.test_set_share_acl_with_lease_id.yaml | 170 +++++++++++++ ...test_set_share_metadata_with_lease_id.yaml | 190 ++++++++++++++ 7 files changed, 913 insertions(+), 28 deletions(-) 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_properties_with_lease_id.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 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 2d348d67d43a..971a3826390e 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 @@ -304,6 +304,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): @@ -322,6 +323,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/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..316e0cbf20e9 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_delete_share_with_lease_id.yaml @@ -0,0 +1,161 @@ +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 00:46:53 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:46:53 GMT + etag: + - '"0x8D855EC2E0BB2A0"' + last-modified: + - Fri, 11 Sep 2020 00:46:54 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 00:46:54 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 20472709-3c52-4c84-9c04-96568795dde2 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1708a1115?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:46:53 GMT + etag: + - '"0x8D855EC2E0BB2A0"' + last-modified: + - Fri, 11 Sep 2020 00:46:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 20472709-3c52-4c84-9c04-96568795dde2 + 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 00:46:54 GMT + x-ms-lease-id: + - 20472709-3c52-4c84-9c04-96568795dde2 + x-ms-version: + - '2020-02-10' + method: DELETE + uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:46:54 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 00:46:54 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + response: + body: + string: "\uFEFFShareNotFoundThe + specified share does not exist.\nRequestId:2ab15498-f01a-0042-16d5-876342000000\nTime:2020-09-11T00:46:55.0109448Z" + headers: + access-control-allow-origin: + - '*' + content-length: + - '217' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 00:46:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + 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..677cf0571a67 --- /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 00:43:36 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:43:37 GMT + etag: + - '"0x8D855EBB87CFF33"' + last-modified: + - Fri, 11 Sep 2020 00:43:37 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 00:43:36 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1816f1171?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:43:37 GMT + etag: + - '"0x8D855EBB87CFF33"' + last-modified: + - Fri, 11 Sep 2020 00:43:37 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + 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 00:43:37 GMT + x-ms-lease-id: + - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share1816f1171?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + access-control-allow-origin: + - '*' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 00:43:37 GMT + etag: + - '"0x8D855EBB87CFF33"' + last-modified: + - Fri, 11 Sep 2020 00:43:37 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_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..94d71b22c3a8 --- /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 00:41:43 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1c80148e?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:41:43 GMT + etag: + - '"0x8D855EB75404188"' + last-modified: + - Fri, 11 Sep 2020 00:41:44 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 00:41:44 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/share1c80148e?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:41:44 GMT + etag: + - '"0x8D855EB7565D396"' + last-modified: + - Fri, 11 Sep 2020 00:41:44 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 00:41:44 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - fb1ac46a-956a-42ef-bb60-0724afb38e13 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1c80148e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:41:44 GMT + etag: + - '"0x8D855EB7565D396"' + last-modified: + - Fri, 11 Sep 2020 00:41:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - fb1ac46a-956a-42ef-bb60-0724afb38e13 + 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 00:41:44 GMT + x-ms-lease-id: + - fb1ac46a-956a-42ef-bb60-0724afb38e13 + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share1c80148e?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 00:41:44 GMT + etag: + - '"0x8D855EB7565D396"' + last-modified: + - Fri, 11 Sep 2020 00:41:44 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 00:41:44 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 00:41:44 GMT + x-ms-lease-action: + - break + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share1c80148e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:41:44 GMT + etag: + - '"0x8D855EB7565D396"' + last-modified: + - Fri, 11 Sep 2020 00:41:44 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_break_period.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml index 6a5c95e2198a..23672079e39d 100644 --- 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 @@ -13,30 +13,31 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:24:14 GMT + - Fri, 11 Sep 2020 00:46:01 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share4ddb1042?restype=share + uri: https://storagename.file.core.windows.net/share14ddb1042?restype=share response: body: - string: '' + string: "\uFEFFShareAlreadyExistsThe + specified share already exists.\nRequestId:011e3cdf-a01a-0094-01d4-876dab000000\nTime:2020-09-11T00:46:02.3271417Z" headers: content-length: - - '0' + - '222' + content-type: + - application/xml date: - - Thu, 10 Sep 2020 23:24:34 GMT - etag: - - '"0x8D855E0ADD7E8E8"' - last-modified: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:46:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - ShareAlreadyExists x-ms-version: - '2020-02-10' status: - code: 201 - message: Created + code: 409 + message: The specified share already exists. - request: body: null headers: @@ -51,17 +52,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:24:34 GMT + - Fri, 11 Sep 2020 00:46:01 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + - 39c60f39-dc0b-40c7-a784-f209262b2bbd x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share4ddb1042?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/share14ddb1042?comp=lease&restype=share response: body: string: '' @@ -69,15 +70,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:46:02 GMT etag: - - '"0x8D855E0ADD7E8E8"' + - '"0x8D855EC02779909"' last-modified: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:45:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + - 39c60f39-dc0b-40c7-a784-f209262b2bbd x-ms-version: - '2020-02-10' status: @@ -97,7 +98,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:46:02 GMT x-ms-lease-action: - break x-ms-lease-break-period: @@ -105,7 +106,7 @@ interactions: x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share4ddb1042?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/share14ddb1042?comp=lease&restype=share response: body: string: '' @@ -113,11 +114,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:46:02 GMT etag: - - '"0x8D855E0ADD7E8E8"' + - '"0x8D855EC02779909"' last-modified: - - Thu, 10 Sep 2020 23:24:35 GMT + - Fri, 11 Sep 2020 00:45:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -141,24 +142,24 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:24:41 GMT + - Fri, 11 Sep 2020 00:46:08 GMT x-ms-lease-id: - - 7a9fb38c-4285-484b-aeb9-8150e505bb27 + - 39c60f39-dc0b-40c7-a784-f209262b2bbd x-ms-version: - '2020-02-10' method: DELETE - uri: https://storagename.file.core.windows.net/share4ddb1042?restype=share + uri: https://storagename.file.core.windows.net/share14ddb1042?restype=share response: body: string: "\uFEFFLeaseLostA - lease ID was specified, but the lease for the file share has expired.\nRequestId:1f694760-501a-0029-72c9-87e4b6000000\nTime:2020-09-10T23:24:42.3180288Z" + lease ID was specified, but the lease for the file share has expired.\nRequestId:011e3d04-a01a-0094-1ad4-876dab000000\nTime:2020-09-11T00:46:09.0609169Z" headers: content-length: - '249' content-type: - application/xml date: - - Thu, 10 Sep 2020 23:24:41 GMT + - Fri, 11 Sep 2020 00:46:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: 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..9fda4f26317e --- /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 00:44:43 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:44:43 GMT + etag: + - '"0x8D855EBE0445E4F"' + last-modified: + - Fri, 11 Sep 2020 00:44:44 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 00:44:43 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - ff8294df-5407-4f5d-90d8-ccd473ddb40e + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share182b3117d?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:44:43 GMT + etag: + - '"0x8D855EBE0445E4F"' + last-modified: + - Fri, 11 Sep 2020 00:44:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - ff8294df-5407-4f5d-90d8-ccd473ddb40e + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: ' + + testid2020-09-11T00:44:43Z2020-09-11T01:44:43Zr' + 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 00:44:43 GMT + x-ms-lease-id: + - ff8294df-5407-4f5d-90d8-ccd473ddb40e + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:44:43 GMT + etag: + - '"0x8D855EBE0710239"' + last-modified: + - Fri, 11 Sep 2020 00:44:44 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 00:44:43 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share182b3117d?restype=share&comp=acl + response: + body: + string: "\uFEFFtestid2020-09-11T00:44:43.0000000Z2020-09-11T01:44:43.0000000Zr" + headers: + access-control-allow-origin: + - '*' + content-type: + - application/xml + date: + - Fri, 11 Sep 2020 00:44:43 GMT + etag: + - '"0x8D855EBE0710239"' + last-modified: + - Fri, 11 Sep 2020 00:44:44 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..53788eda8cc4 --- /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 00:00:34 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:00:53 GMT + etag: + - '"0x8D855E5C07A7C91"' + last-modified: + - Fri, 11 Sep 2020 00:00: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 00:00:53 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - e09e30b1-736a-4875-979c-f52bb7c1f74f + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/sharee121138e?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:00:53 GMT + etag: + - '"0x8D855E5C07A7C91"' + last-modified: + - Fri, 11 Sep 2020 00:00:53 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - e09e30b1-736a-4875-979c-f52bb7c1f74f + 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 00:00:53 GMT + x-ms-lease-id: + - e09e30b1-736a-4875-979c-f52bb7c1f74f + 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/sharee121138e?restype=share&comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 11 Sep 2020 00:00:54 GMT + etag: + - '"0x8D855E5C0C0BD1C"' + last-modified: + - Fri, 11 Sep 2020 00:00:54 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 00:00:53 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/sharee121138e?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 00:00:54 GMT + etag: + - '"0x8D855E5C0C0BD1C"' + last-modified: + - Fri, 11 Sep 2020 00:00:54 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 00:00:53 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 From cc9a1ff7caeebbad8ed7ea88586bfdc08384aa90 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 10 Sep 2020 18:47:48 -0700 Subject: [PATCH 07/41] fixed tests --- ...share.test_delete_share_with_lease_id.yaml | 40 ++-- ...hare.test_get_share_acl_with_lease_id.yaml | 36 ++-- ...test_get_share_metadata_with_lease_id.yaml | 190 ++++++++++++++++++ ...st_get_share_properties_with_lease_id.yaml | 58 +++--- ....test_lease_share_acquire_and_release.yaml | 38 ++-- ...t_share.test_lease_share_break_period.yaml | 42 ++-- ...hare.test_lease_share_change_lease_id.yaml | 46 ++--- .../test_share.test_lease_share_renew.yaml | 52 ++--- .../test_share.test_lease_share_twice.yaml | 38 ++-- ..._share.test_lease_share_with_duration.yaml | 48 ++--- ...st_lease_share_with_proposed_lease_id.yaml | 20 +- ...hare.test_set_share_acl_with_lease_id.yaml | 50 ++--- ...test_set_share_metadata_with_lease_id.yaml | 48 ++--- .../tests/test_share.py | 133 ++++++++++-- 14 files changed, 561 insertions(+), 278 deletions(-) create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_get_share_metadata_with_lease_id.yaml 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 index 316e0cbf20e9..28a005c0b313 100644 --- 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 @@ -13,11 +13,11 @@ interactions: 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 00:46:53 GMT + - Fri, 11 Sep 2020 01:44:25 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + uri: https://storagename.file.core.windows.net/test708a1115?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:46:53 GMT + - Fri, 11 Sep 2020 01:44:26 GMT etag: - - '"0x8D855EC2E0BB2A0"' + - '"0x8D855F437DBEA20"' last-modified: - - Fri, 11 Sep 2020 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: 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 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:26 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 20472709-3c52-4c84-9c04-96568795dde2 + - a2ad2e08-7b63-4fb7-8927-4282fa338eab x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share1708a1115?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test708a1115?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:46:53 GMT + - Fri, 11 Sep 2020 01:44:26 GMT etag: - - '"0x8D855EC2E0BB2A0"' + - '"0x8D855F437DBEA20"' last-modified: - - Fri, 11 Sep 2020 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 20472709-3c52-4c84-9c04-96568795dde2 + - a2ad2e08-7b63-4fb7-8927-4282fa338eab x-ms-version: - '2020-02-10' status: @@ -97,13 +97,13 @@ interactions: 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 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:26 GMT x-ms-lease-id: - - 20472709-3c52-4c84-9c04-96568795dde2 + - a2ad2e08-7b63-4fb7-8927-4282fa338eab x-ms-version: - '2020-02-10' method: DELETE - uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + uri: https://storagename.file.core.windows.net/test708a1115?restype=share response: body: string: '' @@ -111,7 +111,7 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -131,15 +131,15 @@ interactions: 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 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:27 GMT x-ms-version: - '2020-02-10' method: GET - uri: https://storagename.file.core.windows.net/share1708a1115?restype=share + uri: https://storagename.file.core.windows.net/test708a1115?restype=share response: body: string: "\uFEFFShareNotFoundThe - specified share does not exist.\nRequestId:2ab15498-f01a-0042-16d5-876342000000\nTime:2020-09-11T00:46:55.0109448Z" + specified share does not exist.\nRequestId:8ecd6858-301a-003f-53dd-871261000000\nTime:2020-09-11T01:44:27.9081669Z" headers: access-control-allow-origin: - '*' @@ -148,7 +148,7 @@ interactions: content-type: - application/xml date: - - Fri, 11 Sep 2020 00:46:54 GMT + - Fri, 11 Sep 2020 01:44:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: 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 index 677cf0571a67..554af9376d0a 100644 --- 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 @@ -13,11 +13,11 @@ interactions: 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 00:43:36 GMT + - Fri, 11 Sep 2020 01:44:02 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share1816f1171?restype=share + uri: https://storagename.file.core.windows.net/test816f1171?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:43:37 GMT + - Fri, 11 Sep 2020 01:44:03 GMT etag: - - '"0x8D855EBB87CFF33"' + - '"0x8D855F429A8569E"' last-modified: - - Fri, 11 Sep 2020 00:43:37 GMT + - Fri, 11 Sep 2020 01:44:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: 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 00:43:36 GMT + - Fri, 11 Sep 2020 01:44:02 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share1816f1171?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test816f1171?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:43:37 GMT + - Fri, 11 Sep 2020 01:44:03 GMT etag: - - '"0x8D855EBB87CFF33"' + - '"0x8D855F429A8569E"' last-modified: - - Fri, 11 Sep 2020 00:43:37 GMT + - Fri, 11 Sep 2020 01:44:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 x-ms-version: - '2020-02-10' status: @@ -95,13 +95,13 @@ interactions: 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 00:43:37 GMT + - Fri, 11 Sep 2020 01:44:03 GMT x-ms-lease-id: - - ffa7aab1-1ebc-4d3a-8cd0-226fe55cddb9 + - 97fe829c-cb6c-4ff0-8bdf-ae37639e8865 x-ms-version: - '2020-02-10' method: GET - uri: https://storagename.file.core.windows.net/share1816f1171?restype=share&comp=acl + uri: https://storagename.file.core.windows.net/test816f1171?restype=share&comp=acl response: body: string: "\uFEFFShareAlreadyExistsThe - specified share already exists.\nRequestId:011e3cdf-a01a-0094-01d4-876dab000000\nTime:2020-09-11T00:46:02.3271417Z" + specified share already exists.\nRequestId:f9d05901-601a-001d-49dd-87d77e000000\nTime:2020-09-11T01:44:15.1213769Z" headers: content-length: - '222' content-type: - application/xml date: - - Fri, 11 Sep 2020 00:46:02 GMT + - Fri, 11 Sep 2020 01:44:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -52,17 +52,17 @@ interactions: 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 00:46:01 GMT + - Fri, 11 Sep 2020 01:44:14 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 39c60f39-dc0b-40c7-a784-f209262b2bbd + - c03be74e-8286-43a3-b258-ecc18cae1f50 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share14ddb1042?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test4ddb1042?comp=lease&restype=share response: body: string: '' @@ -70,15 +70,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:46:02 GMT + - Fri, 11 Sep 2020 01:44:15 GMT etag: - - '"0x8D855EC02779909"' + - '"0x8D855F31D122251"' last-modified: - - Fri, 11 Sep 2020 00:45:41 GMT + - Fri, 11 Sep 2020 01:36:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 39c60f39-dc0b-40c7-a784-f209262b2bbd + - c03be74e-8286-43a3-b258-ecc18cae1f50 x-ms-version: - '2020-02-10' status: @@ -98,7 +98,7 @@ interactions: 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 00:46:02 GMT + - Fri, 11 Sep 2020 01:44:14 GMT x-ms-lease-action: - break x-ms-lease-break-period: @@ -106,7 +106,7 @@ interactions: x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share14ddb1042?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test4ddb1042?comp=lease&restype=share response: body: string: '' @@ -114,11 +114,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:46:02 GMT + - Fri, 11 Sep 2020 01:44:15 GMT etag: - - '"0x8D855EC02779909"' + - '"0x8D855F31D122251"' last-modified: - - Fri, 11 Sep 2020 00:45:41 GMT + - Fri, 11 Sep 2020 01:36:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -142,24 +142,24 @@ interactions: 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 00:46:08 GMT + - Fri, 11 Sep 2020 01:44:20 GMT x-ms-lease-id: - - 39c60f39-dc0b-40c7-a784-f209262b2bbd + - c03be74e-8286-43a3-b258-ecc18cae1f50 x-ms-version: - '2020-02-10' method: DELETE - uri: https://storagename.file.core.windows.net/share14ddb1042?restype=share + 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:011e3d04-a01a-0094-1ad4-876dab000000\nTime:2020-09-11T00:46:09.0609169Z" + lease ID was specified, but the lease for the file share has expired.\nRequestId:f9d05925-601a-001d-64dd-87d77e000000\nTime:2020-09-11T01:44:21.5909333Z" headers: content-length: - '249' content-type: - application/xml date: - - Fri, 11 Sep 2020 00:46:08 GMT + - Fri, 11 Sep 2020 01:44:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: 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 index ac2c8b800e99..d6561612b75b 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:32 GMT + - Fri, 11 Sep 2020 01:43:38 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share801b1156?restype=share + uri: https://storagename.file.core.windows.net/test801b1156?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:32 GMT + - Fri, 11 Sep 2020 01:43:38 GMT etag: - - '"0x8D855E4070545FC"' + - '"0x8D855F41B7485A5"' last-modified: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:32 GMT + - Fri, 11 Sep 2020 01:43:38 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 6fbe4347-faba-4058-84fe-36a2a115d950 + - e74a3972-4935-415c-808b-7e08ce3117d2 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share801b1156?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:32 GMT + - Fri, 11 Sep 2020 01:43:39 GMT etag: - - '"0x8D855E4070545FC"' + - '"0x8D855F41B7485A5"' last-modified: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 6fbe4347-faba-4058-84fe-36a2a115d950 + - e74a3972-4935-415c-808b-7e08ce3117d2 x-ms-version: - '2020-02-10' status: @@ -97,17 +97,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT x-ms-lease-action: - change x-ms-lease-id: - - 6fbe4347-faba-4058-84fe-36a2a115d950 + - 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/share801b1156?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share response: body: string: '' @@ -115,11 +115,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:32 GMT + - Fri, 11 Sep 2020 01:43:39 GMT etag: - - '"0x8D855E4070545FC"' + - '"0x8D855F41B7485A5"' last-modified: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: @@ -143,7 +143,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT x-ms-lease-action: - renew x-ms-lease-id: @@ -151,7 +151,7 @@ interactions: x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share801b1156?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test801b1156?comp=lease&restype=share response: body: string: '' @@ -159,11 +159,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT etag: - - '"0x8D855E4070545FC"' + - '"0x8D855F41B7485A5"' last-modified: - - Thu, 10 Sep 2020 23:48:33 GMT + - Fri, 11 Sep 2020 01:43:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: 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 index 8a535247c606..5c5c94b12088 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 22:57:19 GMT + - Fri, 11 Sep 2020 01:36:00 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:01 GMT etag: - - '"0x8D855DCDFDAFE41"' + - '"0x8D855F30A798EAA"' last-modified: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:00 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 57604223-4b55-4fdc-b24b-7dad91eeb91e + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:01 GMT etag: - - '"0x8D855DCDFDAFE41"' + - '"0x8D855F30A798EAA"' last-modified: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 57604223-4b55-4fdc-b24b-7dad91eeb91e + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc x-ms-version: - '2020-02-10' status: @@ -97,15 +97,15 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 22:57:30 GMT + - Fri, 11 Sep 2020 01:36:11 GMT x-ms-lease-action: - renew x-ms-lease-id: - - 57604223-4b55-4fdc-b24b-7dad91eeb91e + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share response: body: string: '' @@ -113,15 +113,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 22:57:30 GMT + - Fri, 11 Sep 2020 01:36:11 GMT etag: - - '"0x8D855DCDFDAFE41"' + - '"0x8D855F30A798EAA"' last-modified: - - Thu, 10 Sep 2020 22:57:20 GMT + - Fri, 11 Sep 2020 01:36:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 57604223-4b55-4fdc-b24b-7dad91eeb91e + - 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc x-ms-version: - '2020-02-10' status: @@ -141,23 +141,23 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 22:57:35 GMT + - Fri, 11 Sep 2020 01:36:16 GMT x-ms-version: - '2020-02-10' method: DELETE - uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + 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:4f5a9300-801a-0067-59c5-87ca3e000000\nTime:2020-09-10T22:57:36.7244042Z" + request.\nRequestId:b32790a3-701a-003e-47db-874dbd000000\nTime:2020-09-11T01:36:16.8688480Z" headers: content-length: - '273' content-type: - application/xml date: - - Thu, 10 Sep 2020 22:57:36 GMT + - Fri, 11 Sep 2020 01:36:16 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -182,11 +182,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 22:57:46 GMT + - Fri, 11 Sep 2020 01:36:26 GMT x-ms-version: - '2020-02-10' method: DELETE - uri: https://storagename.file.core.windows.net/sharerestoreee5000d7c?restype=share + uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share response: body: string: '' @@ -194,7 +194,7 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 22:57:46 GMT + - Fri, 11 Sep 2020 01:36:26 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: 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 index 8fef3b8b58c7..a7c722d5d65f 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:47:19 GMT + - Fri, 11 Sep 2020 01:42:18 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee52d0d77?restype=share + uri: https://storagename.file.core.windows.net/teste52d0d77?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:47:26 GMT + - Fri, 11 Sep 2020 01:42:19 GMT etag: - - '"0x8D855E3DFBB5CB3"' + - '"0x8D855F3EC19CB5C"' last-modified: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:47:26 GMT + - Fri, 11 Sep 2020 01:42:19 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee52d0d77?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/teste52d0d77?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT etag: - - '"0x8D855E3DFBB5CB3"' + - '"0x8D855F3EC19CB5C"' last-modified: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 x-ms-version: - '2020-02-10' status: @@ -97,17 +97,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee52d0d77?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/teste52d0d77?comp=lease&restype=share response: body: string: '' @@ -115,15 +115,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT etag: - - '"0x8D855E3DFBB5CB3"' + - '"0x8D855F3EC19CB5C"' last-modified: - - Thu, 10 Sep 2020 23:47:27 GMT + - Fri, 11 Sep 2020 01:42:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 96f7ece9-bac7-4aec-bbd3-8473590ea48a + - 9d30f9b9-bb64-4b99-ba8b-87ffbefb4c67 x-ms-version: - '2020-02-10' status: 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 index 8927ad1ca803..2bd882a3a2ff 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:45:56 GMT + - Fri, 11 Sep 2020 01:46:54 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share602310dc?restype=share + uri: https://storagename.file.core.windows.net/test602310dc?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:45:56 GMT + - Fri, 11 Sep 2020 01:46:54 GMT etag: - - '"0x8D855E3AA5BA817"' + - '"0x8D855F490678FD9"' last-modified: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 41d9b40f-eb2d-4979-8b40-2d82af7b1c93 + - 9a8324a0-203e-4427-b7e1-1f5cb4aea33f x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT etag: - - '"0x8D855E3AA5BA817"' + - '"0x8D855F490678FD9"' last-modified: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 41d9b40f-eb2d-4979-8b40-2d82af7b1c93 + - 9a8324a0-203e-4427-b7e1-1f5cb4aea33f x-ms-version: - '2020-02-10' status: @@ -97,28 +97,28 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - a4d24944-3a47-4cb8-8a3c-37b3b4df4d57 + - 5d2218fd-c234-4e2c-8f86-6f447d5a0460 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share response: body: string: "\uFEFFLeaseAlreadyPresentThere - is already a lease present.\nRequestId:3f22b9de-501a-005b-1bcc-87e3f9000000\nTime:2020-09-10T23:45:58.0478344Z" + 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: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -142,17 +142,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:46:12 GMT + - Fri, 11 Sep 2020 01:47:11 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - db9306b1-bd5a-4b32-8fbc-ee48087ef2f1 + - 74fe09cc-586b-4909-99f3-d7322d684308 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share602310dc?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test602310dc?comp=lease&restype=share response: body: string: '' @@ -160,15 +160,15 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:46:12 GMT + - Fri, 11 Sep 2020 01:47:11 GMT etag: - - '"0x8D855E3AA5BA817"' + - '"0x8D855F490678FD9"' last-modified: - - Thu, 10 Sep 2020 23:45:57 GMT + - Fri, 11 Sep 2020 01:46:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - db9306b1-bd5a-4b32-8fbc-ee48087ef2f1 + - 74fe09cc-586b-4909-99f3-d7322d684308 x-ms-version: - '2020-02-10' status: 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 index f8ffd4b33299..a6dde8a68315 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:03 GMT + - Fri, 11 Sep 2020 01:42:26 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharea7a1477?restype=share + uri: https://storagename.file.core.windows.net/testa7a1477?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:04 GMT + - Fri, 11 Sep 2020 01:42:27 GMT etag: - - '"0x8D855E3F609C583"' + - '"0x8D855F3F0B3CE4D"' last-modified: - - Thu, 10 Sep 2020 23:48:04 GMT + - Fri, 11 Sep 2020 01:42:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,7 +51,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) x-ms-date: - - Thu, 10 Sep 2020 23:48:04 GMT + - Fri, 11 Sep 2020 01:42:27 GMT x-ms-lease-action: - acquire x-ms-lease-duration: @@ -61,7 +61,7 @@ interactions: x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharea7a1477?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/testa7a1477?comp=lease&restype=share response: body: string: '' @@ -69,11 +69,11 @@ interactions: content-length: - '0' date: - - Thu, 10 Sep 2020 23:48:04 GMT + - Fri, 11 Sep 2020 01:42:27 GMT etag: - - '"0x8D855E3F609C583"' + - '"0x8D855F3F0B3CE4D"' last-modified: - - Thu, 10 Sep 2020 23:48:04 GMT + - Fri, 11 Sep 2020 01:42:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: 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 index 9fda4f26317e..650c8403ad80 100644 --- 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 @@ -13,11 +13,11 @@ interactions: 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 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:08 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share182b3117d?restype=share + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT etag: - - '"0x8D855EBE0445E4F"' + - '"0x8D855F42D63A1C8"' last-modified: - - Fri, 11 Sep 2020 00:44:44 GMT + - Fri, 11 Sep 2020 01:44:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: 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 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:08 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - ff8294df-5407-4f5d-90d8-ccd473ddb40e + - f3232009-9b44-4b54-9f8b-4d679af40c47 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share182b3117d?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/test82b3117d?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT etag: - - '"0x8D855EBE0445E4F"' + - '"0x8D855F42D63A1C8"' last-modified: - - Fri, 11 Sep 2020 00:44:44 GMT + - Fri, 11 Sep 2020 01:44:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - ff8294df-5407-4f5d-90d8-ccd473ddb40e + - f3232009-9b44-4b54-9f8b-4d679af40c47 x-ms-version: - '2020-02-10' status: @@ -86,7 +86,7 @@ interactions: - request: body: ' - testid2020-09-11T00:44:43Z2020-09-11T01:44:43Zr' + testid2020-09-11T01:44:09Z2020-09-11T02:44:09Zr' headers: Accept: - '*/*' @@ -101,13 +101,13 @@ interactions: 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 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT x-ms-lease-id: - - ff8294df-5407-4f5d-90d8-ccd473ddb40e + - f3232009-9b44-4b54-9f8b-4d679af40c47 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share182b3117d?restype=share&comp=acl + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share&comp=acl response: body: string: '' @@ -115,11 +115,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT etag: - - '"0x8D855EBE0710239"' + - '"0x8D855F42D9DFD7A"' last-modified: - - Fri, 11 Sep 2020 00:44:44 GMT + - Fri, 11 Sep 2020 01:44:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -139,25 +139,25 @@ interactions: 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 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT x-ms-version: - '2020-02-10' method: GET - uri: https://storagename.file.core.windows.net/share182b3117d?restype=share&comp=acl + uri: https://storagename.file.core.windows.net/test82b3117d?restype=share&comp=acl response: body: - string: "\uFEFFtestid2020-09-11T00:44:43.0000000Z2020-09-11T01:44:43.0000000Zr" + 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 00:44:43 GMT + - Fri, 11 Sep 2020 01:44:09 GMT etag: - - '"0x8D855EBE0710239"' + - '"0x8D855F42D9DFD7A"' last-modified: - - Fri, 11 Sep 2020 00:44:44 GMT + - Fri, 11 Sep 2020 01:44:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: 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 index 53788eda8cc4..eb3c42225ff2 100644 --- 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 @@ -13,11 +13,11 @@ interactions: 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 00:00:34 GMT + - Fri, 11 Sep 2020 01:43:44 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + uri: https://storagename.file.core.windows.net/teste121138e?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:44 GMT etag: - - '"0x8D855E5C07A7C91"' + - '"0x8D855F41F17142E"' last-modified: - - Fri, 11 Sep 2020 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,17 +51,17 @@ interactions: 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 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - e09e30b1-736a-4875-979c-f52bb7c1f74f + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee121138e?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/teste121138e?comp=lease&restype=share response: body: string: '' @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT etag: - - '"0x8D855E5C07A7C91"' + - '"0x8D855F41F17142E"' last-modified: - - Fri, 11 Sep 2020 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - e09e30b1-736a-4875-979c-f52bb7c1f74f + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 x-ms-version: - '2020-02-10' status: @@ -97,9 +97,9 @@ interactions: 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 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT x-ms-lease-id: - - e09e30b1-736a-4875-979c-f52bb7c1f74f + - f99f04a9-9a07-461d-ac7d-3b858c9c82c0 x-ms-meta-hello: - world x-ms-meta-number: @@ -107,7 +107,7 @@ interactions: x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/sharee121138e?restype=share&comp=metadata + uri: https://storagename.file.core.windows.net/teste121138e?restype=share&comp=metadata response: body: string: '' @@ -115,11 +115,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:00:54 GMT + - Fri, 11 Sep 2020 01:43:45 GMT etag: - - '"0x8D855E5C0C0BD1C"' + - '"0x8D855F41F52C3FB"' last-modified: - - Fri, 11 Sep 2020 00:00:54 GMT + - Fri, 11 Sep 2020 01:43:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -139,11 +139,11 @@ interactions: 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 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT x-ms-version: - '2020-02-10' method: GET - uri: https://storagename.file.core.windows.net/sharee121138e?restype=share + uri: https://storagename.file.core.windows.net/teste121138e?restype=share response: body: string: '' @@ -155,17 +155,17 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 00:00:54 GMT + - Fri, 11 Sep 2020 01:43:45 GMT etag: - - '"0x8D855E5C0C0BD1C"' + - '"0x8D855F41F52C3FB"' last-modified: - - Fri, 11 Sep 2020 00:00:54 GMT + - 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 00:00:53 GMT + - Fri, 11 Sep 2020 01:43:45 GMT x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: 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 9a6f0b84094e..804bf38839fa 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -187,7 +187,7 @@ def test_undelete_share(self, resource_group, location, storage_account, storage @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() + share_client = self._create_share('test') # Act lease = share_client.acquire_lease() lease.release() @@ -196,7 +196,7 @@ def test_lease_share_acquire_and_release(self, resource_group, location, storage @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() + share_client = self._create_share('test') lease = share_client.acquire_lease(lease_duration=15) self.sleep(10) lease_id_start = lease.id @@ -212,24 +212,10 @@ def test_lease_share_renew(self, resource_group, location, storage_account, stor self.sleep(10) share_client.delete_share() - @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() - - # Act - lease = share_client.acquire_lease(lease_duration=15) - - # Assert - lease.break_lease(break_period=5) - self.sleep(6) - with self.assertRaises(HttpResponseError): - share_client.delete_share(lease=lease) - @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() + share_client = self._create_share('test') # Act lease = share_client.acquire_lease(lease_duration=15) @@ -243,7 +229,7 @@ def test_lease_share_with_duration(self, resource_group, location, storage_accou @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() + share_client = self._create_share('test') # Act lease = share_client.acquire_lease(lease_duration=15) @@ -255,7 +241,7 @@ def test_lease_share_twice(self, resource_group, location, storage_account, stor @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() + share_client = self._create_share('test') # Act proposed_lease_id = '55e97f64-73e8-4390-838d-d9e84a374321' @@ -267,7 +253,7 @@ def test_lease_share_with_proposed_lease_id(self, resource_group, location, stor @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() + share_client = self._create_share('test') # Act lease_id = '29e0b239-ecda-4f69-bfa3-95f6af91464c' @@ -283,6 +269,113 @@ def test_lease_share_change_lease_id(self, resource_group, location, storage_acc 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(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) + + # 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): From 9391ee645f265b60459ccb1970756a13f1ecb574 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 10 Sep 2020 20:08:51 -0700 Subject: [PATCH 08/41] async changes --- .../storage/fileshare/aio/_share_client_async.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 6273daeb1fe9..68a24dcaa1b4 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,7 +25,7 @@ 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 @@ -273,6 +273,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: @@ -282,6 +283,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) @@ -307,12 +309,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) @@ -342,12 +346,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) @@ -378,6 +384,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)) @@ -386,6 +393,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) @@ -401,11 +409,13 @@ async def get_share_access_policy(self, **kwargs): :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) @@ -431,6 +441,7 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): :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( @@ -449,6 +460,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) @@ -466,10 +478,12 @@ async def get_share_stats(self, **kwargs): :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: From 86e2afc7dc9ec15ad7b0e28fa6588e0a3ec115be Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 11 Sep 2020 06:12:26 -0700 Subject: [PATCH 09/41] added await --- .../azure/storage/fileshare/aio/_lease_async.py | 8 ++++---- .../azure/storage/fileshare/aio/_share_client_async.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 4d883563435b..7bb4823e4cd4 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 @@ -87,7 +87,7 @@ async def acquire(self, lease_duration=-1, **kwargs): proposed_lease_id=self.id, cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.acquire_lease( + else await self._client.acquire_lease( timeout=kwargs.pop('timeout', None), duration=lease_duration, sharesnapshot=self.snapshot, @@ -159,7 +159,7 @@ async def release(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.renew_lease( + else await self._client.renew_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), sharesnapshot=self.snapshot, @@ -193,7 +193,7 @@ async def change(self, proposed_lease_id, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.change_lease( + else await self._client.change_lease( lease_id=self.id, proposed_lease_id=proposed_lease_id, timeout=kwargs.pop('timeout', None), @@ -228,7 +228,7 @@ async def break_lease(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.break_lease( + else await self._client.break_lease( timeout=kwargs.pop('timeout', None), sharesnapshot=self.snapshot, 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 68a24dcaa1b4..0d860013dcf6 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 @@ -160,7 +160,7 @@ async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): :caption: Acquiring a lease on a share. """ lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore - lease.acquire(lease_duration, **kwargs) + await lease.acquire(lease_duration, **kwargs) return lease @distributed_trace_async From 9a71f09b92090056d601a07f8129299101fadad3 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 11 Sep 2020 06:33:12 -0700 Subject: [PATCH 10/41] corrected import --- .../azure/storage/fileshare/aio/_lease_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7bb4823e4cd4..1a1556d336dc 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,7 +14,7 @@ from .._shared.response_handlers import return_response_headers, process_storage_error from .._generated.models import ( StorageErrorException) -from .._generated.operations import FileOperations +from .._generated.aio.operations_async._file_operations_async import FileOperations from .._lease import ShareLeaseClient as LeaseClientBase if TYPE_CHECKING: From c0509d8d296b0d24d55aa0944507b130f4ae4b5c Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 11 Sep 2020 06:56:51 -0700 Subject: [PATCH 11/41] fixed async imports and wrote all tests --- .../fileshare/aio/_share_client_async.py | 2 +- ...async.test_delete_share_with_lease_id.yaml | 111 ++++++++++ ...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 +++++ ...sync.test_set_share_acl_with_lease_id.yaml | 121 ++++++++++ ...test_set_share_metadata_with_lease_id.yaml | 127 +++++++++++ .../tests/test_share_async.py | 207 ++++++++++++++++++ 15 files changed, 1680 insertions(+), 1 deletion(-) 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_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-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 0d860013dcf6..2e99f73a3eda 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 @@ -29,7 +29,7 @@ from .._share_client import ShareClient as ShareClientBase from ._directory_client_async import ShareDirectoryClient from ._file_client_async import ShareFileClient -from .._lease import ShareLeaseClient +from ..aio._lease_async import ShareLeaseClient if TYPE_CHECKING: 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..bcc521efc6fe --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_delete_share_with_lease_id.yaml @@ -0,0 +1,111 @@ +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:55:57 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: Fri, 11 Sep 2020 13:55:58 GMT + etag: '"0x8D8565A6900CD99"' + last-modified: Fri, 11 Sep 2020 13:55: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/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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:57 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - f7e0aad5-9b81-4ea4-a1df-0efefa502092 + 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: Fri, 11 Sep 2020 13:55:58 GMT + etag: '"0x8D8565A6900CD99"' + last-modified: Fri, 11 Sep 2020 13:55:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: f7e0aad5-9b81-4ea4-a1df-0efefa502092 + 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:57 GMT + x-ms-lease-id: + - f7e0aad5-9b81-4ea4-a1df-0efefa502092 + 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: Fri, 11 Sep 2020 13:55:58 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:58 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:995b7f31-c01a-0092-0543-885e14000000\nTime:2020-09-11T13:55:58.5853878Z" + headers: + access-control-allow-origin: '*' + content-length: '217' + content-type: application/xml + date: Fri, 11 Sep 2020 13:55:58 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + 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..4c7100910645 --- /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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:12 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: Fri, 11 Sep 2020 13:55:13 GMT + etag: '"0x8D8565A4E61E794"' + last-modified: Fri, 11 Sep 2020 13:55:13 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:12 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '15' + x-ms-proposed-lease-id: + - 34ad5690-5f59-4018-b260-3c9d57eaf832 + 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: Fri, 11 Sep 2020 13:55:13 GMT + etag: '"0x8D8565A4E61E794"' + last-modified: Fri, 11 Sep 2020 13:55:13 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 34ad5690-5f59-4018-b260-3c9d57eaf832 + 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:13 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: Fri, 11 Sep 2020 13:55:13 GMT + etag: '"0x8D8565A4E61E794"' + last-modified: Fri, 11 Sep 2020 13:55:13 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.18362-SP0) + x-ms-date: + - Fri, 11 Sep 2020 13:55:19 GMT + x-ms-lease-id: + - 34ad5690-5f59-4018-b260-3c9d57eaf832 + 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:7e983f65-c01a-0076-5b43-88508a000000\nTime:2020-09-11T13:55:19.9105154Z" + headers: + content-length: '249' + content-type: application/xml + date: Fri, 11 Sep 2020 13:55:19 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_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_share_async.py b/sdk/storage/azure-storage-file-share/tests/test_share_async.py index 671575a03ca9..838bfd2b381f 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,213 @@ 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_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(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) + + # 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 From 1393a4d768868442906e9611093dd2ed5769685c Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 11 Sep 2020 07:57:40 -0700 Subject: [PATCH 12/41] linting --- .../azure/storage/fileshare/_lease.py | 4 ++-- .../azure/storage/fileshare/aio/_lease_async.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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 c84b084257eb..622b3b4e7193 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 @@ -155,8 +155,8 @@ def renew(self, **kwargs): 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. + 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. 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 1a1556d336dc..162c57216ed9 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 @@ -146,8 +146,8 @@ async def renew(self, **kwargs): 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. + 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. @@ -233,7 +233,6 @@ async def break_lease(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore From fde4b0d4745588c3415b0626a35975f2320737c6 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 11 Sep 2020 10:01:51 -0700 Subject: [PATCH 13/41] share renaming --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 2 +- .../azure/storage/fileshare/_share_client.py | 2 +- .../azure/storage/fileshare/aio/_lease_async.py | 2 +- .../azure/storage/fileshare/aio/_share_client_async.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 622b3b4e7193..336fc5e427a4 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 @@ -127,7 +127,7 @@ def renew(self, **kwargs): :keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag. :keyword str if_tags_match_condition - Specify a SQL where clause on blob tags to operate only on blob with a matching value. + Specify a SQL where clause on share tags to operate only on share with a matching value. eg. "\"tagname\"='my tag'" .. versionadded:: 12.4.0 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 5bf7ec6941ab..a6e5b932a6a5 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 @@ -263,7 +263,7 @@ def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): """Requests a new lease. If the share does not have an active lease, the Share - Service creates a lease on the blob and returns a new lease. + Service creates a lease on the share and returns a new lease. :param int lease_duration: Specifies the duration of the lease, in seconds, or negative one 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 162c57216ed9..b19a8c1b8ffb 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 @@ -118,7 +118,7 @@ async def renew(self, **kwargs): :keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag. :keyword str if_tags_match_condition - Specify a SQL where clause on blob tags to operate only on blob with a matching value. + Specify a SQL where clause on share tags to operate only on share with a matching value. eg. "\"tagname\"='my tag'" .. versionadded:: 12.4.0 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 2e99f73a3eda..04d952e3197b 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 @@ -134,7 +134,7 @@ async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): """Requests a new lease. If the share does not have an active lease, the Share - Service creates a lease on the blob and returns a new lease. + Service creates a lease on the share and returns a new lease. :param int lease_duration: Specifies the duration of the lease, in seconds, or negative one From c96f6d057ea5d52917bab088ee9b33516fdbdf3e Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 15 Sep 2020 12:28:17 -0700 Subject: [PATCH 14/41] added file lease sample --- .../azure/storage/fileshare/_file_client.py | 6 ++--- .../samples/file_samples_client.py | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) 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 a6dede57c88f..c16d94576086 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 @@ -284,10 +284,10 @@ def acquire_lease(self, lease_id=None, **kwargs): .. admonition:: Example: .. literalinclude:: ../samples/file_samples_client.py - :start-after: [START acquire_lease_on_file] - :end-before: [END acquire_lease_on_file] + :start-after: [START acquire_and_release_lease_on_file] + :end-before: [END acquire_and_release_lease_on_file] :language: python - :dedent: 8 + :dedent: 12 :caption: Acquiring a lease on a file. """ lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore 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..791c465a1fa9 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,34 @@ 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, "filesamples2") + + # 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() From 98d516fd0f79c34edff3bcacb0300a7594a986ba Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 15 Sep 2020 12:37:18 -0700 Subject: [PATCH 15/41] added sample for share --- .../azure/storage/fileshare/_share_client.py | 4 ++-- .../samples/file_samples_share.py | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) 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 a6e5b932a6a5..f7aa0f98b136 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 @@ -282,8 +282,8 @@ def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): .. admonition:: Example: .. literalinclude:: ../samples/file_samples_share.py - :start-after: [START acquire_lease_on_share] - :end-before: [END acquire_lease_on_share] + :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. 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..e33e5f3833db 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,22 @@ 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_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() + + # [START acquire_and_release_lease_on_share] + lease = share.acquire_lease() + share.get_share_properties(lease=lease) + share.delete_share() + + lease.release() + # [END acquire_and_release_lease_on_share] + if __name__ == '__main__': sample = ShareSamples() From 1457d32bee8e37e60f4f8248f19f265cbf649492 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 15 Sep 2020 12:46:34 -0700 Subject: [PATCH 16/41] fixed samples --- .../samples/file_samples_client.py | 3 ++- .../samples/file_samples_share.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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 791c465a1fa9..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 @@ -108,7 +108,7 @@ def copy_file_from_url(self): 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, "filesamples2") + share = ShareClient.from_connection_string(self.connection_string, "filesamples3") # Create the share share.create_share() @@ -129,6 +129,7 @@ def acquire_file_lease(self): # Delete the share share.delete_share() + if __name__ == '__main__': sample = FileSamples() sample.simple_file_operations() 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 e33e5f3833db..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,20 +111,19 @@ 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_file_lease(self): + 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, "filesamples3") + 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.release() + share.delete_share(lease=lease) # [END acquire_and_release_lease_on_share] @@ -134,3 +133,4 @@ def acquire_file_lease(self): sample.set_share_quota_and_metadata() sample.list_directories_and_files() sample.get_directory_or_file_client() + sample.acquire_share_lease() From 8f1733c083a1e69f2f6fd4c84d4e163f59c3fde4 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 19:47:06 -0700 Subject: [PATCH 17/41] added docs --- .../azure/storage/fileshare/_lease.py | 2 +- .../azure/storage/fileshare/_share_client.py | 56 +++++++++++++++++++ .../storage/fileshare/aio/_lease_async.py | 2 +- .../fileshare/aio/_share_client_async.py | 49 ++++++++++++++++ 4 files changed, 107 insertions(+), 2 deletions(-) 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 336fc5e427a4..15c1aff4b8f8 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 @@ -168,7 +168,7 @@ def release(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.renew_lease( + else self._client.release_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), sharesnapshot=self.snapshot, 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 f7aa0f98b136..8ef7c872df91 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 @@ -389,8 +389,22 @@ def delete_share( :param bool delete_snapshots: Indicates if snapshots are to be deleted. + :keyword lease: + Required if the file has an active lease. Value can be a ShareLeaseClient object + or the lease ID as a string. + + .. versionadded:: 12.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None .. admonition:: Example: @@ -426,6 +440,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -463,6 +484,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -501,6 +529,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -535,6 +570,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. :rtype: dict[str, Any] """ @@ -567,6 +609,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ @@ -603,6 +652,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ 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 b19a8c1b8ffb..cbfb16c023c8 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 @@ -159,7 +159,7 @@ async def release(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) if isinstance(self._client, FileOperations) \ - else await self._client.renew_lease( + else await self._client.release_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), sharesnapshot=self.snapshot, 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 04d952e3197b..5f4265394dff 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 @@ -262,6 +262,13 @@ async def delete_share( Indicates if snapshots are to be deleted. :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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None .. admonition:: Example: @@ -297,6 +304,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -334,6 +348,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -372,6 +393,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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -406,6 +434,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. :rtype: dict[str, Any] """ @@ -438,6 +473,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ @@ -475,6 +517,13 @@ 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.2.0 + + :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ From 2bfb563efb9ade09fddf976247383e0cd117f6c8 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 19:54:06 -0700 Subject: [PATCH 18/41] removed checks --- .../azure/storage/fileshare/_lease.py | 27 ++----------------- .../azure/storage/fileshare/_share_client.py | 2 +- 2 files changed, 3 insertions(+), 26 deletions(-) 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 15c1aff4b8f8..6a5787a86cd8 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 @@ -95,13 +95,6 @@ def acquire(self, lease_duration=-1, **kwargs): duration=-1, proposed_lease_id=self.id, cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.acquire_lease( - timeout=kwargs.pop('timeout', None), - duration=lease_duration, - sharesnapshot=self.snapshot, - proposed_lease_id=self.id, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -145,6 +138,7 @@ def renew(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -167,12 +161,6 @@ def release(self, **kwargs): lease_id=self.id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.release_lease( - lease_id=self.id, - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -201,13 +189,6 @@ def change(self, proposed_lease_id, **kwargs): proposed_lease_id=proposed_lease_id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.change_lease( - lease_id=self.id, - proposed_lease_id=proposed_lease_id, - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -236,12 +217,8 @@ def break_lease(self, **kwargs): response = self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else self._client.break_lease( - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore 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 8ef7c872df91..b6699d802764 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 @@ -390,7 +390,7 @@ def delete_share( :param bool delete_snapshots: Indicates if snapshots are to be deleted. :keyword lease: - Required if the file has an active lease. Value can be a ShareLeaseClient object + Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. .. versionadded:: 12.2.0 From d2ad99ddacb8384cf4adb339112ed5516377ea37 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 19:58:21 -0700 Subject: [PATCH 19/41] lease change --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6a5787a86cd8..d817ef06d543 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 @@ -138,7 +138,7 @@ def renew(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) - + except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str From d7a2e7163fae4a1d5f168b45941162a02df09a2f Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 19:59:43 -0700 Subject: [PATCH 20/41] lease change --- .../storage/fileshare/aio/_lease_async.py | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) 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 cbfb16c023c8..3e9343dea792 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 @@ -86,13 +86,6 @@ async def acquire(self, lease_duration=-1, **kwargs): duration=-1, proposed_lease_id=self.id, cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else await self._client.acquire_lease( - timeout=kwargs.pop('timeout', None), - duration=lease_duration, - sharesnapshot=self.snapshot, - proposed_lease_id=self.id, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -136,6 +129,7 @@ async def renew(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -158,12 +152,6 @@ async def release(self, **kwargs): lease_id=self.id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else await self._client.release_lease( - lease_id=self.id, - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -192,13 +180,6 @@ async def change(self, proposed_lease_id, **kwargs): proposed_lease_id=proposed_lease_id, timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else await self._client.change_lease( - lease_id=self.id, - proposed_lease_id=proposed_lease_id, - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -227,12 +208,8 @@ async def break_lease(self, **kwargs): response = await self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, - **kwargs) if isinstance(self._client, FileOperations) \ - else await self._client.break_lease( - timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, - cls=return_response_headers, **kwargs) + except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore From e11d418782b23159c7f4c5cbe4212b5c46c365ea Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 20:11:16 -0700 Subject: [PATCH 21/41] added correct lease durations --- .../azure/storage/fileshare/_file_client.py | 2 +- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 2 +- .../azure/storage/fileshare/aio/_file_client_async.py | 2 +- .../azure/storage/fileshare/aio/_lease_async.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 c16d94576086..e93a406b0f02 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 @@ -291,7 +291,7 @@ def acquire_lease(self, lease_id=None, **kwargs): :caption: Acquiring a lease on a file. """ lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore - lease.acquire(**kwargs) + lease.acquire(lease_duration=-1, **kwargs) return lease @distributed_trace 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 d817ef06d543..a9c7c509cf57 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 @@ -92,7 +92,7 @@ def acquire(self, lease_duration=-1, **kwargs): try: 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) 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 3d48fdc0d882..2ff50fdf2ef5 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 @@ -166,7 +166,7 @@ async def acquire_lease(self, lease_id=None, **kwargs): :caption: Acquiring a lease on a blob. """ lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore - await lease.acquire(**kwargs) + await lease.acquire(lease_duration=-1, **kwargs) return lease @distributed_trace_async 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 3e9343dea792..a3f4b47b9dc9 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 @@ -83,7 +83,7 @@ async def acquire(self, lease_duration=-1, **kwargs): try: 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) From bf6633055d1e5643c45e4023cded0d2922fd429b Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 23 Sep 2020 20:13:26 -0700 Subject: [PATCH 22/41] removed spacing --- .../azure/storage/fileshare/_lease.py | 5 ----- .../azure/storage/fileshare/aio/_lease_async.py | 5 ----- 2 files changed, 10 deletions(-) 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 a9c7c509cf57..e77884c9798f 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 @@ -96,7 +96,6 @@ def acquire(self, lease_duration=-1, **kwargs): proposed_lease_id=self.id, cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.id = response.get('lease_id') # type: str @@ -138,7 +137,6 @@ def renew(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -162,7 +160,6 @@ def release(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -190,7 +187,6 @@ def change(self, proposed_lease_id, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -218,7 +214,6 @@ def break_lease(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore 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 a3f4b47b9dc9..89643e5b0c49 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 @@ -87,7 +87,6 @@ async def acquire(self, lease_duration=-1, **kwargs): proposed_lease_id=self.id, cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.id = response.get('lease_id') # type: str @@ -129,7 +128,6 @@ async def renew(self, **kwargs): sharesnapshot=self.snapshot, cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -153,7 +151,6 @@ async def release(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -181,7 +178,6 @@ async def change(self, proposed_lease_id, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) self.etag = response.get('etag') # type: str @@ -209,7 +205,6 @@ async def break_lease(self, **kwargs): timeout=kwargs.pop('timeout', None), cls=return_response_headers, **kwargs) - except StorageErrorException as error: process_storage_error(error) return response.get('lease_time') # type: ignore From 3c03bc17405c515c4c9275878df873007f5dd33b Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 24 Sep 2020 06:09:57 -0700 Subject: [PATCH 23/41] version correction --- .../azure/storage/fileshare/_share_client.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 b6699d802764..febd21e3d1f6 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 @@ -393,7 +393,7 @@ def delete_share( Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :keyword int timeout: @@ -402,7 +402,7 @@ def delete_share( Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None @@ -444,7 +444,7 @@ def get_share_properties(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. @@ -488,7 +488,7 @@ def set_share_quota(self, quota, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -533,7 +533,7 @@ def set_share_metadata(self, metadata, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -574,7 +574,7 @@ def get_share_access_policy(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. @@ -613,7 +613,7 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -656,7 +656,7 @@ def get_share_stats(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. From 83a70f1fca22560366584d30d06e0d8631897901 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 24 Sep 2020 17:54:57 -0700 Subject: [PATCH 24/41] fixed snapshot --- .../azure/storage/fileshare/_lease.py | 16 ++++++++++++---- .../azure/storage/fileshare/aio/_lease_async.py | 12 ++++++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) 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 e77884c9798f..867e34566380 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 @@ -54,10 +54,10 @@ def __init__( self.etag = None if hasattr(client, 'file_name'): self._client = client._client.file # type: ignore # pylint: disable=protected-access - self.snapshot = None + self._snapshot = None elif hasattr(client, 'share_name'): self._client = client._client.share - self.snapshot = client.snapshot + self._snapshot = client.snapshot else: raise TypeError("Lease must use ShareFileClient or ShareClient.") @@ -90,6 +90,8 @@ def acquire(self, lease_duration=-1, **kwargs): :rtype: None """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = self._client.acquire_lease( timeout=kwargs.pop('timeout', None), duration=lease_duration, @@ -134,7 +136,7 @@ def renew(self, **kwargs): response = self._client.renew_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, + sharesnapshot=self._snapshot, cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -155,6 +157,8 @@ def release(self, **kwargs): :return: None """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = self._client.release_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), @@ -181,6 +185,8 @@ def change(self, proposed_lease_id, **kwargs): :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, @@ -195,7 +201,7 @@ def change(self, proposed_lease_id, **kwargs): @distributed_trace def break_lease(self, **kwargs): - # type: (Optional[int], Any) -> int + # type: (Optional[int, str], 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. @@ -210,6 +216,8 @@ def break_lease(self, **kwargs): :rtype: int """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot 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/aio/_lease_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py index 89643e5b0c49..f35f9c2fdea1 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 @@ -81,6 +81,8 @@ async def acquire(self, lease_duration=-1, **kwargs): :rtype: None """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = await self._client.acquire_lease( timeout=kwargs.pop('timeout', None), duration=lease_duration, @@ -125,7 +127,7 @@ async def renew(self, **kwargs): response = await self._client.renew_lease( lease_id=self.id, timeout=kwargs.pop('timeout', None), - sharesnapshot=self.snapshot, + sharesnapshot=self._snapshot, cls=return_response_headers, **kwargs) except StorageErrorException as error: @@ -146,6 +148,8 @@ async def release(self, **kwargs): :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), @@ -172,6 +176,8 @@ async def change(self, proposed_lease_id, **kwargs): :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, @@ -186,7 +192,7 @@ async def change(self, proposed_lease_id, **kwargs): @distributed_trace_async async def break_lease(self, **kwargs): - # type: (Optional[int], Any) -> int + # type: (Optional[int, str], 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. @@ -201,6 +207,8 @@ async def break_lease(self, **kwargs): :rtype: int """ try: + if self._snapshot: + kwargs['sharesnapshot'] = self._snapshot response = await self._client.break_lease( timeout=kwargs.pop('timeout', None), cls=return_response_headers, From f3df73eb81671dd005f964c56344c1e3a25715b9 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 24 Sep 2020 18:20:07 -0700 Subject: [PATCH 25/41] added snapshot tests --- ...e.test_acquire_lease_on_sharesnapshot.yaml | 2443 +++++++++++++++++ ...c.test_acquire_lease_on_sharesnapshot.yaml | 1731 ++++++++++++ .../tests/test_share.py | 31 + .../tests/test_share_async.py | 32 + 4 files changed, 4237 insertions(+) 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_async.test_acquire_lease_on_sharesnapshot.yaml 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..baac3785c9f4 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_acquire_lease_on_sharesnapshot.yaml @@ -0,0 +1,2443 @@ +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: + - Fri, 25 Sep 2020 01:13:36 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:13:35 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 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: + - Fri, 25 Sep 2020 01:13:37 GMT + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share&comp=snapshot + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:13:36 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-snapshot: + - '2020-09-25T01:13:36.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: + - Fri, 25 Sep 2020 01:13:37 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - f51c7a78-988b-4651-a896-e66c4e5a31ba + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:13:36 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - f51c7a78-988b-4651-a896-e66c4e5a31ba + 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: + - Fri, 25 Sep 2020 01:14:02 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 1a426842-504b-4b09-84c2-6390deff3919 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:13:36.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:14:01 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: + - 1a426842-504b-4b09-84c2-6390deff3919 + 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: + - Fri, 25 Sep 2020 01:14:02 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 1a426842-504b-4b09-84c2-6390deff3919 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:13:36.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:14:01 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 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: + - Fri, 25 Sep 2020 01:14:02 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - f51c7a78-988b-4651-a896-e66c4e5a31ba + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/shareba3e12f1?comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:14:01 GMT + etag: + - '"0x8D860F03AB4499C"' + last-modified: + - Fri, 25 Sep 2020 01:13:36 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: + - Fri, 25 Sep 2020 01:14:02 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-25T01:13:36.0000000ZFri, + 25 Sep 2020 01:13:36 GMT\"0x8D860F03AB4499C\"unlockedavailable5120$account-encryption-keyfalseshareba3e12f1Fri, + 25 Sep 2020 01:13:36 GMT\"0x8D860F03AB4499C\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 01:13:36 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: + - Fri, 25 Sep 2020 01:14:01 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efb1-101a-0091-74d9-92bf70000000\nTime:2020-09-25T01:14:02.6011083Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14: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. +- 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efb4-101a-0091-77d9-92bf70000000\nTime:2020-09-25T01:14:02.7231946Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14: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. +- 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efb6-101a-0091-78d9-92bf70000000\nTime:2020-09-25T01:14:02.8532870Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14: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. +- 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efb8-101a-0091-79d9-92bf70000000\nTime:2020-09-25T01:14:02.9813779Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efbc-101a-0091-7dd9-92bf70000000\nTime:2020-09-25T01:14:03.0984615Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:03 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:6d62efc0-101a-0091-01d9-92bf70000000\nTime:2020-09-25T01:14:03.2105411Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:03 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: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:04 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: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efc6-101a-0091-06d9-92bf70000000\nTime:2020-09-25T01:14:03.5617902Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efc7-101a-0091-07d9-92bf70000000\nTime:2020-09-25T01:14:03.6898812Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efcc-101a-0091-0bd9-92bf70000000\nTime:2020-09-25T01:14:03.8099665Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:02 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efce-101a-0091-0dd9-92bf70000000\nTime:2020-09-25T01:14:03.9340546Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efcf-101a-0091-0ed9-92bf70000000\nTime:2020-09-25T01:14:04.0431321Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efd0-101a-0091-0fd9-92bf70000000\nTime:2020-09-25T01:14:04.1672206Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efd1-101a-0091-10d9-92bf70000000\nTime:2020-09-25T01:14:04.2813016Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:04 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:6d62efd2-101a-0091-11d9-92bf70000000\nTime:2020-09-25T01:14:04.4033884Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efd4-101a-0091-13d9-92bf70000000\nTime:2020-09-25T01:14:04.5244744Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efd5-101a-0091-14d9-92bf70000000\nTime:2020-09-25T01:14:04.6385554Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efd6-101a-0091-15d9-92bf70000000\nTime:2020-09-25T01:14:04.7726502Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:03 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efd7-101a-0091-16d9-92bf70000000\nTime:2020-09-25T01:14:04.8847298Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efd9-101a-0091-18d9-92bf70000000\nTime:2020-09-25T01:14:05.0018130Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efdb-101a-0091-1ad9-92bf70000000\nTime:2020-09-25T01:14:05.1469160Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efdc-101a-0091-1bd9-92bf70000000\nTime:2020-09-25T01:14:05.2720053Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:05 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:6d62efde-101a-0091-1cd9-92bf70000000\nTime:2020-09-25T01:14:05.4101030Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efdf-101a-0091-1dd9-92bf70000000\nTime:2020-09-25T01:14:05.5251847Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe0-101a-0091-1ed9-92bf70000000\nTime:2020-09-25T01:14:05.6452704Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe2-101a-0091-20d9-92bf70000000\nTime:2020-09-25T01:14:05.7713595Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:04 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe3-101a-0091-21d9-92bf70000000\nTime:2020-09-25T01:14:05.8934463Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe4-101a-0091-22d9-92bf70000000\nTime:2020-09-25T01:14:06.0295429Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe5-101a-0091-23d9-92bf70000000\nTime:2020-09-25T01:14:06.1496286Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe7-101a-0091-25d9-92bf70000000\nTime:2020-09-25T01:14:06.2867256Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:06 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:6d62efe8-101a-0091-26d9-92bf70000000\nTime:2020-09-25T01:14:06.4068109Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62efea-101a-0091-28d9-92bf70000000\nTime:2020-09-25T01:14:06.5298992Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62efeb-101a-0091-29d9-92bf70000000\nTime:2020-09-25T01:14:06.6599911Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62efed-101a-0091-2ad9-92bf70000000\nTime:2020-09-25T01:14:06.7850795Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:05 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62efee-101a-0091-2bd9-92bf70000000\nTime:2020-09-25T01:14:06.8961584Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62efef-101a-0091-2cd9-92bf70000000\nTime:2020-09-25T01:14:07.0102399Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62eff0-101a-0091-2dd9-92bf70000000\nTime:2020-09-25T01:14:07.1353283Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62eff3-101a-0091-2fd9-92bf70000000\nTime:2020-09-25T01:14:07.2504100Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:07 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:6d62eff4-101a-0091-30d9-92bf70000000\nTime:2020-09-25T01:14:07.3734975Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62eff5-101a-0091-31d9-92bf70000000\nTime:2020-09-25T01:14:07.4955842Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62eff7-101a-0091-32d9-92bf70000000\nTime:2020-09-25T01:14:07.6176713Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62eff9-101a-0091-34d9-92bf70000000\nTime:2020-09-25T01:14:07.7457619Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:06 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62effc-101a-0091-36d9-92bf70000000\nTime:2020-09-25T01:14:07.8738529Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:07 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62effd-101a-0091-37d9-92bf70000000\nTime:2020-09-25T01:14:07.9969403Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:07 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62efff-101a-0091-39d9-92bf70000000\nTime:2020-09-25T01:14:08.1360391Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:07 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62f000-101a-0091-3ad9-92bf70000000\nTime:2020-09-25T01:14:08.2911492Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:07 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: + - Fri, 25 Sep 2020 01:14:08 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:6d62f002-101a-0091-3cd9-92bf70000000\nTime:2020-09-25T01:14:08.3992260Z" + headers: + content-length: + - '273' + content-type: + - application/xml + date: + - Fri, 25 Sep 2020 01:14:07 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. +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..3068fd87107a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_share_async.test_acquire_lease_on_sharesnapshot.yaml @@ -0,0 +1,1731 @@ +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: + - Fri, 25 Sep 2020 01:19:24 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: Fri, 25 Sep 2020 01:19:43 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 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: + - Fri, 25 Sep 2020 01:19:44 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: Fri, 25 Sep 2020 01:19:43 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-snapshot: '2020-09-25T01:19:43.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: + - Fri, 25 Sep 2020 01:19:44 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + 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: Fri, 25 Sep 2020 01:19:45 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + 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: + - Fri, 25 Sep 2020 01:19:45 GMT + x-ms-lease-action: + - acquire + x-ms-lease-duration: + - '-1' + x-ms-proposed-lease-id: + - ae94f85f-5b6b-44e1-b0bf-12154884c320 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 25 Sep 2020 01:19:45 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-lease-id: ae94f85f-5b6b-44e1-b0bf-12154884c320 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.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: + - Fri, 25 Sep 2020 01:19:46 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - ae94f85f-5b6b-44e1-b0bf-12154884c320 + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.0000000Z&comp=lease&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 25 Sep 2020 01:19:45 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 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-25T01:19:43.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: + - Fri, 25 Sep 2020 01:19:46 GMT + x-ms-lease-action: + - release + x-ms-lease-id: + - 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + 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: Fri, 25 Sep 2020 01:19:45 GMT + etag: '"0x8D860F11587BD3A"' + last-modified: Fri, 25 Sep 2020 01:19:43 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: + - Fri, 25 Sep 2020 01:19:46 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-25T01:19:43.0000000ZFri, + 25 Sep 2020 01:19:43 GMT\"0x8D860F11587BD3A\"unlockedavailable5120$account-encryption-keyfalseshare35a8156eFri, + 25 Sep 2020 01:19:43 GMT\"0x8D860F11587BD3A\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 01:19:43 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-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: Fri, 25 Sep 2020 01:19:45 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: + - Fri, 25 Sep 2020 01:19:46 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:68d95143-501a-004b-80d9-922691000000\nTime:2020-09-25T01:19:46.0813903Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:45 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: + - Fri, 25 Sep 2020 01:19:46 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:68d95146-501a-004b-03d9-922691000000\nTime:2020-09-25T01:19:46.1444351Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:45 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: + - Fri, 25 Sep 2020 01:19:46 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:68d95147-501a-004b-04d9-922691000000\nTime:2020-09-25T01:19:46.2114832Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:45 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: + - Fri, 25 Sep 2020 01:19:46 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: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:46 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: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9514a-501a-004b-07d9-922691000000\nTime:2020-09-25T01:19:46.3996165Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9514b-501a-004b-08d9-922691000000\nTime:2020-09-25T01:19:46.4646640Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9514c-501a-004b-09d9-922691000000\nTime:2020-09-25T01:19:46.5297098Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9514e-501a-004b-0bd9-922691000000\nTime:2020-09-25T01:19:46.5927542Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9514f-501a-004b-0cd9-922691000000\nTime:2020-09-25T01:19:46.6567993Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95150-501a-004b-0dd9-922691000000\nTime:2020-09-25T01:19:46.7248476Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95151-501a-004b-0ed9-922691000000\nTime:2020-09-25T01:19:46.7948974Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95152-501a-004b-0fd9-922691000000\nTime:2020-09-25T01:19:46.8619455Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95153-501a-004b-10d9-922691000000\nTime:2020-09-25T01:19:46.9289931Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95155-501a-004b-12d9-922691000000\nTime:2020-09-25T01:19:46.9970415Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95156-501a-004b-13d9-922691000000\nTime:2020-09-25T01:19:47.0630884Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95157-501a-004b-14d9-922691000000\nTime:2020-09-25T01:19:47.1291354Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d95158-501a-004b-15d9-922691000000\nTime:2020-09-25T01:19:47.1971833Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:46 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9515a-501a-004b-17d9-922691000000\nTime:2020-09-25T01:19:47.2722371Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:47 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:68d9515b-501a-004b-18d9-922691000000\nTime:2020-09-25T01:19:47.3392847Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d9515d-501a-004b-19d9-922691000000\nTime:2020-09-25T01:19:47.4083334Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d9515e-501a-004b-1ad9-922691000000\nTime:2020-09-25T01:19:47.4763817Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d9515f-501a-004b-1bd9-922691000000\nTime:2020-09-25T01:19:47.5444301Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95160-501a-004b-1cd9-922691000000\nTime:2020-09-25T01:19:47.6124789Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95161-501a-004b-1dd9-922691000000\nTime:2020-09-25T01:19:47.6815279Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95162-501a-004b-1ed9-922691000000\nTime:2020-09-25T01:19:47.7525784Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95163-501a-004b-1fd9-922691000000\nTime:2020-09-25T01:19:47.8226282Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95165-501a-004b-21d9-922691000000\nTime:2020-09-25T01:19:47.8926784Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95166-501a-004b-22d9-922691000000\nTime:2020-09-25T01:19:47.9627278Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95167-501a-004b-23d9-922691000000\nTime:2020-09-25T01:19:48.0327771Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95168-501a-004b-24d9-922691000000\nTime:2020-09-25T01:19:48.1028274Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d95169-501a-004b-25d9-922691000000\nTime:2020-09-25T01:19:48.1738774Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:47 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: + - Fri, 25 Sep 2020 01:19:48 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:68d9516a-501a-004b-26d9-922691000000\nTime:2020-09-25T01:19:48.2459286Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:48 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:68d9516d-501a-004b-29d9-922691000000\nTime:2020-09-25T01:19:48.3169791Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9516e-501a-004b-2ad9-922691000000\nTime:2020-09-25T01:19:48.3940343Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9516f-501a-004b-2bd9-922691000000\nTime:2020-09-25T01:19:48.4660851Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95171-501a-004b-2dd9-922691000000\nTime:2020-09-25T01:19:48.5401381Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95172-501a-004b-2ed9-922691000000\nTime:2020-09-25T01:19:48.6131901Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95173-501a-004b-2fd9-922691000000\nTime:2020-09-25T01:19:48.6882430Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95174-501a-004b-30d9-922691000000\nTime:2020-09-25T01:19:48.7693010Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95177-501a-004b-32d9-922691000000\nTime:2020-09-25T01:19:48.8643686Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95178-501a-004b-33d9-922691000000\nTime:2020-09-25T01:19:48.9694428Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9517a-501a-004b-35d9-922691000000\nTime:2020-09-25T01:19:49.0865277Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9517b-501a-004b-36d9-922691000000\nTime:2020-09-25T01:19:49.1585777Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9517d-501a-004b-38d9-922691000000\nTime:2020-09-25T01:19:49.2286274Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19:48 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: + - Fri, 25 Sep 2020 01:19:49 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:68d9517e-501a-004b-39d9-922691000000\nTime:2020-09-25T01:19:49.3016785Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19: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. + 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: + - Fri, 25 Sep 2020 01:19:49 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:68d95180-501a-004b-3ad9-922691000000\nTime:2020-09-25T01:19:49.3737293Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19: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. + 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: + - Fri, 25 Sep 2020 01:19:50 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:68d95182-501a-004b-3bd9-922691000000\nTime:2020-09-25T01:19:49.4347727Z" + headers: + content-length: '273' + content-type: application/xml + date: Fri, 25 Sep 2020 01:19: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. + url: https://seanmcccanary3.file.core.windows.net/testf69713fa?restype=share +version: 1 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 804bf38839fa..4306a74b2b7e 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -193,6 +193,37 @@ def test_lease_share_acquire_and_release(self, resource_group, location, storage 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() + + # 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 + 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) 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 838bfd2b381f..740ba1a35d70 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 @@ -211,6 +211,38 @@ async def test_lease_share_acquire_and_release(self, resource_group, location, s 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 + 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): From f5ea0209ac456dca00d058e085a98342aca7ecff Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 24 Sep 2020 18:27:08 -0700 Subject: [PATCH 26/41] added snapshot tests --- ...e.test_acquire_lease_on_sharesnapshot.yaml | 470 +++++++++++------- ...c.test_acquire_lease_on_sharesnapshot.yaml | 434 +++++++++------- .../tests/test_share.py | 3 + .../tests/test_share_async.py | 3 + 4 files changed, 546 insertions(+), 364 deletions(-) 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 index baac3785c9f4..dd2bbf473072 100644 --- 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 @@ -13,7 +13,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:17 GMT x-ms-version: - '2020-02-10' method: PUT @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:13:35 GMT + - Fri, 25 Sep 2020 01:26:36 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,7 +51,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:13:37 GMT + - Fri, 25 Sep 2020 01:26:37 GMT x-ms-version: - '2020-02-10' method: PUT @@ -63,15 +63,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:36 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2020-09-25T01:13:36.0000000Z' + - '2020-09-25T01:26:37.0000000Z' x-ms-version: - '2020-02-10' status: @@ -91,13 +91,13 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:13:37 GMT + - Fri, 25 Sep 2020 01:26:37 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - f51c7a78-988b-4651-a896-e66c4e5a31ba + - 9353fd58-7786-4290-b0ea-262d1bed2be1 x-ms-version: - '2020-02-10' method: PUT @@ -109,15 +109,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:36 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - f51c7a78-988b-4651-a896-e66c4e5a31ba + - 9353fd58-7786-4290-b0ea-262d1bed2be1 x-ms-version: - '2020-02-10' status: @@ -137,17 +137,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 1a426842-504b-4b09-84c2-6390deff3919 + - 94aab6c8-04ca-466c-b351-35645d021017 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:13:36.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&comp=lease&restype=share response: body: string: '' @@ -155,20 +155,128 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:37 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 1a426842-504b-4b09-84c2-6390deff3919 + - 94aab6c8-04ca-466c-b351-35645d021017 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: + - Fri, 25 Sep 2020 01:26:38 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:26:37 GMT + etag: + - '"0x8D860F20BD8FD08"' + last-modified: + - Fri, 25 Sep 2020 01:26:37 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: + - Origin + x-ms-access-tier: + - TransactionOptimized + x-ms-access-tier-change-time: + - Fri, 25 Sep 2020 01:26:36 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-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 + User-Agent: + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Fri, 25 Sep 2020 01:26:38 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 25 Sep 2020 01:26:37 GMT + etag: + - '"0x8D860F20BD8FD08"' + last-modified: + - Fri, 25 Sep 2020 01:26:37 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: + - Origin + x-ms-access-tier: + - TransactionOptimized + x-ms-access-tier-change-time: + - Fri, 25 Sep 2020 01:26:36 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-share-quota: + - '5120' + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK - request: body: null headers: @@ -183,15 +291,15 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT x-ms-lease-action: - release x-ms-lease-id: - - 1a426842-504b-4b09-84c2-6390deff3919 + - 94aab6c8-04ca-466c-b351-35645d021017 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:13:36.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&comp=lease&restype=share response: body: string: '' @@ -199,11 +307,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:37 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -227,11 +335,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT x-ms-lease-action: - release x-ms-lease-id: - - f51c7a78-988b-4651-a896-e66c4e5a31ba + - 9353fd58-7786-4290-b0ea-262d1bed2be1 x-ms-version: - '2020-02-10' method: PUT @@ -243,11 +351,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:37 GMT etag: - - '"0x8D860F03AB4499C"' + - '"0x8D860F20BD8FD08"' last-modified: - - Fri, 25 Sep 2020 01:13:36 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -269,7 +377,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT x-ms-version: - '2020-02-10' method: GET @@ -289,10 +397,10 @@ interactions: 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-25T01:13:36.0000000ZFri, - 25 Sep 2020 01:13:36 GMT\"0x8D860F03AB4499C\"unlockedavailable5120$account-encryption-keyfalseshareba3e12f1Fri, - 25 Sep 2020 01:13:36 GMT\"0x8D860F03AB4499C\"unlockedavailable5120TransactionOptimizedFri, - 25 Sep 2020 01:13:36 GMT$account-encryption-keyfalsesharec80148eFri, + 10 Sep 2020 23:48:04 GMT$account-encryption-keyfalseshareba3e12f12020-09-25T01:26:37.0000000ZFri, + 25 Sep 2020 01:26:37 GMT\"0x8D860F20BD8FD08\"unlockedavailable5120$account-encryption-keyfalseshareba3e12f1Fri, + 25 Sep 2020 01:26:37 GMT\"0x8D860F20BD8FD08\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 01:26:36 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, @@ -378,7 +486,7 @@ interactions: content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -404,7 +512,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -415,14 +523,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efb1-101a-0091-74d9-92bf70000000\nTime:2020-09-25T01:14:02.6011083Z" + request.\nRequestId:83926f46-601a-001d-3fda-92d77e000000\nTime:2020-09-25T01:26:38.6448786Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -447,7 +555,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -458,14 +566,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efb4-101a-0091-77d9-92bf70000000\nTime:2020-09-25T01:14:02.7231946Z" + request.\nRequestId:83926f47-601a-001d-40da-92d77e000000\nTime:2020-09-25T01:26:38.7629618Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -490,7 +598,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -501,14 +609,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efb6-101a-0091-78d9-92bf70000000\nTime:2020-09-25T01:14:02.8532870Z" + request.\nRequestId:83926f48-601a-001d-41da-92d77e000000\nTime:2020-09-25T01:26:38.8880499Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:01 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -533,7 +641,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -544,14 +652,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efb8-101a-0091-79d9-92bf70000000\nTime:2020-09-25T01:14:02.9813779Z" + request.\nRequestId:83926f4e-601a-001d-46da-92d77e000000\nTime:2020-09-25T01:26:39.0081340Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -576,7 +684,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -587,14 +695,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efbc-101a-0091-7dd9-92bf70000000\nTime:2020-09-25T01:14:03.0984615Z" + request.\nRequestId:83926f54-601a-001d-4cda-92d77e000000\nTime:2020-09-25T01:26:39.1292198Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -619,7 +727,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -630,14 +738,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efc0-101a-0091-01d9-92bf70000000\nTime:2020-09-25T01:14:03.2105411Z" + request.\nRequestId:83926f55-601a-001d-4dda-92d77e000000\nTime:2020-09-25T01:26:39.2443008Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -662,7 +770,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -676,7 +784,7 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -698,7 +806,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -712,7 +820,7 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -734,7 +842,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -745,14 +853,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efc6-101a-0091-06d9-92bf70000000\nTime:2020-09-25T01:14:03.5617902Z" + request.\nRequestId:83926f59-601a-001d-51da-92d77e000000\nTime:2020-09-25T01:26:39.6225668Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -777,7 +885,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -788,14 +896,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efc7-101a-0091-07d9-92bf70000000\nTime:2020-09-25T01:14:03.6898812Z" + request.\nRequestId:83926f5a-601a-001d-52da-92d77e000000\nTime:2020-09-25T01:26:39.7636661Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -820,7 +928,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -831,14 +939,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efcc-101a-0091-0bd9-92bf70000000\nTime:2020-09-25T01:14:03.8099665Z" + request.\nRequestId:83926f5b-601a-001d-53da-92d77e000000\nTime:2020-09-25T01:26:39.8777469Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:02 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -863,7 +971,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -874,14 +982,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efce-101a-0091-0dd9-92bf70000000\nTime:2020-09-25T01:14:03.9340546Z" + request.\nRequestId:83926f5d-601a-001d-54da-92d77e000000\nTime:2020-09-25T01:26:39.9978319Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -906,7 +1014,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -917,14 +1025,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efcf-101a-0091-0ed9-92bf70000000\nTime:2020-09-25T01:14:04.0431321Z" + request.\nRequestId:83926f5e-601a-001d-55da-92d77e000000\nTime:2020-09-25T01:26:40.1689524Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -949,7 +1057,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -960,14 +1068,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd0-101a-0091-0fd9-92bf70000000\nTime:2020-09-25T01:14:04.1672206Z" + request.\nRequestId:83926f61-601a-001d-58da-92d77e000000\nTime:2020-09-25T01:26:40.3040467Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -992,7 +1100,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1003,14 +1111,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd1-101a-0091-10d9-92bf70000000\nTime:2020-09-25T01:14:04.2813016Z" + request.\nRequestId:83926f62-601a-001d-59da-92d77e000000\nTime:2020-09-25T01:26:40.4321369Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1035,7 +1143,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1046,14 +1154,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd2-101a-0091-11d9-92bf70000000\nTime:2020-09-25T01:14:04.4033884Z" + request.\nRequestId:83926f65-601a-001d-5cda-92d77e000000\nTime:2020-09-25T01:26:40.5612283Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1078,7 +1186,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1089,14 +1197,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd4-101a-0091-13d9-92bf70000000\nTime:2020-09-25T01:14:04.5244744Z" + request.\nRequestId:83926f67-601a-001d-5eda-92d77e000000\nTime:2020-09-25T01:26:40.6883178Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1121,7 +1229,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1132,14 +1240,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd5-101a-0091-14d9-92bf70000000\nTime:2020-09-25T01:14:04.6385554Z" + request.\nRequestId:83926f68-601a-001d-5fda-92d77e000000\nTime:2020-09-25T01:26:40.8094031Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1164,7 +1272,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1175,14 +1283,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd6-101a-0091-15d9-92bf70000000\nTime:2020-09-25T01:14:04.7726502Z" + request.\nRequestId:83926f69-601a-001d-60da-92d77e000000\nTime:2020-09-25T01:26:40.9444978Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:03 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1207,7 +1315,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1218,14 +1326,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd7-101a-0091-16d9-92bf70000000\nTime:2020-09-25T01:14:04.8847298Z" + request.\nRequestId:83926f6a-601a-001d-61da-92d77e000000\nTime:2020-09-25T01:26:41.0645828Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1250,7 +1358,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1261,14 +1369,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efd9-101a-0091-18d9-92bf70000000\nTime:2020-09-25T01:14:05.0018130Z" + request.\nRequestId:83926f6b-601a-001d-62da-92d77e000000\nTime:2020-09-25T01:26:41.1966754Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1293,7 +1401,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1304,14 +1412,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efdb-101a-0091-1ad9-92bf70000000\nTime:2020-09-25T01:14:05.1469160Z" + request.\nRequestId:83926f6c-601a-001d-63da-92d77e000000\nTime:2020-09-25T01:26:41.3167600Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1336,7 +1444,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1347,14 +1455,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efdc-101a-0091-1bd9-92bf70000000\nTime:2020-09-25T01:14:05.2720053Z" + request.\nRequestId:83926f6d-601a-001d-64da-92d77e000000\nTime:2020-09-25T01:26:41.4298400Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1379,7 +1487,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1390,14 +1498,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efde-101a-0091-1cd9-92bf70000000\nTime:2020-09-25T01:14:05.4101030Z" + request.\nRequestId:83926f78-601a-001d-6eda-92d77e000000\nTime:2020-09-25T01:26:41.5639345Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1422,7 +1530,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1433,14 +1541,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efdf-101a-0091-1dd9-92bf70000000\nTime:2020-09-25T01:14:05.5251847Z" + request.\nRequestId:83926f81-601a-001d-77da-92d77e000000\nTime:2020-09-25T01:26:41.6900231Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1465,7 +1573,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1476,14 +1584,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe0-101a-0091-1ed9-92bf70000000\nTime:2020-09-25T01:14:05.6452704Z" + request.\nRequestId:83926f82-601a-001d-78da-92d77e000000\nTime:2020-09-25T01:26:41.8081070Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1508,7 +1616,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1519,14 +1627,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe2-101a-0091-20d9-92bf70000000\nTime:2020-09-25T01:14:05.7713595Z" + request.\nRequestId:83926f83-601a-001d-79da-92d77e000000\nTime:2020-09-25T01:26:41.9251901Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:04 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1551,7 +1659,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1562,14 +1670,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe3-101a-0091-21d9-92bf70000000\nTime:2020-09-25T01:14:05.8934463Z" + request.\nRequestId:83926f86-601a-001d-7bda-92d77e000000\nTime:2020-09-25T01:26:42.0522808Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1594,7 +1702,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1605,14 +1713,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe4-101a-0091-22d9-92bf70000000\nTime:2020-09-25T01:14:06.0295429Z" + request.\nRequestId:83926f87-601a-001d-7cda-92d77e000000\nTime:2020-09-25T01:26:42.1713654Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1637,7 +1745,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1648,14 +1756,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe5-101a-0091-23d9-92bf70000000\nTime:2020-09-25T01:14:06.1496286Z" + request.\nRequestId:83926f89-601a-001d-7eda-92d77e000000\nTime:2020-09-25T01:26:42.2884486Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1680,7 +1788,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1691,14 +1799,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe7-101a-0091-25d9-92bf70000000\nTime:2020-09-25T01:14:06.2867256Z" + request.\nRequestId:83926f8b-601a-001d-7fda-92d77e000000\nTime:2020-09-25T01:26:42.4145386Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1723,7 +1831,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1734,14 +1842,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efe8-101a-0091-26d9-92bf70000000\nTime:2020-09-25T01:14:06.4068109Z" + request.\nRequestId:83926f8c-601a-001d-80da-92d77e000000\nTime:2020-09-25T01:26:42.5546376Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1766,7 +1874,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1777,14 +1885,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efea-101a-0091-28d9-92bf70000000\nTime:2020-09-25T01:14:06.5298992Z" + request.\nRequestId:83926f8d-601a-001d-01da-92d77e000000\nTime:2020-09-25T01:26:42.6987397Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1809,7 +1917,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1820,14 +1928,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efeb-101a-0091-29d9-92bf70000000\nTime:2020-09-25T01:14:06.6599911Z" + request.\nRequestId:83926f8f-601a-001d-03da-92d77e000000\nTime:2020-09-25T01:26:42.8178235Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1852,7 +1960,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1863,14 +1971,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efed-101a-0091-2ad9-92bf70000000\nTime:2020-09-25T01:14:06.7850795Z" + request.\nRequestId:83926f90-601a-001d-04da-92d77e000000\nTime:2020-09-25T01:26:42.9419109Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:05 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1895,7 +2003,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1906,14 +2014,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efee-101a-0091-2bd9-92bf70000000\nTime:2020-09-25T01:14:06.8961584Z" + request.\nRequestId:83926f91-601a-001d-05da-92d77e000000\nTime:2020-09-25T01:26:43.0589934Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1938,7 +2046,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1949,14 +2057,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efef-101a-0091-2cd9-92bf70000000\nTime:2020-09-25T01:14:07.0102399Z" + request.\nRequestId:83926f92-601a-001d-06da-92d77e000000\nTime:2020-09-25T01:26:43.1830808Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1981,7 +2089,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1992,14 +2100,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff0-101a-0091-2dd9-92bf70000000\nTime:2020-09-25T01:14:07.1353283Z" + request.\nRequestId:83926f96-601a-001d-09da-92d77e000000\nTime:2020-09-25T01:26:43.3021642Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2024,7 +2132,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2035,14 +2143,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff3-101a-0091-2fd9-92bf70000000\nTime:2020-09-25T01:14:07.2504100Z" + request.\nRequestId:83926f97-601a-001d-0ada-92d77e000000\nTime:2020-09-25T01:26:43.4292537Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2067,7 +2175,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2078,14 +2186,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff4-101a-0091-30d9-92bf70000000\nTime:2020-09-25T01:14:07.3734975Z" + request.\nRequestId:83926f98-601a-001d-0bda-92d77e000000\nTime:2020-09-25T01:26:43.5463362Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2110,7 +2218,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2121,14 +2229,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff5-101a-0091-31d9-92bf70000000\nTime:2020-09-25T01:14:07.4955842Z" + request.\nRequestId:83926f99-601a-001d-0cda-92d77e000000\nTime:2020-09-25T01:26:43.6634191Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2153,7 +2261,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2164,14 +2272,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff7-101a-0091-32d9-92bf70000000\nTime:2020-09-25T01:14:07.6176713Z" + request.\nRequestId:83926f9b-601a-001d-0eda-92d77e000000\nTime:2020-09-25T01:26:43.7925095Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2196,7 +2304,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2207,14 +2315,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62eff9-101a-0091-34d9-92bf70000000\nTime:2020-09-25T01:14:07.7457619Z" + request.\nRequestId:83926f9c-601a-001d-0fda-92d77e000000\nTime:2020-09-25T01:26:43.9105931Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:06 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2239,7 +2347,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2250,14 +2358,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62effc-101a-0091-36d9-92bf70000000\nTime:2020-09-25T01:14:07.8738529Z" + request.\nRequestId:83926f9d-601a-001d-10da-92d77e000000\nTime:2020-09-25T01:26:44.0286759Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2282,7 +2390,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2293,14 +2401,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62effd-101a-0091-37d9-92bf70000000\nTime:2020-09-25T01:14:07.9969403Z" + request.\nRequestId:83926f9f-601a-001d-12da-92d77e000000\nTime:2020-09-25T01:26:44.1497616Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2325,7 +2433,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2336,14 +2444,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62efff-101a-0091-39d9-92bf70000000\nTime:2020-09-25T01:14:08.1360391Z" + request.\nRequestId:83926fa0-601a-001d-13da-92d77e000000\nTime:2020-09-25T01:26:44.2668440Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2368,7 +2476,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:44 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2379,14 +2487,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62f000-101a-0091-3ad9-92bf70000000\nTime:2020-09-25T01:14:08.2911492Z" + request.\nRequestId:83926fa1-601a-001d-14da-92d77e000000\nTime:2020-09-25T01:26:44.3859279Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2411,7 +2519,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:14:08 GMT + - Fri, 25 Sep 2020 01:26:45 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2422,14 +2530,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:6d62f002-101a-0091-3cd9-92bf70000000\nTime:2020-09-25T01:14:08.3992260Z" + request.\nRequestId:83926fa2-601a-001d-15da-92d77e000000\nTime:2020-09-25T01:26:44.5040106Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:14:07 GMT + - Fri, 25 Sep 2020 01:26:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: 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 index 3068fd87107a..b17f8a88eebb 100644 --- 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 @@ -5,7 +5,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:24 GMT + - Fri, 25 Sep 2020 01:26:51 GMT x-ms-version: - '2020-02-10' method: PUT @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:43 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:50 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: '2020-02-10' status: @@ -30,7 +30,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:44 GMT + - Fri, 25 Sep 2020 01:26:51 GMT x-ms-version: - '2020-02-10' method: PUT @@ -40,11 +40,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:43 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:50 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-09-25T01:19:43.0000000Z' + x-ms-snapshot: '2020-09-25T01:26:50.0000000Z' x-ms-version: '2020-02-10' status: code: 201 @@ -56,13 +56,13 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:44 GMT + - Fri, 25 Sep 2020 01:26:51 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + - 75ad4e99-4bc4-4764-a46b-8415ac57c715 x-ms-version: - '2020-02-10' method: PUT @@ -72,11 +72,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:45 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:51 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-lease-id: 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + x-ms-lease-id: 75ad4e99-4bc4-4764-a46b-8415ac57c715 x-ms-version: '2020-02-10' status: code: 201 @@ -88,73 +88,141 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:45 GMT + - Fri, 25 Sep 2020 01:26:52 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - ae94f85f-5b6b-44e1-b0bf-12154884c320 + - 054754f3-1c19-48dd-b994-72e19d73c48a x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&comp=lease&restype=share response: body: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:45 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:53 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-lease-id: ae94f85f-5b6b-44e1-b0bf-12154884c320 + x-ms-lease-id: 054754f3-1c19-48dd-b994-72e19d73c48a x-ms-version: '2020-02-10' status: code: 201 message: Created - url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.0000000Z&comp=lease&restype=share + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.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: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:54 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share35a8156e?restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 25 Sep 2020 01:26:53 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: Origin + x-ms-access-tier: TransactionOptimized + x-ms-access-tier-change-time: Fri, 25 Sep 2020 01:26:50 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-share-quota: '5120' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + 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: + - Fri, 25 Sep 2020 01:26:54 GMT + x-ms-version: + - '2020-02-10' + method: GET + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&restype=share + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 25 Sep 2020 01:26:53 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + vary: Origin + x-ms-access-tier: TransactionOptimized + x-ms-access-tier-change-time: Fri, 25 Sep 2020 01:26:50 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-share-quota: '5120' + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.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: + - Fri, 25 Sep 2020 01:26:54 GMT x-ms-lease-action: - release x-ms-lease-id: - - ae94f85f-5b6b-44e1-b0bf-12154884c320 + - 054754f3-1c19-48dd-b994-72e19d73c48a x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:19:43.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&comp=lease&restype=share response: body: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:45 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:53 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 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-25T01:19:43.0000000Z&comp=lease&restype=share + url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.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: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:55 GMT x-ms-lease-action: - release x-ms-lease-id: - - 091901ee-429e-4e2f-a7d9-2e4a03e2f3db + - 75ad4e99-4bc4-4764-a46b-8415ac57c715 x-ms-version: - '2020-02-10' method: PUT @@ -164,9 +232,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:45 GMT - etag: '"0x8D860F11587BD3A"' - last-modified: Fri, 25 Sep 2020 01:19:43 GMT + date: Fri, 25 Sep 2020 01:26:54 GMT + etag: '"0x8D860F21420BD5B"' + last-modified: Fri, 25 Sep 2020 01:26:50 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: '0' x-ms-version: '2020-02-10' @@ -182,7 +250,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:55 GMT x-ms-version: - '2020-02-10' method: GET @@ -196,10 +264,10 @@ interactions: 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-25T01:19:43.0000000ZFri, - 25 Sep 2020 01:19:43 GMT\"0x8D860F11587BD3A\"unlockedavailable5120$account-encryption-keyfalseshare35a8156eFri, - 25 Sep 2020 01:19:43 GMT\"0x8D860F11587BD3A\"unlockedavailable5120TransactionOptimizedFri, - 25 Sep 2020 01:19:43 GMT$account-encryption-keyfalseshare602310dcThu, + 11 Sep 2020 00:02:03 GMT$account-encryption-keyfalseshare35a8156e2020-09-25T01:26:50.0000000ZFri, + 25 Sep 2020 01:26:50 GMT\"0x8D860F21420BD5B\"unlockedavailable5120$account-encryption-keyfalseshare35a8156eFri, + 25 Sep 2020 01:26:50 GMT\"0x8D860F21420BD5B\"unlockedavailable5120TransactionOptimizedFri, + 25 Sep 2020 01:26:50 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, @@ -289,7 +357,7 @@ interactions: />" headers: content-type: application/xml - date: Fri, 25 Sep 2020 01:19:45 GMT + date: Fri, 25 Sep 2020 01:26:54 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked vary: Origin @@ -304,7 +372,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -315,11 +383,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95143-501a-004b-80d9-922691000000\nTime:2020-09-25T01:19:46.0813903Z" + request.\nRequestId:13b2027f-001a-009d-2cda-922878000000\nTime:2020-09-25T01:26:55.3108727Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:45 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -334,7 +402,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -345,11 +413,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95146-501a-004b-03d9-922691000000\nTime:2020-09-25T01:19:46.1444351Z" + request.\nRequestId:13b20282-001a-009d-2eda-922878000000\nTime:2020-09-25T01:26:55.3669134Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:45 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -364,7 +432,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -375,11 +443,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95147-501a-004b-04d9-922691000000\nTime:2020-09-25T01:19:46.2114832Z" + request.\nRequestId:13b20283-001a-009d-2fda-922878000000\nTime:2020-09-25T01:26:55.4219522Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:45 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -394,7 +462,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -406,7 +474,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: '2020-02-10' status: @@ -419,7 +487,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:46 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -431,7 +499,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: '2020-02-10' status: @@ -444,7 +512,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -455,11 +523,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9514a-501a-004b-07d9-922691000000\nTime:2020-09-25T01:19:46.3996165Z" + request.\nRequestId:13b20286-001a-009d-32da-922878000000\nTime:2020-09-25T01:26:55.5850686Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -474,7 +542,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -485,11 +553,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9514b-501a-004b-08d9-922691000000\nTime:2020-09-25T01:19:46.4646640Z" + request.\nRequestId:13b20287-001a-009d-33da-922878000000\nTime:2020-09-25T01:26:55.6421084Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -504,7 +572,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -515,11 +583,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9514c-501a-004b-09d9-922691000000\nTime:2020-09-25T01:19:46.5297098Z" + request.\nRequestId:13b20289-001a-009d-35da-922878000000\nTime:2020-09-25T01:26:55.6971480Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -534,7 +602,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -545,11 +613,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9514e-501a-004b-0bd9-922691000000\nTime:2020-09-25T01:19:46.5927542Z" + request.\nRequestId:13b2028b-001a-009d-37da-922878000000\nTime:2020-09-25T01:26:55.7531874Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -564,7 +632,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -575,11 +643,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9514f-501a-004b-0cd9-922691000000\nTime:2020-09-25T01:19:46.6567993Z" + request.\nRequestId:13b2028c-001a-009d-38da-922878000000\nTime:2020-09-25T01:26:55.8082270Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -594,7 +662,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -605,11 +673,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95150-501a-004b-0dd9-922691000000\nTime:2020-09-25T01:19:46.7248476Z" + request.\nRequestId:13b2028d-001a-009d-39da-922878000000\nTime:2020-09-25T01:26:55.8672686Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -624,7 +692,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -635,11 +703,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95151-501a-004b-0ed9-922691000000\nTime:2020-09-25T01:19:46.7948974Z" + request.\nRequestId:13b2028e-001a-009d-3ada-922878000000\nTime:2020-09-25T01:26:55.9233089Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -654,7 +722,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -665,11 +733,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95152-501a-004b-0fd9-922691000000\nTime:2020-09-25T01:19:46.8619455Z" + request.\nRequestId:13b2028f-001a-009d-3bda-922878000000\nTime:2020-09-25T01:26:55.9803490Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -684,7 +752,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -695,11 +763,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95153-501a-004b-10d9-922691000000\nTime:2020-09-25T01:19:46.9289931Z" + request.\nRequestId:13b20290-001a-009d-3cda-922878000000\nTime:2020-09-25T01:26:56.0393911Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -714,7 +782,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -725,11 +793,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95155-501a-004b-12d9-922691000000\nTime:2020-09-25T01:19:46.9970415Z" + request.\nRequestId:13b20291-001a-009d-3dda-922878000000\nTime:2020-09-25T01:26:56.0984331Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -744,7 +812,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -755,11 +823,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95156-501a-004b-13d9-922691000000\nTime:2020-09-25T01:19:47.0630884Z" + request.\nRequestId:13b20293-001a-009d-3eda-922878000000\nTime:2020-09-25T01:26:56.1574755Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -774,7 +842,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -785,11 +853,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95157-501a-004b-14d9-922691000000\nTime:2020-09-25T01:19:47.1291354Z" + request.\nRequestId:13b20294-001a-009d-3fda-922878000000\nTime:2020-09-25T01:26:56.2175182Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -804,7 +872,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -815,11 +883,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95158-501a-004b-15d9-922691000000\nTime:2020-09-25T01:19:47.1971833Z" + request.\nRequestId:13b20296-001a-009d-40da-922878000000\nTime:2020-09-25T01:26:56.2765598Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:46 GMT + date: Fri, 25 Sep 2020 01:26:55 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -834,7 +902,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -845,11 +913,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9515a-501a-004b-17d9-922691000000\nTime:2020-09-25T01:19:47.2722371Z" + request.\nRequestId:13b20297-001a-009d-41da-922878000000\nTime:2020-09-25T01:26:56.3346020Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -864,7 +932,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:47 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -875,11 +943,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9515b-501a-004b-18d9-922691000000\nTime:2020-09-25T01:19:47.3392847Z" + request.\nRequestId:13b20298-001a-009d-42da-922878000000\nTime:2020-09-25T01:26:56.3946447Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -894,7 +962,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -905,11 +973,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9515d-501a-004b-19d9-922691000000\nTime:2020-09-25T01:19:47.4083334Z" + request.\nRequestId:13b20299-001a-009d-43da-922878000000\nTime:2020-09-25T01:26:56.4586894Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -924,7 +992,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -935,11 +1003,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9515e-501a-004b-1ad9-922691000000\nTime:2020-09-25T01:19:47.4763817Z" + request.\nRequestId:13b2029a-001a-009d-44da-922878000000\nTime:2020-09-25T01:26:56.5197328Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -954,7 +1022,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -965,11 +1033,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9515f-501a-004b-1bd9-922691000000\nTime:2020-09-25T01:19:47.5444301Z" + request.\nRequestId:13b2029b-001a-009d-45da-922878000000\nTime:2020-09-25T01:26:56.5807767Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -984,7 +1052,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -995,11 +1063,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95160-501a-004b-1cd9-922691000000\nTime:2020-09-25T01:19:47.6124789Z" + request.\nRequestId:13b2029c-001a-009d-46da-922878000000\nTime:2020-09-25T01:26:56.6448218Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1014,7 +1082,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1025,11 +1093,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95161-501a-004b-1dd9-922691000000\nTime:2020-09-25T01:19:47.6815279Z" + request.\nRequestId:13b2029d-001a-009d-47da-922878000000\nTime:2020-09-25T01:26:56.7098686Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1044,7 +1112,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1055,11 +1123,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95162-501a-004b-1ed9-922691000000\nTime:2020-09-25T01:19:47.7525784Z" + request.\nRequestId:13b2029e-001a-009d-48da-922878000000\nTime:2020-09-25T01:26:56.7709116Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1074,7 +1142,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1085,11 +1153,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95163-501a-004b-1fd9-922691000000\nTime:2020-09-25T01:19:47.8226282Z" + request.\nRequestId:13b2029f-001a-009d-49da-922878000000\nTime:2020-09-25T01:26:56.8349577Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1104,7 +1172,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1115,11 +1183,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95165-501a-004b-21d9-922691000000\nTime:2020-09-25T01:19:47.8926784Z" + request.\nRequestId:13b202a1-001a-009d-4bda-922878000000\nTime:2020-09-25T01:26:56.8980030Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1134,7 +1202,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1145,11 +1213,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95166-501a-004b-22d9-922691000000\nTime:2020-09-25T01:19:47.9627278Z" + request.\nRequestId:13b202a2-001a-009d-4cda-922878000000\nTime:2020-09-25T01:26:56.9630497Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1164,7 +1232,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1175,11 +1243,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95167-501a-004b-23d9-922691000000\nTime:2020-09-25T01:19:48.0327771Z" + request.\nRequestId:13b202a3-001a-009d-4dda-922878000000\nTime:2020-09-25T01:26:57.0260945Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1194,7 +1262,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1205,11 +1273,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95168-501a-004b-24d9-922691000000\nTime:2020-09-25T01:19:48.1028274Z" + request.\nRequestId:13b202a5-001a-009d-4fda-922878000000\nTime:2020-09-25T01:26:57.0851369Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1224,7 +1292,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1235,11 +1303,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95169-501a-004b-25d9-922691000000\nTime:2020-09-25T01:19:48.1738774Z" + request.\nRequestId:13b202a6-001a-009d-50da-922878000000\nTime:2020-09-25T01:26:57.1491833Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:47 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1254,7 +1322,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1265,11 +1333,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9516a-501a-004b-26d9-922691000000\nTime:2020-09-25T01:19:48.2459286Z" + request.\nRequestId:13b202ad-001a-009d-57da-922878000000\nTime:2020-09-25T01:26:57.2142300Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1284,7 +1352,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:48 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1295,11 +1363,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9516d-501a-004b-29d9-922691000000\nTime:2020-09-25T01:19:48.3169791Z" + request.\nRequestId:13b202af-001a-009d-59da-922878000000\nTime:2020-09-25T01:26:57.2782756Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:56 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1314,7 +1382,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:57 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1325,11 +1393,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9516e-501a-004b-2ad9-922691000000\nTime:2020-09-25T01:19:48.3940343Z" + request.\nRequestId:13b202b1-001a-009d-5bda-922878000000\nTime:2020-09-25T01:26:57.3383187Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1344,7 +1412,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1355,11 +1423,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9516f-501a-004b-2bd9-922691000000\nTime:2020-09-25T01:19:48.4660851Z" + request.\nRequestId:13b202b3-001a-009d-5dda-922878000000\nTime:2020-09-25T01:26:57.3983618Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1374,7 +1442,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1385,11 +1453,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95171-501a-004b-2dd9-922691000000\nTime:2020-09-25T01:19:48.5401381Z" + request.\nRequestId:13b202b5-001a-009d-5eda-922878000000\nTime:2020-09-25T01:26:57.4644097Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1404,7 +1472,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1415,11 +1483,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95172-501a-004b-2ed9-922691000000\nTime:2020-09-25T01:19:48.6131901Z" + request.\nRequestId:13b202b7-001a-009d-60da-922878000000\nTime:2020-09-25T01:26:57.5244528Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1434,7 +1502,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1445,11 +1513,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95173-501a-004b-2fd9-922691000000\nTime:2020-09-25T01:19:48.6882430Z" + request.\nRequestId:13b202b8-001a-009d-61da-922878000000\nTime:2020-09-25T01:26:57.5844954Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1464,7 +1532,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1475,11 +1543,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95174-501a-004b-30d9-922691000000\nTime:2020-09-25T01:19:48.7693010Z" + request.\nRequestId:13b202b9-001a-009d-62da-922878000000\nTime:2020-09-25T01:26:57.6615508Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1494,7 +1562,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1505,11 +1573,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95177-501a-004b-32d9-922691000000\nTime:2020-09-25T01:19:48.8643686Z" + request.\nRequestId:13b202ba-001a-009d-63da-922878000000\nTime:2020-09-25T01:26:57.7225946Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1524,7 +1592,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1535,11 +1603,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95178-501a-004b-33d9-922691000000\nTime:2020-09-25T01:19:48.9694428Z" + request.\nRequestId:13b202bb-001a-009d-64da-922878000000\nTime:2020-09-25T01:26:57.7876417Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1554,7 +1622,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1565,11 +1633,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9517a-501a-004b-35d9-922691000000\nTime:2020-09-25T01:19:49.0865277Z" + request.\nRequestId:13b202bc-001a-009d-65da-922878000000\nTime:2020-09-25T01:26:57.8556903Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1584,7 +1652,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1595,11 +1663,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9517b-501a-004b-36d9-922691000000\nTime:2020-09-25T01:19:49.1585777Z" + request.\nRequestId:13b202bd-001a-009d-66da-922878000000\nTime:2020-09-25T01:26:57.9227380Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1614,7 +1682,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1625,11 +1693,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9517d-501a-004b-38d9-922691000000\nTime:2020-09-25T01:19:49.2286274Z" + request.\nRequestId:13b202be-001a-009d-67da-922878000000\nTime:2020-09-25T01:26:57.9867831Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:48 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1644,7 +1712,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1655,11 +1723,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d9517e-501a-004b-39d9-922691000000\nTime:2020-09-25T01:19:49.3016785Z" + request.\nRequestId:13b202bf-001a-009d-68da-922878000000\nTime:2020-09-25T01:26:58.0518290Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:49 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1674,7 +1742,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:49 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1685,11 +1753,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95180-501a-004b-3ad9-922691000000\nTime:2020-09-25T01:19:49.3737293Z" + request.\nRequestId:13b202c0-001a-009d-69da-922878000000\nTime:2020-09-25T01:26:58.1178768Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:49 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' @@ -1704,7 +1772,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:19:50 GMT + - Fri, 25 Sep 2020 01:26:58 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1715,11 +1783,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:68d95182-501a-004b-3bd9-922691000000\nTime:2020-09-25T01:19:49.4347727Z" + request.\nRequestId:13b202c1-001a-009d-6ada-922878000000\nTime:2020-09-25T01:26:58.1829231Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:19:49 GMT + date: Fri, 25 Sep 2020 01:26:57 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: LeaseIdMissing x-ms-version: '2020-02-10' 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 4306a74b2b7e..ab2c11609571 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -212,6 +212,9 @@ def test_acquire_lease_on_sharesnapshot(self, resource_group, location, storage_ share_lease = share.acquire_lease() share_snapshot_lease = snapshot_client.acquire_lease() + share.get_share_properties() + snapshot_client.get_share_properties() + # Assert self.assertIsNotNone(snapshot['snapshot']) self.assertIsNotNone(snapshot['etag']) 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 740ba1a35d70..ac3a8b34bbf3 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 @@ -231,6 +231,9 @@ async def test_acquire_lease_on_sharesnapshot(self, resource_group, location, st share_lease = await share.acquire_lease() share_snapshot_lease = await snapshot_client.acquire_lease() + await share.get_share_properties() + await snapshot_client.get_share_properties() + # Assert self.assertIsNotNone(snapshot['snapshot']) self.assertIsNotNone(snapshot['etag']) From b72cc888fffdf241a1a48c88f323da81243f502e Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 24 Sep 2020 18:37:04 -0700 Subject: [PATCH 27/41] changed version --- .../storage/fileshare/aio/_share_client_async.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 5f4265394dff..b89e9147571d 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 @@ -266,7 +266,7 @@ async def delete_share( Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None @@ -308,7 +308,7 @@ async def get_share_properties(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. @@ -352,7 +352,7 @@ async def set_share_quota(self, quota, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -397,7 +397,7 @@ async def set_share_metadata(self, metadata, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -438,7 +438,7 @@ async def get_share_access_policy(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. @@ -477,7 +477,7 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -521,7 +521,7 @@ async def get_share_stats(self, **kwargs): Required if the share has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. - .. versionadded:: 12.2.0 + .. versionadded:: 12.6.0 :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. From 5350e11113e0af65b4b83f628acbc477de2427df Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 13:20:21 -0700 Subject: [PATCH 28/41] test --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 1 - 1 file changed, 1 deletion(-) 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 867e34566380..00554ffcd821 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 @@ -125,7 +125,6 @@ def renew(self, **kwargs): eg. "\"tagname\"='my tag'" .. versionadded:: 12.4.0 - :keyword int timeout: The timeout parameter is expressed in seconds. :return: None From 5e4c34dfd213a5028f8a7a5f23fcfc0727dd0e20 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 13:20:38 -0700 Subject: [PATCH 29/41] test --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 1 + 1 file changed, 1 insertion(+) 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 00554ffcd821..867e34566380 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 @@ -125,6 +125,7 @@ def renew(self, **kwargs): eg. "\"tagname\"='my tag'" .. versionadded:: 12.4.0 + :keyword int timeout: The timeout parameter is expressed in seconds. :return: None From 98c4ea4f69c27978e9f2facab1a0924fffb6b5f7 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 15:14:22 -0700 Subject: [PATCH 30/41] more docstrings --- .../azure/storage/fileshare/_lease.py | 3 +++ .../azure/storage/fileshare/_share_client.py | 11 +++++++++++ .../azure/storage/fileshare/aio/_lease_async.py | 3 +++ .../storage/fileshare/aio/_share_client_async.py | 10 ++++++++++ 4 files changed, 27 insertions(+) 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 867e34566380..a03354216eb8 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 @@ -115,6 +115,9 @@ def renew(self, **kwargs): has not been leased again since the expiration of that lease. When you renew a lease, the lease duration clock resets. + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, and act according to the condition specified by the `match_condition` parameter. 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 febd21e3d1f6..dd68229ec9a4 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 @@ -265,6 +265,9 @@ def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): 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 + This keyword argument was introduced in API version '2020-02-02'. + :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 @@ -394,6 +397,7 @@ def delete_share( or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :keyword int timeout: @@ -403,6 +407,7 @@ def delete_share( or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None @@ -445,6 +450,7 @@ def get_share_properties(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. @@ -489,6 +495,7 @@ def set_share_quota(self, quota, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -534,6 +541,7 @@ def set_share_metadata(self, metadata, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -575,6 +583,7 @@ def get_share_access_policy(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. @@ -614,6 +623,7 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -657,6 +667,7 @@ def get_share_stats(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. 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 f35f9c2fdea1..0c2f46b312d3 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 @@ -106,6 +106,9 @@ async def renew(self, **kwargs): has not been leased again since the expiration of that lease. When you renew a lease, the lease duration clock resets. + .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. + :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, and act according to the condition specified by the `match_condition` parameter. 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 b89e9147571d..8842969ba5ec 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 @@ -136,6 +136,9 @@ async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): 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 + This keyword argument was introduced in API version '2020-02-02'. + :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 @@ -267,6 +270,7 @@ async def delete_share( or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :rtype: None @@ -309,6 +313,7 @@ async def get_share_properties(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. @@ -353,6 +358,7 @@ async def set_share_quota(self, quota, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -398,6 +404,7 @@ async def set_share_metadata(self, metadata, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -439,6 +446,7 @@ async def get_share_access_policy(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. @@ -478,6 +486,7 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). @@ -522,6 +531,7 @@ async def get_share_stats(self, **kwargs): or the lease ID as a string. .. versionadded:: 12.6.0 + This keyword argument was introduced in API version '2020-02-02'. :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. From 40651b43c3182aefad8aef25b129f89045b5c56e Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 21:37:50 -0700 Subject: [PATCH 31/41] fixed docstrings --- .../azure/storage/fileshare/_lease.py | 24 ++++++++------ .../azure/storage/fileshare/_share_client.py | 16 ---------- .../storage/fileshare/aio/_lease_async.py | 31 +++++++++++-------- .../fileshare/aio/_share_client_async.py | 9 ------ 4 files changed, 32 insertions(+), 48 deletions(-) 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 a03354216eb8..480e5e673958 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 @@ -14,7 +14,7 @@ from ._shared.response_handlers import return_response_headers, process_storage_error from ._generated.models import StorageErrorException -from ._generated.operations import FileOperations +from ._generated.operations import FileOperations, ShareOperations if TYPE_CHECKING: from datetime import datetime @@ -121,13 +121,6 @@ def renew(self, **kwargs): :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, and act according to the condition specified by the `match_condition` parameter. - :keyword ~azure.core.MatchConditions match_condition: - The match condition to use upon the etag. - :keyword str if_tags_match_condition - Specify a SQL where clause on share tags to operate only on share with a matching value. - eg. "\"tagname\"='my tag'" - - .. versionadded:: 12.4.0 :keyword int timeout: The timeout parameter is expressed in seconds. @@ -179,7 +172,6 @@ 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 or Share service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. @@ -204,7 +196,7 @@ def change(self, proposed_lease_id, **kwargs): @distributed_trace def break_lease(self, **kwargs): - # type: (Optional[int, str], Any) -> int + # 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. @@ -215,12 +207,24 @@ def break_lease(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :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. :return: Approximate time remaining in the lease period, in seconds. :rtype: int """ try: if self._snapshot: kwargs['sharesnapshot'] = self._snapshot + if isinstance(self._client, ShareOperations): + kwargs['break_period'] = kwargs.pop('lease_break_period', None) 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/_share_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py index dd68229ec9a4..57e6c947c278 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 @@ -399,18 +399,8 @@ def delete_share( .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or 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'. - - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str - :rtype: None .. admonition:: Example: @@ -452,7 +442,6 @@ def get_share_properties(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -497,7 +486,6 @@ def set_share_quota(self, quota, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -543,7 +531,6 @@ def set_share_metadata(self, metadata, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -585,7 +572,6 @@ def get_share_access_policy(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. :rtype: dict[str, Any] """ @@ -625,7 +611,6 @@ def set_share_access_policy(self, signed_identifiers, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ @@ -669,7 +654,6 @@ def get_share_stats(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ 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 0c2f46b312d3..29123eaa4244 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,7 +14,7 @@ from .._shared.response_handlers import return_response_headers, process_storage_error from .._generated.models import ( StorageErrorException) -from .._generated.aio.operations_async._file_operations_async import FileOperations +from .._generated.aio.operations_async import FileOperations, ShareOperations from .._lease import ShareLeaseClient as LeaseClientBase if TYPE_CHECKING: @@ -26,7 +26,7 @@ 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 @@ -39,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. @@ -112,13 +113,6 @@ async def renew(self, **kwargs): :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, and act according to the condition specified by the `match_condition` parameter. - :keyword ~azure.core.MatchConditions match_condition: - The match condition to use upon the etag. - :keyword str if_tags_match_condition - Specify a SQL where clause on share tags to operate only on share with a matching value. - eg. "\"tagname\"='my tag'" - - .. versionadded:: 12.4.0 :keyword int timeout: The timeout parameter is expressed in seconds. @@ -170,7 +164,6 @@ 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 or Share service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. @@ -195,7 +188,7 @@ async def change(self, proposed_lease_id, **kwargs): @distributed_trace_async async def break_lease(self, **kwargs): - # type: (Optional[int, str], Any) -> int + # 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. @@ -206,12 +199,24 @@ async def break_lease(self, **kwargs): :keyword int timeout: The timeout parameter is expressed in seconds. + :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. :return: Approximate time remaining in the lease period, in seconds. :rtype: int """ try: if self._snapshot: kwargs['sharesnapshot'] = self._snapshot + if isinstance(self._client, ShareOperations): + kwargs['break_period'] = kwargs.pop('lease_break_period', None) 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 8842969ba5ec..07604d790dda 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 @@ -272,9 +272,6 @@ async def delete_share( .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str - :rtype: None - .. admonition:: Example: .. literalinclude:: ../samples/file_samples_share_async.py @@ -315,7 +312,6 @@ async def get_share_properties(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: The share properties. :rtype: ~azure.storage.fileshare.ShareProperties @@ -360,7 +356,6 @@ async def set_share_quota(self, quota, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -406,7 +401,6 @@ async def set_share_metadata(self, metadata, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) @@ -448,7 +442,6 @@ async def get_share_access_policy(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Access policy information in a dict. :rtype: dict[str, Any] """ @@ -488,7 +481,6 @@ async def set_share_access_policy(self, signed_identifiers, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :returns: Share-updated property dict (Etag and last modified). :rtype: dict(str, Any) """ @@ -533,7 +525,6 @@ async def get_share_stats(self, **kwargs): .. versionadded:: 12.6.0 This keyword argument was introduced in API version '2020-02-02'. - :paramtype lease: ~azure.storage.fileshare.ShareLeaseClient or str :return: The approximate size of the data (in bytes) stored on the share. :rtype: int """ From 3c5cc0c0eb010b80bf408ad814f137c78c7b17d7 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 21:47:22 -0700 Subject: [PATCH 32/41] more docstring changes --- .../azure-storage-file-share/azure/storage/fileshare/_lease.py | 1 - .../azure/storage/fileshare/_share_client.py | 1 - .../azure/storage/fileshare/aio/_lease_async.py | 1 - .../azure/storage/fileshare/aio/_share_client_async.py | 1 - 4 files changed, 4 deletions(-) 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 480e5e673958..acbc6c4ddcd4 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 @@ -116,7 +116,6 @@ def renew(self, **kwargs): renew a lease, the lease duration clock resets. .. versionadded:: 12.6.0 - This keyword argument was introduced in API version '2020-02-02'. :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, 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 57e6c947c278..761d849e839e 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 @@ -266,7 +266,6 @@ def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): Service creates a lease on the share and returns a new lease. .. versionadded:: 12.6.0 - This keyword argument was introduced in API version '2020-02-02'. :param int lease_duration: Specifies the duration of the lease, in seconds, or negative one 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 29123eaa4244..47964546bb9a 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 @@ -108,7 +108,6 @@ async def renew(self, **kwargs): renew a lease, the lease duration clock resets. .. versionadded:: 12.6.0 - This keyword argument was introduced in API version '2020-02-02'. :keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource has changed, 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 07604d790dda..d1aef20d1488 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 @@ -137,7 +137,6 @@ async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): Service creates a lease on the share and returns a new lease. .. versionadded:: 12.6.0 - This keyword argument was introduced in API version '2020-02-02'. :param int lease_duration: Specifies the duration of the lease, in seconds, or negative one From 725ba494963e3c8236f1dc024972e127ed561703 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Fri, 25 Sep 2020 21:55:37 -0700 Subject: [PATCH 33/41] removed etag --- .../azure/storage/fileshare/_lease.py | 4 ---- .../azure/storage/fileshare/aio/_lease_async.py | 4 ---- 2 files changed, 8 deletions(-) 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 acbc6c4ddcd4..6b8c87cd7c8d 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 @@ -117,10 +117,6 @@ def renew(self, **kwargs): .. versionadded:: 12.6.0 - :keyword str etag: - An ETag value, or the wildcard character (*). Used to check if the resource has changed, - and act according to the condition specified by the `match_condition` parameter. - :keyword int timeout: The timeout parameter is expressed in seconds. :return: None 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 47964546bb9a..5a134c7bc8a8 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 @@ -109,10 +109,6 @@ async def renew(self, **kwargs): .. versionadded:: 12.6.0 - :keyword str etag: - An ETag value, or the wildcard character (*). Used to check if the resource has changed, - and act according to the condition specified by the `match_condition` parameter. - :keyword int timeout: The timeout parameter is expressed in seconds. :return: None From 84d86e78f083860dd0b3f508ee4645a1d143a8af Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Sat, 26 Sep 2020 08:41:28 -0700 Subject: [PATCH 34/41] added exta check on test --- sdk/storage/azure-storage-file-share/tests/test_share.py | 3 +++ 1 file changed, 3 insertions(+) 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 ab2c11609571..94fbad317bea 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -402,6 +402,9 @@ def test_delete_share_with_lease_id(self, resource_group, location, storage_acco share_client = self._create_share('test') lease = share_client.acquire_lease(lease_duration=15) + with self.assertRaises(ValueError): + share_client.delete_share() + # Act deleted = share_client.delete_share(lease=lease) From a94c9e915d2f8f4cb6602f6099bbb48c9cf7397e Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Mon, 28 Sep 2020 08:38:43 -0700 Subject: [PATCH 35/41] fixed tests --- ...container.test_list_blobs_leased_blob.yaml | 66 +- .../azure/storage/fileshare/_models.py | 6 +- ...e.test_acquire_lease_on_sharesnapshot.yaml | 1429 ++++++++++++++--- ...share.test_delete_share_with_lease_id.yaml | 85 +- ...c.test_acquire_lease_on_sharesnapshot.yaml | 493 +++--- ...async.test_delete_share_with_lease_id.yaml | 70 +- .../tests/test_share.py | 14 +- .../tests/test_share_async.py | 13 +- 8 files changed, 1623 insertions(+), 553 deletions(-) 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/_models.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py index 971a3826390e..34f81997e913 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 @@ -188,11 +188,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): 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 index dd2bbf473072..8221aa50c7e1 100644 --- 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 @@ -13,11 +13,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:17 GMT + - Mon, 28 Sep 2020 14:07:26 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:36 GMT + - Mon, 28 Sep 2020 14:07:26 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -51,11 +51,11 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share&comp=snapshot + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share&comp=snapshot response: body: string: '' @@ -63,15 +63,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:36 GMT + - Mon, 28 Sep 2020 14:07:26 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2020-09-25T01:26:37.0000000Z' + - '2020-09-28T14:07:27.0000000Z' x-ms-version: - '2020-02-10' status: @@ -91,17 +91,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 9353fd58-7786-4290-b0ea-262d1bed2be1 + - dbd11c56-6134-4f30-b330-b88e631ea233 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?comp=lease&restype=share response: body: string: '' @@ -109,15 +109,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:36 GMT + - Mon, 28 Sep 2020 14:07:26 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 9353fd58-7786-4290-b0ea-262d1bed2be1 + - dbd11c56-6134-4f30-b330-b88e631ea233 x-ms-version: - '2020-02-10' status: @@ -137,17 +137,17 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:27 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 94aab6c8-04ca-466c-b351-35645d021017 + - 007d9fe8-3406-4481-95dd-dc4337e440d6 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&comp=lease&restype=share response: body: string: '' @@ -155,15 +155,15 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - 94aab6c8-04ca-466c-b351-35645d021017 + - 007d9fe8-3406-4481-95dd-dc4337e440d6 x-ms-version: - '2020-02-10' status: @@ -181,48 +181,35 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - 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/shareba3e12f1?restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?restype=share response: body: - string: '' + 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: - - '0' + - '275' + content-type: + - application/xml date: - - Fri, 25 Sep 2020 01:26:37 GMT - etag: - - '"0x8D860F20BD8FD08"' - last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: - Origin - x-ms-access-tier: - - TransactionOptimized - x-ms-access-tier-change-time: - - Fri, 25 Sep 2020 01:26:36 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-share-quota: - - '5120' + x-ms-error-code: + - LeaseIdMismatchWithContainerOperation x-ms-version: - '2020-02-10' status: - code: 200 - message: OK + code: 412 + message: The lease ID specified did not match the lease ID for the file share. - request: body: null headers: @@ -235,48 +222,35 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - 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/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&restype=share response: body: - string: '' + 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: - - '0' + - '275' + content-type: + - application/xml date: - - Fri, 25 Sep 2020 01:26:37 GMT - etag: - - '"0x8D860F20BD8FD08"' - last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: - Origin - x-ms-access-tier: - - TransactionOptimized - x-ms-access-tier-change-time: - - Fri, 25 Sep 2020 01:26:36 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-share-quota: - - '5120' + x-ms-error-code: + - LeaseIdMismatchWithContainerOperation x-ms-version: - '2020-02-10' status: - code: 200 - message: OK + code: 412 + message: The lease ID specified did not match the lease ID for the file share. - request: body: null headers: @@ -291,15 +265,15 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT x-ms-lease-action: - release x-ms-lease-id: - - 94aab6c8-04ca-466c-b351-35645d021017 + - 007d9fe8-3406-4481-95dd-dc4337e440d6 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?sharesnapshot=2020-09-25T01:26:37.0000000Z&comp=lease&restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?sharesnapshot=2020-09-28T14:07:27.0000000Z&comp=lease&restype=share response: body: string: '' @@ -307,11 +281,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:49 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -335,15 +309,15 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT x-ms-lease-action: - release x-ms-lease-id: - - 9353fd58-7786-4290-b0ea-262d1bed2be1 + - dbd11c56-6134-4f30-b330-b88e631ea233 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/shareba3e12f1?comp=lease&restype=share + uri: https://storagename.file.core.windows.net/testshare1ba3e12f1?comp=lease&restype=share response: body: string: '' @@ -351,11 +325,11 @@ interactions: content-length: - '0' date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:48 GMT etag: - - '"0x8D860F20BD8FD08"' + - '"0x8D863B7D4A57EE8"' last-modified: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -377,7 +351,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT x-ms-version: - '2020-02-10' method: GET @@ -397,10 +371,10 @@ interactions: 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-25T01:26:37.0000000ZFri, - 25 Sep 2020 01:26:37 GMT\"0x8D860F20BD8FD08\"unlockedavailable5120$account-encryption-keyfalseshareba3e12f1Fri, - 25 Sep 2020 01:26:37 GMT\"0x8D860F20BD8FD08\"unlockedavailable5120TransactionOptimizedFri, - 25 Sep 2020 01:26:36 GMT$account-encryption-keyfalsesharec80148eFri, + 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, @@ -480,13 +454,54 @@ interactions: 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$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: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -512,7 +527,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -523,14 +538,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f46-601a-001d-3fda-92d77e000000\nTime:2020-09-25T01:26:38.6448786Z" + request.\nRequestId:32d76feb-a01a-002d-27a0-9569b1000000\nTime:2020-09-28T14:07:50.2940482Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:37 GMT + - Mon, 28 Sep 2020 14:07:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -555,7 +570,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -566,14 +581,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f47-601a-001d-40da-92d77e000000\nTime:2020-09-25T01:26:38.7629618Z" + request.\nRequestId:32d76fed-a01a-002d-29a0-9569b1000000\nTime:2020-09-28T14:07:50.4301448Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -598,7 +613,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -609,14 +624,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f48-601a-001d-41da-92d77e000000\nTime:2020-09-25T01:26:38.8880499Z" + request.\nRequestId:32d76fef-a01a-002d-2ba0-9569b1000000\nTime:2020-09-28T14:07:50.5462281Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -641,7 +656,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -652,14 +667,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f4e-601a-001d-46da-92d77e000000\nTime:2020-09-25T01:26:39.0081340Z" + request.\nRequestId:32d76ff0-a01a-002d-2ca0-9569b1000000\nTime:2020-09-28T14:07:50.6773207Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -684,7 +699,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -695,14 +710,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f54-601a-001d-4cda-92d77e000000\nTime:2020-09-25T01:26:39.1292198Z" + request.\nRequestId:32d76ff1-a01a-002d-2da0-9569b1000000\nTime:2020-09-28T14:07:50.8314297Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -727,7 +742,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -738,14 +753,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f55-601a-001d-4dda-92d77e000000\nTime:2020-09-25T01:26:39.2443008Z" + request.\nRequestId:32d76ff3-a01a-002d-2ea0-9569b1000000\nTime:2020-09-28T14:07:50.9565189Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -770,7 +785,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -779,19 +794,28 @@ interactions: uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share response: body: - string: '' + 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: - - '0' + - '391' + content-type: + - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - 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: 202 - message: Accepted + 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: @@ -806,7 +830,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -815,19 +839,28 @@ interactions: uri: https://storagename.file.core.windows.net/shareba3e12f1?restype=share response: body: - string: '' + 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: - - '0' + - '391' + content-type: + - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - 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: 202 - message: Accepted + 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: @@ -842,7 +875,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -853,14 +886,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f59-601a-001d-51da-92d77e000000\nTime:2020-09-25T01:26:39.6225668Z" + request.\nRequestId:32d76ffa-a01a-002d-33a0-9569b1000000\nTime:2020-09-28T14:07:51.3487969Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:38 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -885,7 +918,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -896,14 +929,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f5a-601a-001d-52da-92d77e000000\nTime:2020-09-25T01:26:39.7636661Z" + request.\nRequestId:32d76ffc-a01a-002d-35a0-9569b1000000\nTime:2020-09-28T14:07:51.4788890Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -928,7 +961,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -939,14 +972,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f5b-601a-001d-53da-92d77e000000\nTime:2020-09-25T01:26:39.8777469Z" + request.\nRequestId:32d76ffe-a01a-002d-37a0-9569b1000000\nTime:2020-09-28T14:07:51.6079799Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -971,7 +1004,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -982,14 +1015,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f5d-601a-001d-54da-92d77e000000\nTime:2020-09-25T01:26:39.9978319Z" + request.\nRequestId:32d77000-a01a-002d-39a0-9569b1000000\nTime:2020-09-28T14:07:51.7400724Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1014,7 +1047,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1025,14 +1058,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f5e-601a-001d-55da-92d77e000000\nTime:2020-09-25T01:26:40.1689524Z" + request.\nRequestId:32d77001-a01a-002d-3aa0-9569b1000000\nTime:2020-09-28T14:07:51.8661612Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1057,7 +1090,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1068,14 +1101,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f61-601a-001d-58da-92d77e000000\nTime:2020-09-25T01:26:40.3040467Z" + request.\nRequestId:32d77002-a01a-002d-3ba0-9569b1000000\nTime:2020-09-28T14:07:51.9962531Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1100,7 +1133,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1111,14 +1144,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f62-601a-001d-59da-92d77e000000\nTime:2020-09-25T01:26:40.4321369Z" + request.\nRequestId:32d77003-a01a-002d-3ca0-9569b1000000\nTime:2020-09-28T14:07:52.1233426Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1143,7 +1176,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1154,14 +1187,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f65-601a-001d-5cda-92d77e000000\nTime:2020-09-25T01:26:40.5612283Z" + request.\nRequestId:32d77006-a01a-002d-3ea0-9569b1000000\nTime:2020-09-28T14:07:52.2494313Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1186,7 +1219,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1197,14 +1230,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f67-601a-001d-5eda-92d77e000000\nTime:2020-09-25T01:26:40.6883178Z" + request.\nRequestId:32d77007-a01a-002d-3fa0-9569b1000000\nTime:2020-09-28T14:07:52.3775216Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:39 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1229,7 +1262,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1240,14 +1273,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f68-601a-001d-5fda-92d77e000000\nTime:2020-09-25T01:26:40.8094031Z" + request.\nRequestId:32d77009-a01a-002d-41a0-9569b1000000\nTime:2020-09-28T14:07:52.5126175Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1272,7 +1305,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1283,14 +1316,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f69-601a-001d-60da-92d77e000000\nTime:2020-09-25T01:26:40.9444978Z" + request.\nRequestId:32d7700b-a01a-002d-43a0-9569b1000000\nTime:2020-09-28T14:07:52.6467126Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1315,7 +1348,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1326,14 +1359,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f6a-601a-001d-61da-92d77e000000\nTime:2020-09-25T01:26:41.0645828Z" + request.\nRequestId:32d7700c-a01a-002d-44a0-9569b1000000\nTime:2020-09-28T14:07:52.7808083Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1358,7 +1391,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1369,14 +1402,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f6b-601a-001d-62da-92d77e000000\nTime:2020-09-25T01:26:41.1966754Z" + request.\nRequestId:32d7700d-a01a-002d-45a0-9569b1000000\nTime:2020-09-28T14:07:52.9088992Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1401,7 +1434,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1412,14 +1445,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f6c-601a-001d-63da-92d77e000000\nTime:2020-09-25T01:26:41.3167600Z" + request.\nRequestId:32d7700f-a01a-002d-47a0-9569b1000000\nTime:2020-09-28T14:07:53.0479971Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1444,7 +1477,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1455,14 +1488,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f6d-601a-001d-64da-92d77e000000\nTime:2020-09-25T01:26:41.4298400Z" + request.\nRequestId:32d77010-a01a-002d-48a0-9569b1000000\nTime:2020-09-28T14:07:53.1780898Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1487,7 +1520,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1498,14 +1531,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f78-601a-001d-6eda-92d77e000000\nTime:2020-09-25T01:26:41.5639345Z" + request.\nRequestId:32d77011-a01a-002d-49a0-9569b1000000\nTime:2020-09-28T14:07:53.3041789Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1530,7 +1563,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1541,14 +1574,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f81-601a-001d-77da-92d77e000000\nTime:2020-09-25T01:26:41.6900231Z" + request.\nRequestId:32d77012-a01a-002d-4aa0-9569b1000000\nTime:2020-09-28T14:07:53.4462806Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:40 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1573,7 +1606,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1584,14 +1617,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f82-601a-001d-78da-92d77e000000\nTime:2020-09-25T01:26:41.8081070Z" + request.\nRequestId:32d77013-a01a-002d-4ba0-9569b1000000\nTime:2020-09-28T14:07:53.5723697Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1616,7 +1649,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1627,14 +1660,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f83-601a-001d-79da-92d77e000000\nTime:2020-09-25T01:26:41.9251901Z" + request.\nRequestId:32d77015-a01a-002d-4ca0-9569b1000000\nTime:2020-09-28T14:07:53.7024620Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1659,7 +1692,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1670,14 +1703,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f86-601a-001d-7bda-92d77e000000\nTime:2020-09-25T01:26:42.0522808Z" + request.\nRequestId:32d77018-a01a-002d-4fa0-9569b1000000\nTime:2020-09-28T14:07:53.8335547Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1702,7 +1735,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1713,14 +1746,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f87-601a-001d-7cda-92d77e000000\nTime:2020-09-25T01:26:42.1713654Z" + request.\nRequestId:32d7701a-a01a-002d-51a0-9569b1000000\nTime:2020-09-28T14:07:53.9596442Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1745,7 +1778,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1756,14 +1789,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f89-601a-001d-7eda-92d77e000000\nTime:2020-09-25T01:26:42.2884486Z" + request.\nRequestId:32d7701b-a01a-002d-52a0-9569b1000000\nTime:2020-09-28T14:07:54.0847334Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1788,7 +1821,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1799,14 +1832,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f8b-601a-001d-7fda-92d77e000000\nTime:2020-09-25T01:26:42.4145386Z" + request.\nRequestId:32d7701c-a01a-002d-53a0-9569b1000000\nTime:2020-09-28T14:07:54.2098222Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1831,7 +1864,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1842,14 +1875,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f8c-601a-001d-80da-92d77e000000\nTime:2020-09-25T01:26:42.5546376Z" + request.\nRequestId:32d7701d-a01a-002d-54a0-9569b1000000\nTime:2020-09-28T14:07:54.3379127Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:41 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1874,7 +1907,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1885,14 +1918,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f8d-601a-001d-01da-92d77e000000\nTime:2020-09-25T01:26:42.6987397Z" + request.\nRequestId:32d7701e-a01a-002d-55a0-9569b1000000\nTime:2020-09-28T14:07:54.4620012Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1917,7 +1950,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1928,14 +1961,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f8f-601a-001d-03da-92d77e000000\nTime:2020-09-25T01:26:42.8178235Z" + request.\nRequestId:32d7701f-a01a-002d-56a0-9569b1000000\nTime:2020-09-28T14:07:54.5920935Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1960,7 +1993,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1971,14 +2004,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f90-601a-001d-04da-92d77e000000\nTime:2020-09-25T01:26:42.9419109Z" + request.\nRequestId:32d77020-a01a-002d-57a0-9569b1000000\nTime:2020-09-28T14:07:54.7221859Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2003,7 +2036,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2014,14 +2047,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f91-601a-001d-05da-92d77e000000\nTime:2020-09-25T01:26:43.0589934Z" + request.\nRequestId:32d77021-a01a-002d-58a0-9569b1000000\nTime:2020-09-28T14:07:54.8722920Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2046,7 +2079,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2057,14 +2090,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f92-601a-001d-06da-92d77e000000\nTime:2020-09-25T01:26:43.1830808Z" + request.\nRequestId:32d77022-a01a-002d-59a0-9569b1000000\nTime:2020-09-28T14:07:55.0013841Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2089,7 +2122,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2100,14 +2133,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f96-601a-001d-09da-92d77e000000\nTime:2020-09-25T01:26:43.3021642Z" + request.\nRequestId:32d77023-a01a-002d-5aa0-9569b1000000\nTime:2020-09-28T14:07:55.1364795Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2132,7 +2165,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2143,14 +2176,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f97-601a-001d-0ada-92d77e000000\nTime:2020-09-25T01:26:43.4292537Z" + request.\nRequestId:32d77026-a01a-002d-5ca0-9569b1000000\nTime:2020-09-28T14:07:55.2655716Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2175,7 +2208,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2186,14 +2219,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f98-601a-001d-0bda-92d77e000000\nTime:2020-09-25T01:26:43.5463362Z" + request.\nRequestId:32d77027-a01a-002d-5da0-9569b1000000\nTime:2020-09-28T14:07:55.3936625Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2218,7 +2251,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2229,14 +2262,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f99-601a-001d-0cda-92d77e000000\nTime:2020-09-25T01:26:43.6634191Z" + request.\nRequestId:32d77028-a01a-002d-5ea0-9569b1000000\nTime:2020-09-28T14:07:55.5257558Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:42 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2261,7 +2294,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2272,14 +2305,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f9b-601a-001d-0eda-92d77e000000\nTime:2020-09-25T01:26:43.7925095Z" + request.\nRequestId:32d7702a-a01a-002d-60a0-9569b1000000\nTime:2020-09-28T14:07:55.6588503Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2304,7 +2337,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2315,14 +2348,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f9c-601a-001d-0fda-92d77e000000\nTime:2020-09-25T01:26:43.9105931Z" + request.\nRequestId:32d7702b-a01a-002d-61a0-9569b1000000\nTime:2020-09-28T14:07:55.7909445Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2347,7 +2380,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2358,14 +2391,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f9d-601a-001d-10da-92d77e000000\nTime:2020-09-25T01:26:44.0286759Z" + request.\nRequestId:32d7702f-a01a-002d-64a0-9569b1000000\nTime:2020-09-28T14:07:55.9160329Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2390,7 +2423,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:55 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2401,14 +2434,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926f9f-601a-001d-12da-92d77e000000\nTime:2020-09-25T01:26:44.1497616Z" + request.\nRequestId:32d77030-a01a-002d-65a0-9569b1000000\nTime:2020-09-28T14:07:56.0391207Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2433,7 +2466,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2444,14 +2477,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926fa0-601a-001d-13da-92d77e000000\nTime:2020-09-25T01:26:44.2668440Z" + request.\nRequestId:32d77031-a01a-002d-66a0-9569b1000000\nTime:2020-09-28T14:07:56.1642090Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2476,7 +2509,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:44 GMT + - Mon, 28 Sep 2020 14:07:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2487,14 +2520,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926fa1-601a-001d-14da-92d77e000000\nTime:2020-09-25T01:26:44.3859279Z" + request.\nRequestId:32d77033-a01a-002d-67a0-9569b1000000\nTime:2020-09-28T14:07:56.2943018Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2519,7 +2552,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:45 GMT + - Mon, 28 Sep 2020 14:07:56 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -2530,14 +2563,14 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:83926fa2-601a-001d-15da-92d77e000000\nTime:2020-09-25T01:26:44.5040106Z" + request.\nRequestId:32d77035-a01a-002d-69a0-9569b1000000\nTime:2020-09-28T14:07:56.4283966Z" headers: content-length: - '273' content-type: - application/xml date: - - Fri, 25 Sep 2020 01:26:43 GMT + - Mon, 28 Sep 2020 14:07:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2548,4 +2581,904 @@ interactions: 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 index 28a005c0b313..49e579e4b464 100644 --- 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 @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:25 GMT + - Mon, 28 Sep 2020 13:55:10 GMT x-ms-version: - '2020-02-10' method: PUT @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 01:44:26 GMT + - Mon, 28 Sep 2020 13:55:13 GMT etag: - - '"0x8D855F437DBEA20"' + - '"0x8D863B61E49D9B2"' last-modified: - - Fri, 11 Sep 2020 01:44:27 GMT + - Mon, 28 Sep 2020 13:55:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -49,15 +49,15 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:26 GMT + - Mon, 28 Sep 2020 13:55:13 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - a2ad2e08-7b63-4fb7-8927-4282fa338eab + - e342583e-1904-4911-842b-7fd778ecb708 x-ms-version: - '2020-02-10' method: PUT @@ -69,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 01:44:26 GMT + - Mon, 28 Sep 2020 13:55:13 GMT etag: - - '"0x8D855F437DBEA20"' + - '"0x8D863B61E49D9B2"' last-modified: - - Fri, 11 Sep 2020 01:44:27 GMT + - Mon, 28 Sep 2020 13:55:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - a2ad2e08-7b63-4fb7-8927-4282fa338eab + - e342583e-1904-4911-842b-7fd778ecb708 x-ms-version: - '2020-02-10' status: @@ -95,11 +95,52 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:26 GMT + - 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: - - a2ad2e08-7b63-4fb7-8927-4282fa338eab + - e342583e-1904-4911-842b-7fd778ecb708 x-ms-version: - '2020-02-10' method: DELETE @@ -111,7 +152,7 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 01:44:27 GMT + - Mon, 28 Sep 2020 13:55:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -129,9 +170,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:27 GMT + - Mon, 28 Sep 2020 13:55:14 GMT x-ms-version: - '2020-02-10' method: GET @@ -139,18 +180,18 @@ interactions: response: body: string: "\uFEFFShareNotFoundThe - specified share does not exist.\nRequestId:8ecd6858-301a-003f-53dd-871261000000\nTime:2020-09-11T01:44:27.9081669Z" + specified share does not exist.\nRequestId:ed2373bb-201a-0033-279e-958569000000\nTime:2020-09-28T13:55:14.1106826Z" headers: - access-control-allow-origin: - - '*' content-length: - '217' content-type: - application/xml date: - - Fri, 11 Sep 2020 01:44:27 GMT + - 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: 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 index b17f8a88eebb..a0a7a0918d06 100644 --- 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 @@ -5,7 +5,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:51 GMT + - Mon, 28 Sep 2020 14:09:29 GMT x-ms-version: - '2020-02-10' method: PUT @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:50 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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: @@ -30,7 +30,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:51 GMT + - Mon, 28 Sep 2020 14:09:29 GMT x-ms-version: - '2020-02-10' method: PUT @@ -40,11 +40,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:50 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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-25T01:26:50.0000000Z' + x-ms-snapshot: '2020-09-28T14:09:29.0000000Z' x-ms-version: '2020-02-10' status: code: 201 @@ -56,13 +56,13 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:51 GMT + - Mon, 28 Sep 2020 14:09:29 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 75ad4e99-4bc4-4764-a46b-8415ac57c715 + - 60a40c0f-a703-48a6-a1e9-127ca070af39 x-ms-version: - '2020-02-10' method: PUT @@ -72,11 +72,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:51 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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: 75ad4e99-4bc4-4764-a46b-8415ac57c715 + x-ms-lease-id: 60a40c0f-a703-48a6-a1e9-127ca070af39 x-ms-version: '2020-02-10' status: code: 201 @@ -88,65 +88,60 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:52 GMT + - Mon, 28 Sep 2020 14:09:30 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '-1' x-ms-proposed-lease-id: - - 054754f3-1c19-48dd-b994-72e19d73c48a + - bbd73b46-5572-446a-af4c-b2cdea9ac5a3 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&comp=lease&restype=share + 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: Fri, 25 Sep 2020 01:26:53 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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: 054754f3-1c19-48dd-b994-72e19d73c48a + 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-25T01:26:50.0000000Z&comp=lease&restype=share + 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: - - Fri, 25 Sep 2020 01:26:54 GMT + - 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: '' + 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: '0' - date: Fri, 25 Sep 2020 01:26:53 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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-access-tier: TransactionOptimized - x-ms-access-tier-change-time: Fri, 25 Sep 2020 01:26:50 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-share-quota: '5120' + x-ms-error-code: LeaseIdMismatchWithContainerOperation x-ms-version: '2020-02-10' status: - code: 200 - message: OK + 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 @@ -154,75 +149,70 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:54 GMT + - 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-25T01:26:50.0000000Z&restype=share + uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-28T14:09:29.0000000Z&restype=share response: body: - string: '' + 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: '0' - date: Fri, 25 Sep 2020 01:26:53 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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-access-tier: TransactionOptimized - x-ms-access-tier-change-time: Fri, 25 Sep 2020 01:26:50 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-share-quota: '5120' + x-ms-error-code: LeaseIdMismatchWithContainerOperation x-ms-version: '2020-02-10' status: - code: 200 - message: OK - url: https://seanmcccanary3.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&restype=share + 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: - - Fri, 25 Sep 2020 01:26:54 GMT + - Mon, 28 Sep 2020 14:09:30 GMT x-ms-lease-action: - release x-ms-lease-id: - - 054754f3-1c19-48dd-b994-72e19d73c48a + - bbd73b46-5572-446a-af4c-b2cdea9ac5a3 x-ms-version: - '2020-02-10' method: PUT - uri: https://storagename.file.core.windows.net/share35a8156e?sharesnapshot=2020-09-25T01:26:50.0000000Z&comp=lease&restype=share + 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: Fri, 25 Sep 2020 01:26:53 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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-25T01:26:50.0000000Z&comp=lease&restype=share + 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: - - Fri, 25 Sep 2020 01:26:55 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-lease-action: - release x-ms-lease-id: - - 75ad4e99-4bc4-4764-a46b-8415ac57c715 + - 60a40c0f-a703-48a6-a1e9-127ca070af39 x-ms-version: - '2020-02-10' method: PUT @@ -232,9 +222,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:54 GMT - etag: '"0x8D860F21420BD5B"' - last-modified: Fri, 25 Sep 2020 01:26:50 GMT + 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' @@ -250,7 +240,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:55 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-version: - '2020-02-10' method: GET @@ -264,16 +254,19 @@ interactions: 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-25T01:26:50.0000000ZFri, - 25 Sep 2020 01:26:50 GMT\"0x8D860F21420BD5B\"unlockedavailable5120$account-encryption-keyfalseshare35a8156eFri, - 25 Sep 2020 01:26:50 GMT\"0x8D860F21420BD5B\"unlockedavailable5120TransactionOptimizedFri, - 25 Sep 2020 01:26:50 GMT$account-encryption-keyfalseshare602310dcThu, + 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-keyfalsesharec80148eFri, + 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, @@ -357,7 +350,7 @@ interactions: />" headers: content-type: application/xml - date: Fri, 25 Sep 2020 01:26:54 GMT + date: Mon, 28 Sep 2020 14:09:31 GMT server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: chunked vary: Origin @@ -372,7 +365,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:55 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -383,11 +376,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2027f-001a-009d-2cda-922878000000\nTime:2020-09-25T01:26:55.3108727Z" + request.\nRequestId:ea482756-901a-0009-69a0-959f11000000\nTime:2020-09-28T14:09:31.5834413Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -402,7 +395,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:55 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -413,11 +406,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20282-001a-009d-2eda-922878000000\nTime:2020-09-25T01:26:55.3669134Z" + request.\nRequestId:ea482757-901a-0009-6aa0-959f11000000\nTime:2020-09-28T14:09:31.6574939Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -432,7 +425,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -443,11 +436,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20283-001a-009d-2fda-922878000000\nTime:2020-09-25T01:26:55.4219522Z" + request.\nRequestId:ea482758-901a-0009-6ba0-959f11000000\nTime:2020-09-28T14:09:31.7365499Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -462,7 +455,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -474,7 +467,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:55 GMT + 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: @@ -487,7 +480,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -499,7 +492,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 25 Sep 2020 01:26:55 GMT + 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: @@ -512,7 +505,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -523,11 +516,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20286-001a-009d-32da-922878000000\nTime:2020-09-25T01:26:55.5850686Z" + request.\nRequestId:ea48275d-901a-0009-70a0-959f11000000\nTime:2020-09-28T14:09:31.9507019Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -542,7 +535,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:31 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -553,11 +546,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20287-001a-009d-33da-922878000000\nTime:2020-09-25T01:26:55.6421084Z" + request.\nRequestId:ea48275e-901a-0009-71a0-959f11000000\nTime:2020-09-28T14:09:32.0267558Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -572,7 +565,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -583,11 +576,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20289-001a-009d-35da-922878000000\nTime:2020-09-25T01:26:55.6971480Z" + request.\nRequestId:ea48275f-901a-0009-72a0-959f11000000\nTime:2020-09-28T14:09:32.1028102Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -602,7 +595,71 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - 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: @@ -613,11 +670,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2028b-001a-009d-37da-922878000000\nTime:2020-09-25T01:26:55.7531874Z" + request.\nRequestId:ea482763-901a-0009-76a0-959f11000000\nTime:2020-09-28T14:09:32.3439809Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -632,7 +689,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -643,11 +700,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2028c-001a-009d-38da-922878000000\nTime:2020-09-25T01:26:55.8082270Z" + request.\nRequestId:ea482764-901a-0009-77a0-959f11000000\nTime:2020-09-28T14:09:32.4200352Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -662,7 +719,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -673,11 +730,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2028d-001a-009d-39da-922878000000\nTime:2020-09-25T01:26:55.8672686Z" + request.\nRequestId:ea482765-901a-0009-78a0-959f11000000\nTime:2020-09-28T14:09:32.4950881Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -692,7 +749,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -703,11 +760,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2028e-001a-009d-3ada-922878000000\nTime:2020-09-25T01:26:55.9233089Z" + request.\nRequestId:ea482766-901a-0009-79a0-959f11000000\nTime:2020-09-28T14:09:32.5671392Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -722,7 +779,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -733,11 +790,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2028f-001a-009d-3bda-922878000000\nTime:2020-09-25T01:26:55.9803490Z" + request.\nRequestId:ea482767-901a-0009-7aa0-959f11000000\nTime:2020-09-28T14:09:32.6441938Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -752,7 +809,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -763,11 +820,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20290-001a-009d-3cda-922878000000\nTime:2020-09-25T01:26:56.0393911Z" + request.\nRequestId:ea482768-901a-0009-7ba0-959f11000000\nTime:2020-09-28T14:09:32.7232499Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -782,7 +839,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -793,11 +850,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20291-001a-009d-3dda-922878000000\nTime:2020-09-25T01:26:56.0984331Z" + request.\nRequestId:ea48276a-901a-0009-7da0-959f11000000\nTime:2020-09-28T14:09:32.7912982Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -812,7 +869,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -823,11 +880,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20293-001a-009d-3eda-922878000000\nTime:2020-09-25T01:26:56.1574755Z" + request.\nRequestId:ea48276d-901a-0009-80a0-959f11000000\nTime:2020-09-28T14:09:32.8623486Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -842,7 +899,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -853,11 +910,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20294-001a-009d-3fda-922878000000\nTime:2020-09-25T01:26:56.2175182Z" + request.\nRequestId:ea48276f-901a-0009-01a0-959f11000000\nTime:2020-09-28T14:09:32.9354008Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -872,7 +929,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:32 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -883,11 +940,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20296-001a-009d-40da-922878000000\nTime:2020-09-25T01:26:56.2765598Z" + request.\nRequestId:ea482770-901a-0009-02a0-959f11000000\nTime:2020-09-28T14:09:33.0134558Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:55 GMT + 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' @@ -902,7 +959,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:56 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -913,11 +970,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20297-001a-009d-41da-922878000000\nTime:2020-09-25T01:26:56.3346020Z" + request.\nRequestId:ea482772-901a-0009-03a0-959f11000000\nTime:2020-09-28T14:09:33.0885090Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -932,7 +989,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -943,11 +1000,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20298-001a-009d-42da-922878000000\nTime:2020-09-25T01:26:56.3946447Z" + request.\nRequestId:ea482774-901a-0009-05a0-959f11000000\nTime:2020-09-28T14:09:33.1645630Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -962,7 +1019,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -973,11 +1030,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b20299-001a-009d-43da-922878000000\nTime:2020-09-25T01:26:56.4586894Z" + request.\nRequestId:ea482777-901a-0009-07a0-959f11000000\nTime:2020-09-28T14:09:33.2426184Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -992,7 +1049,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1003,11 +1060,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029a-001a-009d-44da-922878000000\nTime:2020-09-25T01:26:56.5197328Z" + request.\nRequestId:ea482778-901a-0009-08a0-959f11000000\nTime:2020-09-28T14:09:33.3166709Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1022,7 +1079,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1033,11 +1090,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029b-001a-009d-45da-922878000000\nTime:2020-09-25T01:26:56.5807767Z" + request.\nRequestId:ea48277a-901a-0009-0aa0-959f11000000\nTime:2020-09-28T14:09:33.3927248Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1052,7 +1109,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1063,11 +1120,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029c-001a-009d-46da-922878000000\nTime:2020-09-25T01:26:56.6448218Z" + request.\nRequestId:ea482783-901a-0009-11a0-959f11000000\nTime:2020-09-28T14:09:33.4667774Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1082,7 +1139,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1093,11 +1150,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029d-001a-009d-47da-922878000000\nTime:2020-09-25T01:26:56.7098686Z" + request.\nRequestId:ea482789-901a-0009-17a0-959f11000000\nTime:2020-09-28T14:09:33.5428318Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1112,7 +1169,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1123,11 +1180,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029e-001a-009d-48da-922878000000\nTime:2020-09-25T01:26:56.7709116Z" + request.\nRequestId:ea48278b-901a-0009-19a0-959f11000000\nTime:2020-09-28T14:09:33.6168839Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1142,7 +1199,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1153,11 +1210,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b2029f-001a-009d-49da-922878000000\nTime:2020-09-25T01:26:56.8349577Z" + request.\nRequestId:ea482793-901a-0009-20a0-959f11000000\nTime:2020-09-28T14:09:33.6909364Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1172,7 +1229,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1183,11 +1240,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202a1-001a-009d-4bda-922878000000\nTime:2020-09-25T01:26:56.8980030Z" + request.\nRequestId:ea48279e-901a-0009-2ba0-959f11000000\nTime:2020-09-28T14:09:33.7960109Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1202,7 +1259,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1213,11 +1270,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202a2-001a-009d-4cda-922878000000\nTime:2020-09-25T01:26:56.9630497Z" + request.\nRequestId:ea4827a0-901a-0009-2da0-959f11000000\nTime:2020-09-28T14:09:33.8820720Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1232,7 +1289,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1243,11 +1300,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202a3-001a-009d-4dda-922878000000\nTime:2020-09-25T01:26:57.0260945Z" + request.\nRequestId:ea4827a2-901a-0009-2ea0-959f11000000\nTime:2020-09-28T14:09:33.9541227Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1262,7 +1319,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:33 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1273,11 +1330,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202a5-001a-009d-4fda-922878000000\nTime:2020-09-25T01:26:57.0851369Z" + request.\nRequestId:ea4827a7-901a-0009-31a0-959f11000000\nTime:2020-09-28T14:09:34.0311786Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1292,7 +1349,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1303,11 +1360,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202a6-001a-009d-50da-922878000000\nTime:2020-09-25T01:26:57.1491833Z" + request.\nRequestId:ea4827a8-901a-0009-32a0-959f11000000\nTime:2020-09-28T14:09:34.1092336Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1322,7 +1379,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1333,11 +1390,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202ad-001a-009d-57da-922878000000\nTime:2020-09-25T01:26:57.2142300Z" + request.\nRequestId:ea4827a9-901a-0009-33a0-959f11000000\nTime:2020-09-28T14:09:34.1832857Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1352,7 +1409,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1363,11 +1420,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202af-001a-009d-59da-922878000000\nTime:2020-09-25T01:26:57.2782756Z" + request.\nRequestId:ea4827aa-901a-0009-34a0-959f11000000\nTime:2020-09-28T14:09:34.2563375Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:56 GMT + 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' @@ -1382,7 +1439,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:57 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1393,11 +1450,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b1-001a-009d-5bda-922878000000\nTime:2020-09-25T01:26:57.3383187Z" + request.\nRequestId:ea4827ad-901a-0009-36a0-959f11000000\nTime:2020-09-28T14:09:34.3213836Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1412,7 +1469,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1423,11 +1480,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b3-001a-009d-5dda-922878000000\nTime:2020-09-25T01:26:57.3983618Z" + request.\nRequestId:ea4827ae-901a-0009-37a0-959f11000000\nTime:2020-09-28T14:09:34.3984387Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1442,7 +1499,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1453,11 +1510,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b5-001a-009d-5eda-922878000000\nTime:2020-09-25T01:26:57.4644097Z" + request.\nRequestId:ea4827af-901a-0009-38a0-959f11000000\nTime:2020-09-28T14:09:34.4804969Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1472,7 +1529,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1483,11 +1540,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b7-001a-009d-60da-922878000000\nTime:2020-09-25T01:26:57.5244528Z" + request.\nRequestId:ea4827b0-901a-0009-39a0-959f11000000\nTime:2020-09-28T14:09:34.5765651Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1502,7 +1559,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1513,11 +1570,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b8-001a-009d-61da-922878000000\nTime:2020-09-25T01:26:57.5844954Z" + request.\nRequestId:ea4827b2-901a-0009-3ba0-959f11000000\nTime:2020-09-28T14:09:34.6566215Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1532,7 +1589,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1543,11 +1600,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202b9-001a-009d-62da-922878000000\nTime:2020-09-25T01:26:57.6615508Z" + request.\nRequestId:ea4827b3-901a-0009-3ca0-959f11000000\nTime:2020-09-28T14:09:34.7376790Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1562,7 +1619,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1573,11 +1630,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202ba-001a-009d-63da-922878000000\nTime:2020-09-25T01:26:57.7225946Z" + request.\nRequestId:ea4827b4-901a-0009-3da0-959f11000000\nTime:2020-09-28T14:09:34.8137329Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1592,7 +1649,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1603,11 +1660,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202bb-001a-009d-64da-922878000000\nTime:2020-09-25T01:26:57.7876417Z" + request.\nRequestId:ea4827b5-901a-0009-3ea0-959f11000000\nTime:2020-09-28T14:09:34.8927890Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1622,7 +1679,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1633,11 +1690,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202bc-001a-009d-65da-922878000000\nTime:2020-09-25T01:26:57.8556903Z" + request.\nRequestId:ea4827b6-901a-0009-3fa0-959f11000000\nTime:2020-09-28T14:09:34.9698437Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1652,7 +1709,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:34 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1663,11 +1720,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202bd-001a-009d-66da-922878000000\nTime:2020-09-25T01:26:57.9227380Z" + request.\nRequestId:ea4827b7-901a-0009-40a0-959f11000000\nTime:2020-09-28T14:09:35.0499004Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1682,7 +1739,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:35 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1693,11 +1750,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202be-001a-009d-67da-922878000000\nTime:2020-09-25T01:26:57.9867831Z" + request.\nRequestId:ea4827b9-901a-0009-42a0-959f11000000\nTime:2020-09-28T14:09:35.1279562Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1712,7 +1769,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:35 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1723,11 +1780,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202bf-001a-009d-68da-922878000000\nTime:2020-09-25T01:26:58.0518290Z" + request.\nRequestId:ea4827ba-901a-0009-43a0-959f11000000\nTime:2020-09-28T14:09:35.2050105Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1742,7 +1799,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:35 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1753,11 +1810,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202c0-001a-009d-69da-922878000000\nTime:2020-09-25T01:26:58.1178768Z" + request.\nRequestId:ea4827bb-901a-0009-44a0-959f11000000\nTime:2020-09-28T14:09:35.2810649Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' @@ -1772,7 +1829,7 @@ interactions: User-Agent: - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 25 Sep 2020 01:26:58 GMT + - Mon, 28 Sep 2020 14:09:35 GMT x-ms-delete-snapshots: - include x-ms-version: @@ -1783,11 +1840,11 @@ interactions: body: string: "\uFEFFLeaseIdMissingThere is currently a lease on the file share and no lease ID was specified in the - request.\nRequestId:13b202c1-001a-009d-6ada-922878000000\nTime:2020-09-25T01:26:58.1829231Z" + request.\nRequestId:ea4827bc-901a-0009-45a0-959f11000000\nTime:2020-09-28T14:09:35.3671255Z" headers: content-length: '273' content-type: application/xml - date: Fri, 25 Sep 2020 01:26:57 GMT + 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' 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 index bcc521efc6fe..19bc05aa79b4 100644 --- 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 @@ -3,9 +3,9 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:57 GMT + - Mon, 28 Sep 2020 13:57:01 GMT x-ms-version: - '2020-02-10' method: PUT @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:58 GMT - etag: '"0x8D8565A6900CD99"' - last-modified: Fri, 11 Sep 2020 13:55:58 GMT + 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: @@ -28,15 +28,15 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:57 GMT + - Mon, 28 Sep 2020 13:57:02 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - f7e0aad5-9b81-4ea4-a1df-0efefa502092 + - cf138b27-c420-48ac-a049-a7f89c277b51 x-ms-version: - '2020-02-10' method: PUT @@ -46,11 +46,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:58 GMT - etag: '"0x8D8565A6900CD99"' - last-modified: Fri, 11 Sep 2020 13:55:58 GMT + 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: f7e0aad5-9b81-4ea4-a1df-0efefa502092 + x-ms-lease-id: cf138b27-c420-48ac-a049-a7f89c277b51 x-ms-version: '2020-02-10' status: code: 201 @@ -60,11 +60,39 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:57 GMT + - 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: - - f7e0aad5-9b81-4ea4-a1df-0efefa502092 + - cf138b27-c420-48ac-a049-a7f89c277b51 x-ms-version: - '2020-02-10' method: DELETE @@ -74,7 +102,7 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:58 GMT + 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: @@ -85,9 +113,9 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:58 GMT + - Mon, 28 Sep 2020 13:57:02 GMT x-ms-version: - '2020-02-10' method: GET @@ -95,13 +123,13 @@ interactions: response: body: string: "\uFEFFShareNotFoundThe - specified share does not exist.\nRequestId:995b7f31-c01a-0092-0543-885e14000000\nTime:2020-09-11T13:55:58.5853878Z" + specified share does not exist.\nRequestId:8dfacc3d-b01a-0088-569f-953fcb000000\nTime:2020-09-28T13:57:02.7833541Z" headers: - access-control-allow-origin: '*' content-length: '217' content-type: application/xml - date: Fri, 11 Sep 2020 13:55:58 GMT + 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: 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 94fbad317bea..795f1c75114b 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -196,7 +196,7 @@ def test_lease_share_acquire_and_release(self, resource_group, location, storage @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() + share = self._get_share_reference("testshare1") # Act share.create_share() @@ -212,10 +212,13 @@ def test_acquire_lease_on_sharesnapshot(self, resource_group, location, storage_ share_lease = share.acquire_lease() share_snapshot_lease = snapshot_client.acquire_lease() - share.get_share_properties() - snapshot_client.get_share_properties() - # 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']) @@ -402,7 +405,8 @@ def test_delete_share_with_lease_id(self, resource_group, location, storage_acco share_client = self._create_share('test') lease = share_client.acquire_lease(lease_duration=15) - with self.assertRaises(ValueError): + # Assert + with self.assertRaises(HttpResponseError): share_client.delete_share() # Act 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 ac3a8b34bbf3..ce2f19d339a7 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 @@ -231,10 +231,13 @@ async def test_acquire_lease_on_sharesnapshot(self, resource_group, location, st share_lease = await share.acquire_lease() share_snapshot_lease = await snapshot_client.acquire_lease() - await share.get_share_properties() - await snapshot_client.get_share_properties() - # 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']) @@ -435,6 +438,10 @@ async def test_delete_share_with_lease_id(self, resource_group, location, storag 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) From d524b59943675946e1024df347a08b4adb83bcf3 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Mon, 28 Sep 2020 09:28:33 -0700 Subject: [PATCH 36/41] added more tests for file --- .../azure/storage/fileshare/_lease.py | 18 +- .../storage/fileshare/aio/_lease_async.py | 18 +- ..._break_lease_with_broken_period_fails.yaml | 200 ++++++++++++++++++ ..._break_lease_with_broken_period_fails.yaml | 139 ++++++++++++ ...t_share.test_lease_share_break_period.yaml | 57 +++-- ...e_async.test_lease_share_break_period.yaml | 44 ++-- .../tests/test_file.py | 11 + .../tests/test_file_async.py | 13 ++ .../tests/test_share.py | 2 +- .../tests/test_share_async.py | 2 +- 10 files changed, 439 insertions(+), 65 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 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 6b8c87cd7c8d..ec567df3db46 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 @@ -190,8 +190,8 @@ def change(self, proposed_lease_id, **kwargs): self.last_modified = response.get('last_modified') # type: datetime @distributed_trace - def break_lease(self, **kwargs): - # type: (Any) -> int + def break_lease(self, lease_break_period=None, **kwargs): + # type: (Optional[int], 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. @@ -200,9 +200,7 @@ 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 timeout: - The timeout parameter is expressed in seconds. - :keyword int lease_break_period: + :param 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 @@ -212,6 +210,11 @@ def break_lease(self, **kwargs): 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 """ @@ -219,7 +222,10 @@ def break_lease(self, **kwargs): if self._snapshot: kwargs['sharesnapshot'] = self._snapshot if isinstance(self._client, ShareOperations): - kwargs['break_period'] = kwargs.pop('lease_break_period', None) + 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/aio/_lease_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_lease_async.py index 5a134c7bc8a8..4264d394fc23 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 @@ -182,8 +182,8 @@ async def change(self, proposed_lease_id, **kwargs): self.last_modified = response.get('last_modified') # type: datetime @distributed_trace_async - async def break_lease(self, **kwargs): - # type: (Any) -> int + async def break_lease(self, lease_break_period=None, **kwargs): + # type: (Optional[int], 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. @@ -192,9 +192,7 @@ 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 timeout: - The timeout parameter is expressed in seconds. - :keyword int lease_break_period: + :param 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 @@ -204,6 +202,11 @@ async def break_lease(self, **kwargs): 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 """ @@ -211,7 +214,10 @@ async def break_lease(self, **kwargs): if self._snapshot: kwargs['sharesnapshot'] = self._snapshot if isinstance(self._client, ShareOperations): - kwargs['break_period'] = kwargs.pop('lease_break_period', None) + 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/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_lease_share_break_period.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_share.test_lease_share_break_period.yaml index 4b94e332132b..7b5eeb907357 100644 --- 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 @@ -11,33 +11,32 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:14 GMT + - 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: "\uFEFFShareAlreadyExistsThe - specified share already exists.\nRequestId:f9d05901-601a-001d-49dd-87d77e000000\nTime:2020-09-11T01:44:15.1213769Z" + string: '' headers: content-length: - - '222' - content-type: - - application/xml + - '0' date: - - Fri, 11 Sep 2020 01:44:15 GMT + - 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-error-code: - - ShareAlreadyExists x-ms-version: - '2020-02-10' status: - code: 409 - message: The specified share already exists. + code: 201 + message: Created - request: body: null headers: @@ -50,15 +49,15 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:14 GMT + - Mon, 28 Sep 2020 16:23:21 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - c03be74e-8286-43a3-b258-ecc18cae1f50 + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 x-ms-version: - '2020-02-10' method: PUT @@ -70,15 +69,15 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 01:44:15 GMT + - Mon, 28 Sep 2020 16:23:21 GMT etag: - - '"0x8D855F31D122251"' + - '"0x8D863CAD142DAFE"' last-modified: - - Fri, 11 Sep 2020 01:36:32 GMT + - Mon, 28 Sep 2020 16:23:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-id: - - c03be74e-8286-43a3-b258-ecc18cae1f50 + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 x-ms-version: - '2020-02-10' status: @@ -96,9 +95,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:14 GMT + - Mon, 28 Sep 2020 16:23:22 GMT x-ms-lease-action: - break x-ms-lease-break-period: @@ -114,11 +113,11 @@ interactions: content-length: - '0' date: - - Fri, 11 Sep 2020 01:44:15 GMT + - Mon, 28 Sep 2020 16:23:21 GMT etag: - - '"0x8D855F31D122251"' + - '"0x8D863CAD142DAFE"' last-modified: - - Fri, 11 Sep 2020 01:36:32 GMT + - Mon, 28 Sep 2020 16:23:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-lease-time: @@ -140,11 +139,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 01:44:20 GMT + - Mon, 28 Sep 2020 16:23:28 GMT x-ms-lease-id: - - c03be74e-8286-43a3-b258-ecc18cae1f50 + - 4c807822-a2d5-4919-bb5b-fcb1a6a02972 x-ms-version: - '2020-02-10' method: DELETE @@ -152,14 +151,14 @@ interactions: response: body: string: "\uFEFFLeaseLostA - lease ID was specified, but the lease for the file share has expired.\nRequestId:f9d05925-601a-001d-64dd-87d77e000000\nTime:2020-09-11T01:44:21.5909333Z" + 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: - - Fri, 11 Sep 2020 01:44:21 GMT + - Mon, 28 Sep 2020 16:23:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: 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 index 4c7100910645..88a4e4b5745d 100644 --- 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 @@ -3,9 +3,9 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:12 GMT + - Mon, 28 Sep 2020 16:22:47 GMT x-ms-version: - '2020-02-10' method: PUT @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:13 GMT - etag: '"0x8D8565A4E61E794"' - last-modified: Fri, 11 Sep 2020 13:55:13 GMT + 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: @@ -28,15 +28,15 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:12 GMT + - Mon, 28 Sep 2020 16:23:05 GMT x-ms-lease-action: - acquire x-ms-lease-duration: - '15' x-ms-proposed-lease-id: - - 34ad5690-5f59-4018-b260-3c9d57eaf832 + - db6e2d34-67d9-4050-873c-1c0680c0430c x-ms-version: - '2020-02-10' method: PUT @@ -46,11 +46,11 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:13 GMT - etag: '"0x8D8565A4E61E794"' - last-modified: Fri, 11 Sep 2020 13:55:13 GMT + 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: 34ad5690-5f59-4018-b260-3c9d57eaf832 + x-ms-lease-id: db6e2d34-67d9-4050-873c-1c0680c0430c x-ms-version: '2020-02-10' status: code: 201 @@ -60,9 +60,9 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:13 GMT + - Mon, 28 Sep 2020 16:23:05 GMT x-ms-lease-action: - break x-ms-lease-break-period: @@ -76,9 +76,9 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 11 Sep 2020 13:55:13 GMT - etag: '"0x8D8565A4E61E794"' - last-modified: Fri, 11 Sep 2020 13:55:13 GMT + 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' @@ -90,11 +90,11 @@ interactions: body: null headers: User-Agent: - - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) + - azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) x-ms-date: - - Fri, 11 Sep 2020 13:55:19 GMT + - Mon, 28 Sep 2020 16:23:11 GMT x-ms-lease-id: - - 34ad5690-5f59-4018-b260-3c9d57eaf832 + - db6e2d34-67d9-4050-873c-1c0680c0430c x-ms-version: - '2020-02-10' method: DELETE @@ -102,11 +102,11 @@ interactions: response: body: string: "\uFEFFLeaseLostA - lease ID was specified, but the lease for the file share has expired.\nRequestId:7e983f65-c01a-0076-5b43-88508a000000\nTime:2020-09-11T13:55:19.9105154Z" + 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: Fri, 11 Sep 2020 13:55:19 GMT + 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' 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 4a2930186145..25553e006dc4 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 651fb56d62a9..99c70dbd174d 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 795f1c75114b..4c0e2b165042 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -394,7 +394,7 @@ def test_lease_share_break_period(self, resource_group, location, storage_accoun lease = share_client.acquire_lease(lease_duration=15) # Assert - lease.break_lease(break_period=5) + lease.break_lease(lease_break_period=5) self.sleep(6) with self.assertRaises(HttpResponseError): share_client.delete_share(lease=lease) 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 ce2f19d339a7..0ee191dda7b1 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 @@ -426,7 +426,7 @@ async def test_lease_share_break_period(self, resource_group, location, storage_ lease = await share_client.acquire_lease(lease_duration=15) # Assert - await lease.break_lease(break_period=5) + await lease.break_lease(lease_break_period=5) self.sleep(6) with self.assertRaises(HttpResponseError): await share_client.delete_share(lease=lease) From b11489dc71d79b83edf213d5a94d0e3f67aa4530 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 29 Sep 2020 15:41:20 -0700 Subject: [PATCH 37/41] added tests for list shares --- ...t_share.test_list_shares_leased_share.yaml | 2997 +++++++++++++++++ ...e_async.test_list_shares_leased_share.yaml | 1945 +++++++++++ .../tests/test_share.py | 19 + .../tests/test_share_async.py | 22 + 4 files changed, 4983 insertions(+) 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_async.test_list_shares_leased_share.yaml 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_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/test_share.py b/sdk/storage/azure-storage-file-share/tests/test_share.py index 4c0e2b165042..990bb58fb686 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_share.py +++ b/sdk/storage/azure-storage-file-share/tests/test_share.py @@ -619,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 0ee191dda7b1..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 @@ -674,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): From 4920a9042556bf642b37476c6b4b6b35ead81539 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 29 Sep 2020 16:25:59 -0700 Subject: [PATCH 38/41] unused import --- .../azure/storage/filedatalake/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py index 406eedceac74..c33d19a94ed5 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py @@ -17,7 +17,7 @@ from azure.storage.blob import AccessPolicy as BlobAccessPolicy from azure.storage.blob import DelimitedTextDialect as BlobDelimitedTextDialect from azure.storage.blob import DelimitedJsonDialect as BlobDelimitedJSON -from azure.storage.blob._generated.models import StorageErrorException +from azure.storage.blob._generated.models import StorageErrorException # pylint: disable=unused-import from azure.storage.blob._models import ContainerPropertiesPaged from ._deserialize import return_headers_and_deserialized_path_list from ._generated.models import Path From 5677bd549ee07d2826908f11f6fb025b869eb38e Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 30 Sep 2020 15:13:23 -0700 Subject: [PATCH 39/41] changed method signitures --- .../azure/storage/fileshare/_lease.py | 16 +++++++++------- .../azure/storage/fileshare/aio/_lease_async.py | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) 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 ec567df3db46..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 @@ -68,8 +68,8 @@ def __exit__(self, *args): self.release() @distributed_trace - def acquire(self, lease_duration=-1, **kwargs): - # type: (int, **Any) -> None + def acquire(self, **kwargs): + # type: (**Any) -> None """Requests a new lease. This operation establishes and manages a lock on a 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, @@ -79,7 +79,7 @@ def acquire(self, lease_duration=-1, **kwargs): 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. - :param int lease_duration: + :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 @@ -90,6 +90,7 @@ def acquire(self, lease_duration=-1, **kwargs): :rtype: None """ try: + lease_duration = kwargs.pop('lease_duration', -1) if self._snapshot: kwargs['sharesnapshot'] = self._snapshot response = self._client.acquire_lease( @@ -168,7 +169,7 @@ def change(self, proposed_lease_id, **kwargs): 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 or Share 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. @@ -190,8 +191,8 @@ def change(self, proposed_lease_id, **kwargs): self.last_modified = response.get('last_modified') # type: datetime @distributed_trace - def break_lease(self, lease_break_period=None, **kwargs): - # type: (Optional[int], Any) -> int + def break_lease(self, **kwargs): + # 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. @@ -200,7 +201,7 @@ def break_lease(self, lease_break_period=None, **kwargs): When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. - :param int lease_break_period: + :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 @@ -219,6 +220,7 @@ def break_lease(self, lease_break_period=None, **kwargs): :rtype: int """ try: + lease_break_period = kwargs.pop('lease_break_period', None) if self._snapshot: kwargs['sharesnapshot'] = self._snapshot if isinstance(self._client, ShareOperations): 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 4264d394fc23..1c52c0afec6b 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 @@ -60,8 +60,8 @@ async def __aexit__(self, *args): await self.release() @distributed_trace_async - async def acquire(self, lease_duration=-1, **kwargs): - # type: (int, **Any) -> None + async def acquire(self, **kwargs): + # type: (**Any) -> None """Requests a new lease. This operation establishes and manages a lock on a 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, @@ -71,7 +71,7 @@ async def acquire(self, lease_duration=-1, **kwargs): 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. - :param int lease_duration: + :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 @@ -82,6 +82,7 @@ async def acquire(self, lease_duration=-1, **kwargs): :rtype: None """ try: + lease_duration = kwargs.pop('lease_duration', -1) if self._snapshot: kwargs['sharesnapshot'] = self._snapshot response = await self._client.acquire_lease( @@ -160,7 +161,7 @@ async def change(self, proposed_lease_id, **kwargs): 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 or Share 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. @@ -182,8 +183,8 @@ async def change(self, proposed_lease_id, **kwargs): self.last_modified = response.get('last_modified') # type: datetime @distributed_trace_async - async def break_lease(self, lease_break_period=None, **kwargs): - # type: (Optional[int], Any) -> int + async def break_lease(self, **kwargs): + # 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. @@ -192,7 +193,7 @@ async def break_lease(self, lease_break_period=None, **kwargs): When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. - :param int lease_break_period: + :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 @@ -211,6 +212,7 @@ async def break_lease(self, lease_break_period=None, **kwargs): :rtype: int """ try: + lease_break_period = kwargs.pop('lease_break_period', None) if self._snapshot: kwargs['sharesnapshot'] = self._snapshot if isinstance(self._client, ShareOperations): From 60b263e9ab5ea6a1044a3d765235af73b4151802 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 30 Sep 2020 18:40:17 -0700 Subject: [PATCH 40/41] fixed kwargs --- .../azure/storage/fileshare/_file_client.py | 3 ++- .../azure/storage/fileshare/_share_client.py | 3 ++- .../azure/storage/fileshare/aio/_file_client_async.py | 5 +++-- .../azure/storage/fileshare/aio/_share_client_async.py | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) 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 e93a406b0f02..87ce57e594cb 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 @@ -290,8 +290,9 @@ def acquire_lease(self, lease_id=None, **kwargs): :dedent: 12 :caption: Acquiring a lease on a file. """ + kwargs['lease_duration'] = -1 lease = ShareLeaseClient(self, lease_id=lease_id) # type: ignore - lease.acquire(lease_duration=-1, **kwargs) + lease.acquire(**kwargs) return lease @distributed_trace 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 761d849e839e..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 @@ -290,8 +290,9 @@ def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): :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(lease_duration, **kwargs) + lease.acquire(**kwargs) return lease @distributed_trace 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 2ff50fdf2ef5..7dba7dd26869 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,8 +165,9 @@ 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(lease_duration=-1, **kwargs) + await lease.acquire(**kwargs) return lease @distributed_trace_async 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 d1aef20d1488..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 @@ -161,8 +161,9 @@ async def acquire_lease(self, lease_duration=-1, lease_id=None, **kwargs): :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(lease_duration, **kwargs) + await lease.acquire(**kwargs) return lease @distributed_trace_async From 8e8383797bc0f945d28c550cbca6d2eaa6b7944a Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 1 Oct 2020 08:41:36 -0700 Subject: [PATCH 41/41] linter --- .../azure/storage/fileshare/aio/_lease_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1c52c0afec6b..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 @@ -161,7 +161,7 @@ async def change(self, proposed_lease_id, **kwargs): 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 or Share service raises an error + 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.