From 2a83a0a0ebd058c346ffc3ee7258a0d233fa48d5 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:54:58 +0800 Subject: [PATCH] add instruction for specifying odatatype for entity values --- .../cli/command_modules/storage/_help.py | 11 +- .../test_storage_table_main_scenario.yaml | 574 ++++++++++++------ .../latest/test_storage_table_scenarios.py | 12 + 3 files changed, 410 insertions(+), 187 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index bd23c818a32..5432eda825b 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -1860,7 +1860,13 @@ - name: --entity -e type: list short-summary: Space-separated list of key=value pairs. Must contain a PartitionKey and a RowKey. - long-summary: The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted. For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting. + long-summary: > + The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. + If using an integer value as a key, convert it to a fixed-width string which can be canonically sorted. + For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting. \n + To manually specify the value type, an additional key,value pair can be added in the format of + key@odata.type= where can be from the following list: Edm.Binary, Edm.Int64, Edm.Guid, + Edm.DateTime, Edm.String, Edm.Int32, Edm.Double, Edm.Boolean - name: --if-exists type: string short-summary: Behavior when an entity already exists for the specified PartitionKey and RowKey. @@ -1869,6 +1875,9 @@ text: | az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=ASDF2 --if-exists fail --table-name MyTable crafted: true + - name: Insert an entity when specifying the odatatype. + text: | + az storage entity insert --connection-string $connectionString --entity PartitionKey=AAA RowKey=BBB Content=0152 Content@odata.type=Edm.String --if-exists merge --table-name MyTable """ helps['storage entity merge'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_main_scenario.yaml index 0fe16b0bcce..7e061f0f300 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_table_main_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-core/1.31.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2023-05-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2024-06-20T04:31:45.6629037Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2024-06-20T04:31:45.6629037Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2024-12-17T07:40:33.1019364Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2024-12-17T07:40:33.1019364Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 20 Jun 2024 04:32:10 GMT + - Tue, 17 Dec 2024 07:41:01 GMT expires: - '-1' pragma: @@ -41,9 +41,9 @@ interactions: x-content-type-options: - nosniff x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/212510d3-dee0-4d77-b2b6-ff04a7883c1d + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/04d5e70a-0214-4ca2-bd16-aac0144191f0 x-ms-ratelimit-remaining-subscription-resource-requests: - - '11991' + - '11996' status: code: 200 message: OK @@ -65,13 +65,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:12 GMT + - Tue, 17 Dec 2024 07:41:03 GMT ParameterSetName: - -n --fail-on-exist --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:12 GMT + - Tue, 17 Dec 2024 07:41:03 GMT x-ms-version: - '2019-02-02' method: POST @@ -85,7 +85,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:12 GMT + - Tue, 17 Dec 2024 07:41:04 GMT location: - https://clitest000002.table.core.windows.net/Tables('table000003') server: @@ -113,13 +113,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:13 GMT + - Tue, 17 Dec 2024 07:41:04 GMT ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:13 GMT + - Tue, 17 Dec 2024 07:41:04 GMT x-ms-version: - '2019-02-02' method: GET @@ -133,7 +133,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:14 GMT + - Tue, 17 Dec 2024 07:41:05 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -159,13 +159,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:15 GMT + - Tue, 17 Dec 2024 07:41:06 GMT ParameterSetName: - --query --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:15 GMT + - Tue, 17 Dec 2024 07:41:06 GMT x-ms-version: - '2019-02-02' method: GET @@ -179,7 +179,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:15 GMT + - Tue, 17 Dec 2024 07:41:06 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -212,29 +212,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:17 GMT + - Tue, 17 Dec 2024 07:41:07 GMT ParameterSetName: - -t -e --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:17 GMT + - Tue, 17 Dec 2024 07:41:07 GMT x-ms-version: - '2019-02-02' method: POST uri: https://clitest000002.table.core.windows.net/table000003 response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A18.881974Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:18.881974Z","name":"test","value":"something","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A08.3962272Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:08.3962272Z","name":"test","value":"something","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:18 GMT + - Tue, 17 Dec 2024 07:41:08 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A18.881974Z'" + - W/"datetime'2024-12-17T07%3A41%3A08.3962272Z'" location: - https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001') server: @@ -262,29 +262,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:19 GMT + - Tue, 17 Dec 2024 07:41:08 GMT ParameterSetName: - -t --row-key --partition-key --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:19 GMT + - Tue, 17 Dec 2024 07:41:08 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001') response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A18.881974Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:18.881974Z","name":"test","value":"something","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A08.3962272Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:08.3962272Z","name":"test","value":"something","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:19 GMT + - Tue, 17 Dec 2024 07:41:09 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A18.881974Z'" + - W/"datetime'2024-12-17T07%3A41%3A08.3962272Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -310,29 +310,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:21 GMT + - Tue, 17 Dec 2024 07:41:09 GMT ParameterSetName: - -t --row-key --partition-key --select --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:21 GMT + - Tue, 17 Dec 2024 07:41:09 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001')?$select=name response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element&$select=name","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A18.881974Z''\"","name":"test"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element&$select=name","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A08.3962272Z''\"","name":"test"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:21 GMT + - Tue, 17 Dec 2024 07:41:10 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A18.881974Z'" + - W/"datetime'2024-12-17T07%3A41%3A08.3962272Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -364,15 +364,15 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:22 GMT + - Tue, 17 Dec 2024 07:41:11 GMT If-Match: - '*' ParameterSetName: - -t -e --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:22 GMT + - Tue, 17 Dec 2024 07:41:11 GMT x-ms-version: - '2019-02-02' method: PATCH @@ -386,9 +386,9 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:23 GMT + - Tue, 17 Dec 2024 07:41:11 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A23.2911933Z'" + - W/"datetime'2024-12-17T07%3A41%3A11.9040932Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -412,29 +412,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:23 GMT + - Tue, 17 Dec 2024 07:41:12 GMT ParameterSetName: - -t --row-key --partition-key --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:23 GMT + - Tue, 17 Dec 2024 07:41:12 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001') response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A23.2911933Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:23.2911933Z","name":"test","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922","value":"newval"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A11.9040932Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:11.9040932Z","name":"test","sizeInBytes@odata.type":"Edm.Int64","sizeInBytes":"86222504922","value":"newval"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:24 GMT + - Tue, 17 Dec 2024 07:41:12 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A23.2911933Z'" + - W/"datetime'2024-12-17T07%3A41%3A11.9040932Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -465,15 +465,15 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:24 GMT + - Tue, 17 Dec 2024 07:41:13 GMT If-Match: - '*' ParameterSetName: - -t -e --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:24 GMT + - Tue, 17 Dec 2024 07:41:13 GMT x-ms-version: - '2019-02-02' method: PUT @@ -487,9 +487,9 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:25 GMT + - Tue, 17 Dec 2024 07:41:14 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A25.9674319Z'" + - W/"datetime'2024-12-17T07%3A41%3A14.214947Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -513,29 +513,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:26 GMT + - Tue, 17 Dec 2024 07:41:14 GMT ParameterSetName: - -t --row-key --partition-key --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:26 GMT + - Tue, 17 Dec 2024 07:41:14 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001') response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A25.9674319Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:25.9674319Z","cat":"hat"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A14.214947Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:14.214947Z","cat":"hat"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:26 GMT + - Tue, 17 Dec 2024 07:41:14 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A25.9674319Z'" + - W/"datetime'2024-12-17T07%3A41%3A14.214947Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -563,15 +563,15 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:27 GMT + - Tue, 17 Dec 2024 07:41:15 GMT If-Match: - '*' ParameterSetName: - -t --row-key --partition-key --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:27 GMT + - Tue, 17 Dec 2024 07:41:15 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -585,7 +585,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:28 GMT + - Tue, 17 Dec 2024 07:41:16 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -609,13 +609,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:28 GMT + - Tue, 17 Dec 2024 07:41:16 GMT ParameterSetName: - -t --row-key --partition-key --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:28 GMT + - Tue, 17 Dec 2024 07:41:16 GMT x-ms-version: - '2019-02-02' method: GET @@ -623,14 +623,14 @@ interactions: response: body: string: '{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The - specified resource does not exist.\nRequestId:3045295f-6002-00ce-67ca-c22026000000\nTime:2024-06-20T04:32:29.7163958Z"}}}' + specified resource does not exist.\nRequestId:a1579e72-e002-0049-1e57-50f5fa000000\nTime:2024-12-17T07:41:17.7379290Z"}}}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:28 GMT + - Tue, 17 Dec 2024 07:41:17 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -662,29 +662,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:30 GMT + - Tue, 17 Dec 2024 07:41:18 GMT ParameterSetName: - -t -e --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:30 GMT + - Tue, 17 Dec 2024 07:41:18 GMT x-ms-version: - '2019-02-02' method: POST uri: https://clitest000002.table.core.windows.net/table000003 response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A31.0256693Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:31.0256693Z","name":"test","value":"something"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A18.9054068Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:18.9054068Z","name":"test","value":"something"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:30 GMT + - Tue, 17 Dec 2024 07:41:18 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A31.0256693Z'" + - W/"datetime'2024-12-17T07%3A41%3A18.9054068Z'" location: - https://clitest000002.table.core.windows.net/table000003(PartitionKey='001',RowKey='001') server: @@ -718,29 +718,29 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:31 GMT + - Tue, 17 Dec 2024 07:41:19 GMT ParameterSetName: - -t -e --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:31 GMT + - Tue, 17 Dec 2024 07:41:19 GMT x-ms-version: - '2019-02-02' method: POST uri: https://clitest000002.table.core.windows.net/table000003 response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A32.4076477Z''\"","PartitionKey":"002","RowKey":"002","Timestamp":"2024-06-20T04:32:32.4076477Z","name":"test2","value":"something2"}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A20.064727Z''\"","PartitionKey":"002","RowKey":"002","Timestamp":"2024-12-17T07:41:20.064727Z","name":"test2","value":"something2"}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:31 GMT + - Tue, 17 Dec 2024 07:41:19 GMT etag: - - W/"datetime'2024-06-20T04%3A32%3A32.4076477Z'" + - W/"datetime'2024-12-17T07%3A41%3A20.064727Z'" location: - https://clitest000002.table.core.windows.net/table000003(PartitionKey='002',RowKey='002') server: @@ -768,27 +768,27 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:32 GMT + - Tue, 17 Dec 2024 07:41:20 GMT ParameterSetName: - -t --num-results --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:32 GMT + - Tue, 17 Dec 2024 07:41:20 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003()?$top=1 response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003","value":[{"odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A31.0256693Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-06-20T04:32:31.0256693Z","name":"test","value":"something"}]}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003","value":[{"odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A18.9054068Z''\"","PartitionKey":"001","RowKey":"001","Timestamp":"2024-12-17T07:41:18.9054068Z","name":"test","value":"something"}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:33 GMT + - Tue, 17 Dec 2024 07:41:20 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -818,27 +818,229 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:34 GMT + - Tue, 17 Dec 2024 07:41:21 GMT ParameterSetName: - -t --marker --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:34 GMT + - Tue, 17 Dec 2024 07:41:21 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002.table.core.windows.net/table000003()?NextPartitionKey=1%214%21MDAy&NextRowKey=1%214%21MDAy response: body: - string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003","value":[{"odata.etag":"W/\"datetime''2024-06-20T04%3A32%3A32.4076477Z''\"","PartitionKey":"002","RowKey":"002","Timestamp":"2024-06-20T04:32:32.4076477Z","name":"test2","value":"something2"}]}' + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003","value":[{"odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A20.064727Z''\"","PartitionKey":"002","RowKey":"002","Timestamp":"2024-12-17T07:41:20.064727Z","name":"test2","value":"something2"}]}' headers: cache-control: - no-cache content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:34 GMT + - Tue, 17 Dec 2024 07:41:22 GMT + server: + - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: '{"value": 152, "RowKey": "003", "RowKey@odata.type": "Edm.String", "PartitionKey": + "003", "PartitionKey@odata.type": "Edm.String"}' + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + CommandName: + - storage entity insert + Connection: + - keep-alive + Content-Length: + - '130' + Content-Type: + - application/json;odata=nometadata + DataServiceVersion: + - '3.0' + Date: + - Tue, 17 Dec 2024 07:41:22 GMT + ParameterSetName: + - -t -e --account-name --account-key + User-Agent: + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + x-ms-date: + - Tue, 17 Dec 2024 07:41:22 GMT + x-ms-version: + - '2019-02-02' + method: POST + uri: https://clitest000002.table.core.windows.net/table000003 + response: + body: + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A23.6670918Z''\"","PartitionKey":"003","RowKey":"003","Timestamp":"2024-12-17T07:41:23.6670918Z","value":152}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Tue, 17 Dec 2024 07:41:23 GMT + etag: + - W/"datetime'2024-12-17T07%3A41%3A23.6670918Z'" + location: + - https://clitest000002.table.core.windows.net/table000003(PartitionKey='003',RowKey='003') + server: + - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + CommandName: + - storage entity show + Connection: + - keep-alive + DataServiceVersion: + - '3.0' + Date: + - Tue, 17 Dec 2024 07:41:23 GMT + ParameterSetName: + - -t --row-key --partition-key --account-name --account-key + User-Agent: + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + x-ms-date: + - Tue, 17 Dec 2024 07:41:23 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='003',RowKey='003') + response: + body: + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A23.6670918Z''\"","PartitionKey":"003","RowKey":"003","Timestamp":"2024-12-17T07:41:23.6670918Z","value":152}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Tue, 17 Dec 2024 07:41:23 GMT + etag: + - W/"datetime'2024-12-17T07%3A41%3A23.6670918Z'" + server: + - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: '{"value": "0152", "value@odata.type": "Edm.String", "RowKey": "003", "RowKey@odata.type": + "Edm.String", "PartitionKey": "003", "PartitionKey@odata.type": "Edm.String"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage entity insert + Connection: + - keep-alive + Content-Length: + - '167' + Content-Type: + - application/json + DataServiceVersion: + - '3.0' + Date: + - Tue, 17 Dec 2024 07:41:25 GMT + ParameterSetName: + - -t -e --if-exists --account-name --account-key + User-Agent: + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + x-ms-date: + - Tue, 17 Dec 2024 07:41:25 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='003',RowKey='003') + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 17 Dec 2024 07:41:25 GMT + etag: + - W/"datetime'2024-12-17T07%3A41%3A25.9892526Z'" + server: + - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 + x-content-type-options: + - nosniff + x-ms-version: + - '2019-02-02' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json;odata=minimalmetadata + Accept-Encoding: + - gzip, deflate + CommandName: + - storage entity show + Connection: + - keep-alive + DataServiceVersion: + - '3.0' + Date: + - Tue, 17 Dec 2024 07:41:26 GMT + ParameterSetName: + - -t --row-key --partition-key --account-name --account-key + User-Agent: + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + x-ms-date: + - Tue, 17 Dec 2024 07:41:26 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitest000002.table.core.windows.net/table000003(PartitionKey='003',RowKey='003') + response: + body: + string: '{"odata.metadata":"https://clitest000002.table.core.windows.net/$metadata#table000003/@Element","odata.etag":"W/\"datetime''2024-12-17T07%3A41%3A25.9892526Z''\"","PartitionKey":"003","RowKey":"003","Timestamp":"2024-12-17T07:41:25.9892526Z","value":"0152"}' + headers: + cache-control: + - no-cache + content-type: + - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 + date: + - Tue, 17 Dec 2024 07:41:26 GMT + etag: + - W/"datetime'2024-12-17T07%3A41%3A25.9892526Z'" server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -862,13 +1064,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:35 GMT + - Tue, 17 Dec 2024 07:41:27 GMT ParameterSetName: - -t --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:35 GMT + - Tue, 17 Dec 2024 07:41:27 GMT x-ms-version: - '2019-02-02' method: GET @@ -881,7 +1083,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:35 GMT + - Tue, 17 Dec 2024 07:41:27 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -903,13 +1105,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:36 GMT + - Tue, 17 Dec 2024 07:41:28 GMT ParameterSetName: - -t -n --permission --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:36 GMT + - Tue, 17 Dec 2024 07:41:28 GMT x-ms-version: - '2019-02-02' method: GET @@ -922,7 +1124,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:36 GMT + - Tue, 17 Dec 2024 07:41:29 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -950,13 +1152,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:37 GMT + - Tue, 17 Dec 2024 07:41:29 GMT ParameterSetName: - -t -n --permission --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:37 GMT + - Tue, 17 Dec 2024 07:41:29 GMT x-ms-version: - '2019-02-02' method: PUT @@ -968,7 +1170,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:37 GMT + - Tue, 17 Dec 2024 07:41:29 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -988,13 +1190,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:38 GMT + - Tue, 17 Dec 2024 07:41:30 GMT ParameterSetName: - -t -n --start --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:38 GMT + - Tue, 17 Dec 2024 07:41:30 GMT x-ms-version: - '2019-02-02' method: GET @@ -1006,7 +1208,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:38 GMT + - Tue, 17 Dec 2024 07:41:30 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1034,13 +1236,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:39 GMT + - Tue, 17 Dec 2024 07:41:31 GMT ParameterSetName: - -t -n --start --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:39 GMT + - Tue, 17 Dec 2024 07:41:31 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1052,7 +1254,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:38 GMT + - Tue, 17 Dec 2024 07:41:30 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1072,13 +1274,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:39 GMT + - Tue, 17 Dec 2024 07:41:31 GMT ParameterSetName: - -t -n --expiry --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:39 GMT + - Tue, 17 Dec 2024 07:41:31 GMT x-ms-version: - '2019-02-02' method: GET @@ -1090,7 +1292,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:39 GMT + - Tue, 17 Dec 2024 07:41:31 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1119,13 +1321,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:40 GMT + - Tue, 17 Dec 2024 07:41:32 GMT ParameterSetName: - -t -n --expiry --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:40 GMT + - Tue, 17 Dec 2024 07:41:32 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1137,7 +1339,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:40 GMT + - Tue, 17 Dec 2024 07:41:32 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1157,13 +1359,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:41 GMT + - Tue, 17 Dec 2024 07:41:33 GMT ParameterSetName: - -t -n --permission --start --expiry --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:41 GMT + - Tue, 17 Dec 2024 07:41:33 GMT x-ms-version: - '2019-02-02' method: GET @@ -1175,7 +1377,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:41 GMT + - Tue, 17 Dec 2024 07:41:33 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1205,13 +1407,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:42 GMT + - Tue, 17 Dec 2024 07:41:34 GMT ParameterSetName: - -t -n --permission --start --expiry --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:42 GMT + - Tue, 17 Dec 2024 07:41:34 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1223,7 +1425,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:41 GMT + - Tue, 17 Dec 2024 07:41:34 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1243,13 +1445,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:43 GMT + - Tue, 17 Dec 2024 07:41:34 GMT ParameterSetName: - -t --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:43 GMT + - Tue, 17 Dec 2024 07:41:34 GMT x-ms-version: - '2019-02-02' method: GET @@ -1261,7 +1463,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:43 GMT + - Tue, 17 Dec 2024 07:41:35 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1283,13 +1485,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:44 GMT + - Tue, 17 Dec 2024 07:41:36 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:44 GMT + - Tue, 17 Dec 2024 07:41:36 GMT x-ms-version: - '2019-02-02' method: GET @@ -1301,7 +1503,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:45 GMT + - Tue, 17 Dec 2024 07:41:36 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1323,13 +1525,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:45 GMT + - Tue, 17 Dec 2024 07:41:37 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:45 GMT + - Tue, 17 Dec 2024 07:41:37 GMT x-ms-version: - '2019-02-02' method: GET @@ -1341,7 +1543,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:46 GMT + - Tue, 17 Dec 2024 07:41:37 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1363,13 +1565,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:46 GMT + - Tue, 17 Dec 2024 07:41:38 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:46 GMT + - Tue, 17 Dec 2024 07:41:38 GMT x-ms-version: - '2019-02-02' method: GET @@ -1381,7 +1583,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:47 GMT + - Tue, 17 Dec 2024 07:41:38 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1403,13 +1605,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:48 GMT + - Tue, 17 Dec 2024 07:41:39 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:48 GMT + - Tue, 17 Dec 2024 07:41:39 GMT x-ms-version: - '2019-02-02' method: GET @@ -1421,7 +1623,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:48 GMT + - Tue, 17 Dec 2024 07:41:39 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1443,13 +1645,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:49 GMT + - Tue, 17 Dec 2024 07:41:40 GMT ParameterSetName: - -t -n --permission --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:49 GMT + - Tue, 17 Dec 2024 07:41:40 GMT x-ms-version: - '2019-02-02' method: GET @@ -1461,7 +1663,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:49 GMT + - Tue, 17 Dec 2024 07:41:41 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1491,13 +1693,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:50 GMT + - Tue, 17 Dec 2024 07:41:41 GMT ParameterSetName: - -t -n --permission --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:50 GMT + - Tue, 17 Dec 2024 07:41:41 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1509,7 +1711,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:49 GMT + - Tue, 17 Dec 2024 07:41:41 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1529,13 +1731,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:50 GMT + - Tue, 17 Dec 2024 07:41:42 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:50 GMT + - Tue, 17 Dec 2024 07:41:42 GMT x-ms-version: - '2019-02-02' method: GET @@ -1547,7 +1749,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:50 GMT + - Tue, 17 Dec 2024 07:41:42 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1569,13 +1771,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:52 GMT + - Tue, 17 Dec 2024 07:41:43 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:52 GMT + - Tue, 17 Dec 2024 07:41:43 GMT x-ms-version: - '2019-02-02' method: GET @@ -1587,7 +1789,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:52 GMT + - Tue, 17 Dec 2024 07:41:43 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1617,13 +1819,13 @@ interactions: Content-Type: - application/xml Date: - - Thu, 20 Jun 2024 04:32:53 GMT + - Tue, 17 Dec 2024 07:41:44 GMT ParameterSetName: - -t -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:53 GMT + - Tue, 17 Dec 2024 07:41:44 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1635,7 +1837,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:52 GMT + - Tue, 17 Dec 2024 07:41:43 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1655,13 +1857,13 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:32:53 GMT + - Tue, 17 Dec 2024 07:41:45 GMT ParameterSetName: - -t --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:53 GMT + - Tue, 17 Dec 2024 07:41:45 GMT x-ms-version: - '2019-02-02' method: GET @@ -1673,7 +1875,7 @@ interactions: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:32:53 GMT + - Tue, 17 Dec 2024 07:41:45 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1697,13 +1899,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:55 GMT + - Tue, 17 Dec 2024 07:41:46 GMT ParameterSetName: - --name --fail-not-exist --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:55 GMT + - Tue, 17 Dec 2024 07:41:46 GMT x-ms-version: - '2019-02-02' method: GET @@ -1717,7 +1919,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:55 GMT + - Tue, 17 Dec 2024 07:41:46 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1743,13 +1945,13 @@ interactions: Content-Length: - '0' Date: - - Thu, 20 Jun 2024 04:32:56 GMT + - Tue, 17 Dec 2024 07:41:47 GMT ParameterSetName: - --name --fail-not-exist --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:56 GMT + - Tue, 17 Dec 2024 07:41:47 GMT x-ms-version: - '2019-02-02' method: DELETE @@ -1763,7 +1965,7 @@ interactions: content-length: - '0' date: - - Thu, 20 Jun 2024 04:32:55 GMT + - Tue, 17 Dec 2024 07:41:46 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 x-content-type-options: @@ -1787,13 +1989,13 @@ interactions: DataServiceVersion: - '3.0' Date: - - Thu, 20 Jun 2024 04:32:56 GMT + - Tue, 17 Dec 2024 07:41:47 GMT ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:32:56 GMT + - Tue, 17 Dec 2024 07:41:47 GMT x-ms-version: - '2019-02-02' method: GET @@ -1807,7 +2009,7 @@ interactions: content-type: - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 date: - - Thu, 20 Jun 2024 04:32:56 GMT + - Tue, 17 Dec 2024 07:41:48 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1831,26 +2033,26 @@ interactions: Connection: - keep-alive Date: - - Thu, 20 Jun 2024 04:37:57 GMT + - Tue, 17 Dec 2024 07:46:49 GMT ParameterSetName: - --account-name --account-key User-Agent: - - AZURECLI/2.61.0 azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.67.0 (PIP) azsdk-python-data-tables/12.4.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Thu, 20 Jun 2024 04:37:57 GMT + - Tue, 17 Dec 2024 07:46:49 GMT x-ms-version: - '2019-02-02' method: GET uri: https://clitest000002-secondary.table.core.windows.net/?restype=service&comp=stats response: body: - string: "\uFEFFliveThu, - 20 Jun 2024 04:33:31 GMT" + string: "\uFEFFliveTue, + 17 Dec 2024 07:43:56 GMT" headers: content-type: - application/xml date: - - Thu, 20 Jun 2024 04:37:58 GMT + - Tue, 17 Dec 2024 07:46:50 GMT server: - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py index bcaacf9f961..b0d6b63739a 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_table_scenarios.py @@ -91,6 +91,18 @@ def verify_entity_operations(self, account_info, table_name): table_name, marker.get('nextpartitionkey'), marker.get('nextrowkey')).assert_with_checks( JMESPathCheck('length(items)', 1)) + self.storage_cmd('storage entity insert -t {} -e rowkey=003 partitionkey=003 value=0152', + account_info, table_name) + self.storage_cmd('storage entity show -t {} --row-key 003 --partition-key 003', + account_info, table_name) \ + .assert_with_checks(JMESPathCheck('value', 152)) + self.storage_cmd('storage entity insert -t {} -e rowkey=003 partitionkey=003 value=0152 ' + 'value@odata.type=Edm.String --if-exists replace', + account_info, table_name) + self.storage_cmd('storage entity show -t {} --row-key 003 --partition-key 003', + account_info, table_name) \ + .assert_with_checks(JMESPathCheck('value', '0152')) + def verify_table_acl_operations(self, account_info, table_name): self.storage_cmd('storage table policy list -t {}', account_info, table_name).assert_with_checks(NoneCheck())