From 8a7c17dcad658078870a9e1fbb30847a46506838 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Mon, 23 May 2022 11:13:58 +0800 Subject: [PATCH 01/16] migration --- .../cli/command_modules/storage/_help.py | 5 + .../cli/command_modules/storage/_params.py | 12 +- .../command_modules/storage/_transformers.py | 8 + .../cli/command_modules/storage/commands.py | 5 +- .../storage/operations/fileshare.py | 17 + ...t_storage_file_copy_snapshot_scenario.yaml | 172 +++++---- .../test_storage_file_main_scenario.yaml | 360 +++++++++--------- 7 files changed, 319 insertions(+), 260 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 2079ed567b8..d74381d1214 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -2883,6 +2883,11 @@ short-summary: Set service-defined properties for the specified share. """ +helps['storage share snapshot'] = """ +type: command +short-summary: Creates a snapshot of an existing share under the specified account. +""" + helps['storage share metadata'] = """ type: group short-summary: Manage the metadata of a file share. diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index f64060eafb5..024d3b31800 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1620,8 +1620,16 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem 'than 0, and less than or equal to 5TB (5120).') with self.argument_context('storage share url') as c: - c.argument('unc', action='store_true', help='Output UNC network path.') + c.extra('unc', action='store_true', help='Output UNC network path.') c.argument('protocol', arg_type=get_enum_type(['http', 'https'], 'https'), help='Protocol to use.') + c.ignore('snapshot') + + with self.argument_context('storage share snapshot') as c: + c.extra('metadata', nargs='+', + help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.', + validator=validate_metadata) + c.extra('quota', help='Specifies the maximum size of the share, in gigabytes. Must be greater than 0, and ' + 'less than or equal to 5 TB (5120 GB).') with self.argument_context('storage share list') as c: c.argument('num_results', arg_type=num_results_type) @@ -1650,7 +1658,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem help='A string that represents the snapshot version, if applicable.') c.extra('timeout', timeout_type) - for item in ['stats', 'metadata update']: + for item in ['stats', 'snapshot', 'metadata update']: with self.argument_context('storage share {}'.format(item)) as c: c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('timeout', timeout_type) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 234cd9c1126..18afa8f14ad 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -390,3 +390,11 @@ def transform_file_share_json_output(result): } new_result.update(result) return new_result + + +def transform_url_without_encode(result): + """ Ensures the resulting URL string does not contain extra / characters """ + import re + result = re.sub('//', '/', result) + result = re.sub('/', '//', result, count=1) + return result diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py index e0c74050f59..b995ce5d44f 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py @@ -617,6 +617,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT table_transformer=transform_boolean_for_table) g.storage_custom_command('generate-sas', 'generate_share_sas') g.storage_custom_command('stats', 'get_share_stats') + g.storage_custom_command('snapshot', 'create_snapshot') g.storage_command('show', 'get_share_properties', exception_handler=show_exception_handler, transform=transform_file_share_json_output) g.storage_custom_command('exists', 'share_exists', transform=create_boolean_result_output_transformer('exists')) @@ -631,13 +632,13 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT ResourceType.DATA_STORAGE_FILESHARE), resource_type=ResourceType.DATA_STORAGE_FILESHARE, min_api='2019-02-02') as g: from ._format import transform_share_list + from ._transformers import transform_url_without_encode g.storage_custom_command('list', 'list_shares', transform=transform_storage_list_output, table_transformer=transform_share_list) + g.storage_custom_command('url', 'create_share_url', transform=transform_url_without_encode) with self.command_group('storage share', command_type=file_sdk, custom_command_type=get_custom_sdk('file', file_data_service_factory)) as g: - g.storage_command('snapshot', 'snapshot_share', min_api='2017-04-17') - g.storage_custom_command('url', 'create_share_url', transform=transform_url) g.storage_command('list-handle', 'list_handles') g.storage_custom_command('close-handle', 'close_handle') diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py b/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py index 2efed197e4f..99540e7fac9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py @@ -93,3 +93,20 @@ def get_share_stats(client, timeout=None, **kwargs): def set_share_metadata(client, metadata=None, timeout=None, **kwargs): client.set_share_metadata(metadata=metadata, timeout=timeout, **kwargs) return True + + +def create_share_url(client, share_name, unc=None, protocol='https'): + file_client = client.get_share_client(share=share_name) + url = file_client.url + if protocol == 'http': + url = url.replace('https', 'http', 1) + if unc: + url = ':'.join(url.split(':')[1:]) + return url + + +def create_snapshot(client, metadata=None, quota=None, timeout=None, **kwargs): + if quota is not None: + client.set_share_quota(quota=quota, **kwargs) + result = client.create_snapshot(metadata=metadata, timeout=timeout, **kwargs) + return result diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml index 487b5a39523..a39028ddaf9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.35.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-04-11T14:13:14.0452546Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-04-11T14:13:14.0452546Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-20T08:33:38.5272743Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-20T08:33:38.5272743Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Mon, 11 Apr 2022 14:13:35 GMT + - Fri, 20 May 2022 08:34:03 GMT expires: - '-1' pragma: @@ -38,30 +38,34 @@ interactions: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11998' status: code: 200 message: OK - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Mon, 11 Apr 2022 14:13:36 GMT + - Fri, 20 May 2022 08:34:06 GMT x-ms-version: - - '2018-11-09' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -71,31 +75,39 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:37 GMT + - Fri, 20 May 2022 08:34:05 GMT etag: - - '"0x8DA1BC578F32723"' + - '"0x8DA3A3B80D12FF3"' last-modified: - - Mon, 11 Apr 2022 14:13:37 GMT + - Fri, 20 May 2022 08:34:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2019-07-07' status: code: 201 message: Created - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Mon, 11 Apr 2022 14:13:38 GMT + - Fri, 20 May 2022 08:34:08 GMT x-ms-version: - - '2018-11-09' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -105,15 +117,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:38 GMT + - Fri, 20 May 2022 08:34:07 GMT etag: - - '"0x8DA1BC579AB3228"' + - '"0x8DA3A3B8206150A"' last-modified: - - Mon, 11 Apr 2022 14:13:39 GMT + - Fri, 20 May 2022 08:34:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2019-07-07' status: code: 201 message: Created @@ -125,9 +137,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:39 GMT + - Fri, 20 May 2022 08:34:10 GMT x-ms-version: - '2018-11-09' method: PUT @@ -139,11 +151,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:39 GMT + - Fri, 20 May 2022 08:34:09 GMT etag: - - '"0x8DA1BC57A5F1A96"' + - '"0x8DA3A3B8302A2CC"' last-modified: - - Mon, 11 Apr 2022 14:13:40 GMT + - Fri, 20 May 2022 08:34:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -161,9 +173,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:40 GMT + - Fri, 20 May 2022 08:34:11 GMT x-ms-version: - '2018-11-09' method: PUT @@ -175,11 +187,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:40 GMT + - Fri, 20 May 2022 08:34:11 GMT etag: - - '"0x8DA1BC57B104EF8"' + - '"0x8DA3A3B840A9D43"' last-modified: - - Mon, 11 Apr 2022 14:13:41 GMT + - Fri, 20 May 2022 08:34:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -197,11 +209,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '524288' x-ms-date: - - Mon, 11 Apr 2022 14:13:41 GMT + - Fri, 20 May 2022 08:34:13 GMT x-ms-type: - file x-ms-version: @@ -215,11 +227,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:41 GMT + - Fri, 20 May 2022 08:34:13 GMT etag: - - '"0x8DA1BC57BBB69C2"' + - '"0x8DA3A3B851667B9"' last-modified: - - Mon, 11 Apr 2022 14:13:42 GMT + - Fri, 20 May 2022 08:34:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -238,9 +250,9 @@ interactions: Content-Length: - '106' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:43 GMT + - Fri, 20 May 2022 08:34:15 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -258,11 +270,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Mon, 11 Apr 2022 14:13:43 GMT + - Fri, 20 May 2022 08:34:15 GMT etag: - - '"0x8DA1BC57C9A371B"' + - '"0x8DA3A3B8648EE64"' last-modified: - - Mon, 11 Apr 2022 14:13:43 GMT + - Fri, 20 May 2022 08:34:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -278,9 +290,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:44 GMT + - Fri, 20 May 2022 08:34:17 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -294,11 +306,11 @@ interactions: content-type: - application/octet-stream date: - - Mon, 11 Apr 2022 14:13:44 GMT + - Fri, 20 May 2022 08:34:16 GMT etag: - - '"0x8DA1BC57C9A371B"' + - '"0x8DA3A3B8648EE64"' last-modified: - - Mon, 11 Apr 2022 14:13:43 GMT + - Fri, 20 May 2022 08:34:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -313,16 +325,24 @@ interactions: - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share snapshot Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Mon, 11 Apr 2022 14:13:45 GMT + - Fri, 20 May 2022 08:34:18 GMT x-ms-version: - - '2018-11-09' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=snapshot response: @@ -332,17 +352,17 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:45 GMT + - Fri, 20 May 2022 08:34:17 GMT etag: - - '"0x8DA1BC578F32723"' + - '"0x8DA3A3B80D12FF3"' last-modified: - - Mon, 11 Apr 2022 14:13:37 GMT + - Fri, 20 May 2022 08:34:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2022-04-11T14:13:46.0000000Z' + - '2022-05-20T08:34:18.0000000Z' x-ms-version: - - '2018-11-09' + - '2019-07-07' status: code: 201 message: Created @@ -354,9 +374,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:47 GMT + - Fri, 20 May 2022 08:34:19 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -368,7 +388,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:46 GMT + - Fri, 20 May 2022 08:34:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -382,9 +402,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:48 GMT + - Fri, 20 May 2022 08:34:21 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -394,7 +414,7 @@ interactions: string: '' headers: date: - - Mon, 11 Apr 2022 14:13:48 GMT + - Fri, 20 May 2022 08:34:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -414,11 +434,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-copy-source: - - https://clitestbaa7eyqyyrjsruxoi.file.core.windows.net/shareyyffofxnzcbx4465ytq/dir1%5Csource_file.txt?sharesnapshot=2022-04-11T14:13:46.0000000Z + - https://clitestiyc5ugirwhgimq6p4.file.core.windows.net/sharelepewiiksoicvhvmime/dir1%5Csource_file.txt?sharesnapshot=2022-05-20T08:34:18.0000000Z x-ms-date: - - Mon, 11 Apr 2022 14:13:49 GMT + - Fri, 20 May 2022 08:34:23 GMT x-ms-version: - '2018-11-09' method: PUT @@ -430,15 +450,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:52 GMT + - Fri, 20 May 2022 08:34:23 GMT etag: - - '"0x8DA1BC581B28BAA"' + - '"0x8DA3A3B8B06AECB"' last-modified: - - Mon, 11 Apr 2022 14:13:52 GMT + - Fri, 20 May 2022 08:34:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - b4216830-49ef-40e4-848e-29b9910c1110 + - a8c2d4fe-29f4-42d4-ab4c-7148c5852a53 x-ms-copy-status: - success x-ms-version: @@ -452,9 +472,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:53 GMT + - Fri, 20 May 2022 08:34:25 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -468,21 +488,21 @@ interactions: content-type: - application/octet-stream date: - - Mon, 11 Apr 2022 14:13:53 GMT + - Fri, 20 May 2022 08:34:24 GMT etag: - - '"0x8DA1BC581B28BAA"' + - '"0x8DA3A3B8B06AECB"' last-modified: - - Mon, 11 Apr 2022 14:13:52 GMT + - Fri, 20 May 2022 08:34:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Mon, 11 Apr 2022 14:13:52 GMT + - Fri, 20 May 2022 08:34:23 GMT x-ms-copy-id: - - b4216830-49ef-40e4-848e-29b9910c1110 + - a8c2d4fe-29f4-42d4-ab4c-7148c5852a53 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestbaa7eyqyyrjsruxoi.file.core.windows.net/shareyyffofxnzcbx4465ytq/dir1%5Csource_file.txt?sharesnapshot=2022-04-11T14:13:46.0000000Z + - https://clitestiyc5ugirwhgimq6p4.file.core.windows.net/sharelepewiiksoicvhvmime/dir1%5Csource_file.txt?sharesnapshot=2022-05-20T08:34:18.0000000Z x-ms-copy-status: - success x-ms-server-encrypted: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index c8107c78da8..836c7957079 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-07T09:13:07.1299005Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-07T09:13:07.1299005Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-12T08:25:49.4808843Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-12T08:25:49.4808843Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 09:13:32 GMT + - Thu, 12 May 2022 08:26:18 GMT expires: - '-1' pragma: @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:34 GMT + - Thu, 12 May 2022 08:26:17 GMT x-ms-version: - '2019-07-07' method: PUT @@ -79,11 +79,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:35 GMT + - Thu, 12 May 2022 08:26:20 GMT etag: - - '"0x8DA3009DD650EA7"' + - '"0x8DA33F117D55AA4"' last-modified: - - Sat, 07 May 2022 09:13:35 GMT + - Thu, 12 May 2022 08:26:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -109,7 +109,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:36 GMT + - Thu, 12 May 2022 08:26:18 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -127,11 +127,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:36 GMT + - Thu, 12 May 2022 08:26:22 GMT etag: - - '"0x8DA3009DE910DAE"' + - '"0x8DA33F118D6FF32"' last-modified: - - Sat, 07 May 2022 09:13:37 GMT + - Thu, 12 May 2022 08:26:22 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -155,7 +155,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:38 GMT + - Thu, 12 May 2022 08:26:20 GMT x-ms-version: - '2019-07-07' method: GET @@ -167,11 +167,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:37 GMT + - Thu, 12 May 2022 08:26:23 GMT etag: - - '"0x8DA3009DD650EA7"' + - '"0x8DA33F117D55AA4"' last-modified: - - Sat, 07 May 2022 09:13:35 GMT + - Thu, 12 May 2022 08:26:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -201,7 +201,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:39 GMT + - Thu, 12 May 2022 08:26:22 GMT x-ms-version: - '2019-07-07' method: GET @@ -213,11 +213,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:39 GMT + - Thu, 12 May 2022 08:26:26 GMT etag: - - '"0x8DA3009DE910DAE"' + - '"0x8DA33F118D6FF32"' last-modified: - - Sat, 07 May 2022 09:13:37 GMT + - Thu, 12 May 2022 08:26:22 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -251,7 +251,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:41 GMT + - Thu, 12 May 2022 08:26:25 GMT x-ms-version: - '2019-07-07' method: GET @@ -259,15 +259,15 @@ interactions: response: body: string: "\uFEFF5000share000004Sat, - 07 May 2022 09:13:37 GMT\"0x8DA3009DE910DAE\"5120$account-encryption-keyfalseshare000003Sat, - 07 May 2022 09:13:35 GMT\"0x8DA3009DD650EA7\"5120$account-encryption-keyfalse5000share000004Thu, + 12 May 2022 08:26:22 GMT\"0x8DA33F118D6FF32\"5120$account-encryption-keyfalseshare000003Thu, + 12 May 2022 08:26:20 GMT\"0x8DA33F117D55AA4\"5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Sat, 07 May 2022 09:13:40 GMT + - Thu, 12 May 2022 08:26:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -295,7 +295,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:42 GMT + - Thu, 12 May 2022 08:26:26 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -311,11 +311,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:41 GMT + - Thu, 12 May 2022 08:26:30 GMT etag: - - '"0x8DA3009E1B939CE"' + - '"0x8DA33F11DB0A8AA"' last-modified: - - Sat, 07 May 2022 09:13:42 GMT + - Thu, 12 May 2022 08:26:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -339,7 +339,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:43 GMT + - Thu, 12 May 2022 08:26:28 GMT x-ms-version: - '2019-07-07' method: GET @@ -351,11 +351,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:43 GMT + - Thu, 12 May 2022 08:26:32 GMT etag: - - '"0x8DA3009E1B939CE"' + - '"0x8DA33F11DB0A8AA"' last-modified: - - Sat, 07 May 2022 09:13:42 GMT + - Thu, 12 May 2022 08:26:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -391,7 +391,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:44 GMT + - Thu, 12 May 2022 08:26:30 GMT x-ms-version: - '2019-07-07' method: PUT @@ -403,11 +403,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:44 GMT + - Thu, 12 May 2022 08:26:33 GMT etag: - - '"0x8DA3009E32032D6"' + - '"0x8DA33F11FF77E26"' last-modified: - - Sat, 07 May 2022 09:13:44 GMT + - Thu, 12 May 2022 08:26:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -431,7 +431,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:46 GMT + - Thu, 12 May 2022 08:26:32 GMT x-ms-version: - '2019-07-07' method: GET @@ -443,11 +443,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:46 GMT + - Thu, 12 May 2022 08:26:35 GMT etag: - - '"0x8DA3009E32032D6"' + - '"0x8DA33F11FF77E26"' last-modified: - - Sat, 07 May 2022 09:13:44 GMT + - Thu, 12 May 2022 08:26:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -479,7 +479,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:47 GMT + - Thu, 12 May 2022 08:26:34 GMT x-ms-share-quota: - '3' x-ms-version: @@ -493,11 +493,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:48 GMT + - Thu, 12 May 2022 08:26:36 GMT etag: - - '"0x8DA3009E57F47A9"' + - '"0x8DA33F121D60542"' last-modified: - - Sat, 07 May 2022 09:13:48 GMT + - Thu, 12 May 2022 08:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -521,7 +521,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:50 GMT + - Thu, 12 May 2022 08:26:35 GMT x-ms-version: - '2019-07-07' method: GET @@ -533,11 +533,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:51 GMT + - Thu, 12 May 2022 08:26:38 GMT etag: - - '"0x8DA3009E57F47A9"' + - '"0x8DA33F121D60542"' last-modified: - - Sat, 07 May 2022 09:13:48 GMT + - Thu, 12 May 2022 08:26:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -563,7 +563,7 @@ interactions: x-ms-content-length: - '131072' x-ms-date: - - Sat, 07 May 2022 09:13:52 GMT + - Thu, 12 May 2022 08:26:37 GMT x-ms-type: - file x-ms-version: @@ -577,11 +577,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:41 GMT etag: - - '"0x8DA3009E7EDEF1C"' + - '"0x8DA33F124329767"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -601,7 +601,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:39 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -619,11 +619,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:42 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA33F125113BC5"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -641,7 +641,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:54 GMT + - Thu, 12 May 2022 08:26:41 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -655,11 +655,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:54 GMT + - Thu, 12 May 2022 08:26:44 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA33F125113BC5"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -679,7 +679,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:56 GMT + - Thu, 12 May 2022 08:26:42 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -699,11 +699,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:55 GMT + - Thu, 12 May 2022 08:26:45 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA33F125113BC5"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -723,7 +723,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:57 GMT + - Thu, 12 May 2022 08:26:45 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -743,11 +743,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:57 GMT + - Thu, 12 May 2022 08:26:48 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA33F125113BC5"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Thu, 12 May 2022 08:26:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -771,7 +771,7 @@ interactions: x-ms-content-length: - '1234' x-ms-date: - - Sat, 07 May 2022 09:13:59 GMT + - Thu, 12 May 2022 08:26:46 GMT x-ms-version: - '2018-11-09' method: PUT @@ -783,11 +783,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:58 GMT + - Thu, 12 May 2022 08:26:49 GMT etag: - - '"0x8DA3009EB9F20CB"' + - '"0x8DA33F1299E4AC8"' last-modified: - - Sat, 07 May 2022 09:13:59 GMT + - Thu, 12 May 2022 08:26:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -805,7 +805,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:00 GMT + - Thu, 12 May 2022 08:26:48 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -819,11 +819,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:00 GMT + - Thu, 12 May 2022 08:26:51 GMT etag: - - '"0x8DA3009EB9F20CB"' + - '"0x8DA33F1299E4AC8"' last-modified: - - Sat, 07 May 2022 09:13:59 GMT + - Thu, 12 May 2022 08:26:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -845,7 +845,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:01 GMT + - Thu, 12 May 2022 08:26:50 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -861,11 +861,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:01 GMT + - Thu, 12 May 2022 08:26:53 GMT etag: - - '"0x8DA3009ED3B07C1"' + - '"0x8DA33F12BBB09DA"' last-modified: - - Sat, 07 May 2022 09:14:01 GMT + - Thu, 12 May 2022 08:26:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -883,7 +883,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:02 GMT + - Thu, 12 May 2022 08:26:52 GMT x-ms-version: - '2018-11-09' method: GET @@ -895,11 +895,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:02 GMT + - Thu, 12 May 2022 08:26:55 GMT etag: - - '"0x8DA3009ED3B07C1"' + - '"0x8DA33F12BBB09DA"' last-modified: - - Sat, 07 May 2022 09:14:01 GMT + - Thu, 12 May 2022 08:26:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -921,7 +921,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:04 GMT + - Thu, 12 May 2022 08:26:54 GMT x-ms-version: - '2018-11-09' method: PUT @@ -933,11 +933,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:03 GMT + - Thu, 12 May 2022 08:26:58 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA33F12E419DBF"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Thu, 12 May 2022 08:26:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -955,7 +955,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:05 GMT + - Thu, 12 May 2022 08:26:56 GMT x-ms-version: - '2018-11-09' method: GET @@ -967,11 +967,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:05 GMT + - Thu, 12 May 2022 08:27:00 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA33F12E419DBF"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Thu, 12 May 2022 08:26:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -987,7 +987,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:06 GMT + - Thu, 12 May 2022 08:26:58 GMT x-ms-version: - '2018-11-09' method: GET @@ -1002,7 +1002,7 @@ interactions: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:05 GMT + - Thu, 12 May 2022 08:27:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1020,7 +1020,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:07 GMT + - Thu, 12 May 2022 08:27:00 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1034,11 +1034,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:06 GMT + - Thu, 12 May 2022 08:27:04 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA33F12E419DBF"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Thu, 12 May 2022 08:26:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1062,7 +1062,7 @@ interactions: x-ms-content-type: - test/type x-ms-date: - - Sat, 07 May 2022 09:14:08 GMT + - Thu, 12 May 2022 08:27:03 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1074,11 +1074,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:08 GMT + - Thu, 12 May 2022 08:27:07 GMT etag: - - '"0x8DA3009F14A9F27"' + - '"0x8DA33F1341FFEDE"' last-modified: - - Sat, 07 May 2022 09:14:08 GMT + - Thu, 12 May 2022 08:27:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1096,7 +1096,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:09 GMT + - Thu, 12 May 2022 08:27:06 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1110,11 +1110,11 @@ interactions: content-type: - test/type date: - - Sat, 07 May 2022 09:14:10 GMT + - Thu, 12 May 2022 08:27:09 GMT etag: - - '"0x8DA3009F14A9F27"' + - '"0x8DA33F1341FFEDE"' last-modified: - - Sat, 07 May 2022 09:14:08 GMT + - Thu, 12 May 2022 08:27:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1136,7 +1136,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:11 GMT + - Thu, 12 May 2022 08:27:08 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1148,7 +1148,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:11 GMT + - Thu, 12 May 2022 08:27:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1164,7 +1164,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:12 GMT + - Thu, 12 May 2022 08:27:10 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1174,7 +1174,7 @@ interactions: string: '' headers: date: - - Sat, 07 May 2022 09:14:13 GMT + - Thu, 12 May 2022 08:27:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1196,7 +1196,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:14 GMT + - Thu, 12 May 2022 08:27:11 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1208,11 +1208,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:14 GMT + - Thu, 12 May 2022 08:27:14 GMT etag: - - '"0x8DA3009F5112A7D"' + - '"0x8DA33F13827EDE0"' last-modified: - - Sat, 07 May 2022 09:14:15 GMT + - Thu, 12 May 2022 08:27:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1230,7 +1230,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:16 GMT + - Thu, 12 May 2022 08:27:12 GMT x-ms-version: - '2018-11-09' method: GET @@ -1245,7 +1245,7 @@ interactions: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:15 GMT + - Thu, 12 May 2022 08:27:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1263,7 +1263,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:17 GMT + - Thu, 12 May 2022 08:27:14 GMT x-ms-version: - '2018-11-09' method: GET @@ -1275,11 +1275,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:17 GMT + - Thu, 12 May 2022 08:27:17 GMT etag: - - '"0x8DA3009F5112A7D"' + - '"0x8DA33F13827EDE0"' last-modified: - - Sat, 07 May 2022 09:14:15 GMT + - Thu, 12 May 2022 08:27:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1299,7 +1299,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:18 GMT + - Thu, 12 May 2022 08:27:16 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -1315,11 +1315,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:17 GMT + - Thu, 12 May 2022 08:27:19 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA33F13B4330DD"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Thu, 12 May 2022 08:27:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1337,7 +1337,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:19 GMT + - Thu, 12 May 2022 08:27:18 GMT x-ms-version: - '2018-11-09' method: GET @@ -1349,11 +1349,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:19 GMT + - Thu, 12 May 2022 08:27:21 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA33F13B4330DD"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Thu, 12 May 2022 08:27:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -1373,7 +1373,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:20 GMT + - Thu, 12 May 2022 08:27:19 GMT x-ms-version: - '2018-11-09' method: GET @@ -1385,11 +1385,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:20 GMT + - Thu, 12 May 2022 08:27:22 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA33F13B4330DD"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Thu, 12 May 2022 08:27:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -1413,7 +1413,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:21 GMT + - Thu, 12 May 2022 08:27:21 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1425,11 +1425,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:21 GMT + - Thu, 12 May 2022 08:27:24 GMT etag: - - '"0x8DA3009F92C8013"' + - '"0x8DA33F13E000EF8"' last-modified: - - Sat, 07 May 2022 09:14:21 GMT + - Thu, 12 May 2022 08:27:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1447,7 +1447,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:22 GMT + - Thu, 12 May 2022 08:27:22 GMT x-ms-version: - '2018-11-09' method: GET @@ -1459,11 +1459,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:22 GMT + - Thu, 12 May 2022 08:27:25 GMT etag: - - '"0x8DA3009F92C8013"' + - '"0x8DA33F13E000EF8"' last-modified: - - Sat, 07 May 2022 09:14:21 GMT + - Thu, 12 May 2022 08:27:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1483,7 +1483,7 @@ interactions: x-ms-content-length: - '65536' x-ms-date: - - Sat, 07 May 2022 09:14:24 GMT + - Thu, 12 May 2022 08:27:24 GMT x-ms-type: - file x-ms-version: @@ -1497,11 +1497,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:23 GMT + - Thu, 12 May 2022 08:27:27 GMT etag: - - '"0x8DA3009FAB3A99C"' + - '"0x8DA33F140344A76"' last-modified: - - Sat, 07 May 2022 09:14:24 GMT + - Thu, 12 May 2022 08:27:28 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1521,7 +1521,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:25 GMT + - Thu, 12 May 2022 08:27:26 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1539,11 +1539,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Sat, 07 May 2022 09:14:24 GMT + - Thu, 12 May 2022 08:27:28 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA33F140CF87E8"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Thu, 12 May 2022 08:27:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1561,7 +1561,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:26 GMT + - Thu, 12 May 2022 08:27:27 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1575,11 +1575,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:26 GMT + - Thu, 12 May 2022 08:27:30 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA33F140CF87E8"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Thu, 12 May 2022 08:27:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1599,7 +1599,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:27 GMT + - Thu, 12 May 2022 08:27:29 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1619,11 +1619,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:27 GMT + - Thu, 12 May 2022 08:27:31 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA33F140CF87E8"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Thu, 12 May 2022 08:27:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1643,7 +1643,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:29 GMT + - Thu, 12 May 2022 08:27:31 GMT x-ms-version: - '2018-11-09' method: GET @@ -1658,7 +1658,7 @@ interactions: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:29 GMT + - Thu, 12 May 2022 08:27:35 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1684,7 +1684,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:30 GMT + - Thu, 12 May 2022 08:27:34 GMT x-ms-version: - '2019-07-07' method: GET @@ -1696,7 +1696,7 @@ interactions: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:30 GMT + - Thu, 12 May 2022 08:27:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1716,7 +1716,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:32 GMT + - Thu, 12 May 2022 08:27:37 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1728,7 +1728,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:32 GMT + - Thu, 12 May 2022 08:27:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1744,7 +1744,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:33 GMT + - Thu, 12 May 2022 08:27:39 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1754,7 +1754,7 @@ interactions: string: '' headers: date: - - Sat, 07 May 2022 09:14:32 GMT + - Thu, 12 May 2022 08:27:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1776,7 +1776,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:34 GMT + - Thu, 12 May 2022 08:27:40 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1788,7 +1788,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:33 GMT + - Thu, 12 May 2022 08:27:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1804,7 +1804,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:35 GMT + - Thu, 12 May 2022 08:27:45 GMT x-ms-version: - '2018-11-09' method: GET @@ -1812,14 +1812,14 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:b73cded7-d01a-0054-2df2-616cbd000000\nTime:2022-05-07T09:14:35.7440770Z" + specified resource does not exist.\nRequestId:7859f950-701a-0049-2bda-652b50000000\nTime:2022-05-12T08:27:48.9282870Z" headers: content-length: - '221' content-type: - application/xml date: - - Sat, 07 May 2022 09:14:35 GMT + - Thu, 12 May 2022 08:27:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -1839,7 +1839,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:36 GMT + - Thu, 12 May 2022 08:27:47 GMT x-ms-meta-cat: - hat x-ms-meta-foo: @@ -1855,11 +1855,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:36 GMT + - Thu, 12 May 2022 08:27:51 GMT etag: - - '"0x8DA300A02112BF4"' + - '"0x8DA33F14E1F2641"' last-modified: - - Sat, 07 May 2022 09:14:36 GMT + - Thu, 12 May 2022 08:27:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1877,7 +1877,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:37 GMT + - Thu, 12 May 2022 08:27:49 GMT x-ms-version: - '2018-11-09' method: GET @@ -1889,11 +1889,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:38 GMT + - Thu, 12 May 2022 08:27:53 GMT etag: - - '"0x8DA300A02112BF4"' + - '"0x8DA33F14E1F2641"' last-modified: - - Sat, 07 May 2022 09:14:36 GMT + - Thu, 12 May 2022 08:27:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-cat: @@ -1915,7 +1915,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:39 GMT + - Thu, 12 May 2022 08:27:51 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1927,7 +1927,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:39 GMT + - Thu, 12 May 2022 08:27:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1953,7 +1953,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:41 GMT + - Thu, 12 May 2022 08:27:53 GMT x-ms-version: - '2019-07-07' method: DELETE @@ -1965,7 +1965,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:41 GMT + - Thu, 12 May 2022 08:27:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: From feb8857d7cd732a5b1125cbe20211a92f7414f09 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Tue, 24 May 2022 16:54:57 +0800 Subject: [PATCH 02/16] migration file share policy --- .../cli/command_modules/storage/_params.py | 18 +- .../command_modules/storage/_transformers.py | 38 + .../cli/command_modules/storage/commands.py | 19 +- .../storage/operations/access_policy.py | 60 +- .../test_storage_file_share_scenario.yaml | 92 +- .../test_storage_share_metadata_scenario.yaml | 52 +- .../test_storage_share_policy_scenario.yaml | 928 ++++++++++++++++++ .../test_storage_file_share_scenarios.py | 42 + 8 files changed, 1156 insertions(+), 93 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index 024d3b31800..1f1b78a508b 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -259,7 +259,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage') as c: c.argument('container_name', container_name_type) c.argument('directory_name', directory_type) - c.argument('share_name', share_name_type) c.argument('table_name', table_name_type) c.argument('retry_wait', options_list=('--retry-interval',)) c.ignore('progress_callback') @@ -1558,9 +1557,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.argument('include_deleted', action='store_true', help='Include soft deleted containers when specified.') - with self.argument_context('storage share') as c: - c.argument('share_name', share_name_type, options_list=('--name', '-n')) - with self.argument_context('storage share-rm', resource_type=ResourceType.MGMT_STORAGE) as c: c.argument('resource_group_name', required=False) c.argument('account_name', storage_account_type) @@ -1663,15 +1659,20 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('timeout', timeout_type) + for item in ['create', 'delete', 'show', 'list', 'update']: + with self.argument_context('storage share policy {}'.format(item)) as c: + c.extra('share_name', share_name_type, required=True) + with self.argument_context('storage share policy') as c: from .completers import get_storage_acl_name_completion_list - t_file_svc = self.get_sdk('file#FileService') - t_share_permissions = self.get_sdk('file.models#SharePermissions') + t_share_permissions = self.get_sdk('_models#ShareSasPermissions', + resource_type=ResourceType.DATA_STORAGE_FILESHARE) c.argument('container_name', share_name_type) c.argument('policy_name', options_list=('--name', '-n'), help='The stored access policy name.', - completer=get_storage_acl_name_completion_list(t_file_svc, 'container_name', 'get_share_acl')) + completer=get_storage_acl_name_completion_list(t_share_service, 'container_name', + 'get_share_access_policy')) help_str = 'Allowed values: {}. Can be combined'.format(get_permission_help_string(t_share_permissions)) c.argument('permission', options_list='--permissions', help=help_str, @@ -1680,6 +1681,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.argument('start', type=get_datetime_type(True), help='start UTC datetime (Y-m-d\'T\'H:M:S\'Z\'). Defaults to time of request.') c.argument('expiry', type=get_datetime_type(True), help='expiration UTC datetime in (Y-m-d\'T\'H:M:S\'Z\')') + c.ignore('auth_mode') with self.argument_context('storage share delete') as c: from .sdkutil import get_delete_file_snapshot_type_names @@ -1726,10 +1728,12 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.extra('timeout', timeout_type) with self.argument_context('storage share list-handle') as c: + c.argument('share_name', share_name_type, options_list=('--name', '-n')) c.register_path_argument(default_file_param="") c.argument('recursive', arg_type=get_three_state_flag()) with self.argument_context('storage share close-handle') as c: + c.argument('share_name', share_name_type, options_list=('--name', '-n')) c.register_path_argument(default_file_param="") c.argument('recursive', arg_type=get_three_state_flag(), help="Boolean that specifies if operation should apply to the directory specified in the URI, its " diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 18afa8f14ad..e38d1e1e286 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -4,7 +4,9 @@ # -------------------------------------------------------------------------------------------- import base64 +from datetime import datetime +import pytz from dateutil import parser from knack.log import get_logger from knack.util import todict, to_camel_case @@ -398,3 +400,39 @@ def transform_url_without_encode(result): result = re.sub('//', '/', result) result = re.sub('/', '//', result, count=1) return result + + +def transform_acl_edit(result): + if "last_modified" in result.keys(): + result["lastModified"] = result.pop("last_modified") + return result + + +def transform_acl_list_output_v2(result): + new_result = {} + for identifier in result['signed_identifiers']: + new_result[identifier.id] = identifier.access_policy + return new_result + + +def transform_acl_datetime(result): + result = todict(result) + if result['start']: + try: + result['start'] = result["start"].split('.')[0] + time = datetime.strptime(result['start'], '%Y-%m-%dT%H:%M:%S') + tz = pytz.timezone('UTC') + start = datetime.strftime(tz.localize(time), '%Y-%m-%dT%H:%M:%S%z') + result['start'] = start[0:22] + ':' + start[22:24] + except OverflowError: + pass + if result['expiry']: + try: + result['expiry'] = result["expiry"].split('.')[0] + time = datetime.strptime(result['expiry'], '%Y-%m-%dT%H:%M:%S') + tz = pytz.timezone('UTC') + expiry = datetime.strftime(tz.localize(time), '%Y-%m-%dT%H:%M:%S%z') + result['expiry'] = expiry[0:22] + ':' + expiry[22:24] + except OverflowError: + pass + return result diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py index b995ce5d44f..27d8cff1f18 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py @@ -642,15 +642,20 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT g.storage_command('list-handle', 'list_handles') g.storage_custom_command('close-handle', 'close_handle') - with self.command_group('storage share policy', command_type=file_sdk, - custom_command_type=get_custom_sdk('acl', file_data_service_factory)) as g: - g.storage_custom_command('create', 'create_acl_policy') - g.storage_custom_command('delete', 'delete_acl_policy') + with self.command_group('storage share policy', + custom_command_type=get_custom_sdk('access_policy', cf_share_client, + ResourceType.DATA_STORAGE_FILESHARE), + resource_type=ResourceType.DATA_STORAGE_FILESHARE, min_api='2019-02-02') as g: + from ._transformers import transform_acl_list_output, transform_acl_edit, transform_acl_list_output_v2,\ + transform_acl_datetime + g.storage_custom_command('create', 'create_acl_policy', transform=transform_acl_edit) + g.storage_custom_command('delete', 'delete_acl_policy', transform=transform_acl_edit) g.storage_custom_command( - 'show', 'get_acl_policy', exception_handler=show_exception_handler) + 'show', 'get_acl_policy', exception_handler=show_exception_handler, transform=transform_acl_datetime) g.storage_custom_command( - 'list', 'list_acl_policies', table_transformer=transform_acl_list_output) - g.storage_custom_command('update', 'set_acl_policy') + 'list', 'list_acl_policies', transform=transform_acl_list_output_v2, + table_transformer=transform_acl_list_output) + g.storage_custom_command('update', 'set_acl_policy', transform=transform_acl_edit) with self.command_group('storage directory', command_type=file_sdk, custom_command_type=get_custom_sdk('directory', file_data_service_factory)) as g: diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py index 5bc6ea634fd..d9daefbfe68 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py @@ -7,13 +7,27 @@ from azure.cli.core.profiles import ResourceType +def _str_to_datetime(time): + form = '%Y-%m-%d' + try: + return datetime.strptime(time, form) + except ValueError: + pass + return time + + def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission=None, **kwargs): """Create a stored access policy on the containing object""" t_access_policy = cmd.get_models('_models#AccessPolicy', resource_type=ResourceType.DATA_STORAGE_BLOB) acl = _get_acl(cmd, client, **kwargs) + if _get_service_container_type(cmd, client) == 'share': + signed_identifiers = {} + for identifier in acl["signed_identifiers"]: + signed_identifiers[identifier.id] = identifier.access_policy + acl = signed_identifiers acl[policy_name] = t_access_policy(permission if permission else '', - expiry if expiry else datetime.max, - start if start else datetime.utcnow()) + _str_to_datetime(expiry) if expiry else datetime.max, + _str_to_datetime(start) if start else datetime.utcnow()) if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') @@ -23,7 +37,12 @@ def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permiss def get_acl_policy(cmd, client, policy_name, **kwargs): """Show a stored access policy on a containing object""" acl = _get_acl(cmd, client, **kwargs) - return acl.get(policy_name) + if _get_service_container_type(cmd, client) == 'share': + for identifier in acl['signed_identifiers']: + if identifier.id == policy_name: + return identifier.access_policy + else: + return acl.get(policy_name) def list_acl_policies(cmd, client, **kwargs): @@ -39,9 +58,21 @@ def set_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission acl = _get_acl(cmd, client, **kwargs) try: - policy = acl[policy_name] - policy.start = start or policy.start - policy.expiry = expiry or policy.expiry + if _get_service_container_type(cmd, client) == 'share': + signed_identifiers = {} + found = False + for identifier in acl["signed_identifiers"]: + signed_identifiers[identifier.id] = identifier.access_policy + if identifier.id == policy_name: + policy = identifier.access_policy + found = True + acl = signed_identifiers + if not found: + raise KeyError() + else: + policy = acl[policy_name] + policy.start = _str_to_datetime(start) if start else policy.start + policy.expiry = _str_to_datetime(expiry) if expiry else policy.expiry policy.permission = permission or policy.permission if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') @@ -55,7 +86,20 @@ def set_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission def delete_acl_policy(cmd, client, policy_name, **kwargs): """ Delete a stored access policy on a containing object """ acl = _get_acl(cmd, client, **kwargs) - del acl[policy_name] + if _get_service_container_type(cmd, client) == 'share': + signed_identifiers = {} + found = False + for identifier in acl["signed_identifiers"]: + if identifier.id == policy_name: + found = True + continue + signed_identifiers[identifier.id] = identifier.access_policy + acl = signed_identifiers + if not found: + from knack.util import CLIError + raise CLIError('ACL does not contain {}'.format(policy_name)) + else: + del acl[policy_name] if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') @@ -93,6 +137,8 @@ def _get_acl(cmd, client, **kwargs): def convert_acl_permissions(result): if result is None: return None + if 'signed_identifiers' in result: + return result for policy in sorted(result.keys()): if getattr(result[policy], 'permission') is None: setattr(result[policy], 'permission', '') diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_scenario.yaml index e777d20453f..19725a940de 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-10T05:50:57.9497730Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-10T05:50:57.9497730Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-24T08:45:34.0472773Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:45:34.0472773Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Tue, 10 May 2022 05:52:02 GMT + - Tue, 24 May 2022 08:45:55 GMT expires: - '-1' pragma: @@ -70,7 +70,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-10T05:50:57.9497730Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-10T05:50:57.9497730Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-24T08:45:34.0472773Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:45:34.0472773Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -79,7 +79,7 @@ interactions: content-type: - application/json date: - - Tue, 10 May 2022 05:52:05 GMT + - Tue, 24 May 2022 08:45:57 GMT expires: - '-1' pragma: @@ -95,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK @@ -118,7 +118,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002?api-version=2021-09-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-10T05:50:57.9497730Z","key2":"2022-05-10T05:50:57.9497730Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-10T05:50:57.9497730Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-10T05:50:57.9497730Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-10T05:50:57.8247368Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-24T08:45:34.0472773Z","key2":"2022-05-24T08:45:34.0472773Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:45:34.0472773Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:45:34.0472773Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-24T08:45:33.9378866Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json date: - - Tue, 10 May 2022 05:52:06 GMT + - Tue, 24 May 2022 08:45:57 GMT expires: - '-1' pragma: @@ -163,7 +163,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:06 GMT + - Tue, 24 May 2022 08:45:58 GMT x-ms-version: - '2019-07-07' method: PUT @@ -175,11 +175,11 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:52:07 GMT + - Tue, 24 May 2022 08:45:59 GMT etag: - - '"0x8DA3249382719C3"' + - '"0x8DA3D61D3B4AA37"' last-modified: - - Tue, 10 May 2022 05:52:08 GMT + - Tue, 24 May 2022 08:45:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -205,7 +205,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:07 GMT + - Tue, 24 May 2022 08:45:59 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -223,11 +223,11 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:52:11 GMT + - Tue, 24 May 2022 08:46:02 GMT etag: - - '"0x8DA32493A54AE2B"' + - '"0x8DA3D61D53CEE40"' last-modified: - - Tue, 10 May 2022 05:52:11 GMT + - Tue, 24 May 2022 08:46:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -253,7 +253,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:12 GMT + - Tue, 24 May 2022 08:46:02 GMT x-ms-share-quota: - '3' x-ms-version: @@ -263,14 +263,14 @@ interactions: response: body: string: "\uFEFFShareAlreadyExistsThe - specified share already exists.\nRequestId:0f787f28-601a-007d-1d32-64df10000000\nTime:2022-05-10T05:52:15.6742134Z" + specified share already exists.\nRequestId:ec956054-801a-0040-6d4a-6f7660000000\nTime:2022-05-24T08:46:04.3986911Z" headers: content-length: - '220' content-type: - application/xml date: - - Tue, 10 May 2022 05:52:14 GMT + - Tue, 24 May 2022 08:46:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -296,7 +296,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:15 GMT + - Tue, 24 May 2022 08:46:04 GMT x-ms-version: - '2019-07-07' method: GET @@ -308,11 +308,11 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:52:19 GMT + - Tue, 24 May 2022 08:46:05 GMT etag: - - '"0x8DA32493A54AE2B"' + - '"0x8DA3D61D53CEE40"' last-modified: - - Tue, 10 May 2022 05:52:11 GMT + - Tue, 24 May 2022 08:46:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -346,7 +346,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:18 GMT + - Tue, 24 May 2022 08:46:05 GMT x-ms-version: - '2019-07-07' method: GET @@ -355,14 +355,14 @@ interactions: body: string: "\uFEFF5000share000004Tue, - 10 May 2022 05:52:08 GMT\"0x8DA3249382719C3\"5120$account-encryption-keyfalseshare000003Tue, - 10 May 2022 05:52:11 GMT\"0x8DA32493A54AE2B\"5120$account-encryption-keyfalse\"0x8DA3D61D3B4AA37\"5120$account-encryption-keyfalseshare000003Tue, + 24 May 2022 08:46:02 GMT\"0x8DA3D61D53CEE40\"5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Tue, 10 May 2022 05:52:21 GMT + - Tue, 24 May 2022 08:46:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -388,7 +388,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:21 GMT + - Tue, 24 May 2022 08:46:07 GMT x-ms-version: - '2019-07-07' method: GET @@ -397,14 +397,14 @@ interactions: body: string: "\uFEFF5000share000004Tue, - 10 May 2022 05:52:08 GMT\"0x8DA3249382719C3\"5120$account-encryption-keyfalseshare000003Tue, - 10 May 2022 05:52:11 GMT\"0x8DA32493A54AE2B\"5120$account-encryption-keyfalse\"0x8DA3D61D3B4AA37\"5120$account-encryption-keyfalseshare000003Tue, + 24 May 2022 08:46:02 GMT\"0x8DA3D61D53CEE40\"5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Tue, 10 May 2022 05:52:26 GMT + - Tue, 24 May 2022 08:46:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -432,7 +432,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:26 GMT + - Tue, 24 May 2022 08:46:09 GMT x-ms-version: - '2019-07-07' method: DELETE @@ -444,7 +444,7 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:52:30 GMT + - Tue, 24 May 2022 08:46:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -468,7 +468,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:33 GMT + - Tue, 24 May 2022 08:46:11 GMT x-ms-version: - '2019-07-07' method: GET @@ -476,14 +476,14 @@ interactions: response: body: string: "\uFEFFShareNotFoundThe - specified share does not exist.\nRequestId:68a9ed8b-701a-0003-8032-644f57000000\nTime:2022-05-10T05:52:48.3734712Z" + specified share does not exist.\nRequestId:9fc60fe7-a01a-0047-454a-6f1a03000000\nTime:2022-05-24T08:46:13.3310593Z" headers: content-length: - '215' content-type: - application/xml date: - - Tue, 10 May 2022 05:52:48 GMT + - Tue, 24 May 2022 08:46:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -511,7 +511,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:52:55 GMT + - Tue, 24 May 2022 08:46:13 GMT x-ms-version: - '2019-07-07' method: DELETE @@ -519,14 +519,14 @@ interactions: response: body: string: "\uFEFFShareNotFoundThe - specified share does not exist.\nRequestId:827e4038-101a-0058-6c32-64766c000000\nTime:2022-05-10T05:53:10.3829577Z" + specified share does not exist.\nRequestId:dda7f659-e01a-000b-7a4a-6f8a33000000\nTime:2022-05-24T08:46:14.9490761Z" headers: content-length: - '215' content-type: - application/xml date: - - Tue, 10 May 2022 05:53:09 GMT + - Tue, 24 May 2022 08:46:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -554,7 +554,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:53:13 GMT + - Tue, 24 May 2022 08:46:14 GMT x-ms-share-quota: - '3' x-ms-version: @@ -568,11 +568,11 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:53:39 GMT + - Tue, 24 May 2022 08:46:16 GMT etag: - - '"0x8DA32496F47551B"' + - '"0x8DA3D61DDD0BDAC"' last-modified: - - Tue, 10 May 2022 05:53:40 GMT + - Tue, 24 May 2022 08:46:16 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -596,7 +596,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 10 May 2022 05:53:44 GMT + - Tue, 24 May 2022 08:46:16 GMT x-ms-version: - '2019-07-07' method: GET @@ -608,11 +608,11 @@ interactions: content-length: - '0' date: - - Tue, 10 May 2022 05:54:39 GMT + - Tue, 24 May 2022 08:46:18 GMT etag: - - '"0x8DA32496F47551B"' + - '"0x8DA3D61DDD0BDAC"' last-modified: - - Tue, 10 May 2022 05:53:40 GMT + - Tue, 24 May 2022 08:46:16 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_metadata_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_metadata_scenario.yaml index ed693a8e80c..67c7d7ef8e9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_metadata_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_metadata_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-07T10:01:57.9320032Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-07T10:01:57.9320032Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-24T08:46:31.8309662Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:46:31.8309662Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 10:02:21 GMT + - Tue, 24 May 2022 08:46:54 GMT expires: - '-1' pragma: @@ -70,7 +70,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-07T10:01:57.9320032Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-07T10:01:57.9320032Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-24T08:46:31.8309662Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:46:31.8309662Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -79,7 +79,7 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 10:02:23 GMT + - Tue, 24 May 2022 08:46:57 GMT expires: - '-1' pragma: @@ -118,7 +118,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002?api-version=2021-09-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-07T10:01:57.9320032Z","key2":"2022-05-07T10:01:57.9320032Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-07T10:01:57.9482677Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-07T10:01:57.9482677Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-07T10:01:57.8069957Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-24T08:46:31.8309662Z","key2":"2022-05-24T08:46:31.8309662Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:46:31.8309662Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:46:31.8309662Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-24T08:46:31.7059853Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 10:02:24 GMT + - Tue, 24 May 2022 08:46:57 GMT expires: - '-1' pragma: @@ -163,7 +163,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 10:02:25 GMT + - Tue, 24 May 2022 08:46:57 GMT x-ms-version: - '2019-07-07' method: PUT @@ -175,11 +175,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 10:02:25 GMT + - Tue, 24 May 2022 08:46:59 GMT etag: - - '"0x8DA3010B01318C5"' + - '"0x8DA3D61F72ED2C0"' last-modified: - - Sat, 07 May 2022 10:02:25 GMT + - Tue, 24 May 2022 08:46:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -203,7 +203,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 10:02:26 GMT + - Tue, 24 May 2022 08:46:59 GMT x-ms-version: - '2019-07-07' method: GET @@ -215,11 +215,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 10:02:26 GMT + - Tue, 24 May 2022 08:47:01 GMT etag: - - '"0x8DA3010B01318C5"' + - '"0x8DA3D61F72ED2C0"' last-modified: - - Sat, 07 May 2022 10:02:25 GMT + - Tue, 24 May 2022 08:46:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -251,7 +251,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 10:02:28 GMT + - Tue, 24 May 2022 08:47:01 GMT x-ms-meta-key1: - value1 x-ms-version: @@ -265,11 +265,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 10:02:27 GMT + - Tue, 24 May 2022 08:47:05 GMT etag: - - '"0x8DA3010B1B42EA4"' + - '"0x8DA3D61FB1766F6"' last-modified: - - Sat, 07 May 2022 10:02:28 GMT + - Tue, 24 May 2022 08:47:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -293,7 +293,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 10:02:29 GMT + - Tue, 24 May 2022 08:47:06 GMT x-ms-version: - '2019-07-07' method: GET @@ -305,11 +305,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 10:02:30 GMT + - Tue, 24 May 2022 08:47:09 GMT etag: - - '"0x8DA3010B1B42EA4"' + - '"0x8DA3D61FB1766F6"' last-modified: - - Sat, 07 May 2022 10:02:28 GMT + - Tue, 24 May 2022 08:47:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -343,7 +343,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 10:02:32 GMT + - Tue, 24 May 2022 08:47:09 GMT x-ms-meta-newkey: - newvalue x-ms-meta-oldkey: @@ -359,11 +359,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 10:02:32 GMT + - Tue, 24 May 2022 08:47:11 GMT etag: - - '"0x8DA3010B45577B0"' + - '"0x8DA3D61FE726F15"' last-modified: - - Sat, 07 May 2022 10:02:32 GMT + - Tue, 24 May 2022 08:47:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml new file mode 100644 index 00000000000..ec37c9cc200 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml @@ -0,0 +1,928 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account keys list + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --query -o + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb + response: + body: + string: '{"keys":[{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + headers: + cache-control: + - no-cache + content-length: + - '260' + content-type: + - application/json + date: + - Tue, 24 May 2022 08:47:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account show-connection-string + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --query -o + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb + response: + body: + string: '{"keys":[{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + headers: + cache-control: + - no-cache + content-length: + - '260' + content-type: + - application/json + date: + - Tue, 24 May 2022 08:47:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account show-connection-string + Connection: + - keep-alive + ParameterSetName: + - -n -g --query -o + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002?api-version=2021-09-01 + response: + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-24T08:47:27.5658862Z","key2":"2022-05-24T08:47:27.5658862Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:47:27.5658862Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:47:27.5658862Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-24T08:47:27.4252037Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' + headers: + cache-control: + - no-cache + content-length: + - '1784' + content-type: + - application/json + date: + - Tue, 24 May 2022 08:47:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:52 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:47:53 GMT + etag: + - '"0x8DA3D6217B639D7"' + last-modified: + - Tue, 24 May 2022 08:47:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy list + Connection: + - keep-alive + ParameterSetName: + - -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:53 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:47:54 GMT + etag: + - '"0x8DA3D6217B639D7"' + last-modified: + - Tue, 24 May 2022 08:47:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + ParameterSetName: + - -n -s --permissions --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:55 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFF" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:47:57 GMT + etag: + - '"0x8DA3D6217B639D7"' + last-modified: + - Tue, 24 May 2022 08:47:54 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: ' + + test12022-05-24T08:47:56Z9999-12-31T23:59:59Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + Content-Length: + - '256' + Content-Type: + - application/xml; charset=utf-8 + ParameterSetName: + - -n -s --permissions --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:56 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:47:57 GMT + etag: + - '"0x8DA3D6219EA6A7A"' + last-modified: + - Tue, 24 May 2022 08:47:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + ParameterSetName: + - -n -s --start --connection-string + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:57 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zr" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:47:59 GMT + etag: + - '"0x8DA3D6219EA6A7A"' + last-modified: + - Tue, 24 May 2022 08:47:57 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: ' + + test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Z' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + Content-Length: + - '422' + Content-Type: + - application/xml; charset=utf-8 + ParameterSetName: + - -n -s --start --connection-string + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:59 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:47:59 GMT + etag: + - '"0x8DA3D621B416425"' + last-modified: + - Tue, 24 May 2022 08:47:59 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + ParameterSetName: + - -n -s --expiry --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:47:59 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:00 GMT + etag: + - '"0x8DA3D621B416425"' + last-modified: + - Tue, 24 May 2022 08:47:59 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: ' + + test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest32022-05-24T08:48:01Z2021-01-01T00:00:00Z' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy create + Connection: + - keep-alive + Content-Length: + - '574' + Content-Type: + - application/xml; charset=utf-8 + ParameterSetName: + - -n -s --expiry --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:01 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:48:01 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy list + Connection: + - keep-alive + ParameterSetName: + - -s --connection-string + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:01 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:03 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy show + Connection: + - keep-alive + ParameterSetName: + - -n -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:03 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:04 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy show + Connection: + - keep-alive + ParameterSetName: + - -n -s --connection-string + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:05 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:06 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy show + Connection: + - keep-alive + ParameterSetName: + - -n -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:07 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:08 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy update + Connection: + - keep-alive + ParameterSetName: + - -n -s --permission --expiry --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:08 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:10 GMT + etag: + - '"0x8DA3D621C6E4696"' + last-modified: + - Tue, 24 May 2022 08:48:01 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: ' + + test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zrtest32022-05-24T08:48:01Z2021-01-01T00:00:00Z' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy update + Connection: + - keep-alive + Content-Length: + - '586' + Content-Type: + - application/xml; charset=utf-8 + ParameterSetName: + - -n -s --permission --expiry --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:10 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:48:11 GMT + etag: + - '"0x8DA3D6221F9C197"' + last-modified: + - Tue, 24 May 2022 08:48:11 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy show + Connection: + - keep-alive + ParameterSetName: + - -n -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:10 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:12 GMT + etag: + - '"0x8DA3D6221F9C197"' + last-modified: + - Tue, 24 May 2022 08:48:11 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy delete + Connection: + - keep-alive + ParameterSetName: + - -n -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:12 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:13 GMT + etag: + - '"0x8DA3D6221F9C197"' + last-modified: + - Tue, 24 May 2022 08:48:11 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: ' + + test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zr' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy delete + Connection: + - keep-alive + Content-Length: + - '434' + Content-Type: + - application/xml; charset=utf-8 + ParameterSetName: + - -n -s --account-name --account-key + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:14 GMT + x-ms-version: + - '2019-07-07' + method: PUT + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 24 May 2022 08:48:14 GMT + etag: + - '"0x8DA3D62243C0A65"' + last-modified: + - Tue, 24 May 2022 08:48:15 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share policy list + Connection: + - keep-alive + ParameterSetName: + - -s --connection-string + User-Agent: + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + x-ms-date: + - Tue, 24 May 2022 08:48:14 GMT + x-ms-version: + - '2019-07-07' + method: GET + uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl + response: + body: + string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zr" + headers: + content-type: + - application/xml + date: + - Tue, 24 May 2022 08:48:16 GMT + etag: + - '"0x8DA3D62243C0A65"' + last-modified: + - Tue, 24 May 2022 08:48:15 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-07-07' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_file_share_scenarios.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_file_share_scenarios.py index e0840bfcbb8..aa3c19f5676 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_file_share_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_file_share_scenarios.py @@ -95,3 +95,45 @@ def test_storage_share_metadata_scenario(self, resource_group, storage_account): self.cmd( 'storage share metadata update -n {} --metadata newkey=newvalue oldkey=oldvalue --connection-string {}' .format(share_name, connection_string)) + + @ResourceGroupPreparer(name_prefix='clitest') + @StorageAccountPreparer(name_prefix='share', kind='StorageV2', location='eastus2', sku='Standard_RAGRS') + def test_storage_share_policy_scenario(self, resource_group, storage_account): + account_info = self.get_account_info(resource_group, storage_account) + connection_string = self.get_connection_string(resource_group, storage_account) + + share = self.create_random_name('share', 24) + # prepare share + self.storage_cmd('storage share create -n {}', account_info, share) \ + .assert_with_checks(JMESPathCheck('created', True)) + # policy list + self.storage_cmd('storage share policy list -s {}', account_info, share).assert_with_checks(NoneCheck()) + # policy create with --permission + self.storage_cmd('storage share policy create -n test1 -s {} --permissions r', account_info, share) + # policy create with --start + self.cmd('storage share policy create -n test2 -s {} --start 2020-01-01T00:00Z --connection-string {}' + .format(share, connection_string)) + # policy create with --expiry + self.storage_cmd('storage share policy create -n test3 -s {} --expiry 2021-01-01T00:00Z', account_info, + share) + acl = self.cmd('storage share policy list -s {} --connection-string {}'.format(share, connection_string)) \ + .get_output_in_json().keys() + self.assertSetEqual(set(acl), {'test1', 'test2', 'test3'}) + # policy show + self.storage_cmd('storage share policy show -n test1 -s {}', account_info, share) \ + .assert_with_checks(JMESPathCheck('permission', 'r')) + self.cmd('storage share policy show -n test2 -s {} --connection-string {}'.format(share, connection_string)) \ + .assert_with_checks(JMESPathCheck('start', '2020-01-01T00:00:00+00:00')) + self.storage_cmd('storage share policy show -n test3 -s {}', account_info, share) \ + .assert_with_checks(JMESPathCheck('expiry', '2021-01-01T00:00:00+00:00')) + # policy update + self.storage_cmd('storage share policy update -n test2 -s {} --permission r --expiry 2020-12-31T23:59Z', + account_info, share) + self.storage_cmd('storage share policy show -n test2 -s {}', account_info, share) \ + .assert_with_checks([JMESPathCheck('permission', 'r'), + JMESPathCheck('expiry', '2020-12-31T23:59:00+00:00')]) + # policy delete + self.storage_cmd('storage share policy delete -n test3 -s {}', account_info, share) + acl = self.cmd('storage share policy list -s {} --connection-string {}'.format(share, connection_string)) \ + .get_output_in_json().keys() + self.assertSetEqual(set(acl), {'test1', 'test2'}) From 6ae9d929d22363c704223512c9ec95a701e64980 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Tue, 24 May 2022 20:58:55 +0800 Subject: [PATCH 03/16] fix conflict --- 1.bin | Bin 0 -> 8 bytes 2.bin | Bin 0 -> 10 bytes .../test_storage_file_main_scenario.yaml | 883 ++++++++++++------ 3 files changed, 573 insertions(+), 310 deletions(-) create mode 100644 1.bin create mode 100644 2.bin diff --git a/1.bin b/1.bin new file mode 100644 index 0000000000000000000000000000000000000000..ca9053508c38ce794241a50d536ce683f2f662f4 GIT binary patch literal 8 PcmezW&yazafr|kE5MTmE literal 0 HcmV?d00001 diff --git a/2.bin b/2.bin new file mode 100644 index 0000000000000000000000000000000000000000..964b2eca42668df366e2c30242c09c19e745f81d GIT binary patch literal 10 RcmezW&yYcnftP`c0RR=!0(1ZX literal 0 HcmV?d00001 diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index 836c7957079..e532046d5dc 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-12T08:25:49.4808843Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-12T08:25:49.4808843Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 12 May 2022 08:26:18 GMT + - Tue, 17 May 2022 07:44:44 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:17 GMT + - Tue, 17 May 2022 07:44:46 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:20 GMT + - Tue, 17 May 2022 07:44:46 GMT etag: - - '"0x8DA33F117D55AA4"' + - '"0x8DA37D91D76761E"' last-modified: - - Thu, 12 May 2022 08:26:20 GMT + - Tue, 17 May 2022 07:44:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -107,9 +107,9 @@ interactions: ParameterSetName: - -n --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:18 GMT + - Tue, 17 May 2022 07:44:48 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -117,7 +117,7 @@ interactions: x-ms-meta-foo: - bar x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -127,15 +127,15 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:22 GMT + - Tue, 17 May 2022 07:44:47 GMT etag: - - '"0x8DA33F118D6FF32"' + - '"0x8DA37D91E38C02D"' last-modified: - - Thu, 12 May 2022 08:26:22 GMT + - Tue, 17 May 2022 07:44:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -143,7 +143,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -153,11 +153,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:20 GMT + - Tue, 17 May 2022 07:44:49 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -167,21 +167,25 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:23 GMT + - Tue, 17 May 2022 07:44:48 GMT etag: - - '"0x8DA33F117D55AA4"' + - '"0x8DA37D91D76761E"' last-modified: - - Thu, 12 May 2022 08:26:20 GMT + - Tue, 17 May 2022 07:44:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -189,7 +193,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -199,11 +203,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:22 GMT + - Tue, 17 May 2022 07:44:50 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -213,17 +217,21 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:26 GMT + - Tue, 17 May 2022 07:44:49 GMT etag: - - '"0x8DA33F118D6FF32"' + - '"0x8DA37D91E38C02D"' last-modified: - - Thu, 12 May 2022 08:26:22 GMT + - Tue, 17 May 2022 07:44:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-cat: - hat x-ms-meta-foo: @@ -231,7 +239,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -249,31 +257,31 @@ interactions: ParameterSetName: - --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:25 GMT + - Tue, 17 May 2022 07:44:52 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/?maxresults=5000&include=&comp=list + uri: https://clitest000002.file.core.windows.net/?comp=list&maxresults=5000&include= response: body: string: "\uFEFF5000share000004Thu, - 12 May 2022 08:26:22 GMT\"0x8DA33F118D6FF32\"5120$account-encryption-keyfalseshare000003Thu, - 12 May 2022 08:26:20 GMT\"0x8DA33F117D55AA4\"5120$account-encryption-keyfalse5000share000003Tue, + 17 May 2022 07:44:46 GMT\"0x8DA37D91D76761E\"unlockedavailable5120$account-encryption-keyfalseshare000004Tue, + 17 May 2022 07:44:48 GMT\"0x8DA37D91E38C02D\"unlockedavailable5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Thu, 12 May 2022 08:26:27 GMT + - Tue, 17 May 2022 07:44:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -281,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -293,15 +301,15 @@ interactions: ParameterSetName: - --name --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:26 GMT + - Tue, 17 May 2022 07:44:53 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -311,15 +319,15 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:30 GMT + - Tue, 17 May 2022 07:44:53 GMT etag: - - '"0x8DA33F11DB0A8AA"' + - '"0x8DA37D92155C180"' last-modified: - - Thu, 12 May 2022 08:26:30 GMT + - Tue, 17 May 2022 07:44:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -327,7 +335,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -337,11 +345,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:28 GMT + - Tue, 17 May 2022 07:44:54 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -351,17 +359,21 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:32 GMT + - Tue, 17 May 2022 07:44:53 GMT etag: - - '"0x8DA33F11DB0A8AA"' + - '"0x8DA37D92155C180"' last-modified: - - Thu, 12 May 2022 08:26:30 GMT + - Tue, 17 May 2022 07:44:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-a: - b x-ms-meta-c: @@ -369,7 +381,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -377,7 +389,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -389,11 +401,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:30 GMT + - Tue, 17 May 2022 07:44:55 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -403,15 +415,15 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:33 GMT + - Tue, 17 May 2022 07:44:55 GMT etag: - - '"0x8DA33F11FF77E26"' + - '"0x8DA37D922E3C4EC"' last-modified: - - Thu, 12 May 2022 08:26:34 GMT + - Tue, 17 May 2022 07:44:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -419,7 +431,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -429,11 +441,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:32 GMT + - Tue, 17 May 2022 07:44:57 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -443,21 +455,25 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:35 GMT + - Tue, 17 May 2022 07:44:56 GMT etag: - - '"0x8DA33F11FF77E26"' + - '"0x8DA37D922E3C4EC"' last-modified: - - Thu, 12 May 2022 08:26:34 GMT + - Tue, 17 May 2022 07:44:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -465,7 +481,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -477,13 +493,13 @@ interactions: ParameterSetName: - --name --quota --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:34 GMT + - Tue, 17 May 2022 07:44:58 GMT x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=properties response: @@ -493,15 +509,15 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:36 GMT + - Tue, 17 May 2022 07:44:58 GMT etag: - - '"0x8DA33F121D60542"' + - '"0x8DA37D9245F2DAE"' last-modified: - - Thu, 12 May 2022 08:26:37 GMT + - Tue, 17 May 2022 07:44:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -509,7 +525,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -519,11 +535,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:35 GMT + - Tue, 17 May 2022 07:44:59 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -533,21 +549,25 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:38 GMT + - Tue, 17 May 2022 07:44:59 GMT etag: - - '"0x8DA33F121D60542"' + - '"0x8DA37D9245F2DAE"' last-modified: - - Thu, 12 May 2022 08:26:37 GMT + - Tue, 17 May 2022 07:44:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -559,11 +579,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '131072' x-ms-date: - - Thu, 12 May 2022 08:26:37 GMT + - Tue, 17 May 2022 07:45:01 GMT x-ms-type: - file x-ms-version: @@ -577,11 +597,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:41 GMT + - Tue, 17 May 2022 07:45:00 GMT etag: - - '"0x8DA33F124329767"' + - '"0x8DA37D92615CAAE"' last-modified: - - Thu, 12 May 2022 08:26:41 GMT + - Tue, 17 May 2022 07:45:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -599,9 +619,9 @@ interactions: Content-Length: - '131072' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:39 GMT + - Tue, 17 May 2022 07:45:02 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -619,11 +639,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:01 GMT etag: - - '"0x8DA33F125113BC5"' + - '"0x8DA37D926AB6524"' last-modified: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -639,9 +659,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:41 GMT + - Tue, 17 May 2022 07:45:03 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -655,11 +675,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:26:44 GMT + - Tue, 17 May 2022 07:45:02 GMT etag: - - '"0x8DA33F125113BC5"' + - '"0x8DA37D926AB6524"' last-modified: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -677,9 +697,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:04 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -699,11 +719,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:26:45 GMT + - Tue, 17 May 2022 07:45:04 GMT etag: - - '"0x8DA33F125113BC5"' + - '"0x8DA37D926AB6524"' last-modified: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -721,9 +741,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:45 GMT + - Tue, 17 May 2022 07:45:06 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -743,11 +763,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:26:48 GMT + - Tue, 17 May 2022 07:45:06 GMT etag: - - '"0x8DA33F125113BC5"' + - '"0x8DA37D926AB6524"' last-modified: - - Thu, 12 May 2022 08:26:42 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -767,11 +787,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '1234' x-ms-date: - - Thu, 12 May 2022 08:26:46 GMT + - Tue, 17 May 2022 07:45:08 GMT x-ms-version: - '2018-11-09' method: PUT @@ -783,11 +803,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:49 GMT + - Tue, 17 May 2022 07:45:07 GMT etag: - - '"0x8DA33F1299E4AC8"' + - '"0x8DA37D92A18947D"' last-modified: - - Thu, 12 May 2022 08:26:50 GMT + - Tue, 17 May 2022 07:45:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -803,9 +823,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:48 GMT + - Tue, 17 May 2022 07:45:09 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -819,11 +839,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:26:51 GMT + - Tue, 17 May 2022 07:45:08 GMT etag: - - '"0x8DA33F1299E4AC8"' + - '"0x8DA37D92A18947D"' last-modified: - - Thu, 12 May 2022 08:26:50 GMT + - Tue, 17 May 2022 07:45:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -843,9 +863,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:50 GMT + - Tue, 17 May 2022 07:45:10 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -861,11 +881,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:53 GMT + - Tue, 17 May 2022 07:45:09 GMT etag: - - '"0x8DA33F12BBB09DA"' + - '"0x8DA37D92BA6E98A"' last-modified: - - Thu, 12 May 2022 08:26:54 GMT + - Tue, 17 May 2022 07:45:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -881,9 +901,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:52 GMT + - Tue, 17 May 2022 07:45:11 GMT x-ms-version: - '2018-11-09' method: GET @@ -895,11 +915,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:55 GMT + - Tue, 17 May 2022 07:45:11 GMT etag: - - '"0x8DA33F12BBB09DA"' + - '"0x8DA37D92BA6E98A"' last-modified: - - Thu, 12 May 2022 08:26:54 GMT + - Tue, 17 May 2022 07:45:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -919,9 +939,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:54 GMT + - Tue, 17 May 2022 07:45:13 GMT x-ms-version: - '2018-11-09' method: PUT @@ -933,11 +953,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:26:58 GMT + - Tue, 17 May 2022 07:45:12 GMT etag: - - '"0x8DA33F12E419DBF"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Thu, 12 May 2022 08:26:58 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -953,9 +973,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:26:56 GMT + - Tue, 17 May 2022 07:45:14 GMT x-ms-version: - '2018-11-09' method: GET @@ -967,11 +987,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:00 GMT + - Tue, 17 May 2022 07:45:13 GMT etag: - - '"0x8DA33F12E419DBF"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Thu, 12 May 2022 08:26:58 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -982,33 +1002,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:26:58 GMT + - Tue, 17 May 2022 07:45:15 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000sample_file.bin123450000sample_file.bin1383512842402634137612342022-05-17T07:45:01.2739758Z2022-05-17T07:45:01.2739758Z2022-05-17T07:45:08.0031357Z2022-05-17T07:45:13.1541968ZTue, + 17 May 2022 07:45:13 GMT\"0x8DA37D92D2A91D0\"Archive4728198240921395882*16806597623465298468" headers: content-type: - application/xml date: - - Thu, 12 May 2022 08:27:01 GMT + - Tue, 17 May 2022 07:45:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1018,9 +1047,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:00 GMT + - Tue, 17 May 2022 07:45:17 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1034,11 +1063,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:27:04 GMT + - Tue, 17 May 2022 07:45:17 GMT etag: - - '"0x8DA33F12E419DBF"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Thu, 12 May 2022 08:26:58 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1058,11 +1087,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-type: - test/type x-ms-date: - - Thu, 12 May 2022 08:27:03 GMT + - Tue, 17 May 2022 07:45:18 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1074,11 +1103,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:07 GMT + - Tue, 17 May 2022 07:45:17 GMT etag: - - '"0x8DA33F1341FFEDE"' + - '"0x8DA37D930543258"' last-modified: - - Thu, 12 May 2022 08:27:08 GMT + - Tue, 17 May 2022 07:45:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1094,9 +1123,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:06 GMT + - Tue, 17 May 2022 07:45:19 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1110,11 +1139,11 @@ interactions: content-type: - test/type date: - - Thu, 12 May 2022 08:27:09 GMT + - Tue, 17 May 2022 07:45:19 GMT etag: - - '"0x8DA33F1341FFEDE"' + - '"0x8DA37D930543258"' last-modified: - - Thu, 12 May 2022 08:27:08 GMT + - Tue, 17 May 2022 07:45:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1134,9 +1163,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:08 GMT + - Tue, 17 May 2022 07:45:21 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1148,7 +1177,7 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:11 GMT + - Tue, 17 May 2022 07:45:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1162,9 +1191,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:10 GMT + - Tue, 17 May 2022 07:45:22 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1174,7 +1203,7 @@ interactions: string: '' headers: date: - - Thu, 12 May 2022 08:27:13 GMT + - Tue, 17 May 2022 07:45:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1189,16 +1218,32 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:11 GMT - x-ms-version: - - '2018-11-09' + - Tue, 17 May 2022 07:45:23 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-version: + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1208,64 +1253,95 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:14 GMT + - Tue, 17 May 2022 07:45:22 GMT etag: - - '"0x8DA33F13827EDE0"' + - '"0x8DA37D93356A182"' last-modified: - - Thu, 12 May 2022 08:27:14 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory list Connection: - keep-alive + ParameterSetName: + - -s --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:12 GMT + - Tue, 17 May 2022 07:45:24 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFFdir0000050dir000005138350932396542525442022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866ZTue, + 17 May 2022 07:45:23 GMT\"0x8DA37D93356A182\"Directory9360205630214331821*16806597623465298468" headers: content-type: - application/xml date: - - Thu, 12 May 2022 08:27:15 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:14 GMT + - Tue, 17 May 2022 07:45:26 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1275,37 +1351,59 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:17 GMT + - Tue, 17 May 2022 07:45:25 GMT etag: - - '"0x8DA33F13827EDE0"' + - '"0x8DA37D93356A182"' last-modified: - - Thu, 12 May 2022 08:27:14 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -s -n --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:16 GMT + - Tue, 17 May 2022 07:45:27 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1315,33 +1413,41 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:19 GMT + - Tue, 17 May 2022 07:45:26 GMT etag: - - '"0x8DA33F13B4330DD"' + - '"0x8DA37D935998630"' last-modified: - - Thu, 12 May 2022 08:27:20 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:18 GMT + - Tue, 17 May 2022 07:45:28 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1349,33 +1455,57 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:21 GMT + - Tue, 17 May 2022 07:45:27 GMT etag: - - '"0x8DA33F13B4330DD"' + - '"0x8DA37D935998630"' last-modified: - - Thu, 12 May 2022 08:27:20 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:27.3031216Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: - d + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:19 GMT + - Tue, 17 May 2022 07:45:29 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1385,13 +1515,27 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:22 GMT + - Tue, 17 May 2022 07:45:29 GMT etag: - - '"0x8DA33F13B4330DD"' + - '"0x8DA37D935998630"' last-modified: - - Thu, 12 May 2022 08:27:20 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:27.3031216Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: @@ -1399,23 +1543,31 @@ interactions: x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:21 GMT + - Tue, 17 May 2022 07:45:31 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1425,33 +1577,41 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:24 GMT + - Tue, 17 May 2022 07:45:31 GMT etag: - - '"0x8DA33F13E000EF8"' + - '"0x8DA37D937DAE475"' last-modified: - - Thu, 12 May 2022 08:27:24 GMT + - Tue, 17 May 2022 07:45:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:22 GMT + - Tue, 17 May 2022 07:45:32 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1459,15 +1619,31 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:25 GMT + - Tue, 17 May 2022 07:45:32 GMT etag: - - '"0x8DA33F13E000EF8"' + - '"0x8DA37D937DAE475"' last-modified: - - Thu, 12 May 2022 08:27:24 GMT + - Tue, 17 May 2022 07:45:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:31.0869621Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 + x-ms-server-encrypted: + - 'false' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1479,11 +1655,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '65536' x-ms-date: - - Thu, 12 May 2022 08:27:24 GMT + - Tue, 17 May 2022 07:45:33 GMT x-ms-type: - file x-ms-version: @@ -1497,11 +1673,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:27 GMT + - Tue, 17 May 2022 07:45:33 GMT etag: - - '"0x8DA33F140344A76"' + - '"0x8DA37D93968EB6E"' last-modified: - - Thu, 12 May 2022 08:27:28 GMT + - Tue, 17 May 2022 07:45:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1519,9 +1695,9 @@ interactions: Content-Length: - '65536' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:26 GMT + - Tue, 17 May 2022 07:45:34 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1539,11 +1715,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Thu, 12 May 2022 08:27:28 GMT + - Tue, 17 May 2022 07:45:33 GMT etag: - - '"0x8DA33F140CF87E8"' + - '"0x8DA37D939D9EC39"' last-modified: - - Thu, 12 May 2022 08:27:29 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1559,9 +1735,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:27 GMT + - Tue, 17 May 2022 07:45:35 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1575,11 +1751,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:27:30 GMT + - Tue, 17 May 2022 07:45:35 GMT etag: - - '"0x8DA33F140CF87E8"' + - '"0x8DA37D939D9EC39"' last-modified: - - Thu, 12 May 2022 08:27:29 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1597,9 +1773,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:29 GMT + - Tue, 17 May 2022 07:45:37 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1619,11 +1795,11 @@ interactions: content-type: - application/octet-stream date: - - Thu, 12 May 2022 08:27:31 GMT + - Tue, 17 May 2022 07:45:36 GMT etag: - - '"0x8DA33F140CF87E8"' + - '"0x8DA37D939D9EC39"' last-modified: - - Thu, 12 May 2022 08:27:29 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1638,33 +1814,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s -p --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:31 GMT + - Tue, 17 May 2022 07:45:38 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000testfile.txt65536500013835093239654252544testfile.txt13835163608398430208655362022-05-17T07:45:33.6954734Z2022-05-17T07:45:33.6954734Z2022-05-17T07:45:34.4360505Z2022-05-17T07:45:34.4360505ZTue, + 17 May 2022 07:45:34 GMT\"0x8DA37D939D9EC39\"Archive4728198240921395882*16806597623465298468" headers: content-type: - application/xml date: - - Thu, 12 May 2022 08:27:35 GMT + - Tue, 17 May 2022 07:45:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1682,11 +1867,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:34 GMT + - Tue, 17 May 2022 07:45:40 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=stats response: @@ -1696,13 +1881,13 @@ interactions: content-type: - application/xml date: - - Thu, 12 May 2022 08:27:38 GMT + - Tue, 17 May 2022 07:45:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -1714,9 +1899,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:37 GMT + - Tue, 17 May 2022 07:45:41 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1728,7 +1913,7 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:40 GMT + - Tue, 17 May 2022 07:45:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1742,9 +1927,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Thu, 12 May 2022 08:27:39 GMT + - Tue, 17 May 2022 07:45:42 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1754,7 +1939,7 @@ interactions: string: '' headers: date: - - Thu, 12 May 2022 08:27:42 GMT + - Tue, 17 May 2022 07:45:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1769,16 +1954,24 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:40 GMT + - Tue, 17 May 2022 07:45:43 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1788,64 +1981,88 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:46 GMT + - Tue, 17 May 2022 07:45:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:45 GMT + - Tue, 17 May 2022 07:45:45 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:7859f950-701a-0049-2bda-652b50000000\nTime:2022-05-12T08:27:48.9282870Z" + specified resource does not exist.\nRequestId:5ff0d0a1-201a-0050-63c2-694bfb000000\nTime:2022-05-17T07:45:45.1439870Z" headers: content-length: - '221' content-type: - application/xml date: - - Thu, 12 May 2022 08:27:48 GMT + - Tue, 17 May 2022 07:45:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: - ResourceNotFound x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 404 message: The specified resource does not exist. - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:47 GMT + - Tue, 17 May 2022 07:45:46 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-meta-cat: - hat x-ms-meta-foo: - bar x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1855,33 +2072,55 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:51 GMT + - Tue, 17 May 2022 07:45:46 GMT etag: - - '"0x8DA33F14E1F2641"' + - '"0x8DA37D9410063F0"' last-modified: - - Thu, 12 May 2022 08:27:51 GMT + - Tue, 17 May 2022 07:45:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:49 GMT + - Tue, 17 May 2022 07:45:47 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: body: string: '' @@ -1889,35 +2128,59 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:53 GMT + - Tue, 17 May 2022 07:45:47 GMT etag: - - '"0x8DA33F14E1F2641"' + - '"0x8DA37D9410063F0"' last-modified: - - Thu, 12 May 2022 08:27:51 GMT + - Tue, 17 May 2022 07:45:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-cat: - hat x-ms-meta-foo: - bar + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:51 GMT + - Tue, 17 May 2022 07:45:49 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1927,11 +2190,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:55 GMT + - Tue, 17 May 2022 07:45:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted @@ -1939,7 +2202,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -1951,11 +2214,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 12 May 2022 08:27:53 GMT + - Tue, 17 May 2022 07:45:50 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -1965,11 +2228,11 @@ interactions: content-length: - '0' date: - - Thu, 12 May 2022 08:27:56 GMT + - Tue, 17 May 2022 07:45:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 202 message: Accepted From a1a41a6d30cba17fb730911eabf937cd11e539b1 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 25 May 2022 10:15:05 +0800 Subject: [PATCH 04/16] fix checks --- .../storage/_client_factory.py | 2 +- .../cli/command_modules/storage/_params.py | 22 +- .../command_modules/storage/_transformers.py | 8 - .../test_storage_file_copy_scenario.yaml | 176 ++-- ...t_storage_file_copy_snapshot_scenario.yaml | 110 +-- .../test_storage_file_main_scenario.yaml | 883 ++++++------------ ...st_storage_file_share_handle_scenario.yaml | 355 ------- 7 files changed, 476 insertions(+), 1080 deletions(-) delete mode 100644 src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml diff --git a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py index 9d13a97dc62..5da642a780f 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py @@ -398,7 +398,7 @@ def cf_share_service(cli_ctx, kwargs): def cf_share_client(cli_ctx, kwargs): - return cf_share_service(cli_ctx, kwargs).get_share_client(share=kwargs.pop('share_name'), + return cf_share_service(cli_ctx, kwargs).get_share_client(share=kwargs.pop('s_name'), snapshot=kwargs.pop('snapshot', None)) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index 1f1b78a508b..17f88d777af 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -259,6 +259,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage') as c: c.argument('container_name', container_name_type) c.argument('directory_name', directory_type) + c.argument('share_name', share_name_type) c.argument('table_name', table_name_type) c.argument('retry_wait', options_list=('--retry-interval',)) c.ignore('progress_callback') @@ -1557,6 +1558,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.argument('include_deleted', action='store_true', help='Include soft deleted containers when specified.') + with self.argument_context('storage share') as c: + c.argument('share_name', share_name_type, options_list=('--name', '-n')) + with self.argument_context('storage share-rm', resource_type=ResourceType.MGMT_STORAGE) as c: c.argument('resource_group_name', required=False) c.argument('account_name', storage_account_type) @@ -1609,7 +1613,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem help='A new file share name to be restored. If not specified, deleted share name will be used.') with self.argument_context('storage share create') as c: - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('fail_on_exist', help='Specify whether to throw an exception when the share exists. False by ' 'default.') c.argument('quota', type=int, help='Specifies the maximum size of the share, in gigabytes. Must be greater ' @@ -1641,7 +1645,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.ignore('name_starts_with') with self.argument_context('storage share exists') as c: - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('snapshot', options_list=['--snapshot'], help='A string that represents the snapshot version, if applicable.') c.ignore('directory_name', 'file_name') @@ -1649,19 +1653,19 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem for item in ['show', 'metadata show']: with self.argument_context('storage share {}'.format(item)) as c: - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('snapshot', options_list=['--snapshot'], help='A string that represents the snapshot version, if applicable.') c.extra('timeout', timeout_type) for item in ['stats', 'snapshot', 'metadata update']: with self.argument_context('storage share {}'.format(item)) as c: - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('timeout', timeout_type) for item in ['create', 'delete', 'show', 'list', 'update']: with self.argument_context('storage share policy {}'.format(item)) as c: - c.extra('share_name', share_name_type, required=True) + c.extra('s_name', share_name_type, required=True) with self.argument_context('storage share policy') as c: from .completers import get_storage_acl_name_completion_list @@ -1685,7 +1689,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage share delete') as c: from .sdkutil import get_delete_file_snapshot_type_names - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('delete_snapshots', arg_type=get_enum_type(get_delete_file_snapshot_type_names()), help='Specify the deletion strategy when the share has snapshots.') c.argument('fail_not_exist', help="Specify whether to throw an exception when the share doesn't exists. False " @@ -1701,7 +1705,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem t_share_permissions = self.get_sdk('_models#ShareSasPermissions', resource_type=ResourceType.DATA_STORAGE_FILESHARE) c.register_sas_arguments() - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('cache_control', help='Response header value for Cache-Control when resource is accessed using this ' 'shared access signature.') c.argument('content_disposition', help='Response header value for Content-Disposition when resource is ' @@ -1722,18 +1726,16 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.ignore('sas_token') with self.argument_context('storage share update') as c: - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('quota', help='Specifies the maximum size of the share, in gigabytes. Must be greater than 0, and ' 'less than or equal to 5 TB (5120 GB).') c.extra('timeout', timeout_type) with self.argument_context('storage share list-handle') as c: - c.argument('share_name', share_name_type, options_list=('--name', '-n')) c.register_path_argument(default_file_param="") c.argument('recursive', arg_type=get_three_state_flag()) with self.argument_context('storage share close-handle') as c: - c.argument('share_name', share_name_type, options_list=('--name', '-n')) c.register_path_argument(default_file_param="") c.argument('recursive', arg_type=get_three_state_flag(), help="Boolean that specifies if operation should apply to the directory specified in the URI, its " diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index e38d1e1e286..23681d09608 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -394,14 +394,6 @@ def transform_file_share_json_output(result): return new_result -def transform_url_without_encode(result): - """ Ensures the resulting URL string does not contain extra / characters """ - import re - result = re.sub('//', '/', result) - result = re.sub('/', '//', result, count=1) - return result - - def transform_acl_edit(result): if "last_modified" in result.keys(): result["lastModified"] = result.pop("last_modified") diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml index 7901e233169..acbd2527fe5 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.35.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-04-11T14:12:27.7005993Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-04-11T14:12:27.7005993Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T02:10:28.2026650Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:10:28.2026650Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Mon, 11 Apr 2022 14:12:48 GMT + - Wed, 25 May 2022 02:10:49 GMT expires: - '-1' pragma: @@ -45,23 +45,31 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Mon, 11 Apr 2022 14:12:49 GMT + - Wed, 25 May 2022 02:10:49 GMT x-ms-version: - - '2018-11-09' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -71,31 +79,39 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:49 GMT + - Wed, 25 May 2022 02:10:50 GMT etag: - - '"0x8DA1BC55CBF403F"' + - '"0x8DA3DF3CA5AFD08"' last-modified: - - Mon, 11 Apr 2022 14:12:50 GMT + - Wed, 25 May 2022 02:10:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2019-07-07' status: code: 201 message: Created - request: body: null headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - storage share create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Mon, 11 Apr 2022 14:12:51 GMT + - Wed, 25 May 2022 02:10:50 GMT x-ms-version: - - '2018-11-09' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -105,15 +121,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:50 GMT + - Wed, 25 May 2022 02:10:52 GMT etag: - - '"0x8DA1BC55D68DE11"' + - '"0x8DA3DF3CBBE4732"' last-modified: - - Mon, 11 Apr 2022 14:12:51 GMT + - Wed, 25 May 2022 02:10:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2019-07-07' status: code: 201 message: Created @@ -125,9 +141,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:12:52 GMT + - Wed, 25 May 2022 02:10:52 GMT x-ms-version: - '2018-11-09' method: PUT @@ -139,11 +155,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:51 GMT + - Wed, 25 May 2022 02:10:56 GMT etag: - - '"0x8DA1BC55E1C0232"' + - '"0x8DA3DF3CDDF7B93"' last-modified: - - Mon, 11 Apr 2022 14:12:52 GMT + - Wed, 25 May 2022 02:10:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -161,9 +177,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:12:53 GMT + - Wed, 25 May 2022 02:10:56 GMT x-ms-version: - '2018-11-09' method: PUT @@ -175,11 +191,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:53 GMT + - Wed, 25 May 2022 02:10:57 GMT etag: - - '"0x8DA1BC55ECBD768"' + - '"0x8DA3DF3CECF5B7D"' last-modified: - - Mon, 11 Apr 2022 14:12:53 GMT + - Wed, 25 May 2022 02:10:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -197,11 +213,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '524288' x-ms-date: - - Mon, 11 Apr 2022 14:12:54 GMT + - Wed, 25 May 2022 02:10:57 GMT x-ms-type: - file x-ms-version: @@ -215,11 +231,11 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:54 GMT + - Wed, 25 May 2022 02:10:58 GMT etag: - - '"0x8DA1BC55F7EB970"' + - '"0x8DA3DF3CFA01F90"' last-modified: - - Mon, 11 Apr 2022 14:12:55 GMT + - Wed, 25 May 2022 02:10:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -238,9 +254,9 @@ interactions: Content-Length: - '106' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:12:55 GMT + - Wed, 25 May 2022 02:10:59 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -258,11 +274,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Mon, 11 Apr 2022 14:12:55 GMT + - Wed, 25 May 2022 02:11:00 GMT etag: - - '"0x8DA1BC56058F3C5"' + - '"0x8DA3DF3D0BDBF34"' last-modified: - - Mon, 11 Apr 2022 14:12:56 GMT + - Wed, 25 May 2022 02:11:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -278,9 +294,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:12:57 GMT + - Wed, 25 May 2022 02:11:01 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -294,11 +310,11 @@ interactions: content-type: - application/octet-stream date: - - Mon, 11 Apr 2022 14:12:57 GMT + - Wed, 25 May 2022 02:11:01 GMT etag: - - '"0x8DA1BC56058F3C5"' + - '"0x8DA3DF3D0BDBF34"' last-modified: - - Mon, 11 Apr 2022 14:12:56 GMT + - Wed, 25 May 2022 02:11:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -318,11 +334,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-copy-source: - - https://clitesttak6h5qe4ssyrmnab.file.core.windows.net/shareoxyes2ykuibwpy4gsm6/dir1/source_file.txt + - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt x-ms-date: - - Mon, 11 Apr 2022 14:12:58 GMT + - Wed, 25 May 2022 02:11:02 GMT x-ms-version: - '2018-11-09' method: PUT @@ -334,15 +350,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:12:58 GMT + - Wed, 25 May 2022 02:11:03 GMT etag: - - '"0x8DA1BC561E8CED5"' + - '"0x8DA3DF3D2936EA0"' last-modified: - - Mon, 11 Apr 2022 14:12:59 GMT + - Wed, 25 May 2022 02:11:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - b14dd66b-6a66-467c-b3c2-95d39d0f6770 + - a4a0811c-1aec-4d21-a547-22c8226f5670 x-ms-copy-status: - success x-ms-version: @@ -356,9 +372,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:12:59 GMT + - Wed, 25 May 2022 02:11:04 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -372,21 +388,21 @@ interactions: content-type: - application/octet-stream date: - - Mon, 11 Apr 2022 14:12:59 GMT + - Wed, 25 May 2022 02:11:05 GMT etag: - - '"0x8DA1BC561E8CED5"' + - '"0x8DA3DF3D2936EA0"' last-modified: - - Mon, 11 Apr 2022 14:12:59 GMT + - Wed, 25 May 2022 02:11:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Mon, 11 Apr 2022 14:12:59 GMT + - Wed, 25 May 2022 02:11:04 GMT x-ms-copy-id: - - b14dd66b-6a66-467c-b3c2-95d39d0f6770 + - a4a0811c-1aec-4d21-a547-22c8226f5670 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitesttak6h5qe4ssyrmnab.file.core.windows.net/shareoxyes2ykuibwpy4gsm6/dir1/source_file.txt + - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -406,11 +422,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-copy-source: - - https://clitesttak6h5qe4ssyrmnab.file.core.windows.net/shareoxyes2ykuibwpy4gsm6/dir1/source_file.txt + - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt x-ms-date: - - Mon, 11 Apr 2022 14:13:01 GMT + - Wed, 25 May 2022 02:11:05 GMT x-ms-version: - '2018-11-09' method: PUT @@ -422,15 +438,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:00 GMT + - Wed, 25 May 2022 02:11:06 GMT etag: - - '"0x8DA1BC56384B615"' + - '"0x8DA3DF3D42E4110"' last-modified: - - Mon, 11 Apr 2022 14:13:01 GMT + - Wed, 25 May 2022 02:11:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - be2583e6-4944-4082-a2d7-dbac4f0ccad5 + - 367aa370-ba3b-4d60-9597-7d1db05d3a11 x-ms-copy-status: - success x-ms-version: @@ -444,9 +460,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Mon, 11 Apr 2022 14:13:02 GMT + - Wed, 25 May 2022 02:11:06 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -460,21 +476,21 @@ interactions: content-type: - application/octet-stream date: - - Mon, 11 Apr 2022 14:13:02 GMT + - Wed, 25 May 2022 02:11:08 GMT etag: - - '"0x8DA1BC56384B615"' + - '"0x8DA3DF3D42E4110"' last-modified: - - Mon, 11 Apr 2022 14:13:01 GMT + - Wed, 25 May 2022 02:11:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Mon, 11 Apr 2022 14:13:01 GMT + - Wed, 25 May 2022 02:11:07 GMT x-ms-copy-id: - - be2583e6-4944-4082-a2d7-dbac4f0ccad5 + - 367aa370-ba3b-4d60-9597-7d1db05d3a11 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitesttak6h5qe4ssyrmnab.file.core.windows.net/shareoxyes2ykuibwpy4gsm6/dir1/source_file.txt + - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -494,11 +510,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.35.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-copy-source: - - https://clitesttak6h5qe4ssyrmnab.file.core.windows.net/shareoxyes2ykuibwpy4gsm6/dir1%5Csource_file.txt + - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1%5Csource_file.txt x-ms-date: - - Mon, 11 Apr 2022 14:13:03 GMT + - Wed, 25 May 2022 02:11:08 GMT x-ms-version: - '2018-11-09' method: PUT @@ -510,15 +526,15 @@ interactions: content-length: - '0' date: - - Mon, 11 Apr 2022 14:13:04 GMT + - Wed, 25 May 2022 02:11:09 GMT etag: - - '"0x8DA1BC565057832"' + - '"0x8DA3DF3D5B56782"' last-modified: - - Mon, 11 Apr 2022 14:13:04 GMT + - Wed, 25 May 2022 02:11:09 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - d75db857-1096-48d8-8f13-f814adb454a6 + - 0e89a2ae-4b24-49c5-b9eb-d5bc9eca3fb2 x-ms-copy-status: - success x-ms-version: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml index a39028ddaf9..19673dab20f 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-20T08:33:38.5272743Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-20T08:33:38.5272743Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T02:11:26.6720065Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:11:26.6720065Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Fri, 20 May 2022 08:34:03 GMT + - Wed, 25 May 2022 02:11:48 GMT expires: - '-1' pragma: @@ -38,10 +38,14 @@ interactions: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK @@ -63,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Fri, 20 May 2022 08:34:06 GMT + - Wed, 25 May 2022 02:11:49 GMT x-ms-version: - '2019-07-07' method: PUT @@ -75,11 +79,11 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:05 GMT + - Wed, 25 May 2022 02:11:51 GMT etag: - - '"0x8DA3A3B80D12FF3"' + - '"0x8DA3DF3EE6990E7"' last-modified: - - Fri, 20 May 2022 08:34:06 GMT + - Wed, 25 May 2022 02:11:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -105,7 +109,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Fri, 20 May 2022 08:34:08 GMT + - Wed, 25 May 2022 02:11:50 GMT x-ms-version: - '2019-07-07' method: PUT @@ -117,11 +121,11 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:07 GMT + - Wed, 25 May 2022 02:11:52 GMT etag: - - '"0x8DA3A3B8206150A"' + - '"0x8DA3DF3EF3857E0"' last-modified: - - Fri, 20 May 2022 08:34:08 GMT + - Wed, 25 May 2022 02:11:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -139,7 +143,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:10 GMT + - Wed, 25 May 2022 02:11:52 GMT x-ms-version: - '2018-11-09' method: PUT @@ -151,11 +155,11 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:09 GMT + - Wed, 25 May 2022 02:11:53 GMT etag: - - '"0x8DA3A3B8302A2CC"' + - '"0x8DA3DF3EFF97C9F"' last-modified: - - Fri, 20 May 2022 08:34:10 GMT + - Wed, 25 May 2022 02:11:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -175,7 +179,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:11 GMT + - Wed, 25 May 2022 02:11:53 GMT x-ms-version: - '2018-11-09' method: PUT @@ -187,11 +191,11 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:11 GMT + - Wed, 25 May 2022 02:11:54 GMT etag: - - '"0x8DA3A3B840A9D43"' + - '"0x8DA3DF3F0BD9A6C"' last-modified: - - Fri, 20 May 2022 08:34:11 GMT + - Wed, 25 May 2022 02:11:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -213,7 +217,7 @@ interactions: x-ms-content-length: - '524288' x-ms-date: - - Fri, 20 May 2022 08:34:13 GMT + - Wed, 25 May 2022 02:11:54 GMT x-ms-type: - file x-ms-version: @@ -227,11 +231,11 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:13 GMT + - Wed, 25 May 2022 02:11:56 GMT etag: - - '"0x8DA3A3B851667B9"' + - '"0x8DA3DF3F190AA31"' last-modified: - - Fri, 20 May 2022 08:34:13 GMT + - Wed, 25 May 2022 02:11:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -252,7 +256,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:15 GMT + - Wed, 25 May 2022 02:11:56 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -270,11 +274,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Fri, 20 May 2022 08:34:15 GMT + - Wed, 25 May 2022 02:11:57 GMT etag: - - '"0x8DA3A3B8648EE64"' + - '"0x8DA3DF3F277B436"' last-modified: - - Fri, 20 May 2022 08:34:15 GMT + - Wed, 25 May 2022 02:11:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -292,7 +296,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:17 GMT + - Wed, 25 May 2022 02:11:57 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -306,11 +310,11 @@ interactions: content-type: - application/octet-stream date: - - Fri, 20 May 2022 08:34:16 GMT + - Wed, 25 May 2022 02:11:58 GMT etag: - - '"0x8DA3A3B8648EE64"' + - '"0x8DA3DF3F277B436"' last-modified: - - Fri, 20 May 2022 08:34:15 GMT + - Wed, 25 May 2022 02:11:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -340,7 +344,7 @@ interactions: User-Agent: - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Fri, 20 May 2022 08:34:18 GMT + - Wed, 25 May 2022 02:11:59 GMT x-ms-version: - '2019-07-07' method: PUT @@ -352,15 +356,15 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:17 GMT + - Wed, 25 May 2022 02:12:00 GMT etag: - - '"0x8DA3A3B80D12FF3"' + - '"0x8DA3DF3EE6990E7"' last-modified: - - Fri, 20 May 2022 08:34:06 GMT + - Wed, 25 May 2022 02:11:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2022-05-20T08:34:18.0000000Z' + - '2022-05-25T02:12:00.0000000Z' x-ms-version: - '2019-07-07' status: @@ -376,7 +380,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:19 GMT + - Wed, 25 May 2022 02:12:00 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -388,7 +392,7 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:19 GMT + - Wed, 25 May 2022 02:12:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -404,7 +408,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:21 GMT + - Wed, 25 May 2022 02:12:01 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -414,7 +418,7 @@ interactions: string: '' headers: date: - - Fri, 20 May 2022 08:34:21 GMT + - Wed, 25 May 2022 02:12:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -436,9 +440,9 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-copy-source: - - https://clitestiyc5ugirwhgimq6p4.file.core.windows.net/sharelepewiiksoicvhvmime/dir1%5Csource_file.txt?sharesnapshot=2022-05-20T08:34:18.0000000Z + - https://clitestjraeyugur6egq6ogt.file.core.windows.net/sharewk5uple3ewsxesfvahm/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T02:12:00.0000000Z x-ms-date: - - Fri, 20 May 2022 08:34:23 GMT + - Wed, 25 May 2022 02:12:03 GMT x-ms-version: - '2018-11-09' method: PUT @@ -450,15 +454,15 @@ interactions: content-length: - '0' date: - - Fri, 20 May 2022 08:34:23 GMT + - Wed, 25 May 2022 02:12:04 GMT etag: - - '"0x8DA3A3B8B06AECB"' + - '"0x8DA3DF3F68774E1"' last-modified: - - Fri, 20 May 2022 08:34:23 GMT + - Wed, 25 May 2022 02:12:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - a8c2d4fe-29f4-42d4-ab4c-7148c5852a53 + - 987cc27b-4c61-4798-82df-31cc6004ab28 x-ms-copy-status: - success x-ms-version: @@ -474,7 +478,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Fri, 20 May 2022 08:34:25 GMT + - Wed, 25 May 2022 02:12:04 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -488,21 +492,21 @@ interactions: content-type: - application/octet-stream date: - - Fri, 20 May 2022 08:34:24 GMT + - Wed, 25 May 2022 02:12:05 GMT etag: - - '"0x8DA3A3B8B06AECB"' + - '"0x8DA3DF3F68774E1"' last-modified: - - Fri, 20 May 2022 08:34:23 GMT + - Wed, 25 May 2022 02:12:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Fri, 20 May 2022 08:34:23 GMT + - Wed, 25 May 2022 02:12:04 GMT x-ms-copy-id: - - a8c2d4fe-29f4-42d4-ab4c-7148c5852a53 + - 987cc27b-4c61-4798-82df-31cc6004ab28 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestiyc5ugirwhgimq6p4.file.core.windows.net/sharelepewiiksoicvhvmime/dir1%5Csource_file.txt?sharesnapshot=2022-05-20T08:34:18.0000000Z + - https://clitestjraeyugur6egq6ogt.file.core.windows.net/sharewk5uple3ewsxesfvahm/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T02:12:00.0000000Z x-ms-copy-status: - success x-ms-server-encrypted: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index e532046d5dc..67c71c39e60 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T02:12:24.8290071Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:12:24.8290071Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Tue, 17 May 2022 07:44:44 GMT + - Wed, 25 May 2022 02:12:47 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:46 GMT + - Wed, 25 May 2022 02:12:46 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:46 GMT + - Wed, 25 May 2022 02:12:47 GMT etag: - - '"0x8DA37D91D76761E"' + - '"0x8DA3DF410A12F33"' last-modified: - - Tue, 17 May 2022 07:44:46 GMT + - Wed, 25 May 2022 02:12:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -107,9 +107,9 @@ interactions: ParameterSetName: - -n --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:48 GMT + - Wed, 25 May 2022 02:12:48 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -117,7 +117,7 @@ interactions: x-ms-meta-foo: - bar x-ms-version: - - '2021-06-08' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -127,15 +127,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:47 GMT + - Wed, 25 May 2022 02:12:49 GMT etag: - - '"0x8DA37D91E38C02D"' + - '"0x8DA3DF411681893"' last-modified: - - Tue, 17 May 2022 07:44:48 GMT + - Wed, 25 May 2022 02:12:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 201 message: Created @@ -143,7 +143,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -153,11 +153,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:49 GMT + - Wed, 25 May 2022 02:12:49 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -167,25 +167,21 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:48 GMT + - Wed, 25 May 2022 02:12:51 GMT etag: - - '"0x8DA37D91D76761E"' + - '"0x8DA3DF410A12F33"' last-modified: - - Tue, 17 May 2022 07:44:46 GMT + - Wed, 25 May 2022 02:12:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -193,7 +189,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -203,11 +199,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:50 GMT + - Wed, 25 May 2022 02:12:51 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -217,21 +213,17 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:49 GMT + - Wed, 25 May 2022 02:12:52 GMT etag: - - '"0x8DA37D91E38C02D"' + - '"0x8DA3DF411681893"' last-modified: - - Tue, 17 May 2022 07:44:48 GMT + - Wed, 25 May 2022 02:12:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked x-ms-meta-cat: - hat x-ms-meta-foo: @@ -239,7 +231,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -257,31 +249,31 @@ interactions: ParameterSetName: - --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:52 GMT + - Wed, 25 May 2022 02:12:52 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET - uri: https://clitest000002.file.core.windows.net/?comp=list&maxresults=5000&include= + uri: https://clitest000002.file.core.windows.net/?maxresults=5000&include=&comp=list response: body: string: "\uFEFF5000share000003Tue, - 17 May 2022 07:44:46 GMT\"0x8DA37D91D76761E\"unlockedavailable5120$account-encryption-keyfalseshare000004Tue, - 17 May 2022 07:44:48 GMT\"0x8DA37D91E38C02D\"unlockedavailable5120$account-encryption-keyfalse5000share000003Wed, + 25 May 2022 02:12:48 GMT\"0x8DA3DF410A12F33\"5120$account-encryption-keyfalseshare000004Wed, + 25 May 2022 02:12:49 GMT\"0x8DA3DF411681893\"5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Tue, 17 May 2022 07:44:51 GMT + - Wed, 25 May 2022 02:12:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -289,7 +281,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -301,15 +293,15 @@ interactions: ParameterSetName: - --name --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:53 GMT + - Wed, 25 May 2022 02:12:54 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2021-06-08' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -319,15 +311,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:53 GMT + - Wed, 25 May 2022 02:12:55 GMT etag: - - '"0x8DA37D92155C180"' + - '"0x8DA3DF415058587"' last-modified: - - Tue, 17 May 2022 07:44:53 GMT + - Wed, 25 May 2022 02:12:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -335,7 +327,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -345,11 +337,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:54 GMT + - Wed, 25 May 2022 02:12:55 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -359,21 +351,17 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:53 GMT + - Wed, 25 May 2022 02:12:57 GMT etag: - - '"0x8DA37D92155C180"' + - '"0x8DA3DF415058587"' last-modified: - - Tue, 17 May 2022 07:44:53 GMT + - Wed, 25 May 2022 02:12:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked x-ms-meta-a: - b x-ms-meta-c: @@ -381,7 +369,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -389,7 +377,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -401,11 +389,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:55 GMT + - Wed, 25 May 2022 02:12:57 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -415,15 +403,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:55 GMT + - Wed, 25 May 2022 02:12:58 GMT etag: - - '"0x8DA37D922E3C4EC"' + - '"0x8DA3DF416C014C7"' last-modified: - - Tue, 17 May 2022 07:44:55 GMT + - Wed, 25 May 2022 02:12:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -431,7 +419,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -441,11 +429,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:57 GMT + - Wed, 25 May 2022 02:12:58 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -455,25 +443,21 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:56 GMT + - Wed, 25 May 2022 02:12:59 GMT etag: - - '"0x8DA37D922E3C4EC"' + - '"0x8DA3DF416C014C7"' last-modified: - - Tue, 17 May 2022 07:44:55 GMT + - Wed, 25 May 2022 02:12:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -481,7 +465,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -493,13 +477,13 @@ interactions: ParameterSetName: - --name --quota --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:58 GMT + - Wed, 25 May 2022 02:13:00 GMT x-ms-share-quota: - '3' x-ms-version: - - '2021-06-08' + - '2019-07-07' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=properties response: @@ -509,15 +493,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:58 GMT + - Wed, 25 May 2022 02:13:01 GMT etag: - - '"0x8DA37D9245F2DAE"' + - '"0x8DA3DF418899602"' last-modified: - - Tue, 17 May 2022 07:44:58 GMT + - Wed, 25 May 2022 02:13:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -525,7 +509,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -535,11 +519,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:44:59 GMT + - Wed, 25 May 2022 02:13:01 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -549,25 +533,21 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:44:59 GMT + - Wed, 25 May 2022 02:13:02 GMT etag: - - '"0x8DA37D9245F2DAE"' + - '"0x8DA3DF418899602"' last-modified: - - Tue, 17 May 2022 07:44:58 GMT + - Wed, 25 May 2022 02:13:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked x-ms-share-quota: - '3' x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -579,11 +559,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '131072' x-ms-date: - - Tue, 17 May 2022 07:45:01 GMT + - Wed, 25 May 2022 02:13:03 GMT x-ms-type: - file x-ms-version: @@ -597,11 +577,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:00 GMT + - Wed, 25 May 2022 02:13:04 GMT etag: - - '"0x8DA37D92615CAAE"' + - '"0x8DA3DF41A3A0A52"' last-modified: - - Tue, 17 May 2022 07:45:01 GMT + - Wed, 25 May 2022 02:13:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -619,9 +599,9 @@ interactions: Content-Length: - '131072' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:04 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -639,11 +619,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Tue, 17 May 2022 07:45:01 GMT + - Wed, 25 May 2022 02:13:05 GMT etag: - - '"0x8DA37D926AB6524"' + - '"0x8DA3DF41AD2FF69"' last-modified: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -659,9 +639,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:03 GMT + - Wed, 25 May 2022 02:13:05 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -675,11 +655,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:06 GMT etag: - - '"0x8DA37D926AB6524"' + - '"0x8DA3DF41AD2FF69"' last-modified: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -697,9 +677,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:04 GMT + - Wed, 25 May 2022 02:13:06 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -719,11 +699,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:04 GMT + - Wed, 25 May 2022 02:13:09 GMT etag: - - '"0x8DA37D926AB6524"' + - '"0x8DA3DF41AD2FF69"' last-modified: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -741,9 +721,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:06 GMT + - Wed, 25 May 2022 02:13:11 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -763,11 +743,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:06 GMT + - Wed, 25 May 2022 02:13:12 GMT etag: - - '"0x8DA37D926AB6524"' + - '"0x8DA3DF41AD2FF69"' last-modified: - - Tue, 17 May 2022 07:45:02 GMT + - Wed, 25 May 2022 02:13:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -787,11 +767,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '1234' x-ms-date: - - Tue, 17 May 2022 07:45:08 GMT + - Wed, 25 May 2022 02:13:12 GMT x-ms-version: - '2018-11-09' method: PUT @@ -803,11 +783,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:07 GMT + - Wed, 25 May 2022 02:13:13 GMT etag: - - '"0x8DA37D92A18947D"' + - '"0x8DA3DF4200AE52A"' last-modified: - - Tue, 17 May 2022 07:45:08 GMT + - Wed, 25 May 2022 02:13:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -823,9 +803,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:09 GMT + - Wed, 25 May 2022 02:13:14 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -839,11 +819,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:08 GMT + - Wed, 25 May 2022 02:13:15 GMT etag: - - '"0x8DA37D92A18947D"' + - '"0x8DA3DF4200AE52A"' last-modified: - - Tue, 17 May 2022 07:45:08 GMT + - Wed, 25 May 2022 02:13:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -863,9 +843,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:10 GMT + - Wed, 25 May 2022 02:13:15 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -881,11 +861,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:09 GMT + - Wed, 25 May 2022 02:13:18 GMT etag: - - '"0x8DA37D92BA6E98A"' + - '"0x8DA3DF422F0F56B"' last-modified: - - Tue, 17 May 2022 07:45:10 GMT + - Wed, 25 May 2022 02:13:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -901,9 +881,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:11 GMT + - Wed, 25 May 2022 02:13:19 GMT x-ms-version: - '2018-11-09' method: GET @@ -915,11 +895,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:11 GMT + - Wed, 25 May 2022 02:13:22 GMT etag: - - '"0x8DA37D92BA6E98A"' + - '"0x8DA3DF422F0F56B"' last-modified: - - Tue, 17 May 2022 07:45:10 GMT + - Wed, 25 May 2022 02:13:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -939,9 +919,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:13 GMT + - Wed, 25 May 2022 02:13:22 GMT x-ms-version: - '2018-11-09' method: PUT @@ -953,11 +933,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:12 GMT + - Wed, 25 May 2022 02:13:23 GMT etag: - - '"0x8DA37D92D2A91D0"' + - '"0x8DA3DF4259217A3"' last-modified: - - Tue, 17 May 2022 07:45:13 GMT + - Wed, 25 May 2022 02:13:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -973,9 +953,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:14 GMT + - Wed, 25 May 2022 02:13:23 GMT x-ms-version: - '2018-11-09' method: GET @@ -987,11 +967,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:13 GMT + - Wed, 25 May 2022 02:13:24 GMT etag: - - '"0x8DA37D92D2A91D0"' + - '"0x8DA3DF4259217A3"' last-modified: - - Tue, 17 May 2022 07:45:13 GMT + - Wed, 25 May 2022 02:13:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1002,42 +982,33 @@ interactions: - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage file list Connection: - keep-alive - ParameterSetName: - - -s --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:15 GMT + - Wed, 25 May 2022 02:13:24 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000 response: body: string: "\uFEFF50000sample_file.bin1383512842402634137612342022-05-17T07:45:01.2739758Z2022-05-17T07:45:01.2739758Z2022-05-17T07:45:08.0031357Z2022-05-17T07:45:13.1541968ZTue, - 17 May 2022 07:45:13 GMT\"0x8DA37D92D2A91D0\"Archive4728198240921395882*168065976234652984685000sample_file.bin1234" headers: content-type: - application/xml date: - - Tue, 17 May 2022 07:45:14 GMT + - Wed, 25 May 2022 02:13:25 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK @@ -1047,9 +1018,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:17 GMT + - Wed, 25 May 2022 02:13:26 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1063,11 +1034,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:17 GMT + - Wed, 25 May 2022 02:13:27 GMT etag: - - '"0x8DA37D92D2A91D0"' + - '"0x8DA3DF4259217A3"' last-modified: - - Tue, 17 May 2022 07:45:13 GMT + - Wed, 25 May 2022 02:13:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1087,11 +1058,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-type: - test/type x-ms-date: - - Tue, 17 May 2022 07:45:18 GMT + - Wed, 25 May 2022 02:13:27 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1103,11 +1074,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:17 GMT + - Wed, 25 May 2022 02:13:28 GMT etag: - - '"0x8DA37D930543258"' + - '"0x8DA3DF428B4B2C3"' last-modified: - - Tue, 17 May 2022 07:45:18 GMT + - Wed, 25 May 2022 02:13:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1123,9 +1094,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:19 GMT + - Wed, 25 May 2022 02:13:28 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1139,11 +1110,11 @@ interactions: content-type: - test/type date: - - Tue, 17 May 2022 07:45:19 GMT + - Wed, 25 May 2022 02:13:29 GMT etag: - - '"0x8DA37D930543258"' + - '"0x8DA3DF428B4B2C3"' last-modified: - - Tue, 17 May 2022 07:45:18 GMT + - Wed, 25 May 2022 02:13:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1163,9 +1134,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:21 GMT + - Wed, 25 May 2022 02:13:30 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1177,7 +1148,7 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:20 GMT + - Wed, 25 May 2022 02:13:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1191,9 +1162,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:22 GMT + - Wed, 25 May 2022 02:13:31 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1203,7 +1174,7 @@ interactions: string: '' headers: date: - - Tue, 17 May 2022 07:45:21 GMT + - Wed, 25 May 2022 02:13:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1218,32 +1189,16 @@ interactions: - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory create Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - --share-name --name --fail-on-exist --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:23 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-version: - - '2021-06-08' + - Wed, 25 May 2022 02:13:33 GMT + x-ms-version: + - '2018-11-09' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1253,95 +1208,64 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:22 GMT + - Wed, 25 May 2022 02:13:34 GMT etag: - - '"0x8DA37D93356A182"' + - '"0x8DA3DF42C2784DF"' last-modified: - - Tue, 17 May 2022 07:45:23 GMT + - Wed, 25 May 2022 02:13:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-id: - - '13835093239654252544' - x-ms-file-last-write-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 201 message: Created - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory list Connection: - keep-alive - ParameterSetName: - - -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:24 GMT + - Wed, 25 May 2022 02:13:34 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list response: body: string: "\uFEFF0dir000005138350932396542525442022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866ZTue, - 17 May 2022 07:45:23 GMT\"0x8DA37D93356A182\"Directory9360205630214331821*16806597623465298468dir000005" headers: content-type: - application/xml date: - - Tue, 17 May 2022 07:45:23 GMT + - Wed, 25 May 2022 02:13:35 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory exists Connection: - keep-alive - ParameterSetName: - - --share-name -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:26 GMT + - Wed, 25 May 2022 02:13:35 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1351,59 +1275,37 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:25 GMT + - Wed, 25 May 2022 02:13:36 GMT etag: - - '"0x8DA37D93356A182"' + - '"0x8DA3DF42C2784DF"' last-modified: - - Tue, 17 May 2022 07:45:23 GMT + - Wed, 25 May 2022 02:13:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-id: - - '13835093239654252544' - x-ms-file-last-write-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory metadata update Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - -s -n --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:27 GMT + - Wed, 25 May 2022 02:13:37 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2021-06-08' + - '2018-11-09' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1413,41 +1315,33 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:26 GMT + - Wed, 25 May 2022 02:13:38 GMT etag: - - '"0x8DA37D935998630"' + - '"0x8DA3DF42E708214"' last-modified: - - Tue, 17 May 2022 07:45:27 GMT + - Wed, 25 May 2022 02:13:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory metadata show Connection: - keep-alive - ParameterSetName: - - --share-name -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:28 GMT + - Wed, 25 May 2022 02:13:38 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: body: string: '' @@ -1455,57 +1349,33 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:27 GMT + - Wed, 25 May 2022 02:13:39 GMT etag: - - '"0x8DA37D935998630"' + - '"0x8DA3DF42E708214"' last-modified: - - Tue, 17 May 2022 07:45:27 GMT + - Wed, 25 May 2022 02:13:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:27.3031216Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-id: - - '13835093239654252544' - x-ms-file-last-write-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: - d - x-ms-server-encrypted: - - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory show Connection: - keep-alive - ParameterSetName: - - --share-name -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:29 GMT + - Wed, 25 May 2022 02:13:39 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1515,27 +1385,13 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:29 GMT + - Wed, 25 May 2022 02:13:41 GMT etag: - - '"0x8DA37D935998630"' + - '"0x8DA3DF42E708214"' last-modified: - - Tue, 17 May 2022 07:45:27 GMT + - Wed, 25 May 2022 02:13:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:27.3031216Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-id: - - '13835093239654252544' - x-ms-file-last-write-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: @@ -1543,31 +1399,23 @@ interactions: x-ms-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory metadata update Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - --share-name --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:31 GMT + - Wed, 25 May 2022 02:13:41 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1577,41 +1425,33 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:31 GMT + - Wed, 25 May 2022 02:13:42 GMT etag: - - '"0x8DA37D937DAE475"' + - '"0x8DA3DF431034E81"' last-modified: - - Tue, 17 May 2022 07:45:31 GMT + - Wed, 25 May 2022 02:13:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory metadata show Connection: - keep-alive - ParameterSetName: - - --share-name --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:32 GMT + - Wed, 25 May 2022 02:13:42 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: body: string: '' @@ -1619,31 +1459,15 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:32 GMT + - Wed, 25 May 2022 02:13:43 GMT etag: - - '"0x8DA37D937DAE475"' + - '"0x8DA3DF431034E81"' last-modified: - - Tue, 17 May 2022 07:45:31 GMT + - Wed, 25 May 2022 02:13:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:31.0869621Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-id: - - '13835093239654252544' - x-ms-file-last-write-time: - - '2022-05-17T07:45:23.5092866Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 - x-ms-server-encrypted: - - 'false' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK @@ -1655,11 +1479,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '65536' x-ms-date: - - Tue, 17 May 2022 07:45:33 GMT + - Wed, 25 May 2022 02:13:44 GMT x-ms-type: - file x-ms-version: @@ -1673,11 +1497,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:33 GMT + - Wed, 25 May 2022 02:13:44 GMT etag: - - '"0x8DA37D93968EB6E"' + - '"0x8DA3DF432983185"' last-modified: - - Tue, 17 May 2022 07:45:33 GMT + - Wed, 25 May 2022 02:13:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1695,9 +1519,9 @@ interactions: Content-Length: - '65536' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:34 GMT + - Wed, 25 May 2022 02:13:45 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1715,11 +1539,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Tue, 17 May 2022 07:45:33 GMT + - Wed, 25 May 2022 02:13:45 GMT etag: - - '"0x8DA37D939D9EC39"' + - '"0x8DA3DF433362EEE"' last-modified: - - Tue, 17 May 2022 07:45:34 GMT + - Wed, 25 May 2022 02:13:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1735,9 +1559,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:35 GMT + - Wed, 25 May 2022 02:13:46 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1751,11 +1575,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:35 GMT + - Wed, 25 May 2022 02:13:48 GMT etag: - - '"0x8DA37D939D9EC39"' + - '"0x8DA3DF433362EEE"' last-modified: - - Tue, 17 May 2022 07:45:34 GMT + - Wed, 25 May 2022 02:13:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1773,9 +1597,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:37 GMT + - Wed, 25 May 2022 02:13:47 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1795,11 +1619,11 @@ interactions: content-type: - application/octet-stream date: - - Tue, 17 May 2022 07:45:36 GMT + - Wed, 25 May 2022 02:13:49 GMT etag: - - '"0x8DA37D939D9EC39"' + - '"0x8DA3DF433362EEE"' last-modified: - - Tue, 17 May 2022 07:45:34 GMT + - Wed, 25 May 2022 02:13:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1814,42 +1638,33 @@ interactions: - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage file list Connection: - keep-alive - ParameterSetName: - - -s -p --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:38 GMT + - Wed, 25 May 2022 02:13:49 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000 response: body: string: "\uFEFF500013835093239654252544testfile.txt13835163608398430208655362022-05-17T07:45:33.6954734Z2022-05-17T07:45:33.6954734Z2022-05-17T07:45:34.4360505Z2022-05-17T07:45:34.4360505ZTue, - 17 May 2022 07:45:34 GMT\"0x8DA37D939D9EC39\"Archive4728198240921395882*168065976234652984685000testfile.txt65536" headers: content-type: - application/xml date: - - Tue, 17 May 2022 07:45:37 GMT + - Wed, 25 May 2022 02:13:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK @@ -1867,11 +1682,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:45:40 GMT + - Wed, 25 May 2022 02:13:51 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=stats response: @@ -1881,13 +1696,13 @@ interactions: content-type: - application/xml date: - - Tue, 17 May 2022 07:45:38 GMT + - Wed, 25 May 2022 02:13:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 200 message: OK @@ -1899,9 +1714,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:41 GMT + - Wed, 25 May 2022 02:13:55 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1913,7 +1728,7 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:40 GMT + - Wed, 25 May 2022 02:13:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1927,9 +1742,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:42 GMT + - Wed, 25 May 2022 02:13:56 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1939,7 +1754,7 @@ interactions: string: '' headers: date: - - Tue, 17 May 2022 07:45:42 GMT + - Wed, 25 May 2022 02:13:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1954,24 +1769,16 @@ interactions: - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory delete Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:43 GMT + - Wed, 25 May 2022 02:13:58 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1981,88 +1788,64 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:43 GMT + - Wed, 25 May 2022 02:14:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 202 message: Accepted - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory exists Connection: - keep-alive - ParameterSetName: - - --share-name --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:45 GMT + - Wed, 25 May 2022 02:13:59 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:5ff0d0a1-201a-0050-63c2-694bfb000000\nTime:2022-05-17T07:45:45.1439870Z" + specified resource does not exist.\nRequestId:c7c9f8a1-901a-0016-2fdd-6f230b000000\nTime:2022-05-25T02:14:01.2564025Z" headers: content-length: - '221' content-type: - application/xml date: - - Tue, 17 May 2022 07:45:45 GMT + - Wed, 25 May 2022 02:14:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: - ResourceNotFound x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 404 message: The specified resource does not exist. - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory create Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - --share-name --name --fail-on-exist --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:46 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit + - Wed, 25 May 2022 02:14:00 GMT x-ms-meta-cat: - hat x-ms-meta-foo: - bar x-ms-version: - - '2021-06-08' + - '2018-11-09' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -2072,55 +1855,33 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:46 GMT + - Wed, 25 May 2022 02:14:02 GMT etag: - - '"0x8DA37D9410063F0"' + - '"0x8DA3DF43CAA338F"' last-modified: - - Tue, 17 May 2022 07:45:46 GMT + - Wed, 25 May 2022 02:14:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-id: - - '13835075647468208128' - x-ms-file-last-write-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 201 message: Created - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory metadata show Connection: - keep-alive - ParameterSetName: - - --share-name -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:47 GMT + - Wed, 25 May 2022 02:14:02 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory + uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory&comp=metadata response: body: string: '' @@ -2128,59 +1889,35 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:47 GMT + - Wed, 25 May 2022 02:14:02 GMT etag: - - '"0x8DA37D9410063F0"' + - '"0x8DA3DF43CAA338F"' last-modified: - - Tue, 17 May 2022 07:45:46 GMT + - Wed, 25 May 2022 02:14:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-creation-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-id: - - '13835075647468208128' - x-ms-file-last-write-time: - - '2022-05-17T07:45:46.4322032Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 9360205630214331821*16806597623465298468 x-ms-meta-cat: - hat x-ms-meta-foo: - bar - x-ms-server-encrypted: - - 'true' x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 200 message: OK - request: body: null headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - CommandName: - - storage directory delete Connection: - keep-alive Content-Length: - '0' - ParameterSetName: - - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Tue, 17 May 2022 07:45:49 GMT + - Wed, 25 May 2022 02:14:03 GMT x-ms-version: - - '2021-06-08' + - '2018-11-09' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -2190,11 +1927,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:48 GMT + - Wed, 25 May 2022 02:14:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2018-11-09' status: code: 202 message: Accepted @@ -2202,7 +1939,7 @@ interactions: body: null headers: Accept: - - application/xml + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2214,11 +1951,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 17 May 2022 07:45:50 GMT + - Wed, 25 May 2022 02:14:04 GMT x-ms-version: - - '2021-06-08' + - '2019-07-07' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -2228,11 +1965,11 @@ interactions: content-length: - '0' date: - - Tue, 17 May 2022 07:45:49 GMT + - Wed, 25 May 2022 02:14:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2021-06-08' + - '2019-07-07' status: code: 202 message: Accepted diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml deleted file mode 100644 index 273eb9ec19b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml +++ /dev/null @@ -1,355 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - storage account keys list - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g --query -o - User-Agent: - - AZURECLI/2.29.1 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.9.6 (Windows-10-10.0.19043-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-file-handle-rg/providers/Microsoft.Storage/storageAccounts/testfilehandlesa/listKeys?api-version=2021-09-01&$expand=kerb - response: - body: - string: '{"keys":[{"creationTime":"2021-11-02T02:22:24.9147695Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2021-11-02T02:22:24.9147695Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' - headers: - cache-control: - - no-cache - content-length: - - '380' - content-type: - - application/json - date: - - Tue, 02 Nov 2021 04:53:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:40 GMT - x-ms-recursive: - - 'True' - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=listhandles - response: - body: - string: "\uFEFF117235056741Book1.csv115292854148126474240975492463043857651310.0.0.4:48444Tue, - 02 Nov 2021 04:52:58 GMT117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, - 02 Nov 2021 04:53:02 GMT117235056739dir1/testjson.json1614097143324003532813835128424026341376975492463043857651310.0.0.4:48444Tue, - 02 Nov 2021 04:52:58 GMT117235122273dir1/testjson.json1614097143324003532813835128424026341376934967095353095322510.0.0.4:35508Tue, - 02 Nov 2021 04:53:02 GMT" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:39 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:41 GMT - x-ms-recursive: - - 'True' - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1?comp=listhandles - response: - body: - string: "\uFEFF117235056739dir1/testjson.json1614097143324003532813835128424026341376975492463043857651310.0.0.4:48444Tue, - 02 Nov 2021 04:52:58 GMT117235122273dir1/testjson.json1614097143324003532813835128424026341376934967095353095322510.0.0.4:35508Tue, - 02 Nov 2021 04:53:02 GMT" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:40 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:42 GMT - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=listhandles - response: - body: - string: "\uFEFF117235056741Book1.csv115292854148126474240975492463043857651310.0.0.4:48444Tue, - 02 Nov 2021 04:52:58 GMT117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, - 02 Nov 2021 04:53:02 GMT" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:41 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:43 GMT - x-ms-handle-id: - - '117235056741' - x-ms-version: - - '2018-11-09' - method: PUT - uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=forceclosehandles - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 02 Nov 2021 04:53:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-number-of-handles-closed: - - '1' - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:45 GMT - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=listhandles - response: - body: - string: "\uFEFF117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, - 02 Nov 2021 04:53:02 GMT" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:43 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:46 GMT - x-ms-handle-id: - - '*' - x-ms-recursive: - - 'True' - x-ms-version: - - '2018-11-09' - method: PUT - uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1?comp=forceclosehandles - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 02 Nov 2021 04:53:45 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-number-of-handles-closed: - - '2' - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:47 GMT - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1/testjson.json?comp=listhandles - response: - body: - string: "\uFEFF" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:48 GMT - x-ms-handle-id: - - '*' - x-ms-recursive: - - 'True' - x-ms-version: - - '2018-11-09' - method: PUT - uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=forceclosehandles - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 02 Nov 2021 04:53:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-number-of-handles-closed: - - '1' - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -- request: - body: null - headers: - Connection: - - keep-alive - User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 - x-ms-date: - - Tue, 02 Nov 2021 04:53:49 GMT - x-ms-recursive: - - 'True' - x-ms-version: - - '2018-11-09' - method: GET - uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=listhandles - response: - body: - string: "\uFEFF" - headers: - content-type: - - application/xml - date: - - Tue, 02 Nov 2021 04:53:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2018-11-09' - status: - code: 200 - message: OK -version: 1 From 0550abd4d2b937bb46a665eb4c641c591659d1d7 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 25 May 2022 11:14:10 +0800 Subject: [PATCH 05/16] fix checks --- .../cli/command_modules/storage/_params.py | 6 +- .../test_storage_file_copy_scenario.yaml | 232 +++-- ...t_storage_file_copy_snapshot_scenario.yaml | 218 +++-- .../test_storage_file_main_scenario.yaml | 881 ++++++++++++------ 4 files changed, 860 insertions(+), 477 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index 35a2959b1e7..ea3631907e6 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1773,13 +1773,13 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem for scope in ['create', 'delete', 'show', 'exists', 'metadata show', 'metadata update']: with self.argument_context(f'storage directory {scope}') as c: - c.extra('share_name', share_name_type, required=True) + c.extra('s_name', share_name_type, required=True) c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") c.extra('directory_path', directory_type, options_list=('--name', '-n'), required=True) c.extra('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int) with self.argument_context('storage directory list') as c: - c.extra('share_name', share_name_type, required=True) + c.extra('s_name', share_name_type, required=True) c.extra('directory_path', directory_type, options_list=('--name', '-n')) c.argument('exclude_extended_info', help='Specify to exclude "timestamps", "Etag", "Attributes", "PermissionKey" info from response') @@ -1840,7 +1840,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage file list') as c: from .completers import dir_path_completer - c.extra('share_name', share_name_type, required=True) + c.extra('s_name', share_name_type, required=True) c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") c.argument('directory_name', options_list=('--path', '-p'), help='The directory path within the file share.', completer=dir_path_completer) diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml index acbd2527fe5..2151a5c9ca2 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T02:10:28.2026650Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:10:28.2026650Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T03:09:29.0958572Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:09:29.0958572Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 02:10:49 GMT + - Wed, 25 May 2022 03:09:52 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11997' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:10:49 GMT + - Wed, 25 May 2022 03:09:52 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:10:50 GMT + - Wed, 25 May 2022 03:09:53 GMT etag: - - '"0x8DA3DF3CA5AFD08"' + - '"0x8DA3DFC0A68D443"' last-modified: - - Wed, 25 May 2022 02:10:50 GMT + - Wed, 25 May 2022 03:09:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -107,11 +107,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:10:50 GMT + - Wed, 25 May 2022 03:09:54 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -121,31 +121,47 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:10:52 GMT + - Wed, 25 May 2022 03:09:55 GMT etag: - - '"0x8DA3DF3CBBE4732"' + - '"0x8DA3DFC0BDD2122"' last-modified: - - Wed, 25 May 2022 02:10:53 GMT + - Wed, 25 May 2022 03:09:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:10:52 GMT + - Wed, 25 May 2022 03:09:56 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-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir1?restype=directory response: @@ -155,33 +171,63 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:10:56 GMT + - Wed, 25 May 2022 03:09:57 GMT etag: - - '"0x8DA3DF3CDDF7B93"' + - '"0x8DA3DFC0CE55C4A"' last-modified: - - Wed, 25 May 2022 02:10:56 GMT + - Wed, 25 May 2022 03:09:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:09:58.3757386Z' + x-ms-file-creation-time: + - '2022-05-25T03:09:58.3757386Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2022-05-25T03:09:58.3757386Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 411590639256172274*7885070203114414459 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:10:56 GMT + - Wed, 25 May 2022 03:09:58 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-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004/dir2?restype=directory response: @@ -191,17 +237,31 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:10:57 GMT + - Wed, 25 May 2022 03:09:59 GMT etag: - - '"0x8DA3DF3CECF5B7D"' + - '"0x8DA3DFC0DC1E058"' last-modified: - - Wed, 25 May 2022 02:10:58 GMT + - Wed, 25 May 2022 03:09:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:09:59.8209112Z' + x-ms-file-creation-time: + - '2022-05-25T03:09:59.8209112Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2022-05-25T03:09:59.8209112Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 411590639256172274*7885070203114414459 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created @@ -213,11 +273,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-length: - '524288' x-ms-date: - - Wed, 25 May 2022 02:10:57 GMT + - Wed, 25 May 2022 03:09:59 GMT x-ms-type: - file x-ms-version: @@ -231,11 +291,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:10:58 GMT + - Wed, 25 May 2022 03:10:01 GMT etag: - - '"0x8DA3DF3CFA01F90"' + - '"0x8DA3DFC0ECE6E25"' last-modified: - - Wed, 25 May 2022 02:10:59 GMT + - Wed, 25 May 2022 03:10:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -254,9 +314,9 @@ interactions: Content-Length: - '106' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:10:59 GMT + - Wed, 25 May 2022 03:10:01 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -274,11 +334,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Wed, 25 May 2022 02:11:00 GMT + - Wed, 25 May 2022 03:10:03 GMT etag: - - '"0x8DA3DF3D0BDBF34"' + - '"0x8DA3DFC102BF62E"' last-modified: - - Wed, 25 May 2022 02:11:01 GMT + - Wed, 25 May 2022 03:10:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -294,9 +354,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:11:01 GMT + - Wed, 25 May 2022 03:10:03 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -310,11 +370,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:11:01 GMT + - Wed, 25 May 2022 03:10:06 GMT etag: - - '"0x8DA3DF3D0BDBF34"' + - '"0x8DA3DFC102BF62E"' last-modified: - - Wed, 25 May 2022 02:11:01 GMT + - Wed, 25 May 2022 03:10:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -334,11 +394,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt + - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt x-ms-date: - - Wed, 25 May 2022 02:11:02 GMT + - Wed, 25 May 2022 03:10:05 GMT x-ms-version: - '2018-11-09' method: PUT @@ -350,15 +410,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:03 GMT + - Wed, 25 May 2022 03:10:07 GMT etag: - - '"0x8DA3DF3D2936EA0"' + - '"0x8DA3DFC1284A97E"' last-modified: - - Wed, 25 May 2022 02:11:04 GMT + - Wed, 25 May 2022 03:10:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - a4a0811c-1aec-4d21-a547-22c8226f5670 + - 854361fa-d32d-4f0b-b54d-eb4a9953c40d x-ms-copy-status: - success x-ms-version: @@ -372,9 +432,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:11:04 GMT + - Wed, 25 May 2022 03:10:07 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -388,21 +448,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:11:05 GMT + - Wed, 25 May 2022 03:10:09 GMT etag: - - '"0x8DA3DF3D2936EA0"' + - '"0x8DA3DFC1284A97E"' last-modified: - - Wed, 25 May 2022 02:11:04 GMT + - Wed, 25 May 2022 03:10:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 02:11:04 GMT + - Wed, 25 May 2022 03:10:07 GMT x-ms-copy-id: - - a4a0811c-1aec-4d21-a547-22c8226f5670 + - 854361fa-d32d-4f0b-b54d-eb4a9953c40d x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt + - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -422,11 +482,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt + - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt x-ms-date: - - Wed, 25 May 2022 02:11:05 GMT + - Wed, 25 May 2022 03:10:09 GMT x-ms-version: - '2018-11-09' method: PUT @@ -438,15 +498,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:06 GMT + - Wed, 25 May 2022 03:10:10 GMT etag: - - '"0x8DA3DF3D42E4110"' + - '"0x8DA3DFC14641FC1"' last-modified: - - Wed, 25 May 2022 02:11:07 GMT + - Wed, 25 May 2022 03:10:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 367aa370-ba3b-4d60-9597-7d1db05d3a11 + - 99f5d8f9-d9b0-4227-989c-34e71404e641 x-ms-copy-status: - success x-ms-version: @@ -460,9 +520,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:11:06 GMT + - Wed, 25 May 2022 03:10:10 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -476,21 +536,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:11:08 GMT + - Wed, 25 May 2022 03:10:11 GMT etag: - - '"0x8DA3DF3D42E4110"' + - '"0x8DA3DFC14641FC1"' last-modified: - - Wed, 25 May 2022 02:11:07 GMT + - Wed, 25 May 2022 03:10:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 02:11:07 GMT + - Wed, 25 May 2022 03:10:10 GMT x-ms-copy-id: - - 367aa370-ba3b-4d60-9597-7d1db05d3a11 + - 99f5d8f9-d9b0-4227-989c-34e71404e641 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1/source_file.txt + - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -510,11 +570,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitestlljc36e6ttdr5mr4t.file.core.windows.net/sharetmxkrngzapgoo5wrgey/dir1%5Csource_file.txt + - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1%5Csource_file.txt x-ms-date: - - Wed, 25 May 2022 02:11:08 GMT + - Wed, 25 May 2022 03:10:12 GMT x-ms-version: - '2018-11-09' method: PUT @@ -526,15 +586,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:09 GMT + - Wed, 25 May 2022 03:10:14 GMT etag: - - '"0x8DA3DF3D5B56782"' + - '"0x8DA3DFC165C98BC"' last-modified: - - Wed, 25 May 2022 02:11:09 GMT + - Wed, 25 May 2022 03:10:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 0e89a2ae-4b24-49c5-b9eb-d5bc9eca3fb2 + - 57efa1e9-4ec3-490b-a87e-6bec86fc1ef5 x-ms-copy-status: - success x-ms-version: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml index 19673dab20f..62f45c90326 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T02:11:26.6720065Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:11:26.6720065Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T03:10:28.8309098Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:10:28.8309098Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 02:11:48 GMT + - Wed, 25 May 2022 03:10:52 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:11:49 GMT + - Wed, 25 May 2022 03:10:53 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:51 GMT + - Wed, 25 May 2022 03:10:55 GMT etag: - - '"0x8DA3DF3EE6990E7"' + - '"0x8DA3DFC2F22DD69"' last-modified: - - Wed, 25 May 2022 02:11:51 GMT + - Wed, 25 May 2022 03:10:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -107,11 +107,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:11:50 GMT + - Wed, 25 May 2022 03:10:55 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -121,31 +121,47 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:52 GMT + - Wed, 25 May 2022 03:10:59 GMT etag: - - '"0x8DA3DF3EF3857E0"' + - '"0x8DA3DFC3147883B"' last-modified: - - Wed, 25 May 2022 02:11:52 GMT + - Wed, 25 May 2022 03:10:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:11:52 GMT + - Wed, 25 May 2022 03:10:59 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-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir1?restype=directory response: @@ -155,33 +171,63 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:53 GMT + - Wed, 25 May 2022 03:11:00 GMT etag: - - '"0x8DA3DF3EFF97C9F"' + - '"0x8DA3DFC3295F583"' last-modified: - - Wed, 25 May 2022 02:11:53 GMT + - Wed, 25 May 2022 03:11:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:11:01.6087939Z' + x-ms-file-creation-time: + - '2022-05-25T03:11:01.6087939Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2022-05-25T03:11:01.6087939Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9992747389588068979*16318363191589490170 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:11:53 GMT + - Wed, 25 May 2022 03:11:01 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-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004/dir2?restype=directory response: @@ -191,17 +237,31 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:54 GMT + - Wed, 25 May 2022 03:11:02 GMT etag: - - '"0x8DA3DF3F0BD9A6C"' + - '"0x8DA3DFC335F4204"' last-modified: - - Wed, 25 May 2022 02:11:55 GMT + - Wed, 25 May 2022 03:11:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:11:02.9280260Z' + x-ms-file-creation-time: + - '2022-05-25T03:11:02.9280260Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2022-05-25T03:11:02.9280260Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9992747389588068979*16318363191589490170 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created @@ -213,11 +273,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-length: - '524288' x-ms-date: - - Wed, 25 May 2022 02:11:54 GMT + - Wed, 25 May 2022 03:11:02 GMT x-ms-type: - file x-ms-version: @@ -231,11 +291,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:11:56 GMT + - Wed, 25 May 2022 03:11:04 GMT etag: - - '"0x8DA3DF3F190AA31"' + - '"0x8DA3DFC34431763"' last-modified: - - Wed, 25 May 2022 02:11:56 GMT + - Wed, 25 May 2022 03:11:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -254,9 +314,9 @@ interactions: Content-Length: - '106' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:11:56 GMT + - Wed, 25 May 2022 03:11:03 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -274,11 +334,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Wed, 25 May 2022 02:11:57 GMT + - Wed, 25 May 2022 03:11:05 GMT etag: - - '"0x8DA3DF3F277B436"' + - '"0x8DA3DFC353A71E8"' last-modified: - - Wed, 25 May 2022 02:11:58 GMT + - Wed, 25 May 2022 03:11:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -294,9 +354,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:11:57 GMT + - Wed, 25 May 2022 03:11:07 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -310,11 +370,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:11:58 GMT + - Wed, 25 May 2022 03:11:08 GMT etag: - - '"0x8DA3DF3F277B436"' + - '"0x8DA3DFC353A71E8"' last-modified: - - Wed, 25 May 2022 02:11:58 GMT + - Wed, 25 May 2022 03:11:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -330,7 +390,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -342,11 +402,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:11:59 GMT + - Wed, 25 May 2022 03:11:08 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=snapshot response: @@ -356,17 +416,17 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:00 GMT + - Wed, 25 May 2022 03:11:09 GMT etag: - - '"0x8DA3DF3EE6990E7"' + - '"0x8DA3DFC2F22DD69"' last-modified: - - Wed, 25 May 2022 02:11:51 GMT + - Wed, 25 May 2022 03:10:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2022-05-25T02:12:00.0000000Z' + - '2022-05-25T03:11:10.0000000Z' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -378,9 +438,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:12:00 GMT + - Wed, 25 May 2022 03:11:10 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -392,7 +452,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:01 GMT + - Wed, 25 May 2022 03:11:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -406,9 +466,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:12:01 GMT + - Wed, 25 May 2022 03:11:11 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -418,7 +478,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 02:12:02 GMT + - Wed, 25 May 2022 03:11:12 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -438,11 +498,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitestjraeyugur6egq6ogt.file.core.windows.net/sharewk5uple3ewsxesfvahm/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T02:12:00.0000000Z + - https://clitestnhqujofrycqbtrf5t.file.core.windows.net/sharez66h7c6yc5wuqqjiyia/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T03:11:10.0000000Z x-ms-date: - - Wed, 25 May 2022 02:12:03 GMT + - Wed, 25 May 2022 03:11:13 GMT x-ms-version: - '2018-11-09' method: PUT @@ -454,15 +514,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:04 GMT + - Wed, 25 May 2022 03:11:14 GMT etag: - - '"0x8DA3DF3F68774E1"' + - '"0x8DA3DFC3AB41057"' last-modified: - - Wed, 25 May 2022 02:12:04 GMT + - Wed, 25 May 2022 03:11:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 987cc27b-4c61-4798-82df-31cc6004ab28 + - edb1ff51-37c1-4e5f-9001-c6c804d22418 x-ms-copy-status: - success x-ms-version: @@ -476,9 +536,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:12:04 GMT + - Wed, 25 May 2022 03:11:14 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -492,21 +552,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:12:05 GMT + - Wed, 25 May 2022 03:11:16 GMT etag: - - '"0x8DA3DF3F68774E1"' + - '"0x8DA3DFC3AB41057"' last-modified: - - Wed, 25 May 2022 02:12:04 GMT + - Wed, 25 May 2022 03:11:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 02:12:04 GMT + - Wed, 25 May 2022 03:11:15 GMT x-ms-copy-id: - - 987cc27b-4c61-4798-82df-31cc6004ab28 + - edb1ff51-37c1-4e5f-9001-c6c804d22418 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestjraeyugur6egq6ogt.file.core.windows.net/sharewk5uple3ewsxesfvahm/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T02:12:00.0000000Z + - https://clitestnhqujofrycqbtrf5t.file.core.windows.net/sharez66h7c6yc5wuqqjiyia/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T03:11:10.0000000Z x-ms-copy-status: - success x-ms-server-encrypted: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index 67c71c39e60..293a1e88f68 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T02:12:24.8290071Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T02:12:24.8290071Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T03:11:30.5035480Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:11:30.5035480Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 02:12:47 GMT + - Wed, 25 May 2022 03:11:52 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11997' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:46 GMT + - Wed, 25 May 2022 03:11:52 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:47 GMT + - Wed, 25 May 2022 03:11:57 GMT etag: - - '"0x8DA3DF410A12F33"' + - '"0x8DA3DFC53FA40B7"' last-modified: - - Wed, 25 May 2022 02:12:48 GMT + - Wed, 25 May 2022 03:11:57 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -107,9 +107,9 @@ interactions: ParameterSetName: - -n --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:48 GMT + - Wed, 25 May 2022 03:11:57 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -117,7 +117,7 @@ interactions: x-ms-meta-foo: - bar x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -127,15 +127,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:49 GMT + - Wed, 25 May 2022 03:12:00 GMT etag: - - '"0x8DA3DF411681893"' + - '"0x8DA3DFC5610E08E"' last-modified: - - Wed, 25 May 2022 02:12:49 GMT + - Wed, 25 May 2022 03:12:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -143,7 +143,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -153,11 +153,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:49 GMT + - Wed, 25 May 2022 03:12:00 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -167,21 +167,25 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:51 GMT + - Wed, 25 May 2022 03:12:01 GMT etag: - - '"0x8DA3DF410A12F33"' + - '"0x8DA3DFC53FA40B7"' last-modified: - - Wed, 25 May 2022 02:12:48 GMT + - Wed, 25 May 2022 03:11:57 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -189,7 +193,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -199,11 +203,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:51 GMT + - Wed, 25 May 2022 03:12:02 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -213,17 +217,21 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:52 GMT + - Wed, 25 May 2022 03:12:03 GMT etag: - - '"0x8DA3DF411681893"' + - '"0x8DA3DFC5610E08E"' last-modified: - - Wed, 25 May 2022 02:12:49 GMT + - Wed, 25 May 2022 03:12:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-cat: - hat x-ms-meta-foo: @@ -231,7 +239,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -249,31 +257,31 @@ interactions: ParameterSetName: - --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:52 GMT + - Wed, 25 May 2022 03:12:03 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/?maxresults=5000&include=&comp=list + uri: https://clitest000002.file.core.windows.net/?comp=list&maxresults=5000&include= response: body: string: "\uFEFF5000share000003Wed, - 25 May 2022 02:12:48 GMT\"0x8DA3DF410A12F33\"5120$account-encryption-keyfalseshare000004Wed, - 25 May 2022 02:12:49 GMT\"0x8DA3DF411681893\"5120$account-encryption-keyfalse\"0x8DA3DFC53FA40B7\"unlockedavailable5120$account-encryption-keyfalseshare000004Wed, + 25 May 2022 03:12:01 GMT\"0x8DA3DFC5610E08E\"unlockedavailable5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Wed, 25 May 2022 02:12:53 GMT + - Wed, 25 May 2022 03:12:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -281,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -293,15 +301,15 @@ interactions: ParameterSetName: - --name --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:54 GMT + - Wed, 25 May 2022 03:12:04 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -311,15 +319,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:55 GMT + - Wed, 25 May 2022 03:12:05 GMT etag: - - '"0x8DA3DF415058587"' + - '"0x8DA3DFC591EB153"' last-modified: - - Wed, 25 May 2022 02:12:56 GMT + - Wed, 25 May 2022 03:12:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -327,7 +335,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -337,11 +345,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:55 GMT + - Wed, 25 May 2022 03:12:06 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -351,17 +359,21 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:57 GMT + - Wed, 25 May 2022 03:12:07 GMT etag: - - '"0x8DA3DF415058587"' + - '"0x8DA3DFC591EB153"' last-modified: - - Wed, 25 May 2022 02:12:56 GMT + - Wed, 25 May 2022 03:12:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-a: - b x-ms-meta-c: @@ -369,7 +381,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -377,7 +389,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -389,11 +401,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:57 GMT + - Wed, 25 May 2022 03:12:07 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -403,15 +415,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:58 GMT + - Wed, 25 May 2022 03:12:10 GMT etag: - - '"0x8DA3DF416C014C7"' + - '"0x8DA3DFC5BE7EF66"' last-modified: - - Wed, 25 May 2022 02:12:58 GMT + - Wed, 25 May 2022 03:12:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -419,7 +431,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -429,11 +441,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:12:58 GMT + - Wed, 25 May 2022 03:12:10 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -443,21 +455,25 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:12:59 GMT + - Wed, 25 May 2022 03:12:12 GMT etag: - - '"0x8DA3DF416C014C7"' + - '"0x8DA3DFC5BE7EF66"' last-modified: - - Wed, 25 May 2022 02:12:58 GMT + - Wed, 25 May 2022 03:12:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -465,7 +481,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -477,13 +493,13 @@ interactions: ParameterSetName: - --name --quota --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:00 GMT + - Wed, 25 May 2022 03:12:12 GMT x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=properties response: @@ -493,15 +509,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:01 GMT + - Wed, 25 May 2022 03:12:14 GMT etag: - - '"0x8DA3DF418899602"' + - '"0x8DA3DFC5DD1C3E2"' last-modified: - - Wed, 25 May 2022 02:13:01 GMT + - Wed, 25 May 2022 03:12:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -509,7 +525,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -519,11 +535,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:01 GMT + - Wed, 25 May 2022 03:12:13 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -533,21 +549,25 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:02 GMT + - Wed, 25 May 2022 03:12:15 GMT etag: - - '"0x8DA3DF418899602"' + - '"0x8DA3DFC5DD1C3E2"' last-modified: - - Wed, 25 May 2022 02:13:01 GMT + - Wed, 25 May 2022 03:12:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -559,11 +579,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-length: - '131072' x-ms-date: - - Wed, 25 May 2022 02:13:03 GMT + - Wed, 25 May 2022 03:12:15 GMT x-ms-type: - file x-ms-version: @@ -577,11 +597,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:04 GMT + - Wed, 25 May 2022 03:12:16 GMT etag: - - '"0x8DA3DF41A3A0A52"' + - '"0x8DA3DFC5FE71D63"' last-modified: - - Wed, 25 May 2022 02:13:04 GMT + - Wed, 25 May 2022 03:12:17 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -599,9 +619,9 @@ interactions: Content-Length: - '131072' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:04 GMT + - Wed, 25 May 2022 03:12:17 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -619,11 +639,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:18 GMT etag: - - '"0x8DA3DF41AD2FF69"' + - '"0x8DA3DFC60BF8369"' last-modified: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -639,9 +659,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:18 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -655,11 +675,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:06 GMT + - Wed, 25 May 2022 03:12:20 GMT etag: - - '"0x8DA3DF41AD2FF69"' + - '"0x8DA3DFC60BF8369"' last-modified: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -677,9 +697,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:06 GMT + - Wed, 25 May 2022 03:12:20 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -699,11 +719,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:09 GMT + - Wed, 25 May 2022 03:12:21 GMT etag: - - '"0x8DA3DF41AD2FF69"' + - '"0x8DA3DFC60BF8369"' last-modified: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -721,9 +741,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:11 GMT + - Wed, 25 May 2022 03:12:22 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -743,11 +763,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:12 GMT + - Wed, 25 May 2022 03:12:23 GMT etag: - - '"0x8DA3DF41AD2FF69"' + - '"0x8DA3DFC60BF8369"' last-modified: - - Wed, 25 May 2022 02:13:05 GMT + - Wed, 25 May 2022 03:12:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -767,11 +787,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-length: - '1234' x-ms-date: - - Wed, 25 May 2022 02:13:12 GMT + - Wed, 25 May 2022 03:12:23 GMT x-ms-version: - '2018-11-09' method: PUT @@ -783,11 +803,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:13 GMT + - Wed, 25 May 2022 03:12:24 GMT etag: - - '"0x8DA3DF4200AE52A"' + - '"0x8DA3DFC6485C1FE"' last-modified: - - Wed, 25 May 2022 02:13:14 GMT + - Wed, 25 May 2022 03:12:25 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -803,9 +823,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:14 GMT + - Wed, 25 May 2022 03:12:25 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -819,11 +839,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:15 GMT + - Wed, 25 May 2022 03:12:26 GMT etag: - - '"0x8DA3DF4200AE52A"' + - '"0x8DA3DFC6485C1FE"' last-modified: - - Wed, 25 May 2022 02:13:14 GMT + - Wed, 25 May 2022 03:12:25 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -843,9 +863,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:15 GMT + - Wed, 25 May 2022 03:12:26 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -861,11 +881,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:18 GMT + - Wed, 25 May 2022 03:12:27 GMT etag: - - '"0x8DA3DF422F0F56B"' + - '"0x8DA3DFC660A2D5C"' last-modified: - - Wed, 25 May 2022 02:13:19 GMT + - Wed, 25 May 2022 03:12:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -881,9 +901,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:19 GMT + - Wed, 25 May 2022 03:12:29 GMT x-ms-version: - '2018-11-09' method: GET @@ -895,11 +915,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:22 GMT + - Wed, 25 May 2022 03:12:30 GMT etag: - - '"0x8DA3DF422F0F56B"' + - '"0x8DA3DFC660A2D5C"' last-modified: - - Wed, 25 May 2022 02:13:19 GMT + - Wed, 25 May 2022 03:12:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -919,9 +939,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:22 GMT + - Wed, 25 May 2022 03:12:30 GMT x-ms-version: - '2018-11-09' method: PUT @@ -933,11 +953,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:23 GMT + - Wed, 25 May 2022 03:12:31 GMT etag: - - '"0x8DA3DF4259217A3"' + - '"0x8DA3DFC68632EB8"' last-modified: - - Wed, 25 May 2022 02:13:23 GMT + - Wed, 25 May 2022 03:12:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -953,9 +973,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:23 GMT + - Wed, 25 May 2022 03:12:31 GMT x-ms-version: - '2018-11-09' method: GET @@ -967,11 +987,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:24 GMT + - Wed, 25 May 2022 03:12:32 GMT etag: - - '"0x8DA3DF4259217A3"' + - '"0x8DA3DFC68632EB8"' last-modified: - - Wed, 25 May 2022 02:13:23 GMT + - Wed, 25 May 2022 03:12:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -982,33 +1002,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:24 GMT + - Wed, 25 May 2022 03:12:32 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000sample_file.bin123450000sample_file.bin1383512842402634137612342022-05-25T03:12:17.6381283Z2022-05-25T03:12:17.6381283Z2022-05-25T03:12:25.3886974Z2022-05-25T03:12:31.8729912ZWed, + 25 May 2022 03:12:31 GMT\"0x8DA3DFC68632EB8\"Archive13050030376168889093*2142566896740299659" headers: content-type: - application/xml date: - - Wed, 25 May 2022 02:13:25 GMT + - Wed, 25 May 2022 03:12:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1018,9 +1047,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:26 GMT + - Wed, 25 May 2022 03:12:34 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1034,11 +1063,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:27 GMT + - Wed, 25 May 2022 03:12:36 GMT etag: - - '"0x8DA3DF4259217A3"' + - '"0x8DA3DFC68632EB8"' last-modified: - - Wed, 25 May 2022 02:13:23 GMT + - Wed, 25 May 2022 03:12:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1058,11 +1087,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-type: - test/type x-ms-date: - - Wed, 25 May 2022 02:13:27 GMT + - Wed, 25 May 2022 03:12:36 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1074,11 +1103,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:28 GMT + - Wed, 25 May 2022 03:12:38 GMT etag: - - '"0x8DA3DF428B4B2C3"' + - '"0x8DA3DFC6C4CA7A5"' last-modified: - - Wed, 25 May 2022 02:13:29 GMT + - Wed, 25 May 2022 03:12:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1094,9 +1123,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:28 GMT + - Wed, 25 May 2022 03:12:38 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1110,11 +1139,11 @@ interactions: content-type: - test/type date: - - Wed, 25 May 2022 02:13:29 GMT + - Wed, 25 May 2022 03:12:39 GMT etag: - - '"0x8DA3DF428B4B2C3"' + - '"0x8DA3DFC6C4CA7A5"' last-modified: - - Wed, 25 May 2022 02:13:29 GMT + - Wed, 25 May 2022 03:12:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1134,9 +1163,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:30 GMT + - Wed, 25 May 2022 03:12:39 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1148,7 +1177,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:31 GMT + - Wed, 25 May 2022 03:12:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1162,9 +1191,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:31 GMT + - Wed, 25 May 2022 03:12:41 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1174,7 +1203,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 02:13:32 GMT + - Wed, 25 May 2022 03:12:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1189,16 +1218,32 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:33 GMT - x-ms-version: - - '2018-11-09' + - Wed, 25 May 2022 03:12:42 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-version: + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1208,64 +1253,95 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:34 GMT + - Wed, 25 May 2022 03:12:44 GMT etag: - - '"0x8DA3DF42C2784DF"' + - '"0x8DA3DFC6FD5710D"' last-modified: - - Wed, 25 May 2022 02:13:34 GMT + - Wed, 25 May 2022 03:12:44 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-creation-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory list Connection: - keep-alive + ParameterSetName: + - -s --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:34 GMT + - Wed, 25 May 2022 03:12:44 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFFdir0000050dir000005138350932396542525442022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509ZWed, + 25 May 2022 03:12:44 GMT\"0x8DA3DFC6FD5710D\"Directory8457983500571436034*2142566896740299659" headers: content-type: - application/xml date: - - Wed, 25 May 2022 02:13:35 GMT + - Wed, 25 May 2022 03:12:44 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:35 GMT + - Wed, 25 May 2022 03:12:45 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1275,37 +1351,59 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:36 GMT + - Wed, 25 May 2022 03:12:46 GMT etag: - - '"0x8DA3DF42C2784DF"' + - '"0x8DA3DFC6FD5710D"' last-modified: - - Wed, 25 May 2022 02:13:34 GMT + - Wed, 25 May 2022 03:12:44 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-creation-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -s -n --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:37 GMT + - Wed, 25 May 2022 03:12:47 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1315,33 +1413,41 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:38 GMT + - Wed, 25 May 2022 03:12:48 GMT etag: - - '"0x8DA3DF42E708214"' + - '"0x8DA3DFC72914479"' last-modified: - - Wed, 25 May 2022 02:13:38 GMT + - Wed, 25 May 2022 03:12:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:38 GMT + - Wed, 25 May 2022 03:12:48 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1349,33 +1455,57 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:39 GMT + - Wed, 25 May 2022 03:12:49 GMT etag: - - '"0x8DA3DF42E708214"' + - '"0x8DA3DFC72914479"' last-modified: - - Wed, 25 May 2022 02:13:38 GMT + - Wed, 25 May 2022 03:12:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:12:48.9522297Z' + x-ms-file-creation-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-meta-a: - b x-ms-meta-c: - d + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:39 GMT + - Wed, 25 May 2022 03:12:50 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1385,13 +1515,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:41 GMT + - Wed, 25 May 2022 03:12:51 GMT etag: - - '"0x8DA3DF42E708214"' + - '"0x8DA3DFC72914479"' last-modified: - - Wed, 25 May 2022 02:13:38 GMT + - Wed, 25 May 2022 03:12:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:12:48.9522297Z' + x-ms-file-creation-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-meta-a: - b x-ms-meta-c: @@ -1399,23 +1543,31 @@ interactions: x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:41 GMT + - Wed, 25 May 2022 03:12:52 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1425,33 +1577,41 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:42 GMT + - Wed, 25 May 2022 03:12:53 GMT etag: - - '"0x8DA3DF431034E81"' + - '"0x8DA3DFC7590F4BC"' last-modified: - - Wed, 25 May 2022 02:13:42 GMT + - Wed, 25 May 2022 03:12:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:42 GMT + - Wed, 25 May 2022 03:12:54 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1459,15 +1619,31 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:43 GMT + - Wed, 25 May 2022 03:12:56 GMT etag: - - '"0x8DA3DF431034E81"' + - '"0x8DA3DFC7590F4BC"' last-modified: - - Wed, 25 May 2022 02:13:42 GMT + - Wed, 25 May 2022 03:12:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:12:53.9833532Z' + x-ms-file-creation-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-25T03:12:44.3658509Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 + x-ms-server-encrypted: + - 'false' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1479,11 +1655,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-content-length: - '65536' x-ms-date: - - Wed, 25 May 2022 02:13:44 GMT + - Wed, 25 May 2022 03:12:57 GMT x-ms-type: - file x-ms-version: @@ -1497,11 +1673,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:44 GMT + - Wed, 25 May 2022 03:12:58 GMT etag: - - '"0x8DA3DF432983185"' + - '"0x8DA3DFC78B2F514"' last-modified: - - Wed, 25 May 2022 02:13:45 GMT + - Wed, 25 May 2022 03:12:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1519,9 +1695,9 @@ interactions: Content-Length: - '65536' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:45 GMT + - Wed, 25 May 2022 03:12:58 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1539,11 +1715,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Wed, 25 May 2022 02:13:45 GMT + - Wed, 25 May 2022 03:12:59 GMT etag: - - '"0x8DA3DF433362EEE"' + - '"0x8DA3DFC7930291D"' last-modified: - - Wed, 25 May 2022 02:13:46 GMT + - Wed, 25 May 2022 03:13:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1559,9 +1735,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:46 GMT + - Wed, 25 May 2022 03:12:59 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1575,11 +1751,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:48 GMT + - Wed, 25 May 2022 03:13:00 GMT etag: - - '"0x8DA3DF433362EEE"' + - '"0x8DA3DFC7930291D"' last-modified: - - Wed, 25 May 2022 02:13:46 GMT + - Wed, 25 May 2022 03:13:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1597,9 +1773,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:47 GMT + - Wed, 25 May 2022 03:13:01 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1619,11 +1795,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 02:13:49 GMT + - Wed, 25 May 2022 03:13:02 GMT etag: - - '"0x8DA3DF433362EEE"' + - '"0x8DA3DFC7930291D"' last-modified: - - Wed, 25 May 2022 02:13:46 GMT + - Wed, 25 May 2022 03:13:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1638,33 +1814,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s -p --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:49 GMT + - Wed, 25 May 2022 03:13:03 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000testfile.txt65536500013835093239654252544testfile.txt13835163608398430208655362022-05-25T03:12:59.2393492Z2022-05-25T03:12:59.2393492Z2022-05-25T03:13:00.0598813Z2022-05-25T03:13:00.0598813ZWed, + 25 May 2022 03:13:00 GMT\"0x8DA3DFC7930291D\"Archive13050030376168889093*2142566896740299659" headers: content-type: - application/xml date: - - Wed, 25 May 2022 02:13:51 GMT + - Wed, 25 May 2022 03:13:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1682,11 +1867,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:51 GMT + - Wed, 25 May 2022 03:13:04 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=stats response: @@ -1696,13 +1881,13 @@ interactions: content-type: - application/xml date: - - Wed, 25 May 2022 02:13:55 GMT + - Wed, 25 May 2022 03:13:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -1714,9 +1899,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:55 GMT + - Wed, 25 May 2022 03:13:06 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1728,7 +1913,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:13:56 GMT + - Wed, 25 May 2022 03:13:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1742,9 +1927,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 02:13:56 GMT + - Wed, 25 May 2022 03:13:07 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1754,7 +1939,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 02:13:58 GMT + - Wed, 25 May 2022 03:13:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1769,16 +1954,24 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:58 GMT + - Wed, 25 May 2022 03:13:09 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1788,64 +1981,88 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:14:00 GMT + - Wed, 25 May 2022 03:13:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:13:59 GMT + - Wed, 25 May 2022 03:13:11 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:c7c9f8a1-901a-0016-2fdd-6f230b000000\nTime:2022-05-25T02:14:01.2564025Z" + specified resource does not exist.\nRequestId:05946d37-401a-00a8-48e5-6fc4cd000000\nTime:2022-05-25T03:13:13.7349282Z" headers: content-length: - '221' content-type: - application/xml date: - - Wed, 25 May 2022 02:14:00 GMT + - Wed, 25 May 2022 03:13:12 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: - ResourceNotFound x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 404 message: The specified resource does not exist. - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:14:00 GMT + - Wed, 25 May 2022 03:13:13 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-meta-cat: - hat x-ms-meta-foo: - bar x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1855,33 +2072,55 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:14:02 GMT + - Wed, 25 May 2022 03:13:15 GMT etag: - - '"0x8DA3DF43CAA338F"' + - '"0x8DA3DFC8241ADE7"' last-modified: - - Wed, 25 May 2022 02:14:02 GMT + - Wed, 25 May 2022 03:13:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-creation-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:14:02 GMT + - Wed, 25 May 2022 03:13:15 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: body: string: '' @@ -1889,35 +2128,59 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:14:02 GMT + - Wed, 25 May 2022 03:13:16 GMT etag: - - '"0x8DA3DF43CAA338F"' + - '"0x8DA3DFC8241ADE7"' last-modified: - - Wed, 25 May 2022 02:14:02 GMT + - Wed, 25 May 2022 03:13:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-creation-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-25T03:13:15.2741863Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 8457983500571436034*2142566896740299659 x-ms-meta-cat: - hat x-ms-meta-foo: - bar + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:14:03 GMT + - Wed, 25 May 2022 03:13:17 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1927,11 +2190,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:14:04 GMT + - Wed, 25 May 2022 03:13:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted @@ -1939,7 +2202,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -1951,11 +2214,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 02:14:04 GMT + - Wed, 25 May 2022 03:13:19 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -1965,11 +2228,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 02:14:05 GMT + - Wed, 25 May 2022 03:13:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 202 message: Accepted From 75c60eccaab1f8bbda47f473d8d5fc05a8ba805f Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 25 May 2022 11:36:54 +0800 Subject: [PATCH 06/16] fix checks --- ...st_storage_file_share_handle_scenario.yaml | 355 ++++++++++++++++++ 1 file changed, 355 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml new file mode 100644 index 00000000000..273eb9ec19b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_share_handle_scenario.yaml @@ -0,0 +1,355 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account keys list + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --query -o + User-Agent: + - AZURECLI/2.29.1 azsdk-python-azure-mgmt-storage/19.0.0 Python/3.9.6 (Windows-10-10.0.19043-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-file-handle-rg/providers/Microsoft.Storage/storageAccounts/testfilehandlesa/listKeys?api-version=2021-09-01&$expand=kerb + response: + body: + string: '{"keys":[{"creationTime":"2021-11-02T02:22:24.9147695Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2021-11-02T02:22:24.9147695Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + headers: + cache-control: + - no-cache + content-length: + - '380' + content-type: + - application/json + date: + - Tue, 02 Nov 2021 04:53:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:40 GMT + x-ms-recursive: + - 'True' + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=listhandles + response: + body: + string: "\uFEFF117235056741Book1.csv115292854148126474240975492463043857651310.0.0.4:48444Tue, + 02 Nov 2021 04:52:58 GMT117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, + 02 Nov 2021 04:53:02 GMT117235056739dir1/testjson.json1614097143324003532813835128424026341376975492463043857651310.0.0.4:48444Tue, + 02 Nov 2021 04:52:58 GMT117235122273dir1/testjson.json1614097143324003532813835128424026341376934967095353095322510.0.0.4:35508Tue, + 02 Nov 2021 04:53:02 GMT" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:39 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:41 GMT + x-ms-recursive: + - 'True' + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1?comp=listhandles + response: + body: + string: "\uFEFF117235056739dir1/testjson.json1614097143324003532813835128424026341376975492463043857651310.0.0.4:48444Tue, + 02 Nov 2021 04:52:58 GMT117235122273dir1/testjson.json1614097143324003532813835128424026341376934967095353095322510.0.0.4:35508Tue, + 02 Nov 2021 04:53:02 GMT" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:40 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:42 GMT + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=listhandles + response: + body: + string: "\uFEFF117235056741Book1.csv115292854148126474240975492463043857651310.0.0.4:48444Tue, + 02 Nov 2021 04:52:58 GMT117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, + 02 Nov 2021 04:53:02 GMT" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:41 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:43 GMT + x-ms-handle-id: + - '117235056741' + x-ms-version: + - '2018-11-09' + method: PUT + uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=forceclosehandles + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 02 Nov 2021 04:53:42 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-number-of-handles-closed: + - '1' + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:45 GMT + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share/Book1.csv?comp=listhandles + response: + body: + string: "\uFEFF117235122275Book1.csv115292854148126474240934967095353095322510.0.0.4:35508Tue, + 02 Nov 2021 04:53:02 GMT" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:43 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:46 GMT + x-ms-handle-id: + - '*' + x-ms-recursive: + - 'True' + x-ms-version: + - '2018-11-09' + method: PUT + uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1?comp=forceclosehandles + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 02 Nov 2021 04:53:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-number-of-handles-closed: + - '2' + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:47 GMT + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share/dir1/testjson.json?comp=listhandles + response: + body: + string: "\uFEFF" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:46 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:48 GMT + x-ms-handle-id: + - '*' + x-ms-recursive: + - 'True' + x-ms-version: + - '2018-11-09' + method: PUT + uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=forceclosehandles + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 02 Nov 2021 04:53:47 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-number-of-handles-closed: + - '1' + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Windows 10) AZURECLI/2.29.1 + x-ms-date: + - Tue, 02 Nov 2021 04:53:49 GMT + x-ms-recursive: + - 'True' + x-ms-version: + - '2018-11-09' + method: GET + uri: https://testfilehandlesa.file.core.windows.net/file-share?comp=listhandles + response: + body: + string: "\uFEFF" + headers: + content-type: + - application/xml + date: + - Tue, 02 Nov 2021 04:53:49 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-11-09' + status: + code: 200 + message: OK +version: 1 From 3fd14a788c624f3e89df152db1b30a6e87447b68 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 25 May 2022 11:38:06 +0800 Subject: [PATCH 07/16] fix checks --- 1.bin | Bin 8 -> 0 bytes 2.bin | Bin 10 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 1.bin delete mode 100644 2.bin diff --git a/1.bin b/1.bin deleted file mode 100644 index ca9053508c38ce794241a50d536ce683f2f662f4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8 PcmezW&yazafr|kE5MTmE diff --git a/2.bin b/2.bin deleted file mode 100644 index 964b2eca42668df366e2c30242c09c19e745f81d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10 RcmezW&yYcnftP`c0RR=!0(1ZX From b14965d73ddf2e518aa01f4fb585a1e0f17d01a9 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 25 May 2022 16:14:09 +0800 Subject: [PATCH 08/16] fix checks --- .../test_storage_file_copy_scenario.yaml | 142 +++--- ...t_storage_file_copy_snapshot_scenario.yaml | 122 ++--- .../test_storage_file_main_scenario.yaml | 430 +++++++++--------- 3 files changed, 347 insertions(+), 347 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml index 2151a5c9ca2..370622c0670 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T03:09:29.0958572Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:09:29.0958572Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T08:05:53.2427959Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T08:05:53.2427959Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 03:09:52 GMT + - Wed, 25 May 2022 08:06:16 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' status: code: 200 message: OK @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:09:52 GMT + - Wed, 25 May 2022 08:06:16 GMT x-ms-version: - '2021-06-08' method: PUT @@ -79,11 +79,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:09:53 GMT + - Wed, 25 May 2022 08:06:19 GMT etag: - - '"0x8DA3DFC0A68D443"' + - '"0x8DA3E25733AD13B"' last-modified: - - Wed, 25 May 2022 03:09:54 GMT + - Wed, 25 May 2022 08:06:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -109,7 +109,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:09:54 GMT + - Wed, 25 May 2022 08:06:19 GMT x-ms-version: - '2021-06-08' method: PUT @@ -121,11 +121,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:09:55 GMT + - Wed, 25 May 2022 08:06:20 GMT etag: - - '"0x8DA3DFC0BDD2122"' + - '"0x8DA3E2574605F39"' last-modified: - - Wed, 25 May 2022 03:09:56 GMT + - Wed, 25 May 2022 08:06:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -151,7 +151,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:09:56 GMT + - Wed, 25 May 2022 08:06:21 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -171,27 +171,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:09:57 GMT + - Wed, 25 May 2022 08:06:22 GMT etag: - - '"0x8DA3DFC0CE55C4A"' + - '"0x8DA3E257573CE2F"' last-modified: - - Wed, 25 May 2022 03:09:58 GMT + - Wed, 25 May 2022 08:06:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:09:58.3757386Z' + - '2022-05-25T08:06:23.1582255Z' x-ms-file-creation-time: - - '2022-05-25T03:09:58.3757386Z' + - '2022-05-25T08:06:23.1582255Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2022-05-25T03:09:58.3757386Z' + - '2022-05-25T08:06:23.1582255Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 411590639256172274*7885070203114414459 + - 9777544645027345074*17252154509526508859 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:09:58 GMT + - Wed, 25 May 2022 08:06:22 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -237,27 +237,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:09:59 GMT + - Wed, 25 May 2022 08:06:24 GMT etag: - - '"0x8DA3DFC0DC1E058"' + - '"0x8DA3E257698E9EB"' last-modified: - - Wed, 25 May 2022 03:09:59 GMT + - Wed, 25 May 2022 08:06:25 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:09:59.8209112Z' + - '2022-05-25T08:06:25.0791403Z' x-ms-file-creation-time: - - '2022-05-25T03:09:59.8209112Z' + - '2022-05-25T08:06:25.0791403Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2022-05-25T03:09:59.8209112Z' + - '2022-05-25T08:06:25.0791403Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 411590639256172274*7885070203114414459 + - 9777544645027345074*17252154509526508859 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -277,7 +277,7 @@ interactions: x-ms-content-length: - '524288' x-ms-date: - - Wed, 25 May 2022 03:09:59 GMT + - Wed, 25 May 2022 08:06:24 GMT x-ms-type: - file x-ms-version: @@ -291,11 +291,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:01 GMT + - Wed, 25 May 2022 08:06:26 GMT etag: - - '"0x8DA3DFC0ECE6E25"' + - '"0x8DA3E2577AE026E"' last-modified: - - Wed, 25 May 2022 03:10:01 GMT + - Wed, 25 May 2022 08:06:26 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -316,7 +316,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:10:01 GMT + - Wed, 25 May 2022 08:06:26 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -334,11 +334,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Wed, 25 May 2022 03:10:03 GMT + - Wed, 25 May 2022 08:06:29 GMT etag: - - '"0x8DA3DFC102BF62E"' + - '"0x8DA3E2579B56E2F"' last-modified: - - Wed, 25 May 2022 03:10:03 GMT + - Wed, 25 May 2022 08:06:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -356,7 +356,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:10:03 GMT + - Wed, 25 May 2022 08:06:30 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -370,11 +370,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:10:06 GMT + - Wed, 25 May 2022 08:06:31 GMT etag: - - '"0x8DA3DFC102BF62E"' + - '"0x8DA3E2579B56E2F"' last-modified: - - Wed, 25 May 2022 03:10:03 GMT + - Wed, 25 May 2022 08:06:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -396,9 +396,9 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt + - https://clitest36uwn5vwiu55vlaaq.file.core.windows.net/sharepjlox5hsuiqwkxun4ko/dir1/source_file.txt x-ms-date: - - Wed, 25 May 2022 03:10:05 GMT + - Wed, 25 May 2022 08:06:31 GMT x-ms-version: - '2018-11-09' method: PUT @@ -410,15 +410,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:07 GMT + - Wed, 25 May 2022 08:06:33 GMT etag: - - '"0x8DA3DFC1284A97E"' + - '"0x8DA3E257BA70B30"' last-modified: - - Wed, 25 May 2022 03:10:07 GMT + - Wed, 25 May 2022 08:06:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 854361fa-d32d-4f0b-b54d-eb4a9953c40d + - fc5c7793-8184-48dc-a80c-9808e085c53a x-ms-copy-status: - success x-ms-version: @@ -434,7 +434,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:10:07 GMT + - Wed, 25 May 2022 08:06:33 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -448,21 +448,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:10:09 GMT + - Wed, 25 May 2022 08:06:35 GMT etag: - - '"0x8DA3DFC1284A97E"' + - '"0x8DA3E257BA70B30"' last-modified: - - Wed, 25 May 2022 03:10:07 GMT + - Wed, 25 May 2022 08:06:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 03:10:07 GMT + - Wed, 25 May 2022 08:06:33 GMT x-ms-copy-id: - - 854361fa-d32d-4f0b-b54d-eb4a9953c40d + - fc5c7793-8184-48dc-a80c-9808e085c53a x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt + - https://clitest36uwn5vwiu55vlaaq.file.core.windows.net/sharepjlox5hsuiqwkxun4ko/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -484,9 +484,9 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt + - https://clitest36uwn5vwiu55vlaaq.file.core.windows.net/sharepjlox5hsuiqwkxun4ko/dir1/source_file.txt x-ms-date: - - Wed, 25 May 2022 03:10:09 GMT + - Wed, 25 May 2022 08:06:35 GMT x-ms-version: - '2018-11-09' method: PUT @@ -498,15 +498,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:10 GMT + - Wed, 25 May 2022 08:06:37 GMT etag: - - '"0x8DA3DFC14641FC1"' + - '"0x8DA3E257DEC3A5A"' last-modified: - - Wed, 25 May 2022 03:10:10 GMT + - Wed, 25 May 2022 08:06:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 99f5d8f9-d9b0-4227-989c-34e71404e641 + - dd33d78f-b407-4004-b3f5-78ce25ba5013 x-ms-copy-status: - success x-ms-version: @@ -522,7 +522,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:10:10 GMT + - Wed, 25 May 2022 08:06:37 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -536,21 +536,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:10:11 GMT + - Wed, 25 May 2022 08:06:38 GMT etag: - - '"0x8DA3DFC14641FC1"' + - '"0x8DA3E257DEC3A5A"' last-modified: - - Wed, 25 May 2022 03:10:10 GMT + - Wed, 25 May 2022 08:06:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 03:10:10 GMT + - Wed, 25 May 2022 08:06:37 GMT x-ms-copy-id: - - 99f5d8f9-d9b0-4227-989c-34e71404e641 + - dd33d78f-b407-4004-b3f5-78ce25ba5013 x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1/source_file.txt + - https://clitest36uwn5vwiu55vlaaq.file.core.windows.net/sharepjlox5hsuiqwkxun4ko/dir1/source_file.txt x-ms-copy-status: - success x-ms-server-encrypted: @@ -572,9 +572,9 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitesttplbmfx2daab6ci7w.file.core.windows.net/sharear4xzfaefcbj6g3k4i3/dir1%5Csource_file.txt + - https://clitest36uwn5vwiu55vlaaq.file.core.windows.net/sharepjlox5hsuiqwkxun4ko/dir1%5Csource_file.txt x-ms-date: - - Wed, 25 May 2022 03:10:12 GMT + - Wed, 25 May 2022 08:06:39 GMT x-ms-version: - '2018-11-09' method: PUT @@ -586,15 +586,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:14 GMT + - Wed, 25 May 2022 08:06:42 GMT etag: - - '"0x8DA3DFC165C98BC"' + - '"0x8DA3E258102CC0A"' last-modified: - - Wed, 25 May 2022 03:10:14 GMT + - Wed, 25 May 2022 08:06:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 57efa1e9-4ec3-490b-a87e-6bec86fc1ef5 + - 5d7798e9-98d2-40d8-85f3-a48e39745c40 x-ms-copy-status: - success x-ms-version: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml index 62f45c90326..37e4cb57149 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_copy_snapshot_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T03:10:28.8309098Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:10:28.8309098Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T08:12:54.2317935Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T08:12:54.2317935Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 03:10:52 GMT + - Wed, 25 May 2022 08:13:20 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:10:53 GMT + - Wed, 25 May 2022 08:13:20 GMT x-ms-version: - '2021-06-08' method: PUT @@ -79,11 +79,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:55 GMT + - Wed, 25 May 2022 08:13:21 GMT etag: - - '"0x8DA3DFC2F22DD69"' + - '"0x8DA3E266F1F77D7"' last-modified: - - Wed, 25 May 2022 03:10:55 GMT + - Wed, 25 May 2022 08:13:22 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -109,7 +109,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:10:55 GMT + - Wed, 25 May 2022 08:13:21 GMT x-ms-version: - '2021-06-08' method: PUT @@ -121,11 +121,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:10:59 GMT + - Wed, 25 May 2022 08:13:23 GMT etag: - - '"0x8DA3DFC3147883B"' + - '"0x8DA3E266FDF0042"' last-modified: - - Wed, 25 May 2022 03:10:59 GMT + - Wed, 25 May 2022 08:13:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -151,7 +151,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:10:59 GMT + - Wed, 25 May 2022 08:13:23 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -171,27 +171,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:00 GMT + - Wed, 25 May 2022 08:13:23 GMT etag: - - '"0x8DA3DFC3295F583"' + - '"0x8DA3E2670ACA320"' last-modified: - - Wed, 25 May 2022 03:11:01 GMT + - Wed, 25 May 2022 08:13:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:11:01.6087939Z' + - '2022-05-25T08:13:24.6388000Z' x-ms-file-creation-time: - - '2022-05-25T03:11:01.6087939Z' + - '2022-05-25T08:13:24.6388000Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2022-05-25T03:11:01.6087939Z' + - '2022-05-25T08:13:24.6388000Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 9992747389588068979*16318363191589490170 + - 3474146845411549549*6407918814139725540 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:11:01 GMT + - Wed, 25 May 2022 08:13:24 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -237,27 +237,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:02 GMT + - Wed, 25 May 2022 08:13:25 GMT etag: - - '"0x8DA3DFC335F4204"' + - '"0x8DA3E2671688423"' last-modified: - - Wed, 25 May 2022 03:11:02 GMT + - Wed, 25 May 2022 08:13:25 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:11:02.9280260Z' + - '2022-05-25T08:13:25.8700835Z' x-ms-file-creation-time: - - '2022-05-25T03:11:02.9280260Z' + - '2022-05-25T08:13:25.8700835Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2022-05-25T03:11:02.9280260Z' + - '2022-05-25T08:13:25.8700835Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 9992747389588068979*16318363191589490170 + - 3474146845411549549*6407918814139725540 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -277,7 +277,7 @@ interactions: x-ms-content-length: - '524288' x-ms-date: - - Wed, 25 May 2022 03:11:02 GMT + - Wed, 25 May 2022 08:13:25 GMT x-ms-type: - file x-ms-version: @@ -291,11 +291,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:04 GMT + - Wed, 25 May 2022 08:13:27 GMT etag: - - '"0x8DA3DFC34431763"' + - '"0x8DA3E26722A57AB"' last-modified: - - Wed, 25 May 2022 03:11:04 GMT + - Wed, 25 May 2022 08:13:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -316,7 +316,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:11:03 GMT + - Wed, 25 May 2022 08:13:26 GMT x-ms-range: - bytes=0-524287 x-ms-version: @@ -334,11 +334,11 @@ interactions: content-md5: - WQcVkAmdId1DmJZZIzi/lQ== date: - - Wed, 25 May 2022 03:11:05 GMT + - Wed, 25 May 2022 08:13:28 GMT etag: - - '"0x8DA3DFC353A71E8"' + - '"0x8DA3E26732470E6"' last-modified: - - Wed, 25 May 2022 03:11:06 GMT + - Wed, 25 May 2022 08:13:28 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -356,7 +356,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:11:07 GMT + - Wed, 25 May 2022 08:13:28 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -370,11 +370,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:11:08 GMT + - Wed, 25 May 2022 08:13:29 GMT etag: - - '"0x8DA3DFC353A71E8"' + - '"0x8DA3E26732470E6"' last-modified: - - Wed, 25 May 2022 03:11:06 GMT + - Wed, 25 May 2022 08:13:28 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -404,7 +404,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:11:08 GMT + - Wed, 25 May 2022 08:13:29 GMT x-ms-version: - '2021-06-08' method: PUT @@ -416,15 +416,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:09 GMT + - Wed, 25 May 2022 08:13:30 GMT etag: - - '"0x8DA3DFC2F22DD69"' + - '"0x8DA3E266F1F77D7"' last-modified: - - Wed, 25 May 2022 03:10:55 GMT + - Wed, 25 May 2022 08:13:22 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-snapshot: - - '2022-05-25T03:11:10.0000000Z' + - '2022-05-25T08:13:31.0000000Z' x-ms-version: - '2021-06-08' status: @@ -440,7 +440,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:11:10 GMT + - Wed, 25 May 2022 08:13:31 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -452,7 +452,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:11 GMT + - Wed, 25 May 2022 08:13:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -468,7 +468,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:11:11 GMT + - Wed, 25 May 2022 08:13:32 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -478,7 +478,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 03:11:12 GMT + - Wed, 25 May 2022 08:13:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -500,9 +500,9 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-copy-source: - - https://clitestnhqujofrycqbtrf5t.file.core.windows.net/sharez66h7c6yc5wuqqjiyia/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T03:11:10.0000000Z + - https://clitestqwbhxsoizrxegsjry.file.core.windows.net/share5627ybhjhtfdpbrs4mb/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T08:13:31.0000000Z x-ms-date: - - Wed, 25 May 2022 03:11:13 GMT + - Wed, 25 May 2022 08:13:34 GMT x-ms-version: - '2018-11-09' method: PUT @@ -514,15 +514,15 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:14 GMT + - Wed, 25 May 2022 08:13:39 GMT etag: - - '"0x8DA3DFC3AB41057"' + - '"0x8DA3E2679C91C7C"' last-modified: - - Wed, 25 May 2022 03:11:15 GMT + - Wed, 25 May 2022 08:13:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - edb1ff51-37c1-4e5f-9001-c6c804d22418 + - ada2a549-6dc9-4c6c-9c77-a664306bd90b x-ms-copy-status: - success x-ms-version: @@ -538,7 +538,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:11:14 GMT + - Wed, 25 May 2022 08:13:39 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -552,21 +552,21 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:11:16 GMT + - Wed, 25 May 2022 08:13:42 GMT etag: - - '"0x8DA3DFC3AB41057"' + - '"0x8DA3E2679C91C7C"' last-modified: - - Wed, 25 May 2022 03:11:15 GMT + - Wed, 25 May 2022 08:13:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 25 May 2022 03:11:15 GMT + - Wed, 25 May 2022 08:13:39 GMT x-ms-copy-id: - - edb1ff51-37c1-4e5f-9001-c6c804d22418 + - ada2a549-6dc9-4c6c-9c77-a664306bd90b x-ms-copy-progress: - 524288/524288 x-ms-copy-source: - - https://clitestnhqujofrycqbtrf5t.file.core.windows.net/sharez66h7c6yc5wuqqjiyia/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T03:11:10.0000000Z + - https://clitestqwbhxsoizrxegsjry.file.core.windows.net/share5627ybhjhtfdpbrs4mb/dir1%5Csource_file.txt?sharesnapshot=2022-05-25T08:13:31.0000000Z x-ms-copy-status: - success x-ms-server-encrypted: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index 293a1e88f68..3018157ed9e 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-25T03:11:30.5035480Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T03:11:30.5035480Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-25T08:09:55.7764438Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-25T08:09:55.7764438Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 25 May 2022 03:11:52 GMT + - Wed, 25 May 2022 08:10:17 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' status: code: 200 message: OK @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:11:52 GMT + - Wed, 25 May 2022 08:10:18 GMT x-ms-version: - '2021-06-08' method: PUT @@ -79,11 +79,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:11:57 GMT + - Wed, 25 May 2022 08:10:19 GMT etag: - - '"0x8DA3DFC53FA40B7"' + - '"0x8DA3E2602953345"' last-modified: - - Wed, 25 May 2022 03:11:57 GMT + - Wed, 25 May 2022 08:10:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -109,7 +109,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:11:57 GMT + - Wed, 25 May 2022 08:10:19 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -127,11 +127,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:00 GMT + - Wed, 25 May 2022 08:10:20 GMT etag: - - '"0x8DA3DFC5610E08E"' + - '"0x8DA3E2603662EC3"' last-modified: - - Wed, 25 May 2022 03:12:01 GMT + - Wed, 25 May 2022 08:10:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -155,7 +155,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:00 GMT + - Wed, 25 May 2022 08:10:21 GMT x-ms-version: - '2021-06-08' method: GET @@ -167,11 +167,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:01 GMT + - Wed, 25 May 2022 08:10:22 GMT etag: - - '"0x8DA3DFC53FA40B7"' + - '"0x8DA3E2602953345"' last-modified: - - Wed, 25 May 2022 03:11:57 GMT + - Wed, 25 May 2022 08:10:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -205,7 +205,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:02 GMT + - Wed, 25 May 2022 08:10:22 GMT x-ms-version: - '2021-06-08' method: GET @@ -217,11 +217,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:03 GMT + - Wed, 25 May 2022 08:10:24 GMT etag: - - '"0x8DA3DFC5610E08E"' + - '"0x8DA3E2603662EC3"' last-modified: - - Wed, 25 May 2022 03:12:01 GMT + - Wed, 25 May 2022 08:10:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -259,7 +259,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:03 GMT + - Wed, 25 May 2022 08:10:23 GMT x-ms-version: - '2021-06-08' method: GET @@ -267,15 +267,15 @@ interactions: response: body: string: "\uFEFF5000share000003Wed, - 25 May 2022 03:11:57 GMT\"0x8DA3DFC53FA40B7\"unlockedavailable5120$account-encryption-keyfalseshare000004Wed, - 25 May 2022 03:12:01 GMT\"0x8DA3DFC5610E08E\"unlockedavailable5120$account-encryption-keyfalse5000share000004Wed, + 25 May 2022 08:10:21 GMT\"0x8DA3E2603662EC3\"unlockedavailable5120$account-encryption-keyfalseshare000003Wed, + 25 May 2022 08:10:19 GMT\"0x8DA3E2602953345\"unlockedavailable5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Wed, 25 May 2022 03:12:04 GMT + - Wed, 25 May 2022 08:10:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -303,7 +303,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:04 GMT + - Wed, 25 May 2022 08:10:25 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -319,11 +319,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:05 GMT + - Wed, 25 May 2022 08:10:26 GMT etag: - - '"0x8DA3DFC591EB153"' + - '"0x8DA3E2606E77763"' last-modified: - - Wed, 25 May 2022 03:12:06 GMT + - Wed, 25 May 2022 08:10:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -347,7 +347,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:06 GMT + - Wed, 25 May 2022 08:10:26 GMT x-ms-version: - '2021-06-08' method: GET @@ -359,11 +359,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:07 GMT + - Wed, 25 May 2022 08:10:28 GMT etag: - - '"0x8DA3DFC591EB153"' + - '"0x8DA3E2606E77763"' last-modified: - - Wed, 25 May 2022 03:12:06 GMT + - Wed, 25 May 2022 08:10:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -403,7 +403,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:07 GMT + - Wed, 25 May 2022 08:10:28 GMT x-ms-version: - '2021-06-08' method: PUT @@ -415,11 +415,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:10 GMT + - Wed, 25 May 2022 08:10:29 GMT etag: - - '"0x8DA3DFC5BE7EF66"' + - '"0x8DA3E260870016F"' last-modified: - - Wed, 25 May 2022 03:12:10 GMT + - Wed, 25 May 2022 08:10:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -443,7 +443,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:10 GMT + - Wed, 25 May 2022 08:10:29 GMT x-ms-version: - '2021-06-08' method: GET @@ -455,11 +455,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:12 GMT + - Wed, 25 May 2022 08:10:30 GMT etag: - - '"0x8DA3DFC5BE7EF66"' + - '"0x8DA3E260870016F"' last-modified: - - Wed, 25 May 2022 03:12:10 GMT + - Wed, 25 May 2022 08:10:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -495,7 +495,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:12 GMT + - Wed, 25 May 2022 08:10:30 GMT x-ms-share-quota: - '3' x-ms-version: @@ -509,11 +509,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:14 GMT + - Wed, 25 May 2022 08:10:31 GMT etag: - - '"0x8DA3DFC5DD1C3E2"' + - '"0x8DA3E260A19A340"' last-modified: - - Wed, 25 May 2022 03:12:14 GMT + - Wed, 25 May 2022 08:10:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -537,7 +537,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:13 GMT + - Wed, 25 May 2022 08:10:32 GMT x-ms-version: - '2021-06-08' method: GET @@ -549,11 +549,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:15 GMT + - Wed, 25 May 2022 08:10:33 GMT etag: - - '"0x8DA3DFC5DD1C3E2"' + - '"0x8DA3E260A19A340"' last-modified: - - Wed, 25 May 2022 03:12:14 GMT + - Wed, 25 May 2022 08:10:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: @@ -583,7 +583,7 @@ interactions: x-ms-content-length: - '131072' x-ms-date: - - Wed, 25 May 2022 03:12:15 GMT + - Wed, 25 May 2022 08:10:33 GMT x-ms-type: - file x-ms-version: @@ -597,11 +597,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:16 GMT + - Wed, 25 May 2022 08:10:35 GMT etag: - - '"0x8DA3DFC5FE71D63"' + - '"0x8DA3E260BD4C12C"' last-modified: - - Wed, 25 May 2022 03:12:17 GMT + - Wed, 25 May 2022 08:10:35 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -621,7 +621,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:17 GMT + - Wed, 25 May 2022 08:10:35 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -639,11 +639,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Wed, 25 May 2022 03:12:18 GMT + - Wed, 25 May 2022 08:10:38 GMT etag: - - '"0x8DA3DFC60BF8369"' + - '"0x8DA3E260DB5B9A8"' last-modified: - - Wed, 25 May 2022 03:12:19 GMT + - Wed, 25 May 2022 08:10:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -661,7 +661,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:18 GMT + - Wed, 25 May 2022 08:10:38 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -675,11 +675,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:12:20 GMT + - Wed, 25 May 2022 08:10:40 GMT etag: - - '"0x8DA3DFC60BF8369"' + - '"0x8DA3E260DB5B9A8"' last-modified: - - Wed, 25 May 2022 03:12:19 GMT + - Wed, 25 May 2022 08:10:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -699,7 +699,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:20 GMT + - Wed, 25 May 2022 08:10:41 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -719,11 +719,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:12:21 GMT + - Wed, 25 May 2022 08:10:43 GMT etag: - - '"0x8DA3DFC60BF8369"' + - '"0x8DA3E260DB5B9A8"' last-modified: - - Wed, 25 May 2022 03:12:19 GMT + - Wed, 25 May 2022 08:10:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -743,7 +743,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:22 GMT + - Wed, 25 May 2022 08:10:45 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -763,11 +763,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:12:23 GMT + - Wed, 25 May 2022 08:10:46 GMT etag: - - '"0x8DA3DFC60BF8369"' + - '"0x8DA3E260DB5B9A8"' last-modified: - - Wed, 25 May 2022 03:12:19 GMT + - Wed, 25 May 2022 08:10:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -791,7 +791,7 @@ interactions: x-ms-content-length: - '1234' x-ms-date: - - Wed, 25 May 2022 03:12:23 GMT + - Wed, 25 May 2022 08:10:46 GMT x-ms-version: - '2018-11-09' method: PUT @@ -803,11 +803,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:24 GMT + - Wed, 25 May 2022 08:10:49 GMT etag: - - '"0x8DA3DFC6485C1FE"' + - '"0x8DA3E261436D2C1"' last-modified: - - Wed, 25 May 2022 03:12:25 GMT + - Wed, 25 May 2022 08:10:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -825,7 +825,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:25 GMT + - Wed, 25 May 2022 08:10:49 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -839,11 +839,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:12:26 GMT + - Wed, 25 May 2022 08:10:50 GMT etag: - - '"0x8DA3DFC6485C1FE"' + - '"0x8DA3E261436D2C1"' last-modified: - - Wed, 25 May 2022 03:12:25 GMT + - Wed, 25 May 2022 08:10:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -865,7 +865,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:26 GMT + - Wed, 25 May 2022 08:10:50 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -881,11 +881,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:27 GMT + - Wed, 25 May 2022 08:10:52 GMT etag: - - '"0x8DA3DFC660A2D5C"' + - '"0x8DA3E261682B184"' last-modified: - - Wed, 25 May 2022 03:12:27 GMT + - Wed, 25 May 2022 08:10:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -903,7 +903,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:29 GMT + - Wed, 25 May 2022 08:10:53 GMT x-ms-version: - '2018-11-09' method: GET @@ -915,11 +915,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:30 GMT + - Wed, 25 May 2022 08:10:55 GMT etag: - - '"0x8DA3DFC660A2D5C"' + - '"0x8DA3E261682B184"' last-modified: - - Wed, 25 May 2022 03:12:27 GMT + - Wed, 25 May 2022 08:10:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -941,7 +941,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:30 GMT + - Wed, 25 May 2022 08:10:56 GMT x-ms-version: - '2018-11-09' method: PUT @@ -953,11 +953,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:31 GMT + - Wed, 25 May 2022 08:10:58 GMT etag: - - '"0x8DA3DFC68632EB8"' + - '"0x8DA3E26199480BD"' last-modified: - - Wed, 25 May 2022 03:12:31 GMT + - Wed, 25 May 2022 08:10:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -975,7 +975,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:31 GMT + - Wed, 25 May 2022 08:10:58 GMT x-ms-version: - '2018-11-09' method: GET @@ -987,11 +987,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:32 GMT + - Wed, 25 May 2022 08:10:59 GMT etag: - - '"0x8DA3DFC68632EB8"' + - '"0x8DA3E26199480BD"' last-modified: - - Wed, 25 May 2022 03:12:31 GMT + - Wed, 25 May 2022 08:10:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1015,7 +1015,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:32 GMT + - Wed, 25 May 2022 08:10:59 GMT x-ms-version: - '2021-06-08' method: GET @@ -1024,14 +1024,14 @@ interactions: body: string: "\uFEFF50000sample_file.bin1383512842402634137612342022-05-25T03:12:17.6381283Z2022-05-25T03:12:17.6381283Z2022-05-25T03:12:25.3886974Z2022-05-25T03:12:31.8729912ZWed, - 25 May 2022 03:12:31 GMT\"0x8DA3DFC68632EB8\"Archive13050030376168889093*214256689674029965950000sample_file.bin1383512842402634137612342022-05-25T08:10:35.4518316Z2022-05-25T08:10:35.4518316Z2022-05-25T08:10:49.5163073Z2022-05-25T08:10:58.5188541ZWed, + 25 May 2022 08:10:58 GMT\"0x8DA3E26199480BD\"Archive6457933238696059900*17383850929874750322" headers: content-type: - application/xml date: - - Wed, 25 May 2022 03:12:34 GMT + - Wed, 25 May 2022 08:11:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1049,7 +1049,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:34 GMT + - Wed, 25 May 2022 08:11:00 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1063,11 +1063,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:12:36 GMT + - Wed, 25 May 2022 08:11:02 GMT etag: - - '"0x8DA3DFC68632EB8"' + - '"0x8DA3E26199480BD"' last-modified: - - Wed, 25 May 2022 03:12:31 GMT + - Wed, 25 May 2022 08:10:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1091,7 +1091,7 @@ interactions: x-ms-content-type: - test/type x-ms-date: - - Wed, 25 May 2022 03:12:36 GMT + - Wed, 25 May 2022 08:11:02 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1103,11 +1103,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:38 GMT + - Wed, 25 May 2022 08:11:03 GMT etag: - - '"0x8DA3DFC6C4CA7A5"' + - '"0x8DA3E261CCBD37E"' last-modified: - - Wed, 25 May 2022 03:12:38 GMT + - Wed, 25 May 2022 08:11:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1125,7 +1125,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:38 GMT + - Wed, 25 May 2022 08:11:03 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1139,11 +1139,11 @@ interactions: content-type: - test/type date: - - Wed, 25 May 2022 03:12:39 GMT + - Wed, 25 May 2022 08:11:05 GMT etag: - - '"0x8DA3DFC6C4CA7A5"' + - '"0x8DA3E261CCBD37E"' last-modified: - - Wed, 25 May 2022 03:12:38 GMT + - Wed, 25 May 2022 08:11:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1165,7 +1165,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:39 GMT + - Wed, 25 May 2022 08:11:05 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1177,7 +1177,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:41 GMT + - Wed, 25 May 2022 08:11:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1193,7 +1193,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:41 GMT + - Wed, 25 May 2022 08:11:07 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1203,7 +1203,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 03:12:42 GMT + - Wed, 25 May 2022 08:11:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1233,7 +1233,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:42 GMT + - Wed, 25 May 2022 08:11:08 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1253,27 +1253,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:44 GMT + - Wed, 25 May 2022 08:11:09 GMT etag: - - '"0x8DA3DFC6FD5710D"' + - '"0x8DA3E26208F23EC"' last-modified: - - Wed, 25 May 2022 03:12:44 GMT + - Wed, 25 May 2022 08:11:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-creation-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1297,7 +1297,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:44 GMT + - Wed, 25 May 2022 08:11:09 GMT x-ms-version: - '2021-06-08' method: GET @@ -1306,14 +1306,14 @@ interactions: body: string: "\uFEFF0dir000005138350932396542525442022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509Z2022-05-25T03:12:44.3658509ZWed, - 25 May 2022 03:12:44 GMT\"0x8DA3DFC6FD5710D\"Directory8457983500571436034*21425668967402996590dir000005138350932396542525442022-05-25T08:11:10.2277612Z2022-05-25T08:11:10.2277612Z2022-05-25T08:11:10.2277612Z2022-05-25T08:11:10.2277612ZWed, + 25 May 2022 08:11:10 GMT\"0x8DA3E26208F23EC\"Directory11089267746202770683*17383850929874750322" headers: content-type: - application/xml date: - - Wed, 25 May 2022 03:12:44 GMT + - Wed, 25 May 2022 08:11:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1339,7 +1339,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:45 GMT + - Wed, 25 May 2022 08:11:11 GMT x-ms-version: - '2021-06-08' method: GET @@ -1351,27 +1351,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:46 GMT + - Wed, 25 May 2022 08:11:13 GMT etag: - - '"0x8DA3DFC6FD5710D"' + - '"0x8DA3E26208F23EC"' last-modified: - - Wed, 25 May 2022 03:12:44 GMT + - Wed, 25 May 2022 08:11:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-creation-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-server-encrypted: - 'true' x-ms-version: @@ -1397,7 +1397,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:47 GMT + - Wed, 25 May 2022 08:11:13 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -1413,11 +1413,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:48 GMT + - Wed, 25 May 2022 08:11:15 GMT etag: - - '"0x8DA3DFC72914479"' + - '"0x8DA3E2623BD2961"' last-modified: - - Wed, 25 May 2022 03:12:48 GMT + - Wed, 25 May 2022 08:11:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1443,7 +1443,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:48 GMT + - Wed, 25 May 2022 08:11:15 GMT x-ms-version: - '2021-06-08' method: GET @@ -1455,27 +1455,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:49 GMT + - Wed, 25 May 2022 08:11:16 GMT etag: - - '"0x8DA3DFC72914479"' + - '"0x8DA3E2623BD2961"' last-modified: - - Wed, 25 May 2022 03:12:48 GMT + - Wed, 25 May 2022 08:11:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:12:48.9522297Z' + - '2022-05-25T08:11:15.5625313Z' x-ms-file-creation-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-meta-a: - b x-ms-meta-c: @@ -1503,7 +1503,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:50 GMT + - Wed, 25 May 2022 08:11:16 GMT x-ms-version: - '2021-06-08' method: GET @@ -1515,27 +1515,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:51 GMT + - Wed, 25 May 2022 08:11:18 GMT etag: - - '"0x8DA3DFC72914479"' + - '"0x8DA3E2623BD2961"' last-modified: - - Wed, 25 May 2022 03:12:48 GMT + - Wed, 25 May 2022 08:11:15 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:12:48.9522297Z' + - '2022-05-25T08:11:15.5625313Z' x-ms-file-creation-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-meta-a: - b x-ms-meta-c: @@ -1565,7 +1565,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:52 GMT + - Wed, 25 May 2022 08:11:18 GMT x-ms-version: - '2021-06-08' method: PUT @@ -1577,11 +1577,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:53 GMT + - Wed, 25 May 2022 08:11:19 GMT etag: - - '"0x8DA3DFC7590F4BC"' + - '"0x8DA3E2626AC5AD1"' last-modified: - - Wed, 25 May 2022 03:12:53 GMT + - Wed, 25 May 2022 08:11:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1607,7 +1607,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:12:54 GMT + - Wed, 25 May 2022 08:11:20 GMT x-ms-version: - '2021-06-08' method: GET @@ -1619,27 +1619,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:56 GMT + - Wed, 25 May 2022 08:11:21 GMT etag: - - '"0x8DA3DFC7590F4BC"' + - '"0x8DA3E2626AC5AD1"' last-modified: - - Wed, 25 May 2022 03:12:53 GMT + - Wed, 25 May 2022 08:11:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:12:53.9833532Z' + - '2022-05-25T08:11:20.4855505Z' x-ms-file-creation-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2022-05-25T03:12:44.3658509Z' + - '2022-05-25T08:11:10.2277612Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-server-encrypted: - 'false' x-ms-version: @@ -1659,7 +1659,7 @@ interactions: x-ms-content-length: - '65536' x-ms-date: - - Wed, 25 May 2022 03:12:57 GMT + - Wed, 25 May 2022 08:11:21 GMT x-ms-type: - file x-ms-version: @@ -1673,11 +1673,11 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:12:58 GMT + - Wed, 25 May 2022 08:11:23 GMT etag: - - '"0x8DA3DFC78B2F514"' + - '"0x8DA3E262871E068"' last-modified: - - Wed, 25 May 2022 03:12:59 GMT + - Wed, 25 May 2022 08:11:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1697,7 +1697,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:58 GMT + - Wed, 25 May 2022 08:11:23 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1715,11 +1715,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Wed, 25 May 2022 03:12:59 GMT + - Wed, 25 May 2022 08:11:24 GMT etag: - - '"0x8DA3DFC7930291D"' + - '"0x8DA3E262914BDE9"' last-modified: - - Wed, 25 May 2022 03:13:00 GMT + - Wed, 25 May 2022 08:11:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1737,7 +1737,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:12:59 GMT + - Wed, 25 May 2022 08:11:24 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1751,11 +1751,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:13:00 GMT + - Wed, 25 May 2022 08:11:24 GMT etag: - - '"0x8DA3DFC7930291D"' + - '"0x8DA3E262914BDE9"' last-modified: - - Wed, 25 May 2022 03:13:00 GMT + - Wed, 25 May 2022 08:11:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1775,7 +1775,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:13:01 GMT + - Wed, 25 May 2022 08:11:25 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1795,11 +1795,11 @@ interactions: content-type: - application/octet-stream date: - - Wed, 25 May 2022 03:13:02 GMT + - Wed, 25 May 2022 08:11:26 GMT etag: - - '"0x8DA3DFC7930291D"' + - '"0x8DA3E262914BDE9"' last-modified: - - Wed, 25 May 2022 03:13:00 GMT + - Wed, 25 May 2022 08:11:24 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1827,7 +1827,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:03 GMT + - Wed, 25 May 2022 08:11:27 GMT x-ms-version: - '2021-06-08' method: GET @@ -1836,14 +1836,14 @@ interactions: body: string: "\uFEFF500013835093239654252544testfile.txt13835163608398430208655362022-05-25T03:12:59.2393492Z2022-05-25T03:12:59.2393492Z2022-05-25T03:13:00.0598813Z2022-05-25T03:13:00.0598813ZWed, - 25 May 2022 03:13:00 GMT\"0x8DA3DFC7930291D\"Archive13050030376168889093*2142566896740299659500013835093239654252544testfile.txt13835163608398430208655362022-05-25T08:11:23.4577512Z2022-05-25T08:11:23.4577512Z2022-05-25T08:11:24.5251049Z2022-05-25T08:11:24.5251049ZWed, + 25 May 2022 08:11:24 GMT\"0x8DA3E262914BDE9\"Archive6457933238696059900*17383850929874750322" headers: content-type: - application/xml date: - - Wed, 25 May 2022 03:13:04 GMT + - Wed, 25 May 2022 08:11:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1869,7 +1869,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:04 GMT + - Wed, 25 May 2022 08:11:28 GMT x-ms-version: - '2021-06-08' method: GET @@ -1881,7 +1881,7 @@ interactions: content-type: - application/xml date: - - Wed, 25 May 2022 03:13:05 GMT + - Wed, 25 May 2022 08:11:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1901,7 +1901,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:13:06 GMT + - Wed, 25 May 2022 08:11:30 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1913,7 +1913,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:06 GMT + - Wed, 25 May 2022 08:11:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1929,7 +1929,7 @@ interactions: User-Agent: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.37.0 x-ms-date: - - Wed, 25 May 2022 03:13:07 GMT + - Wed, 25 May 2022 08:11:31 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1939,7 +1939,7 @@ interactions: string: '' headers: date: - - Wed, 25 May 2022 03:13:08 GMT + - Wed, 25 May 2022 08:11:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1969,7 +1969,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:09 GMT + - Wed, 25 May 2022 08:11:33 GMT x-ms-version: - '2021-06-08' method: DELETE @@ -1981,7 +1981,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:10 GMT + - Wed, 25 May 2022 08:11:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -2005,7 +2005,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:11 GMT + - Wed, 25 May 2022 08:11:34 GMT x-ms-version: - '2021-06-08' method: GET @@ -2013,14 +2013,14 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:05946d37-401a-00a8-48e5-6fc4cd000000\nTime:2022-05-25T03:13:13.7349282Z" + specified resource does not exist.\nRequestId:56572cd6-301a-005e-1a0f-707534000000\nTime:2022-05-25T08:11:36.7863515Z" headers: content-length: - '221' content-type: - application/xml date: - - Wed, 25 May 2022 03:13:12 GMT + - Wed, 25 May 2022 08:11:36 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -2048,7 +2048,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:13 GMT + - Wed, 25 May 2022 08:11:36 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -2072,27 +2072,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:15 GMT + - Wed, 25 May 2022 08:11:37 GMT etag: - - '"0x8DA3DFC8241ADE7"' + - '"0x8DA3E2631639907"' last-modified: - - Wed, 25 May 2022 03:13:15 GMT + - Wed, 25 May 2022 08:11:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-creation-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-id: - '13835075647468208128' x-ms-file-last-write-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -2116,7 +2116,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:15 GMT + - Wed, 25 May 2022 08:11:38 GMT x-ms-version: - '2021-06-08' method: GET @@ -2128,27 +2128,27 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:16 GMT + - Wed, 25 May 2022 08:11:39 GMT etag: - - '"0x8DA3DFC8241ADE7"' + - '"0x8DA3E2631639907"' last-modified: - - Wed, 25 May 2022 03:13:15 GMT + - Wed, 25 May 2022 08:11:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-creation-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-id: - '13835075647468208128' x-ms-file-last-write-time: - - '2022-05-25T03:13:15.2741863Z' + - '2022-05-25T08:11:38.4636679Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 8457983500571436034*2142566896740299659 + - 11089267746202770683*17383850929874750322 x-ms-meta-cat: - hat x-ms-meta-foo: @@ -2178,7 +2178,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:17 GMT + - Wed, 25 May 2022 08:11:39 GMT x-ms-version: - '2021-06-08' method: DELETE @@ -2190,7 +2190,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:18 GMT + - Wed, 25 May 2022 08:11:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -2216,7 +2216,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Wed, 25 May 2022 03:13:19 GMT + - Wed, 25 May 2022 08:11:41 GMT x-ms-version: - '2021-06-08' method: DELETE @@ -2228,7 +2228,7 @@ interactions: content-length: - '0' date: - - Wed, 25 May 2022 03:13:20 GMT + - Wed, 25 May 2022 08:11:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: From 3d8f79a7372ac9f603c9f2d3777f980eb471ce38 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Thu, 26 May 2022 17:34:43 +0800 Subject: [PATCH 09/16] fix checks --- .../command_modules/storage/_transformers.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 8c2e7c897fc..13749941de5 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -415,23 +415,9 @@ def transform_acl_list_output_v2(result): def transform_acl_datetime(result): result = todict(result) if result['start']: - try: - result['start'] = result["start"].split('.')[0] - time = datetime.strptime(result['start'], '%Y-%m-%dT%H:%M:%S') - tz = pytz.timezone('UTC') - start = datetime.strftime(tz.localize(time), '%Y-%m-%dT%H:%M:%S%z') - result['start'] = start[0:22] + ':' + start[22:24] - except OverflowError: - pass + result['start'] = result["start"].split('.')[0] + '+00:00' if result['expiry']: - try: - result['expiry'] = result["expiry"].split('.')[0] - time = datetime.strptime(result['expiry'], '%Y-%m-%dT%H:%M:%S') - tz = pytz.timezone('UTC') - expiry = datetime.strftime(tz.localize(time), '%Y-%m-%dT%H:%M:%S%z') - result['expiry'] = expiry[0:22] + ':' + expiry[22:24] - except OverflowError: - pass + result['expiry'] = result["expiry"].split('.')[0] + '+00:00' return result From 8829ffd48a7ce9b1d2e51e57731499e3f4b40911 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Thu, 26 May 2022 17:49:22 +0800 Subject: [PATCH 10/16] fix checks --- .../azure/cli/command_modules/storage/_transformers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 13749941de5..732838922ef 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -5,10 +5,7 @@ import base64 -from datetime import datetime from uuid import UUID - -import pytz from dateutil import parser from knack.log import get_logger from knack.util import todict, to_camel_case From 04670fd2220b6c01c253a40e72a806b80e9b658e Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Tue, 31 May 2022 09:57:18 +0800 Subject: [PATCH 11/16] fix conflict --- .../cli/command_modules/storage/commands.py | 5 --- .../storage/operations/fileshare.py | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py index 74fed966125..a45668a5092 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py @@ -646,11 +646,6 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT table_transformer=transform_share_list) g.storage_custom_command('url', 'create_share_url', transform=transform_url_without_encode) - with self.command_group('storage share', command_type=file_sdk, - custom_command_type=get_custom_sdk('file', file_data_service_factory)) as g: - g.storage_command('list-handle', 'list_handles') - g.storage_custom_command('close-handle', 'close_handle') - with self.command_group('storage share policy', custom_command_type=get_custom_sdk('access_policy', cf_share_client, ResourceType.DATA_STORAGE_FILESHARE), diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py b/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py index 99540e7fac9..a30aad401f9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/fileshare.py @@ -95,6 +95,46 @@ def set_share_metadata(client, metadata=None, timeout=None, **kwargs): return True +def _get_client(client, kwargs): + directory_path = kwargs.pop("directory_name", None) + if directory_path and directory_path.startswith('./'): + directory_path = directory_path.replace('./', '', 1) + dir_client = client.get_directory_client(directory_path=directory_path) + file_name = kwargs.pop("file_name", None) + if file_name: + total_path = directory_path + '/' + file_name if directory_path else file_name + dir_client = client.get_directory_client(directory_path=total_path) + if not dir_client.exists(): + dir_client = client.get_directory_client(directory_path=directory_path) + client = dir_client.get_file_client(file_name=file_name) + kwargs.pop("recursive") + else: + client = dir_client + else: + client = dir_client + return client + + +def list_handle(client, marker, num_results, **kwargs): + from ..track2_util import list_generator + client = _get_client(client, kwargs) + + generator = client.list_handles(results_per_page=num_results, **kwargs) + pages = generator.by_page(continuation_token=marker) # SharePropertiesPaged + result = list_generator(pages=pages, num_results=num_results) + + return {"items": result, "nextMarker": pages.continuation_token} + + +def close_handle(client, **kwargs): + client = _get_client(client, kwargs) + + handle = kwargs.pop("handle", None) + if kwargs.pop("close_all", None) or handle == '*': + return client.close_all_handles(**kwargs) + return client.close_handle(handle=handle, **kwargs) + + def create_share_url(client, share_name, unc=None, protocol='https'): file_client = client.get_share_client(share=share_name) url = file_client.url From eba2f4c8aa6eb1ee58ce693e25f28325ea006af2 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Tue, 31 May 2022 10:22:12 +0800 Subject: [PATCH 12/16] fix conflict --- src/azure-cli/azure/cli/command_modules/storage/_params.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index 7cf9cf630b8..f2ce8a47f8f 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1754,7 +1754,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage share list-handle') as c: c.register_path_argument(default_file_param="", fileshare=True) - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('marker', help='An opaque continuation token. This value can be retrieved from the ' 'next_marker field of a previous generator object if max_results was ' 'specified and that generator has finished enumerating results. If ' @@ -1774,7 +1774,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage share close-handle') as c: c.register_path_argument(default_file_param="", fileshare=True) - c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('recursive', arg_type=get_three_state_flag(), help="Boolean that specifies if operation should apply to the directory specified in the URI, its " "files, with its subdirectories and their files.") From 28a2e6fc7ead0d7a0867e981135ddc993509228e Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Thu, 2 Jun 2022 14:25:36 +0800 Subject: [PATCH 13/16] fix suggestions --- .../storage/_client_factory.py | 2 +- .../cli/command_modules/storage/_params.py | 30 +- .../storage/operations/access_policy.py | 17 +- .../test_storage_share_policy_scenario.yaml | 324 +++++++++--------- 4 files changed, 182 insertions(+), 191 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py index 2d027d0c107..0d45d7364ed 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_client_factory.py @@ -393,7 +393,7 @@ def cf_share_service(cli_ctx, kwargs): def cf_share_client(cli_ctx, kwargs): - return cf_share_service(cli_ctx, kwargs).get_share_client(share=kwargs.pop('s_name'), + return cf_share_service(cli_ctx, kwargs).get_share_client(share=kwargs.pop('share_name'), snapshot=kwargs.pop('snapshot', None)) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index f2ce8a47f8f..671e6ec66eb 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1634,7 +1634,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem help='A new file share name to be restored. If not specified, deleted share name will be used.') with self.argument_context('storage share create') as c: - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('fail_on_exist', help='Specify whether to throw an exception when the share exists. False by ' 'default.') c.argument('quota', type=int, help='Specifies the maximum size of the share, in gigabytes. Must be greater ' @@ -1666,7 +1666,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.ignore('name_starts_with') with self.argument_context('storage share exists') as c: - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('snapshot', options_list=['--snapshot'], help='A string that represents the snapshot version, if applicable.') c.ignore('directory_name', 'file_name') @@ -1674,19 +1674,19 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem for item in ['show', 'metadata show']: with self.argument_context('storage share {}'.format(item)) as c: - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('snapshot', options_list=['--snapshot'], help='A string that represents the snapshot version, if applicable.') c.extra('timeout', timeout_type) for item in ['stats', 'snapshot', 'metadata update']: with self.argument_context('storage share {}'.format(item)) as c: - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('timeout', timeout_type) for item in ['create', 'delete', 'show', 'list', 'update']: with self.argument_context('storage share policy {}'.format(item)) as c: - c.extra('s_name', share_name_type, required=True) + c.extra('share_name', share_name_type, required=True) with self.argument_context('storage share policy') as c: from .completers import get_storage_acl_name_completion_list @@ -1694,9 +1694,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem t_share_permissions = self.get_sdk('_models#ShareSasPermissions', resource_type=ResourceType.DATA_STORAGE_FILESHARE) - c.argument('container_name', share_name_type) + c.argument('share_name', share_name_type) c.argument('policy_name', options_list=('--name', '-n'), help='The stored access policy name.', - completer=get_storage_acl_name_completion_list(t_share_service, 'container_name', + completer=get_storage_acl_name_completion_list(t_share_service, 'share_name', 'get_share_access_policy')) help_str = 'Allowed values: {}. Can be combined'.format(get_permission_help_string(t_share_permissions)) @@ -1710,7 +1710,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage share delete') as c: from .sdkutil import get_delete_file_snapshot_type_names - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('delete_snapshots', arg_type=get_enum_type(get_delete_file_snapshot_type_names()), help='Specify the deletion strategy when the share has snapshots.') c.argument('fail_not_exist', help="Specify whether to throw an exception when the share doesn't exists. False " @@ -1726,7 +1726,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem t_share_permissions = self.get_sdk('_models#ShareSasPermissions', resource_type=ResourceType.DATA_STORAGE_FILESHARE) c.register_sas_arguments() - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('cache_control', help='Response header value for Cache-Control when resource is accessed using this ' 'shared access signature.') c.argument('content_disposition', help='Response header value for Content-Disposition when resource is ' @@ -1747,14 +1747,14 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.ignore('sas_token') with self.argument_context('storage share update') as c: - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.argument('quota', help='Specifies the maximum size of the share, in gigabytes. Must be greater than 0, and ' 'less than or equal to 5 TB (5120 GB).') c.extra('timeout', timeout_type) with self.argument_context('storage share list-handle') as c: c.register_path_argument(default_file_param="", fileshare=True) - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('marker', help='An opaque continuation token. This value can be retrieved from the ' 'next_marker field of a previous generator object if max_results was ' 'specified and that generator has finished enumerating results. If ' @@ -1774,7 +1774,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage share close-handle') as c: c.register_path_argument(default_file_param="", fileshare=True) - c.extra('s_name', share_name_type, options_list=('--name', '-n'), required=True) + c.extra('share_name', share_name_type, options_list=('--name', '-n'), required=True) c.extra('recursive', arg_type=get_three_state_flag(), help="Boolean that specifies if operation should apply to the directory specified in the URI, its " "files, with its subdirectories and their files.") @@ -1788,13 +1788,13 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem for scope in ['create', 'delete', 'show', 'exists', 'metadata show', 'metadata update']: with self.argument_context(f'storage directory {scope}') as c: - c.extra('s_name', share_name_type, required=True) + c.extra('share_name', share_name_type, required=True) c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") c.extra('directory_path', directory_type, options_list=('--name', '-n'), required=True) c.extra('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int) with self.argument_context('storage directory list') as c: - c.extra('s_name', share_name_type, required=True) + c.extra('share_name', share_name_type, required=True) c.extra('directory_path', directory_type, options_list=('--name', '-n')) c.argument('exclude_extended_info', help='Specify to exclude "timestamps", "Etag", "Attributes", "PermissionKey" info from response') @@ -1855,7 +1855,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage file list') as c: from .completers import dir_path_completer - c.extra('s_name', share_name_type, required=True) + c.extra('share_name', share_name_type, required=True) c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") c.argument('directory_name', options_list=('--path', '-p'), help='The directory path within the file share.', completer=dir_path_completer) diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py index d9daefbfe68..274f9a9e18d 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py @@ -7,15 +7,6 @@ from azure.cli.core.profiles import ResourceType -def _str_to_datetime(time): - form = '%Y-%m-%d' - try: - return datetime.strptime(time, form) - except ValueError: - pass - return time - - def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission=None, **kwargs): """Create a stored access policy on the containing object""" t_access_policy = cmd.get_models('_models#AccessPolicy', resource_type=ResourceType.DATA_STORAGE_BLOB) @@ -26,8 +17,8 @@ def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permiss signed_identifiers[identifier.id] = identifier.access_policy acl = signed_identifiers acl[policy_name] = t_access_policy(permission if permission else '', - _str_to_datetime(expiry) if expiry else datetime.max, - _str_to_datetime(start) if start else datetime.utcnow()) + expiry if expiry else datetime.max, + start if start else datetime.utcnow()) if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') @@ -71,8 +62,8 @@ def set_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission raise KeyError() else: policy = acl[policy_name] - policy.start = _str_to_datetime(start) if start else policy.start - policy.expiry = _str_to_datetime(expiry) if expiry else policy.expiry + policy.start = start if start else policy.start + policy.expiry = expiry if expiry else policy.expiry policy.permission = permission or policy.permission if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml index ec37c9cc200..4965cb29667 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Tue, 24 May 2022 08:47:49 GMT + - Thu, 02 Jun 2022 06:17:08 GMT expires: - '-1' pragma: @@ -65,12 +65,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-24T08:47:27.5658862Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -79,7 +79,7 @@ interactions: content-type: - application/json date: - - Tue, 24 May 2022 08:47:51 GMT + - Thu, 02 Jun 2022 06:17:10 GMT expires: - '-1' pragma: @@ -95,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' status: code: 200 message: OK @@ -113,12 +113,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002?api-version=2021-09-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-05-24T08:47:27.5658862Z","key2":"2022-05-24T08:47:27.5658862Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:47:27.5658862Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-05-24T08:47:27.5658862Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-05-24T08:47:27.4252037Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-06-02T06:16:47.1887683Z","key2":"2022-06-02T06:16:47.1887683Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-02T06:16:47.1887683Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-02T06:16:47.1887683Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-06-02T06:16:47.0637663Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json date: - - Tue, 24 May 2022 08:47:51 GMT + - Thu, 02 Jun 2022 06:17:10 GMT expires: - '-1' pragma: @@ -149,7 +149,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -161,11 +161,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:52 GMT + - Thu, 02 Jun 2022 06:17:10 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share response: @@ -175,15 +175,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:47:53 GMT + - Thu, 02 Jun 2022 06:17:11 GMT etag: - - '"0x8DA3D6217B639D7"' + - '"0x8DA445F88275038"' last-modified: - - Tue, 24 May 2022 08:47:54 GMT + - Thu, 02 Jun 2022 06:17:12 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -201,11 +201,11 @@ interactions: ParameterSetName: - -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:53 GMT + - Thu, 02 Jun 2022 06:17:11 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -216,17 +216,17 @@ interactions: content-type: - application/xml date: - - Tue, 24 May 2022 08:47:54 GMT + - Thu, 02 Jun 2022 06:17:13 GMT etag: - - '"0x8DA3D6217B639D7"' + - '"0x8DA445F88275038"' last-modified: - - Tue, 24 May 2022 08:47:54 GMT + - Thu, 02 Jun 2022 06:17:12 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -244,11 +244,11 @@ interactions: ParameterSetName: - -n -s --permissions --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:55 GMT + - Thu, 02 Jun 2022 06:17:13 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -259,27 +259,27 @@ interactions: content-type: - application/xml date: - - Tue, 24 May 2022 08:47:57 GMT + - Thu, 02 Jun 2022 06:17:15 GMT etag: - - '"0x8DA3D6217B639D7"' + - '"0x8DA445F88275038"' last-modified: - - Tue, 24 May 2022 08:47:54 GMT + - Thu, 02 Jun 2022 06:17:12 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK - request: body: ' - test12022-05-24T08:47:56Z9999-12-31T23:59:59Zr' + test12022-06-02T06:17:15Z9999-12-31T23:59:59Zr' headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -289,15 +289,15 @@ interactions: Content-Length: - '256' Content-Type: - - application/xml; charset=utf-8 + - application/xml ParameterSetName: - -n -s --permissions --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:56 GMT + - Thu, 02 Jun 2022 06:17:15 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -307,15 +307,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:47:57 GMT + - Thu, 02 Jun 2022 06:17:15 GMT etag: - - '"0x8DA3D6219EA6A7A"' + - '"0x8DA445F8A745A05"' last-modified: - - Tue, 24 May 2022 08:47:57 GMT + - Thu, 02 Jun 2022 06:17:16 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -333,42 +333,42 @@ interactions: ParameterSetName: - -n -s --start --connection-string User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:57 GMT + - Thu, 02 Jun 2022 06:17:15 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zr" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zr" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:17 GMT etag: - - '"0x8DA3D6219EA6A7A"' + - '"0x8DA445F8A745A05"' last-modified: - - Tue, 24 May 2022 08:47:57 GMT + - Thu, 02 Jun 2022 06:17:16 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK - request: body: ' - test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Z' headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -378,15 +378,15 @@ interactions: Content-Length: - '422' Content-Type: - - application/xml; charset=utf-8 + - application/xml ParameterSetName: - -n -s --start --connection-string User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:17 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -396,15 +396,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:17 GMT etag: - - '"0x8DA3D621B416425"' + - '"0x8DA445F8BBDB790"' last-modified: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -422,42 +422,42 @@ interactions: ParameterSetName: - -n -s --expiry --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:17 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:00 GMT + - Thu, 02 Jun 2022 06:17:19 GMT etag: - - '"0x8DA3D621B416425"' + - '"0x8DA445F8BBDB790"' last-modified: - - Tue, 24 May 2022 08:47:59 GMT + - Thu, 02 Jun 2022 06:17:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK - request: body: ' - test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest32022-05-24T08:48:01Z2021-01-01T00:00:00Ztest12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest32022-06-02T06:17:19Z2021-01-01T00:00:00Z' headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -467,15 +467,15 @@ interactions: Content-Length: - '574' Content-Type: - - application/xml; charset=utf-8 + - application/xml ParameterSetName: - -n -s --expiry --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:19 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -485,15 +485,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:19 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -511,31 +511,31 @@ interactions: ParameterSetName: - -s --connection-string User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:19 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:03 GMT + - Thu, 02 Jun 2022 06:17:22 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -553,31 +553,31 @@ interactions: ParameterSetName: - -n -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:03 GMT + - Thu, 02 Jun 2022 06:17:21 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:04 GMT + - Thu, 02 Jun 2022 06:17:22 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -595,31 +595,31 @@ interactions: ParameterSetName: - -n -s --connection-string User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:05 GMT + - Thu, 02 Jun 2022 06:17:23 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:06 GMT + - Thu, 02 Jun 2022 06:17:24 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -637,31 +637,31 @@ interactions: ParameterSetName: - -n -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:07 GMT + - Thu, 02 Jun 2022 06:17:25 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:08 GMT + - Thu, 02 Jun 2022 06:17:27 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -679,41 +679,41 @@ interactions: ParameterSetName: - -n -s --permission --expiry --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:08 GMT + - Thu, 02 Jun 2022 06:17:27 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:10 GMT + - Thu, 02 Jun 2022 06:17:29 GMT etag: - - '"0x8DA3D621C6E4696"' + - '"0x8DA445F8CF9B6A0"' last-modified: - - Tue, 24 May 2022 08:48:01 GMT + - Thu, 02 Jun 2022 06:17:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK - request: body: ' - test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zrtest32022-05-24T08:48:01Z2021-01-01T00:00:00Z' + test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zrtest32022-06-02T06:17:19Z2021-01-01T00:00:00Z' headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -723,15 +723,15 @@ interactions: Content-Length: - '586' Content-Type: - - application/xml; charset=utf-8 + - application/xml ParameterSetName: - -n -s --permission --expiry --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:10 GMT + - Thu, 02 Jun 2022 06:17:28 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -741,15 +741,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:48:11 GMT + - Thu, 02 Jun 2022 06:17:29 GMT etag: - - '"0x8DA3D6221F9C197"' + - '"0x8DA445F927BFFC3"' last-modified: - - Tue, 24 May 2022 08:48:11 GMT + - Thu, 02 Jun 2022 06:17:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -767,31 +767,31 @@ interactions: ParameterSetName: - -n -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:10 GMT + - Thu, 02 Jun 2022 06:17:29 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:12 GMT + - Thu, 02 Jun 2022 06:17:30 GMT etag: - - '"0x8DA3D6221F9C197"' + - '"0x8DA445F927BFFC3"' last-modified: - - Tue, 24 May 2022 08:48:11 GMT + - Thu, 02 Jun 2022 06:17:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -809,41 +809,41 @@ interactions: ParameterSetName: - -n -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:12 GMT + - Thu, 02 Jun 2022 06:17:30 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-05-24T08:48:01.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:13 GMT + - Thu, 02 Jun 2022 06:17:32 GMT etag: - - '"0x8DA3D6221F9C197"' + - '"0x8DA445F927BFFC3"' last-modified: - - Tue, 24 May 2022 08:48:11 GMT + - Thu, 02 Jun 2022 06:17:29 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK - request: body: ' - test12022-05-24T08:47:56Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zr' + test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zr' headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -853,15 +853,15 @@ interactions: Content-Length: - '434' Content-Type: - - application/xml; charset=utf-8 + - application/xml ParameterSetName: - -n -s --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:14 GMT + - Thu, 02 Jun 2022 06:17:32 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: @@ -871,15 +871,15 @@ interactions: content-length: - '0' date: - - Tue, 24 May 2022 08:48:14 GMT + - Thu, 02 Jun 2022 06:17:33 GMT etag: - - '"0x8DA3D62243C0A65"' + - '"0x8DA445F94C61C83"' last-modified: - - Tue, 24 May 2022 08:48:15 GMT + - Thu, 02 Jun 2022 06:17:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -897,31 +897,31 @@ interactions: ParameterSetName: - -s --connection-string User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Tue, 24 May 2022 08:48:14 GMT + - Thu, 02 Jun 2022 06:17:33 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-05-24T08:47:56.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zr" + string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zr" headers: content-type: - application/xml date: - - Tue, 24 May 2022 08:48:16 GMT + - Thu, 02 Jun 2022 06:17:34 GMT etag: - - '"0x8DA3D62243C0A65"' + - '"0x8DA445F94C61C83"' last-modified: - - Tue, 24 May 2022 08:48:15 GMT + - Thu, 02 Jun 2022 06:17:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK From 6e275ae881c268868cded43d4ff925d93b0c635b Mon Sep 17 00:00:00 2001 From: jonie001 <99947323+jonie001@users.noreply.github.com> Date: Thu, 2 Jun 2022 14:26:12 +0800 Subject: [PATCH 14/16] Update src/azure-cli/azure/cli/command_modules/storage/_help.py Co-authored-by: Yishi Wang --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 0b36ea0f956..d730687e6a6 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -2925,7 +2925,7 @@ helps['storage share snapshot'] = """ type: command -short-summary: Creates a snapshot of an existing share under the specified account. +short-summary: Create a snapshot of an existing share under the specified account. """ helps['storage share metadata'] = """ From 5f373b1baa0b8650c2e2a2842a2c60806ed024b9 Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 8 Jun 2022 13:50:20 +0800 Subject: [PATCH 15/16] fix --- .../cli/command_modules/storage/_params.py | 1 - .../command_modules/storage/_transformers.py | 7 ----- .../cli/command_modules/storage/commands.py | 6 ++--- .../storage/operations/access_policy.py | 27 ++----------------- 4 files changed, 4 insertions(+), 37 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index 2bb0314af6e..25c20c9c93a 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1717,7 +1717,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem c.argument('start', type=get_datetime_type(True), help='start UTC datetime (Y-m-d\'T\'H:M:S\'Z\'). Defaults to time of request.') c.argument('expiry', type=get_datetime_type(True), help='expiration UTC datetime in (Y-m-d\'T\'H:M:S\'Z\')') - c.ignore('auth_mode') with self.argument_context('storage share delete') as c: from .sdkutil import get_delete_file_snapshot_type_names diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 9cb7c863231..f033cb92da9 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -438,13 +438,6 @@ def transform_acl_edit(result): return result -def transform_acl_list_output_v2(result): - new_result = {} - for identifier in result['signed_identifiers']: - new_result[identifier.id] = identifier.access_policy - return new_result - - def transform_acl_datetime(result): result = todict(result) if result['start']: diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py index 61325177f83..c7f75ec5739 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py @@ -634,15 +634,13 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT custom_command_type=get_custom_sdk('access_policy', cf_share_client, ResourceType.DATA_STORAGE_FILESHARE), resource_type=ResourceType.DATA_STORAGE_FILESHARE, min_api='2019-02-02') as g: - from ._transformers import transform_acl_list_output, transform_acl_edit, transform_acl_list_output_v2,\ - transform_acl_datetime + from ._transformers import transform_acl_list_output, transform_acl_edit, transform_acl_datetime g.storage_custom_command('create', 'create_acl_policy', transform=transform_acl_edit) g.storage_custom_command('delete', 'delete_acl_policy', transform=transform_acl_edit) g.storage_custom_command( 'show', 'get_acl_policy', exception_handler=show_exception_handler, transform=transform_acl_datetime) g.storage_custom_command( - 'list', 'list_acl_policies', transform=transform_acl_list_output_v2, - table_transformer=transform_acl_list_output) + 'list', 'list_acl_policies', table_transformer=transform_acl_list_output) g.storage_custom_command('update', 'set_acl_policy', transform=transform_acl_edit) with self.command_group('storage directory', command_type=directory_client_sdk, diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py index fdecc0d80c9..7b5970f513d 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/access_policy.py @@ -11,11 +11,6 @@ def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permiss """Create a stored access policy on the containing object""" t_access_policy = cmd.get_models('_models#AccessPolicy', resource_type=ResourceType.DATA_STORAGE_BLOB) acl = _get_acl(cmd, client, **kwargs) - if _get_service_container_type(cmd, client) == 'share': - signed_identifiers = {} - for identifier in acl["signed_identifiers"]: - signed_identifiers[identifier.id] = identifier.access_policy - acl = signed_identifiers acl[policy_name] = t_access_policy(permission if permission else '', expiry if expiry else datetime.max, start if start else datetime.utcnow()) @@ -28,12 +23,7 @@ def create_acl_policy(cmd, client, policy_name, start=None, expiry=None, permiss def get_acl_policy(cmd, client, policy_name, **kwargs): """Show a stored access policy on a containing object""" acl = _get_acl(cmd, client, **kwargs) - if _get_service_container_type(cmd, client) == 'share': - for identifier in acl['signed_identifiers']: - if identifier.id == policy_name: - return identifier.access_policy - else: - return acl.get(policy_name) + return acl.get(policy_name) def list_acl_policies(cmd, client, **kwargs): @@ -65,20 +55,7 @@ def set_acl_policy(cmd, client, policy_name, start=None, expiry=None, permission def delete_acl_policy(cmd, client, policy_name, **kwargs): """ Delete a stored access policy on a containing object """ acl = _get_acl(cmd, client, **kwargs) - if _get_service_container_type(cmd, client) == 'share': - signed_identifiers = {} - found = False - for identifier in acl["signed_identifiers"]: - if identifier.id == policy_name: - found = True - continue - signed_identifiers[identifier.id] = identifier.access_policy - acl = signed_identifiers - if not found: - from knack.util import CLIError - raise CLIError('ACL does not contain {}'.format(policy_name)) - else: - del acl[policy_name] + del acl[policy_name] if hasattr(acl, 'public_access'): kwargs['public_access'] = getattr(acl, 'public_access') From e706d761c9a63e764893acf23acbf7b24f935c0f Mon Sep 17 00:00:00 2001 From: "Jonie Liu (Shanghai Wicresoft Co" Date: Wed, 8 Jun 2022 14:05:49 +0800 Subject: [PATCH 16/16] fix --- .../command_modules/storage/_transformers.py | 15 -- .../test_storage_share_policy_scenario.yaml | 194 +++++++++--------- 2 files changed, 98 insertions(+), 111 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index f033cb92da9..2c2d6da9ade 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -432,21 +432,6 @@ def transform_file_share_json_output(result): return new_result -def transform_acl_edit(result): - if "last_modified" in result.keys(): - result["lastModified"] = result.pop("last_modified") - return result - - -def transform_acl_datetime(result): - result = todict(result) - if result['start']: - result['start'] = result["start"].split('.')[0] + '+00:00' - if result['expiry']: - result['expiry'] = result["expiry"].split('.')[0] + '+00:00' - return result - - def transform_share_directory_json_output(result): result = todict(result) new_result = { diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml index 4965cb29667..90ce01d95db 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_share_policy_scenario.yaml @@ -20,7 +20,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-06-08T05:51:43.0520313Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-08T05:51:43.0520313Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 02 Jun 2022 06:17:08 GMT + - Wed, 08 Jun 2022 05:52:04 GMT expires: - '-1' pragma: @@ -70,7 +70,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002/listKeys?api-version=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-02T06:16:47.1887683Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-06-08T05:51:43.0520313Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-06-08T05:51:43.0520313Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -79,7 +79,7 @@ interactions: content-type: - application/json date: - - Thu, 02 Jun 2022 06:17:10 GMT + - Wed, 08 Jun 2022 05:52:05 GMT expires: - '-1' pragma: @@ -95,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' status: code: 200 message: OK @@ -118,7 +118,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002?api-version=2021-09-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-06-02T06:16:47.1887683Z","key2":"2022-06-02T06:16:47.1887683Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-02T06:16:47.1887683Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-02T06:16:47.1887683Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-06-02T06:16:47.0637663Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Storage/storageAccounts/share000002","name":"share000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2022-06-08T05:51:43.0520313Z","key2":"2022-06-08T05:51:43.0520313Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_0","allowBlobPublicAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-08T05:51:43.0520313Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2022-06-08T05:51:43.0520313Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2022-06-08T05:51:42.9426569Z","primaryEndpoints":{"dfs":"https://share000002.dfs.core.windows.net/","web":"https://share000002.z20.web.core.windows.net/","blob":"https://share000002.blob.core.windows.net/","queue":"https://share000002.queue.core.windows.net/","table":"https://share000002.table.core.windows.net/","file":"https://share000002.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available","secondaryLocation":"centralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://share000002-secondary.dfs.core.windows.net/","web":"https://share000002-secondary.z20.web.core.windows.net/","blob":"https://share000002-secondary.blob.core.windows.net/","queue":"https://share000002-secondary.queue.core.windows.net/","table":"https://share000002-secondary.table.core.windows.net/"}}}' headers: cache-control: - no-cache @@ -127,7 +127,7 @@ interactions: content-type: - application/json date: - - Thu, 02 Jun 2022 06:17:10 GMT + - Wed, 08 Jun 2022 05:52:05 GMT expires: - '-1' pragma: @@ -163,7 +163,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:10 GMT + - Wed, 08 Jun 2022 05:52:06 GMT x-ms-version: - '2021-06-08' method: PUT @@ -175,11 +175,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:11 GMT + - Wed, 08 Jun 2022 05:52:07 GMT etag: - - '"0x8DA445F88275038"' + - '"0x8DA4913059F0191"' last-modified: - - Thu, 02 Jun 2022 06:17:12 GMT + - Wed, 08 Jun 2022 05:52:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -203,7 +203,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:11 GMT + - Wed, 08 Jun 2022 05:52:08 GMT x-ms-version: - '2021-06-08' method: GET @@ -216,11 +216,11 @@ interactions: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:13 GMT + - Wed, 08 Jun 2022 05:52:10 GMT etag: - - '"0x8DA445F88275038"' + - '"0x8DA4913059F0191"' last-modified: - - Thu, 02 Jun 2022 06:17:12 GMT + - Wed, 08 Jun 2022 05:52:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -246,7 +246,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:13 GMT + - Wed, 08 Jun 2022 05:52:12 GMT x-ms-version: - '2021-06-08' method: GET @@ -259,11 +259,11 @@ interactions: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:15 GMT + - Wed, 08 Jun 2022 05:52:14 GMT etag: - - '"0x8DA445F88275038"' + - '"0x8DA4913059F0191"' last-modified: - - Thu, 02 Jun 2022 06:17:12 GMT + - Wed, 08 Jun 2022 05:52:07 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -276,7 +276,7 @@ interactions: - request: body: ' - test12022-06-02T06:17:15Z9999-12-31T23:59:59Zr' + test12022-06-08T05:52:14Z9999-12-31T23:59:59Zr' headers: Accept: - application/xml @@ -295,7 +295,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:15 GMT + - Wed, 08 Jun 2022 05:52:14 GMT x-ms-version: - '2021-06-08' method: PUT @@ -307,11 +307,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:15 GMT + - Wed, 08 Jun 2022 05:52:14 GMT etag: - - '"0x8DA445F8A745A05"' + - '"0x8DA49130A0A338A"' last-modified: - - Thu, 02 Jun 2022 06:17:16 GMT + - Wed, 08 Jun 2022 05:52:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -335,23 +335,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:15 GMT + - Wed, 08 Jun 2022 05:52:15 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zr" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zr" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:17 GMT + - Wed, 08 Jun 2022 05:52:17 GMT etag: - - '"0x8DA445F8A745A05"' + - '"0x8DA49130A0A338A"' last-modified: - - Thu, 02 Jun 2022 06:17:16 GMT + - Wed, 08 Jun 2022 05:52:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -364,7 +364,7 @@ interactions: - request: body: ' - test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest12022-06-08T05:52:14Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Z' headers: Accept: @@ -384,7 +384,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:17 GMT + - Wed, 08 Jun 2022 05:52:17 GMT x-ms-version: - '2021-06-08' method: PUT @@ -396,11 +396,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:17 GMT + - Wed, 08 Jun 2022 05:52:17 GMT etag: - - '"0x8DA445F8BBDB790"' + - '"0x8DA49130BADBA90"' last-modified: - - Thu, 02 Jun 2022 06:17:18 GMT + - Wed, 08 Jun 2022 05:52:17 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -424,23 +424,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:17 GMT + - Wed, 08 Jun 2022 05:52:18 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:19 GMT + - Wed, 08 Jun 2022 05:52:18 GMT etag: - - '"0x8DA445F8BBDB790"' + - '"0x8DA49130BADBA90"' last-modified: - - Thu, 02 Jun 2022 06:17:18 GMT + - Wed, 08 Jun 2022 05:52:17 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -453,7 +453,8 @@ interactions: - request: body: ' - test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest32022-06-02T06:17:19Z2021-01-01T00:00:00Ztest12022-06-08T05:52:14Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z9999-12-31T23:59:59Ztest32022-06-08T05:52:19Z2021-01-01T00:00:00Z' headers: Accept: @@ -465,7 +466,7 @@ interactions: Connection: - keep-alive Content-Length: - - '574' + - '588' Content-Type: - application/xml ParameterSetName: @@ -473,7 +474,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:19 GMT + - Wed, 08 Jun 2022 05:52:19 GMT x-ms-version: - '2021-06-08' method: PUT @@ -485,11 +486,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:19 GMT + - Wed, 08 Jun 2022 05:52:19 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -513,23 +514,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:19 GMT + - Wed, 08 Jun 2022 05:52:19 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:22 GMT + - Wed, 08 Jun 2022 05:52:20 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -555,23 +556,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:21 GMT + - Wed, 08 Jun 2022 05:52:21 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:22 GMT + - Wed, 08 Jun 2022 05:52:21 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -597,23 +598,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:23 GMT + - Wed, 08 Jun 2022 05:52:23 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:24 GMT + - Wed, 08 Jun 2022 05:52:23 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -639,23 +640,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:25 GMT + - Wed, 08 Jun 2022 05:52:24 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:27 GMT + - Wed, 08 Jun 2022 05:52:25 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -681,23 +682,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:27 GMT + - Wed, 08 Jun 2022 05:52:26 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z9999-12-31T23:59:59.0000000Ztest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:26 GMT etag: - - '"0x8DA445F8CF9B6A0"' + - '"0x8DA49130CC542EB"' last-modified: - - Thu, 02 Jun 2022 06:17:20 GMT + - Wed, 08 Jun 2022 05:52:19 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -710,7 +711,8 @@ interactions: - request: body: ' - test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zrtest32022-06-02T06:17:19Z2021-01-01T00:00:00Z' + test12022-06-08T05:52:14Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zrtest32022-06-08T05:52:19Z2021-01-01T00:00:00Z' headers: Accept: - application/xml @@ -721,7 +723,7 @@ interactions: Connection: - keep-alive Content-Length: - - '586' + - '600' Content-Type: - application/xml ParameterSetName: @@ -729,7 +731,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:28 GMT + - Wed, 08 Jun 2022 05:52:27 GMT x-ms-version: - '2021-06-08' method: PUT @@ -741,11 +743,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:26 GMT etag: - - '"0x8DA445F927BFFC3"' + - '"0x8DA491311CA87FD"' last-modified: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -769,23 +771,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:28 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:30 GMT + - Wed, 08 Jun 2022 05:52:28 GMT etag: - - '"0x8DA445F927BFFC3"' + - '"0x8DA491311CA87FD"' last-modified: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -811,23 +813,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:30 GMT + - Wed, 08 Jun 2022 05:52:30 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-02T06:17:19.0000000Z2021-01-01T00:00:00.0000000Z" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zrtest32022-06-08T05:52:19.0000000Z2021-01-01T00:00:00.0000000Z" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:32 GMT + - Wed, 08 Jun 2022 05:52:31 GMT etag: - - '"0x8DA445F927BFFC3"' + - '"0x8DA491311CA87FD"' last-modified: - - Thu, 02 Jun 2022 06:17:29 GMT + - Wed, 08 Jun 2022 05:52:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -840,7 +842,7 @@ interactions: - request: body: ' - test12022-06-02T06:17:15Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zr' + test12022-06-08T05:52:14Z9999-12-31T23:59:59Zrtest22020-01-01T00:00:00Z2020-12-31T23:59:00Zr' headers: Accept: - application/xml @@ -859,7 +861,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:32 GMT + - Wed, 08 Jun 2022 05:52:32 GMT x-ms-version: - '2021-06-08' method: PUT @@ -871,11 +873,11 @@ interactions: content-length: - '0' date: - - Thu, 02 Jun 2022 06:17:33 GMT + - Wed, 08 Jun 2022 05:52:31 GMT etag: - - '"0x8DA445F94C61C83"' + - '"0x8DA4913149F0F06"' last-modified: - - Thu, 02 Jun 2022 06:17:33 GMT + - Wed, 08 Jun 2022 05:52:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -899,23 +901,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-storage-file-share/12.8.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) x-ms-date: - - Thu, 02 Jun 2022 06:17:33 GMT + - Wed, 08 Jun 2022 05:52:33 GMT x-ms-version: - '2021-06-08' method: GET uri: https://share000002.file.core.windows.net/share000003?restype=share&comp=acl response: body: - string: "\uFEFFtest12022-06-02T06:17:15.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zr" + string: "\uFEFFtest12022-06-08T05:52:14.0000000Z9999-12-31T23:59:59.0000000Zrtest22020-01-01T00:00:00.0000000Z2020-12-31T23:59:00.0000000Zr" headers: content-type: - application/xml date: - - Thu, 02 Jun 2022 06:17:34 GMT + - Wed, 08 Jun 2022 05:52:33 GMT etag: - - '"0x8DA445F94C61C83"' + - '"0x8DA4913149F0F06"' last-modified: - - Thu, 02 Jun 2022 06:17:33 GMT + - Wed, 08 Jun 2022 05:52:32 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: