diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/__init__.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/__init__.py index 82b0e5531821..0cfdefdae4e1 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/__init__.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/__init__.py @@ -32,6 +32,7 @@ ArrowDialect, ArrowType, DataLakeFileQueryError, + DataLakeAclChangeFailedError, AccessControlChangeResult, AccessControlChangeCounters, AccessControlChangeFailure, @@ -84,6 +85,8 @@ 'StorageStreamDownloader', 'DelimitedTextDialect', 'DelimitedJsonDialect', + 'DataLakeFileQueryError', + 'DataLakeAclChangeFailedError', 'ArrowDialect', 'ArrowType', 'DataLakeFileQueryError' 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 9b85aee81b43..3218af1ba95d 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 @@ -648,3 +648,20 @@ def __init__(self, batch_counters, aggregate_counters, batch_failures, continuat self.aggregate_counters = aggregate_counters self.batch_failures = batch_failures self.continuation = continuation + + +class DataLakeAclChangeFailedError(Exception): + """The error happened during set/update/remove acl recursive operation. + + :ivar ~azure.core.exceptions.AzureError error: + The exception. + :ivar str description: + A description of the error. + :ivar str continuation: + An opaque continuation token that may be used to resume the operations in case of failures. + """ + + def __init__(self, error, description, continuation): + self.error = error + self.description = description + self.continuation = continuation diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py index 29ce0af59bef..a0d5f72af5ae 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py @@ -12,13 +12,14 @@ import six +from azure.core.exceptions import AzureError from azure.storage.blob import BlobClient from ._data_lake_lease import DataLakeLeaseClient from ._deserialize import process_storage_error from ._generated import DataLakeStorageClient from ._generated.models import StorageErrorException from ._models import LocationMode, DirectoryProperties, AccessControlChangeResult, AccessControlChanges, \ - AccessControlChangeCounters, AccessControlChangeFailure + AccessControlChangeCounters, AccessControlChangeFailure, DataLakeAclChangeFailedError from ._serialize import convert_dfs_url_to_blob_url, get_mod_conditions, \ get_path_http_headers, add_metadata_headers, get_lease_id, get_source_mod_conditions, get_access_conditions from ._shared.base_client import StorageAccountHostsMixin, parse_query @@ -612,8 +613,8 @@ def _set_access_control_internal(self, options, progress_hook, max_batches=None) failure_count=total_failure_count), continuation=last_continuation_token if total_failure_count > 0 and not continue_on_failure else current_continuation_token) - except StorageErrorException as error: - process_storage_error(error) + except AzureError as error: + raise DataLakeAclChangeFailedError(error, error.message, last_continuation_token) def _rename_path_options(self, rename_source, content_settings=None, metadata=None, **kwargs): # type: (Optional[ContentSettings], Optional[Dict[str, str]], **Any) -> Dict[str, Any] diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py index 215207bba63f..f20b97de15a4 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py @@ -4,11 +4,12 @@ # license information. # -------------------------------------------------------------------------- # pylint: disable=invalid-overridden-method +from azure.core.exceptions import AzureError from azure.storage.blob.aio import BlobClient from .._shared.base_client_async import AsyncStorageAccountHostsMixin from .._path_client import PathClient as PathClientBase from .._models import DirectoryProperties, AccessControlChangeResult, AccessControlChangeFailure, \ - AccessControlChangeCounters, AccessControlChanges + AccessControlChangeCounters, AccessControlChanges, DataLakeAclChangeFailedError from .._generated.aio import DataLakeStorageClient from ._data_lake_lease_async import DataLakeLeaseClient from .._generated.models import StorageErrorException @@ -474,8 +475,8 @@ async def _set_access_control_internal(self, options, progress_hook, max_batches failure_count=total_failure_count), continuation=last_continuation_token if total_failure_count > 0 and not continue_on_failure else current_continuation_token) - except StorageErrorException as error: - process_storage_error(error) + except AzureError as error: + raise DataLakeAclChangeFailedError(error, error.message, last_continuation_token) async def _rename_path(self, rename_source, **kwargs): diff --git a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory.test_set_access_control_recursive_throws_exception_containing_continuation_token.yaml b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory.test_set_access_control_recursive_throws_exception_containing_continuation_token.yaml new file mode 100644 index 000000000000..23eef8f82546 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory.test_set_access_control_recursive_throws_exception_containing_continuation_token.yaml @@ -0,0 +1,1458 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 70d39ffe-02e7-11eb-ad5e-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:41 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B555F84E5"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:42 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441d9e-801f-0008-29f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 71348c6e-02e7-11eb-964d-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:42 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B55779BF5"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:42 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441d9f-801f-0008-2af4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 714c75fe-02e7-11eb-8651-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:42 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad%2Fsubfile06ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B558E80A5"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:42 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da0-801f-0008-2bf4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7163ae1c-02e7-11eb-a6e1-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:42 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad%2Fsubfile16ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B55A76407"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:42 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da1-801f-0008-2cf4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 717c1e76-02e7-11eb-ab9f-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:42 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad%2Fsubfile26ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B55BBC83C"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da2-801f-0008-2df4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7190a3a4-02e7-11eb-8dfa-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad%2Fsubfile36ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B55D2B049"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da3-801f-0008-2ef4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 71a7daae-02e7-11eb-9243-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir06ad527ad%2Fsubfile46ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:42 GMT + ETag: + - '"0x8D8650B55EBADDA"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da4-801f-0008-2ff4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 71c0869e-02e7-11eb-b1bf-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B560384A7"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da5-801f-0008-30f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 71d8ced8-02e7-11eb-8070-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad%2Fsubfile06ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B561E76A6"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da6-801f-0008-31f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 71f371ee-02e7-11eb-934e-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad%2Fsubfile16ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B5636BB14"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da7-801f-0008-32f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 720ba810-02e7-11eb-87f7-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:43 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad%2Fsubfile26ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B564D44C4"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:43 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da8-801f-0008-33f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72222342-02e7-11eb-8173-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad%2Fsubfile36ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B56636985"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441da9-801f-0008-34f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7238ad2e-02e7-11eb-82ef-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir16ad527ad%2Fsubfile46ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:43 GMT + ETag: + - '"0x8D8650B567DEB19"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441daa-801f-0008-35f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7252c2ee-02e7-11eb-a09d-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B5694458E"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dab-801f-0008-36f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72694a5e-02e7-11eb-8c75-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad%2Fsubfile06ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B56AB6FB0"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dac-801f-0008-37f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72803d26-02e7-11eb-99bc-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad%2Fsubfile16ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B56BFD036"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dad-801f-0008-38f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7294c1da-02e7-11eb-a12e-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad%2Fsubfile26ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B56DA8F06"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:44 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dae-801f-0008-39f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72afcdae-02e7-11eb-80f4-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:44 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad%2Fsubfile36ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B56F35A79"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441daf-801f-0008-3af4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72c82d5e-02e7-11eb-a8ba-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir26ad527ad%2Fsubfile46ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B570A01AD"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db0-801f-0008-3bf4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72df51a8-02e7-11eb-9f57-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:44 GMT + ETag: + - '"0x8D8650B5722BD8A"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db1-801f-0008-3cf4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 72f8137e-02e7-11eb-9789-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad%2Fsubfile06ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B573D0CE3"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db2-801f-0008-3df4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7311c480-02e7-11eb-83bb-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad%2Fsubfile16ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B57518D3E"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db3-801f-0008-3ef4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7326a9b4-02e7-11eb-9d5c-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad%2Fsubfile26ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B576BFF6C"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:45 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db4-801f-0008-3ff4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 734155a8-02e7-11eb-ae03-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:45 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad%2Fsubfile36ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B578614DE"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db5-801f-0008-40f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 735b76e6-02e7-11eb-82ad-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir36ad527ad%2Fsubfile46ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B57A0702E"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db6-801f-0008-41f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 7375637a-02e7-11eb-851d-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad?resource=directory + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:45 GMT + ETag: + - '"0x8D8650B57B76277"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db7-801f-0008-42f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 738cb79e-02e7-11eb-99bc-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad%2Fsubfile06ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:46 GMT + ETag: + - '"0x8D8650B57D2780F"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db8-801f-0008-43f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 73a74d38-02e7-11eb-9715-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad%2Fsubfile16ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:46 GMT + ETag: + - '"0x8D8650B57EB808A"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441db9-801f-0008-44f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 73c0e350-02e7-11eb-ab84-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad%2Fsubfile26ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:46 GMT + ETag: + - '"0x8D8650B5805E580"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:46 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dba-801f-0008-45f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 73dae90c-02e7-11eb-8478-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:46 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad%2Fsubfile36ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:46 GMT + ETag: + - '"0x8D8650B581D7DE3"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:47 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dbb-801f-0008-46f4-96ec2e000000 + 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-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 73f28d18-02e7-11eb-9c69-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:47 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad%2Fsubdir46ad527ad%2Fsubfile46ad527ad?resource=file + response: + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 30 Sep 2020 06:37:46 GMT + ETag: + - '"0x8D8650B58354A1B"' + Last-Modified: + - Wed, 30 Sep 2020 06:37:47 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 9f441dbc-801f-0008-47f4-96ec2e000000 + x-ms-version: + - '2020-02-10' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-acl: + - user::rwx,group::r-x,other::rwx + x-ms-client-request-id: + - 740a741c-02e7-11eb-87c0-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:47 GMT + x-ms-version: + - '2020-02-10' + method: PATCH + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad?mode=set&maxRecords=2&action=setAccessControlRecursive + response: + body: + string: '{"directoriesSuccessful":2,"failedEntries":[],"failureCount":0,"filesSuccessful":0} + + ' + headers: + Date: + - Wed, 30 Sep 2020 06:37:47 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-continuation: + - VBaZ6bCPqb+Ws/wBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTZhZDUyN2FkATAxRDY5NkY0MzI0MzhBRTQvZGlyZWN0b3J5NmFkNTI3YWQvc3ViZGlyMDZhZDUyN2FkL3N1YmZpbGUwNmFkNTI3YWQWAAAA + x-ms-namespace-enabled: + - 'true' + x-ms-request-id: + - 9f441dbe-801f-0008-48f4-96ec2e000000 + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-acl: + - user::rwx,group::r-x,other::rwx + x-ms-client-request-id: + - 743affca-02e7-11eb-8832-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:37:47 GMT + x-ms-version: + - '2020-02-10' + method: PATCH + uri: https://storagename.dfs.core.windows.net/filesystem6ad527ad/directory6ad527ad?continuation=VBaZ6bCPqb%2BWs%2FwBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTZhZDUyN2FkATAxRDY5NkY0MzI0MzhBRTQvZGlyZWN0b3J5NmFkNTI3YWQvc3ViZGlyMDZhZDUyN2FkL3N1YmZpbGUwNmFkNTI3YWQWAAAA&mode=set&maxRecords=2&action=setAccessControlRecursive + response: + body: + string: '{"directoriesSuccessful":0,"failedEntries":[],"failureCount":0,"filesSuccessful":2} + + ' + headers: + Date: + - Wed, 30 Sep 2020 06:37:47 GMT + Server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-continuation: + - VBaSgqLepJ3a2ZkBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTZhZDUyN2FkATAxRDY5NkY0MzI0MzhBRTQvZGlyZWN0b3J5NmFkNTI3YWQvc3ViZGlyMDZhZDUyN2FkL3N1YmZpbGUyNmFkNTI3YWQWAAAA + x-ms-namespace-enabled: + - 'true' + x-ms-request-id: + - 9f441dc1-801f-0008-49f4-96ec2e000000 + x-ms-version: + - '2020-02-10' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory_async.test_set_access_control_recursive_throws_exception_containing_continuation_token_async.yaml b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory_async.test_set_access_control_recursive_throws_exception_containing_continuation_token_async.yaml new file mode 100644 index 000000000000..4e14cd5d2d1f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_directory_async.test_set_access_control_recursive_throws_exception_containing_continuation_token_async.yaml @@ -0,0 +1,1000 @@ +interactions: +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84068ae2-02e7-11eb-bd2f-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:13 GMT + Etag: '"0x8D8650B68732153"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d51-a01f-0052-04f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84487e08-02e7-11eb-9e82-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:13 GMT + Etag: '"0x8D8650B6880B237"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d52-a01f-0052-05f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 8455f1ba-02e7-11eb-be46-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile066642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B688EAA1A"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d53-a01f-0052-06f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile066642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 8466ed5c-02e7-11eb-8637-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile166642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B689FB6EE"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d54-a01f-0052-07f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile166642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 8476092e-02e7-11eb-b5f0-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile266642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68AED345"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d55-a01f-0052-08f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile266642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84843af0-02e7-11eb-88e0-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile366642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68BD23E0"' + Last-Modified: Wed, 30 Sep 2020 06:38:14 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d56-a01f-0052-09f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile366642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 849290a8-02e7-11eb-b2da-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:14 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile466642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68CB747E"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d57-a01f-0052-0af4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir066642ca7%2Fsubfile466642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84a0c7b0-02e7-11eb-bf8d-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68D94621"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d58-a01f-0052-0bf4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84aeab34-02e7-11eb-b401-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile066642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68E7CA6A"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d59-a01f-0052-0cf4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile066642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84bcfa68-02e7-11eb-9128-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile166642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B68F6146B"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5a-a01f-0052-0df4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile166642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84cb61b6-02e7-11eb-9928-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile266642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B69046328"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5b-a01f-0052-0ef4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile266642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84da4fdc-02e7-11eb-b408-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile366642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B691370A5"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5c-a01f-0052-0ff4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile366642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84e8a612-02e7-11eb-8fda-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile466642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:14 GMT + Etag: '"0x8D8650B6921C195"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5d-a01f-0052-10f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir166642ca7%2Fsubfile466642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 84f6734c-02e7-11eb-8811-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B692E5A74"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5e-a01f-0052-11f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85030dfe-02e7-11eb-8c78-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile066642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B693B761C"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d5f-a01f-0052-12f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile066642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 851065d2-02e7-11eb-98a8-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile166642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69492B48"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d60-a01f-0052-13f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile166642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 851e8576-02e7-11eb-b823-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile266642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B6957BCD6"' + Last-Modified: Wed, 30 Sep 2020 06:38:15 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d61-a01f-0052-14f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile266642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 852d0d3e-02e7-11eb-a7c9-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:15 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile366642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69668A41"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d62-a01f-0052-15f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile366642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 853bccc8-02e7-11eb-902b-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile466642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69755682"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d63-a01f-0052-16f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir266642ca7%2Fsubfile466642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 854aac4c-02e7-11eb-9bf1-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B6983B929"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d64-a01f-0052-17f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 855907f4-02e7-11eb-9862-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile066642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69928EE1"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d65-a01f-0052-18f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile066642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 8567ffa8-02e7-11eb-9558-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile166642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69A1FD15"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d66-a01f-0052-19f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile166642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85774e24-02e7-11eb-b85c-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile266642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69B0E2B8"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d67-a01f-0052-1af4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile266642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 858636d8-02e7-11eb-8ad0-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile366642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:15 GMT + Etag: '"0x8D8650B69BFDA70"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d68-a01f-0052-1bf4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile366642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85953314-02e7-11eb-97cf-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile466642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B69CF212B"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d69-a01f-0052-1cf4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir366642ca7%2Fsubfile466642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85a7c176-02e7-11eb-bc91-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7?resource=directory + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B69E199B3"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6a-a01f-0052-1df4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7?resource=directory +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85b70b3e-02e7-11eb-8f8d-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile066642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B69F0DDA6"' + Last-Modified: Wed, 30 Sep 2020 06:38:16 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6b-a01f-0052-1ef4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile066642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85c63dd0-02e7-11eb-84e3-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:16 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile166642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B6A001B89"' + Last-Modified: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6c-a01f-0052-1ff4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile166642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85d5643a-02e7-11eb-8d63-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:17 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile266642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B6A0F3C63"' + Last-Modified: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6d-a01f-0052-20f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile266642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85e49d80-02e7-11eb-bf81-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:17 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile366642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B6A1F09F9"' + Last-Modified: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6e-a01f-0052-21f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile366642ca7?resource=file +- request: + body: null + headers: + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-client-request-id: + - 85f44222-02e7-11eb-96dd-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:17 GMT + x-ms-properties: + - '' + x-ms-version: + - '2020-02-10' + method: PUT + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile466642ca7?resource=file + response: + body: + string: '' + headers: + Content-Length: '0' + Date: Wed, 30 Sep 2020 06:38:16 GMT + Etag: '"0x8D8650B6A2E3FFE"' + Last-Modified: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: 25c88d6f-a01f-0052-22f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 201 + message: Created + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7%2Fsubdir466642ca7%2Fsubfile466642ca7?resource=file +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-acl: + - user::rwx,group::r-x,other::rwx + x-ms-client-request-id: + - 860348b8-02e7-11eb-800a-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:17 GMT + x-ms-version: + - '2020-02-10' + method: PATCH + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?mode=set&maxRecords=2&action=setAccessControlRecursive + response: + body: + string: '{"directoriesSuccessful":2,"failedEntries":[],"failureCount":0,"filesSuccessful":0} + + ' + headers: + Date: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: chunked + x-ms-continuation: VBaY/qfyvMK75ewBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTY2NjQyY2E3ATAxRDY5NkY0NDVBMzQwMDYvZGlyZWN0b3J5NjY2NDJjYTcvc3ViZGlyMDY2NjQyY2E3L3N1YmZpbGUwNjY2NDJjYTcWAAAA + x-ms-namespace-enabled: 'true' + x-ms-request-id: 25c88d70-a01f-0052-23f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?mode=set&maxRecords=2&action=setAccessControlRecursive +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-storage-dfs/12.1.2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + x-ms-acl: + - user::rwx,group::r-x,other::rwx + x-ms-client-request-id: + - 86338662-02e7-11eb-a224-001a7dda7113 + x-ms-date: + - Wed, 30 Sep 2020 06:38:17 GMT + x-ms-version: + - '2020-02-10' + method: PATCH + uri: https://storagename.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?continuation=VBaY/qfyvMK75ewBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTY2NjQyY2E3ATAxRDY5NkY0NDVBMzQwMDYvZGlyZWN0b3J5NjY2NDJjYTcvc3ViZGlyMDY2NjQyY2E3L3N1YmZpbGUwNjY2NDJjYTcWAAAA&mode=set&maxRecords=2&action=setAccessControlRecursive + response: + body: + string: '{"directoriesSuccessful":0,"failedEntries":[],"failureCount":0,"filesSuccessful":2} + + ' + headers: + Date: Wed, 30 Sep 2020 06:38:17 GMT + Server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: chunked + x-ms-continuation: VBaTlbWjseD3j4kBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTY2NjQyY2E3ATAxRDY5NkY0NDVBMzQwMDYvZGlyZWN0b3J5NjY2NDJjYTcvc3ViZGlyMDY2NjQyY2E3L3N1YmZpbGUyNjY2NDJjYTcWAAAA + x-ms-namespace-enabled: 'true' + x-ms-request-id: 25c88d72-a01f-0052-24f4-968ac9000000 + x-ms-version: '2020-02-10' + status: + code: 200 + message: OK + url: https://amandaadlscanary.dfs.core.windows.net/filesystem66642ca7/directory66642ca7?continuation=VBaY/qfyvMK75ewBGH4YeS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvZmlsZXN5c3RlbTY2NjQyY2E3ATAxRDY5NkY0NDVBMzQwMDYvZGlyZWN0b3J5NjY2NDJjYTcvc3ViZGlyMDY2NjQyY2E3L3N1YmZpbGUwNjY2NDJjYTcWAAAA&mode=set&maxRecords=2&action=setAccessControlRecursive +version: 1 diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_directory.py b/sdk/storage/azure-storage-file-datalake/tests/test_directory.py index dcb3990159e6..c0628b552cad 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_directory.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_directory.py @@ -11,12 +11,12 @@ from azure.core import MatchConditions from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, \ - ResourceModifiedError + ResourceModifiedError, ServiceRequestError from azure.storage.filedatalake import ContentSettings, DirectorySasPermissions, DataLakeDirectoryClient, \ generate_file_system_sas, FileSystemSasPermissions, DataLakeFileClient from azure.storage.filedatalake import DataLakeServiceClient, generate_directory_sas from azure.storage.filedatalake._models import AccessControlChangeResult, AccessControlChangeCounters, \ - AccessControlChanges + AccessControlChanges, DataLakeAclChangeFailedError from testcase import ( StorageTestCase, record, @@ -299,6 +299,30 @@ def test_set_access_control_recursive(self): self.assertIsNotNone(access_control) self.assertEqual(acl, access_control['acl']) + @record + def test_set_access_control_recursive_throws_exception_containing_continuation_token(self): + directory_name = self._get_directory_reference() + directory_client = self.dsc.get_directory_client(self.file_system_name, directory_name) + directory_client.create_directory() + num_sub_dirs = 5 + num_file_per_sub_dir = 5 + self._create_sub_directory_and_files(directory_client, num_sub_dirs, num_file_per_sub_dir) + + response_list = list() + + def callback(response): + response_list.append(response) + if len(response_list) == 2: + raise ServiceRequestError("network problem") + acl = 'user::rwx,group::r-x,other::rwx' + + with self.assertRaises(DataLakeAclChangeFailedError) as acl_error: + directory_client.set_access_control_recursive(acl=acl, batch_size=2, max_batches=2, + raw_response_hook=callback, retry_total=0) + self.assertIsNotNone(acl_error.exception.continuation) + self.assertEqual(acl_error.exception.message, "network problem") + self.assertIsInstance(acl_error.exception.error, ServiceRequestError) + @record def test_set_access_control_recursive_in_batches(self): directory_name = self._get_directory_reference() diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py index ed74c9b31c1a..dac0b608afcf 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_directory_async.py @@ -15,10 +15,11 @@ from multidict import CIMultiDict, CIMultiDictProxy from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, \ - ResourceModifiedError + ResourceModifiedError, ServiceRequestError from azure.storage.filedatalake import ContentSettings, DirectorySasPermissions, generate_file_system_sas, \ FileSystemSasPermissions from azure.storage.filedatalake import generate_directory_sas +from azure.storage.filedatalake._models import DataLakeAclChangeFailedError from azure.storage.filedatalake.aio import DataLakeServiceClient, DataLakeDirectoryClient from azure.storage.filedatalake import AccessControlChangeResult, AccessControlChangeCounters @@ -382,6 +383,34 @@ async def _test_set_access_control_recursive_async(self): self.assertIsNotNone(access_control) self.assertEqual(acl, access_control['acl']) + @record + def test_set_access_control_recursive_throws_exception_containing_continuation_token_async(self): + loop = asyncio.get_event_loop() + loop.run_until_complete(self._test_set_access_control_recursive_throws_exception_containing_continuation_token()) + + async def _test_set_access_control_recursive_throws_exception_containing_continuation_token(self): + directory_name = self._get_directory_reference() + directory_client = self.dsc.get_directory_client(self.file_system_name, directory_name) + await directory_client.create_directory() + num_sub_dirs = 5 + num_file_per_sub_dir = 5 + await self._create_sub_directory_and_files(directory_client, num_sub_dirs, num_file_per_sub_dir) + + response_list = list() + + def callback(response): + response_list.append(response) + if len(response_list) == 2: + raise ServiceRequestError("network problem") + acl = 'user::rwx,group::r-x,other::rwx' + + with self.assertRaises(DataLakeAclChangeFailedError) as acl_error: + await directory_client.set_access_control_recursive(acl=acl, batch_size=2, max_batches=2, + raw_response_hook=callback, retry_total=0) + self.assertIsNotNone(acl_error.exception.continuation) + self.assertEqual(acl_error.exception.message, "network problem") + self.assertIsInstance(acl_error.exception.error, ServiceRequestError) + @record def test_set_access_control_recursive_in_batches_async(self): loop = asyncio.get_event_loop()