From 758b24aa8861f4b11901aecd8e310f06a0bbfdb6 Mon Sep 17 00:00:00 2001 From: Willie Xu Date: Wed, 7 Feb 2018 17:27:34 -0800 Subject: [PATCH] Revert "Added paging support for storage list commands." (#5506) * Revert "[AKS] list available k8s versions, add tab completers, refactor code (#5475)" This reverts commit 1326d2f24130533f6cbdf1b2ecdd75a48ed3a41c. * Revert "Added paging support for storage list commands. (#5419)" This reverts commit 4e8ba81c398bfdb3dfc6f4e4419d960e7f9653b6. --- .../azure-cli-storage/HISTORY.rst | 1 - .../cli/command_modules/storage/_format.py | 10 +- .../cli/command_modules/storage/_help.py | 2 +- .../cli/command_modules/storage/_params.py | 8 +- .../command_modules/storage/_transformers.py | 12 +- .../command_modules/storage/_validators.py | 4 +- .../storage/operations/blob.py | 2 +- .../storage/operations/directory.py | 10 +- .../storage/operations/file.py | 21 +- .../test_storage_blob_list_paging.yaml | 408 ------------- .../test_storage_file_list_paging.yaml | 567 ------------------ .../test_storage_queue_list_paging.yaml | 282 --------- .../test_storage_table_list_paging.yaml | 277 --------- .../latest/test_storage_blob_scenarios.py | 38 -- .../latest/test_storage_file_scenarios.py | 55 -- .../latest/test_storage_queue_scenarios.py | 24 +- .../latest/test_storage_table_scenarios.py | 21 - 17 files changed, 27 insertions(+), 1715 deletions(-) delete mode 100644 src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_list_paging.yaml delete mode 100644 src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_list_paging.yaml delete mode 100644 src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_list_paging.yaml delete mode 100644 src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_list_paging.yaml diff --git a/src/command_modules/azure-cli-storage/HISTORY.rst b/src/command_modules/azure-cli-storage/HISTORY.rst index 39d527d3545..3248c0e2c62 100644 --- a/src/command_modules/azure-cli-storage/HISTORY.rst +++ b/src/command_modules/azure-cli-storage/HISTORY.rst @@ -5,7 +5,6 @@ Release History 2.0.25 ++++++ -* Adding paging support for storage list commands. * Minor fixes. 2.0.24 diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_format.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_format.py index 923a51807f5..0a4cd8f40a9 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_format.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_format.py @@ -134,14 +134,16 @@ def transform_file_directory_result(cli_ctx): list. """ def transformer(result): - from ._transformers import transform_storage_list_output - result_list = transform_storage_list_output(result) t_file, t_dir = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'File', 'Directory', mod='file.models') - for each in result_list: + return_list = [] + for each in result: if isinstance(each, t_file): delattr(each, 'content') setattr(each, 'type', 'file') elif isinstance(each, t_dir): setattr(each, 'type', 'dir') - return result_list + + return_list.append(each) + + return return_list return transformer diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py index c2994a7da8c..7c77b8f1e2b 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py @@ -482,7 +482,7 @@ parameters: - name: --exclude-dir type: bool - short-summary: List only files in the given share. If the --num-results parameter is also used, this may cause the output to have less results than expected. + short-summary: List only files in the given share. """ helps['storage file copy'] = """ diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py index 44f1f98d935..0cd110735b7 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_params.py @@ -72,7 +72,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.', validator=validate_metadata) c.argument('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int) - c.argument('num_results', type=int) with self.argument_context('storage', arg_group='Precondition') as c: c.argument('if_modified_since', help='Alter only if modified since supplied UTC datetime (Y-m-d\'T\'H:M\'Z\')', @@ -189,6 +188,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage blob list') as c: c.argument('include', validator=validate_included_datasets) c.argument('num_results', type=int) + c.ignore('marker') # https://github.com/Azure/azure-cli/issues/3745 with self.argument_context('storage blob generate-sas') as c: from .completers import get_storage_acl_name_completion_list @@ -357,6 +357,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage container lease') as c: c.argument('container_name', container_name_type) + with self.argument_context('storage container list') as c: + c.ignore('marker') # https://github.com/Azure/azure-cli/issues/3745 + with self.argument_context('storage container policy') as c: from .completers import get_storage_acl_name_completion_list t_container_permissions = self.get_sdk('blob.models#ContainerPermissions') @@ -396,6 +399,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem 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 list') as c: + c.ignore('marker') # https://github.com/Azure/azure-cli/issues/3745 + with self.argument_context('storage share exists') as c: c.ignore('directory_name', 'file_name') diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_transformers.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_transformers.py index 6d71a119f4b..e6076b6b280 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_transformers.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_transformers.py @@ -102,17 +102,7 @@ def _transformer(result): def transform_storage_list_output(result): - if isinstance(result, dict): - next_marker = result['next_marker'] - result = result['generator'] - else: - next_marker = result.next_marker - - def set_marker(item): - item.next_marker = next_marker - return item - - return [set_marker(item) for item in result] + return list(result) def transform_url(result): diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py index e72f13d3728..0d5763176d1 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_validators.py @@ -652,7 +652,7 @@ def process_blob_download_batch_parameters(namespace, cmd): import os # 1. quick check - if not os.path.isdir(namespace.destination): + if not os.path.exists(namespace.destination) or not os.path.isdir(namespace.destination): raise ValueError('incorrect usage: destination must be an existing directory') # 2. try to extract account name and container name from source string @@ -773,7 +773,7 @@ def process_file_download_batch_parameters(cmd, namespace): import os # 1. quick check - if not os.path.isdir(namespace.destination): + if not os.path.exists(namespace.destination) or not os.path.isdir(namespace.destination): raise ValueError('incorrect usage: destination must be an existing directory') # 2. try to extract account name and share name from source string diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/blob.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/blob.py index 308a022484a..0767c8b337a 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/blob.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/blob.py @@ -100,7 +100,7 @@ def _download_blob(blob_service, container, destination_folder, blob_name): # TODO: try catch IO exception destination_path = os.path.join(destination_folder, blob_name) destination_folder = os.path.dirname(destination_path) - if not os.path.isdir(destination_folder): + if not os.path.exists(destination_folder): mkdir_p(destination_folder) blob = blob_service.get_blob_to_path(container, blob_name, destination_path, max_connections=max_connections, diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/directory.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/directory.py index 539f2549611..4edb64865da 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/directory.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/directory.py @@ -4,12 +4,8 @@ # -------------------------------------------------------------------------------------------- -def list_share_directories(cmd, client, share_name, directory_name=None, num_results=None, marker=None, timeout=None): +def list_share_directories(cmd, client, share_name, directory_name=None, timeout=None): t_dir_properties = cmd.get_models('file.models#DirectoryProperties') - generator = client.list_directories_and_files(share_name, directory_name, num_results=num_results, - marker=marker, timeout=timeout) - return { - 'generator': (f for f in generator if isinstance(f.properties, t_dir_properties)), - 'next_marker': generator.next_marker - } + generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout) + return list(f for f in generator if isinstance(f.properties, t_dir_properties)) diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/file.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/file.py index 1318b44d132..a9d4c78f824 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/file.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/file.py @@ -16,27 +16,16 @@ from azure.cli.command_modules.storage.url_quote_util import encode_for_url, make_encoded_file_url_and_params -def list_share_files(cmd, client, share_name, directory_name=None, timeout=None, exclude_dir=False, num_results=None, - marker=None, snapshot=None): - file_list_args = { - "share_name": share_name, - "directory_name": directory_name, - "timeout": timeout, - "num_results": num_results, - "marker": marker - } +def list_share_files(cmd, client, share_name, directory_name=None, timeout=None, exclude_dir=False, snapshot=None): if cmd.supported_api_version(min_api='2017-04-17'): - file_list_args["snapshot"] = snapshot - - generator = client.list_directories_and_files(**file_list_args) + generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout, snapshot=snapshot) + else: + generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout) if exclude_dir: t_file_properties = cmd.get_models('file.models#FileProperties') - return { - 'generator': (f for f in generator if isinstance(f.properties, t_file_properties)), - 'next_marker': generator.next_marker - } + return list(f for f in generator if isinstance(f.properties, t_file_properties)) return generator diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_list_paging.yaml b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_list_paging.yaml deleted file mode 100644 index 75019e84a30..00000000000 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_blob_list_paging.yaml +++ /dev/null @@ -1,408 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 26 Jan 2018 22:15:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 201, message: Created} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Fri, 26 Jan 2018 22:15:39 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/c7f1dc00-4e58-4177-8099-237877f09a6a?monitor=true&api-version=2017-10-01'] - 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/c7f1dc00-4e58-4177-8099-237877f09a6a?monitor=true&api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-01-26T22:15:39.4856727Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-01-26T22:15:39.4856727Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-01-26T22:15:39.4388354Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Fri, 26 Jan 2018 22:15:56 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"Grjr3Y46d1Dz4FbDawSz3odHZqG/9wTwgOhRcuOwrrfdVZxZ5pcvQM3Zn4UVhIiiPgjGld8mQA1ib1NKVvRdSA==","permissions":"FULL"},{"keyName":"key2","value":"Ga0BLf2KMHS3OWtXssG6wMC/7Qw0JXldv6xX3j4sh7kgq9XIUhelxMGrgFBUtqYQyfI1O6Dno9wwPuvzDadrjg==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Fri, 26 Jan 2018 22:15:57 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-ms-ratelimit-remaining-subscription-writes: ['1185'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"Grjr3Y46d1Dz4FbDawSz3odHZqG/9wTwgOhRcuOwrrfdVZxZ5pcvQM3Zn4UVhIiiPgjGld8mQA1ib1NKVvRdSA==","permissions":"FULL"},{"keyName":"key2","value":"Ga0BLf2KMHS3OWtXssG6wMC/7Qw0JXldv6xX3j4sh7kgq9XIUhelxMGrgFBUtqYQyfI1O6Dno9wwPuvzDadrjg==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Fri, 26 Jan 2018 22:15:58 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-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container - response: - body: {string: ''} - headers: - date: ['Fri, 26 Jan 2018 22:15:58 GMT'] - etag: ['"0x8D5650A6074F728"'] - last-modified: ['Fri, 26 Jan 2018 22:15:58 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.blob.core.windows.net/cont000004?restype=container - response: - body: {string: ''} - headers: - date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - etag: ['"0x8D5650A61654C96"'] - last-modified: ['Fri, 26 Jan 2018 22:16:00 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.blob.core.windows.net/?comp=list&maxresults=1 - response: - body: {string: "\uFEFF1cont000004Fri,\ - \ 26 Jan 2018 22:16:00 GMT\"0x8D5650A61654C96\"unlockedavailable/clitest000002/cont000003"} - headers: - content-type: [application/xml] - date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:16:00 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.blob.core.windows.net/?comp=list&marker=%2Fclitest000002%2Fcont000003&maxresults=1 - response: - body: {string: "\uFEFF/clitest000002/cont0000031cont000003Fri,\ - \ 26 Jan 2018 22:15:58 GMT\"0x8D5650A6074F728\"unlockedavailable"} - headers: - content-type: [application/xml] - date: ['Fri, 26 Jan 2018 22:15:55 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - headers: - Connection: [keep-alive] - Content-Length: ['1024'] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-blob-type: [BlockBlob] - x-ms-date: ['Fri, 26 Jan 2018 22:16:00 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.blob.core.windows.net/cont000003/blob000005 - response: - body: {string: ''} - headers: - content-md5: [DzQ7CTESaiDxM9Z8KwGKOw==] - date: ['Fri, 26 Jan 2018 22:16:00 GMT'] - etag: ['"0x8D5650A654386BB"'] - last-modified: ['Fri, 26 Jan 2018 22:16:06 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - headers: - Connection: [keep-alive] - Content-Length: ['1024'] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-blob-type: [BlockBlob] - x-ms-date: ['Fri, 26 Jan 2018 22:16:00 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.blob.core.windows.net/cont000003/blob000006 - response: - body: {string: ''} - headers: - content-md5: [DzQ7CTESaiDxM9Z8KwGKOw==] - date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - etag: ['"0x8D5650A656B895F"'] - last-modified: ['Fri, 26 Jan 2018 22:16:06 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:16:01 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=list&maxresults=1 - response: - body: {string: "\uFEFF1blob000006Fri,\ - \ 26 Jan 2018 22:16:06 GMT0x8D5650A656B895F1024application/octet-streamDzQ7CTESaiDxM9Z8KwGKOw==BlockBlobunlockedavailabletrue2!92!MDAwMDI0IWJsb2J1em93MmFwbmt1azc3dTZhM25haCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-"} - headers: - content-type: [application/xml] - date: ['Fri, 26 Jan 2018 22:16:00 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.37.1 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Fri, 26 Jan 2018 22:16:01 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=list&marker=2%2192%21MDAwMDI0IWJsb2J1em93MmFwbmt1azc3dTZhM25haCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-&maxresults=1 - response: - body: {string: "\uFEFF2!92!MDAwMDI0IWJsb2J1em93MmFwbmt1azc3dTZhM25haCEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-1blob000005Fri,\ - \ 26 Jan 2018 22:16:06 GMT0x8D5650A654386BB1024application/octet-streamDzQ7CTESaiDxM9Z8KwGKOw==BlockBlobunlockedavailabletrue"} - headers: - content-type: [application/xml] - date: ['Fri, 26 Jan 2018 22:15:59 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 26 Jan 2018 22:16:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdBQlNSUlZDVDJHTDJPQUpKQUlKWU5NSEU1U1lON0NCQkxCVHwwQjQwQzAzNEQwMTc3RDUxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1188'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_list_paging.yaml b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_list_paging.yaml deleted file mode 100644 index 1c4f2c6d078..00000000000 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_list_paging.yaml +++ /dev/null @@ -1,567 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 02:27:45 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1191'] - status: {code: 201, message: Created} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Sat, 27 Jan 2018 02:27:47 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/028bf61b-d6c7-49c7-a0c1-dc12a09fd40a?monitor=true&api-version=2017-10-01'] - 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] - x-ms-ratelimit-remaining-subscription-writes: ['1191'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/028bf61b-d6c7-49c7-a0c1-dc12a09fd40a?monitor=true&api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Sat, 27 Jan 2018 02:28:04 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/028bf61b-d6c7-49c7-a0c1-dc12a09fd40a?monitor=true&api-version=2017-10-01'] - 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] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/028bf61b-d6c7-49c7-a0c1-dc12a09fd40a?monitor=true&api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-01-27T02:27:47.3653006Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-01-27T02:27:47.3653006Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-01-27T02:27:47.3184568Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 02:28:21 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"fWhxT8+US6/uJ9aamK2VHRUX3dHenvXWRu6AIjnGE9rlZf9k1Ru3XVlteiLJWcy0LhzOVAWCh3MKhJD/2RF/LQ==","permissions":"FULL"},{"keyName":"key2","value":"ffH5+Zy2uKwP/DnNPqu9vBfWqrU5ZzGZEH7gxhTcIHay93tgBNaYZZmqNFLvkZSOb/xLyCb57iB+vLQ4Lll9yQ==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 02:28:23 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-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"fWhxT8+US6/uJ9aamK2VHRUX3dHenvXWRu6AIjnGE9rlZf9k1Ru3XVlteiLJWcy0LhzOVAWCh3MKhJD/2RF/LQ==","permissions":"FULL"},{"keyName":"key2","value":"ffH5+Zy2uKwP/DnNPqu9vBfWqrU5ZzGZEH7gxhTcIHay93tgBNaYZZmqNFLvkZSOb/xLyCb57iB+vLQ4Lll9yQ==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 02:28:25 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-ms-ratelimit-remaining-subscription-writes: ['1187'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:25 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000003?restype=share - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:25 GMT'] - etag: ['"0x8D5652DA5144161"'] - last-modified: ['Sat, 27 Jan 2018 02:28:26 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:26 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000004?restype=share - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:25 GMT'] - etag: ['"0x8D5652DA578DCA1"'] - last-modified: ['Sat, 27 Jan 2018 02:28:26 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:26 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/?comp=list&maxresults=1 - response: - body: {string: "\uFEFF1share000004Sat,\ - \ 27 Jan 2018 02:28:26 GMT\"0x8D5652DA578DCA1\"5120/clitest000002/share000003"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:26 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:27 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/?comp=list&marker=%2Fclitest000002%2Fshare000003&maxresults=1 - response: - body: {string: "\uFEFF/clitest000002/share0000031share000003Sat,\ - \ 27 Jan 2018 02:28:26 GMT\"0x8D5652DA5144161\"5120"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:27 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-content-length: ['1024'] - x-ms-date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - x-ms-type: [file] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000003/file000005.txt - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:27 GMT'] - etag: ['"0x8D5652DA66F330C"'] - last-modified: ['Sat, 27 Jan 2018 02:28:28 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - headers: - Connection: [keep-alive] - Content-Length: ['1024'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - x-ms-range: [bytes=0-1023] - x-ms-version: ['2017-04-17'] - x-ms-write: [update] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000003/file000005.txt?comp=range - response: - body: {string: ''} - headers: - content-md5: [DzQ7CTESaiDxM9Z8KwGKOw==] - date: ['Sat, 27 Jan 2018 02:28:27 GMT'] - etag: ['"0x8D5652DA68E5B32"'] - last-modified: ['Sat, 27 Jan 2018 02:28:28 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-content-length: ['1024'] - x-ms-date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - x-ms-type: [file] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000003/file000006.txt - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - etag: ['"0x8D5652DA6E25B87"'] - last-modified: ['Sat, 27 Jan 2018 02:28:29 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - headers: - Connection: [keep-alive] - Content-Length: ['1024'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:29 GMT'] - x-ms-range: [bytes=0-1023] - x-ms-version: ['2017-04-17'] - x-ms-write: [update] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000003/file000006.txt?comp=range - response: - body: {string: ''} - headers: - content-md5: [DzQ7CTESaiDxM9Z8KwGKOw==] - date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - etag: ['"0x8D5652DA70023CA"'] - last-modified: ['Sat, 27 Jan 2018 02:28:29 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:29 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=1 - response: - body: {string: "\uFEFF1file000006.txt10241!40!ZmlsZWZ6YjRpbGxwNG56bWlydGU0eGZhLnR4dA--"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:28 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&marker=1%2140%21ZmlsZWZ6YjRpbGxwNG56bWlydGU0eGZhLnR4dA--&maxresults=1 - response: - body: {string: "\uFEFF1!40!ZmlsZWZ6YjRpbGxwNG56bWlydGU0eGZhLnR4dA--1file000005.txt1024"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000004/dir000007?restype=directory - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - etag: ['"0x8D5652DA7E69BDE"'] - last-modified: ['Sat, 27 Jan 2018 02:28:30 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:31 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.file.core.windows.net/share000004/dir000008?restype=directory - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - etag: ['"0x8D5652DA8374002"'] - last-modified: ['Sat, 27 Jan 2018 02:28:31 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:31 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/share000004?restype=directory&comp=list&maxresults=1 - response: - body: {string: "\uFEFF1dir0000071!32!ZGlyNHV5bXFhaWZleGhpNmJla3RzcG1t"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:30 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 02:28:32 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.file.core.windows.net/share000004?restype=directory&comp=list&marker=1%2132%21ZGlyNHV5bXFhaWZleGhpNmJla3RzcG1t&maxresults=1 - response: - body: {string: "\uFEFF1!32!ZGlyNHV5bXFhaWZleGhpNmJla3RzcG1t1dir000008"} - headers: - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 02:28:32 GMT'] - server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 02:28:35 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdXTE82VkVTRko2SVpBM1FOTjdIQklBUFAzTFFYNlpEV1NaNHw1NzVCMDgzRDc0MzU3MzlDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_list_paging.yaml b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_list_paging.yaml deleted file mode 100644 index ad6622c0608..00000000000 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_queue_list_paging.yaml +++ /dev/null @@ -1,282 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 00:02:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Sat, 27 Jan 2018 00:02:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/b0cc92e9-cda4-4a4c-8321-cae5fa242dd2?monitor=true&api-version=2017-10-01'] - 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/b0cc92e9-cda4-4a4c-8321-cae5fa242dd2?monitor=true&api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Sat, 27 Jan 2018 00:02:42 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/b0cc92e9-cda4-4a4c-8321-cae5fa242dd2?monitor=true&api-version=2017-10-01'] - 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] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/b0cc92e9-cda4-4a4c-8321-cae5fa242dd2?monitor=true&api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-01-27T00:02:25.2174974Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-01-27T00:02:25.2174974Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-01-27T00:02:25.1549721Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:02:59 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"dxRjzsAUQkR/3kpR12KwSIXANiva1HjOlV0q0ulalidlZDRwclGDu23SA/T9IxVjnd0wXWS2CvSaUutzDitS0g==","permissions":"FULL"},{"keyName":"key2","value":"q5gD9yKiOf1lnbDqFMV6Rh/fCvzRWIG5jv/PDaueOyFhDrOb0D9uW3WtJEE1lfREEjA/rT2+0W9Kdup+K86PBw==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:03:06 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-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"dxRjzsAUQkR/3kpR12KwSIXANiva1HjOlV0q0ulalidlZDRwclGDu23SA/T9IxVjnd0wXWS2CvSaUutzDitS0g==","permissions":"FULL"},{"keyName":"key2","value":"q5gD9yKiOf1lnbDqFMV6Rh/fCvzRWIG5jv/PDaueOyFhDrOb0D9uW3WtJEE1lfREEjA/rT2+0W9Kdup+K86PBw==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:03:06 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-ms-ratelimit-remaining-subscription-writes: ['1191'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.queue.core.windows.net/queue000003 - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - x-ms-version: ['2017-04-17'] - method: PUT - uri: https://clitest000002.queue.core.windows.net/queue000004 - response: - body: {string: ''} - headers: - date: ['Sat, 27 Jan 2018 00:03:06 GMT'] - server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.queue.core.windows.net/?comp=list&maxresults=1 - response: - body: {string: "\uFEFF1queue000003/clitest000002/queue000004"} - headers: - cache-control: [no-cache] - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/0.37.1-0.36.0 (Python CPython 3.6.2; Windows 10) - AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:03:08 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.queue.core.windows.net/?comp=list&marker=%2Fclitest000002%2Fqueue000004&maxresults=1 - response: - body: {string: "\uFEFF/clitest000002/queue0000041queue000004"} - headers: - cache-control: [no-cache] - content-type: [application/xml] - date: ['Sat, 27 Jan 2018 00:03:07 GMT'] - server: [Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 00:03:08 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc2NjVJQ0U2UVlEN0M1QVhBWkFRQlBVWlRINlhLN0FZTk1CUXw0NUY0MTE5NDAwM0Q5QjQxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1186'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_list_paging.yaml b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_list_paging.yaml deleted file mode 100644 index 4339f181bcf..00000000000 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_list_paging.yaml +++ /dev/null @@ -1,277 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 00:12:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "westus", - "properties": {"supportsHttpsTrafficOnly": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2017-10-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Sat, 27 Jan 2018 00:12:21 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/0b1bd39e-7bde-4cb6-b7fd-e8fae7b9416d?monitor=true&api-version=2017-10-01'] - 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/asyncoperations/0b1bd39e-7bde-4cb6-b7fd-e8fae7b9416d?monitor=true&api-version=2017-10-01 - response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-01-27T00:12:21.0479852Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-01-27T00:12:21.0479852Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-01-27T00:12:21.0011076Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1231'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:12: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"v3AU8rDnV0kLEZoRSMgda1Y+8MirapcYzmtN9omUTZiirqt+9kpWuDD8veksAkJkVNWwJbCs2ejw5tMERsyJgw==","permissions":"FULL"},{"keyName":"key2","value":"htv8BgKjSrz5es1R10dx4MV02bJaxJ8MO3YB6bH8ttLE+l11OiClzf56JwaxRusYLmr8yRNr1Ob25z6xRYYEDw==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:12:39 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-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 azure-mgmt-storage/1.5.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2017-10-01 - response: - body: {string: '{"keys":[{"keyName":"key1","value":"v3AU8rDnV0kLEZoRSMgda1Y+8MirapcYzmtN9omUTZiirqt+9kpWuDD8veksAkJkVNWwJbCs2ejw5tMERsyJgw==","permissions":"FULL"},{"keyName":"key2","value":"htv8BgKjSrz5es1R10dx4MV02bJaxJ8MO3YB6bH8ttLE+l11OiClzf56JwaxRusYLmr8yRNr1Ob25z6xRYYEDw==","permissions":"FULL"}]}'} - headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Sat, 27 Jan 2018 00:12:39 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-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: 'b''{"TableName": "table000003"}''' - headers: - Accept: [application/json;odata=minimalmetadata] - Connection: [keep-alive] - Content-Length: ['41'] - Content-Type: [application/json] - DataServiceVersion: [3.0;NetFx] - MaxDataServiceVersion: ['3.0'] - Prefer: [return-no-content] - User-Agent: [Azure-CosmosDB/0.37.1 (Python CPython 3.6.2; Windows 10) AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:12:40 GMT'] - x-ms-version: ['2017-04-17'] - method: POST - uri: https://clitest000002.table.core.windows.net/Tables - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - dataserviceid: ['https://clitest75xaow5wky7a4lg6d.table.core.windows.net/Tables(''tablesjjzwmrq6jpbukxcaqo'')'] - date: ['Sat, 27 Jan 2018 00:12:40 GMT'] - location: ['https://clitest000002.table.core.windows.net/Tables(''table000003'')'] - preference-applied: [return-no-content] - server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0] - x-content-type-options: [nosniff] - x-ms-version: ['2017-04-17'] - status: {code: 204, message: No Content} -- request: - body: 'b''{"TableName": "table000004"}''' - headers: - Accept: [application/json;odata=minimalmetadata] - Connection: [keep-alive] - Content-Length: ['41'] - Content-Type: [application/json] - DataServiceVersion: [3.0;NetFx] - MaxDataServiceVersion: ['3.0'] - Prefer: [return-no-content] - User-Agent: [Azure-CosmosDB/0.37.1 (Python CPython 3.6.2; Windows 10) AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:12:41 GMT'] - x-ms-version: ['2017-04-17'] - method: POST - uri: https://clitest000002.table.core.windows.net/Tables - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - dataserviceid: ['https://clitest75xaow5wky7a4lg6d.table.core.windows.net/Tables(''tableobba5qv2dbmn5xfy7do'')'] - date: ['Sat, 27 Jan 2018 00:12:41 GMT'] - location: ['https://clitest000002.table.core.windows.net/Tables(''table000004'')'] - preference-applied: [return-no-content] - server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0] - x-content-type-options: [nosniff] - x-ms-version: ['2017-04-17'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - Accept: [application/json;odata=nometadata] - Connection: [keep-alive] - DataServiceVersion: [3.0;NetFx] - MaxDataServiceVersion: ['3.0'] - User-Agent: [Azure-CosmosDB/0.37.1 (Python CPython 3.6.2; Windows 10) AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:12:41 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.table.core.windows.net/Tables?%24top=1 - response: - body: {string: '{"value":[{"TableName":"table000004"}]}'} - headers: - cache-control: [no-cache] - content-type: [application/json;odata=nometadata;streaming=true;charset=utf-8] - date: ['Sat, 27 Jan 2018 00:12:41 GMT'] - server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-content-type-options: [nosniff] - x-ms-continuation-nexttablename: [1!56!dGFibGVzamp6d21ycTZqcGJ1a3hjYXFvATAxZDM5NzAzOGJhOGQ5YzU-] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;odata=nometadata] - Connection: [keep-alive] - DataServiceVersion: [3.0;NetFx] - MaxDataServiceVersion: ['3.0'] - User-Agent: [Azure-CosmosDB/0.37.1 (Python CPython 3.6.2; Windows 10) AZURECLI/2.0.26] - x-ms-date: ['Sat, 27 Jan 2018 00:12:41 GMT'] - x-ms-version: ['2017-04-17'] - method: GET - uri: https://clitest000002.table.core.windows.net/Tables?%24top=1&NextTableName=1%2156%21dGFibGVzamp6d21ycTZqcGJ1a3hjYXFvATAxZDM5NzAzOGJhOGQ5YzU- - response: - body: {string: '{"value":[{"TableName":"table000003"}]}'} - headers: - cache-control: [no-cache] - content-type: [application/json;odata=nometadata;streaming=true;charset=utf-8] - date: ['Sat, 27 Jan 2018 00:12:40 GMT'] - server: [Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-content-type-options: [nosniff] - x-ms-version: ['2017-04-17'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 00:12:42 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdCUFVHN0VJN0pVSkVONTdSWVJJQUpaVFdUQjQ2NUtGRlc2S3w1NEJDNjA1M0I5MkE5NzQ1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py index 143b780b9e2..3d688870c6c 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_blob_scenarios.py @@ -279,44 +279,6 @@ def test_storage_blob_container_operations(self, resource_group, storage_account self.storage_cmd('storage container exists -n {}', account_info, c) \ .assert_with_checks(JMESPathCheck('exists', False)) - @ResourceGroupPreparer() - @StorageAccountPreparer() - def test_storage_blob_list_paging(self, resource_group, storage_account): - account_info = self.get_account_info(resource_group, storage_account) - container1 = self.create_container(account_info) - container2 = self.create_container(account_info) - - # container list paging - result1 = self.storage_cmd('storage container list --num-results 1', account_info).get_output_in_json()[0] - result2 = self.storage_cmd('storage container list --num-results 1 --marker {}', - account_info, result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [container1, container2]) - self.assertIn(result2["name"], [container1, container2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - - local_file = self.create_temp_file(1) - blob_name1 = self.create_random_name(prefix='blob', length=24) - blob_name2 = self.create_random_name(prefix='blob', length=24) - - # blob list paging - self.storage_cmd('storage blob upload -c {} -f "{}" -n {} --type block', account_info, - container1, local_file, blob_name1) - self.storage_cmd('storage blob upload -c {} -f "{}" -n {} --type block', account_info, - container1, local_file, blob_name2) - result1 = self.storage_cmd('storage blob list --num-results 1 -c {}', account_info, - container1).get_output_in_json()[0] - result2 = self.storage_cmd('storage blob list --num-results 1 -c {} --marker {}', account_info, - container1, result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [blob_name1, blob_name2]) - self.assertIn(result2["name"], [blob_name1, blob_name2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - if __name__ == '__main__': unittest.main() diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_file_scenarios.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_file_scenarios.py index ec9341cfedc..f25bc558988 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_file_scenarios.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_file_scenarios.py @@ -102,61 +102,6 @@ def test_storage_file_main_scenario(self, resource_group, storage_account): self.storage_cmd('storage share delete -n {}', account_info, s1) \ .assert_with_checks(JMESPathCheck('deleted', True)) - @ResourceGroupPreparer() - @StorageAccountPreparer() - def test_storage_file_list_paging(self, resource_group, storage_account): - account_info = self.get_account_info(resource_group, storage_account) - share1 = self.create_share(account_info) - share2 = self.create_share(account_info) - - # share list paging - result1 = self.storage_cmd('storage share list --num-results 1', account_info).get_output_in_json()[0] - result2 = self.storage_cmd('storage share list --num-results 1 --marker {}', - account_info, result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [share1, share2]) - self.assertIn(result2["name"], [share1, share2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - - local_file = self.create_temp_file(1) - file_name1 = self.create_random_name(prefix='file', length=24) + '.txt' - file_name2 = self.create_random_name(prefix='file', length=24) + '.txt' - - # file list paging - self.storage_cmd('storage file upload -p "{}" --share-name {} --source "{}"', account_info, - file_name1, share1, local_file) - self.storage_cmd('storage file upload -p "{}" --share-name {} --source "{}"', account_info, - file_name2, share1, local_file) - result1 = self.storage_cmd('storage file list --num-results 1 -s {} --exclude-dir', account_info, - share1).get_output_in_json()[0] - result2 = self.storage_cmd('storage file list --num-results 1 -s {} --marker {}', account_info, - share1, result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [file_name1, file_name2]) - self.assertIn(result2["name"], [file_name1, file_name2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - - dir_name1 = self.create_random_name(prefix='dir', length=24) - dir_name2 = self.create_random_name(prefix='dir', length=24) - - # directory list paging - self.storage_cmd('storage directory create -n {} --share-name {}', account_info, dir_name1, share2) - self.storage_cmd('storage directory create -n {} --share-name {}', account_info, dir_name2, share2) - result1 = self.storage_cmd('storage directory list --num-results 1 -s {}', account_info, - share2).get_output_in_json()[0] - result2 = self.storage_cmd('storage directory list --num-results 1 -s {} --marker {}', account_info, - share2, result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [dir_name1, dir_name2]) - self.assertIn(result2["name"], [dir_name1, dir_name2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - def validate_directory_scenario(self, account_info, share): directory = self.create_random_name('dir', 16) self.storage_cmd('storage directory create --share-name {} --name {} --fail-on-exist', diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_queue_scenarios.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_queue_scenarios.py index 1925a4413f9..be4926b6de5 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_queue_scenarios.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_queue_scenarios.py @@ -7,11 +7,10 @@ from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer, api_version_constraint, JMESPathCheck, JMESPathCheckExists, NoneCheck) from azure.cli.core.profiles import ResourceType -from .storage_test_util import StorageScenarioMixin @api_version_constraint(ResourceType.MGMT_STORAGE, min_api='2016-12-01') -class StorageQueueScenarioTests(StorageScenarioMixin, ScenarioTest): +class StorageQueueScenarioTests(ScenarioTest): @ResourceGroupPreparer() @StorageAccountPreparer(sku='Standard_RAGRS') def test_storage_queue_general_scenario(self, resource_group, storage_account): @@ -116,27 +115,6 @@ def test_storage_queue_general_scenario(self, resource_group, storage_account): queue_status = self.cmd('storage queue stats').get_output_in_json() self.assertIn(queue_status['geoReplication']['status'], ('live', 'unavailable')) - @ResourceGroupPreparer() - @StorageAccountPreparer() - def test_storage_queue_list_paging(self, resource_group, storage_account): - account_info = self.get_account_info(resource_group, storage_account) - - queue1 = self.create_random_name('queue', 24) - queue2 = self.create_random_name('queue', 24) - - self.storage_cmd('storage queue create -n {}', account_info, queue1) - self.storage_cmd('storage queue create -n {}', account_info, queue2) - - result1 = self.storage_cmd('storage queue list --num-results 1', account_info).get_output_in_json()[0] - result2 = self.storage_cmd('storage queue list --num-results 1 --marker {}', account_info, - result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [queue1, queue2]) - self.assertIn(result2["name"], [queue1, queue2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - def get_account_key(self, group, name): return self.cmd('storage account keys list -n {} -g {} --query "[0].value" -otsv' .format(name, group)).output diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py index 437c1df0f08..c91c7adb33c 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py +++ b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py @@ -45,27 +45,6 @@ def test_storage_table_main_scenario(self, resource_group, storage_account): table_status = self.storage_cmd('storage table stats', account_info).get_output_in_json() self.assertIn(table_status['geoReplication']['status'], ('live', 'unavailable')) - @ResourceGroupPreparer() - @StorageAccountPreparer() - def test_storage_table_list_paging(self, resource_group, storage_account): - account_info = self.get_account_info(resource_group, storage_account) - - table1 = self.create_random_name('table', 24) - table2 = self.create_random_name('table', 24) - - self.storage_cmd('storage table create -n {}', account_info, table1) - self.storage_cmd('storage table create -n {}', account_info, table2) - - result1 = self.storage_cmd('storage table list --num-results 1', account_info).get_output_in_json()[0] - result2 = self.storage_cmd('storage table list --num-results 1 --marker {}', account_info, - result1["nextMarker"]).get_output_in_json()[0] - - # verify paging results - self.assertIn(result1["name"], [table1, table2]) - self.assertIn(result2["name"], [table1, table2]) - self.assertTrue(result1["name"] != result2["name"]) - self.assertTrue(not result2["nextMarker"]) - def verify_entity_operations(self, account_info, table_name): self.storage_cmd( 'storage entity insert -t {} -e rowkey=001 partitionkey=001 name=test value=something',