diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/__init__.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/__init__.py deleted file mode 100644 index c9cfdc73e77..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/example_steps.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/example_steps.py deleted file mode 100644 index c121e563394..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/example_steps.py +++ /dev/null @@ -1,285 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=unused-argument - -from .. import try_manual - - -# EXAMPLE: /Devices/put/DataBoxEdgeDevicePut -@try_manual -def step_device_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device create ' - '--location "eastus" ' - '--sku "Edge" ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetByName -@try_manual -def step_device_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device show ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetByResourceGroup -@try_manual -def step_device_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device list ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetBySubscription -@try_manual -def step_device_list2(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device list ' - '-g ""', - checks=checks) - - -# EXAMPLE: /Devices/get/UpdateSummaryGet -@try_manual -def step_device_show_update_summary(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device show-update-summary ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/patch/DataBoxEdgeDevicePatch -@try_manual -def step_device_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device update ' - '--name "{myDevice}" ' - '--tags Key1="value1" Key2="value2" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/DownloadUpdatesPost -@try_manual -def step_device_download_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device download-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/InstallUpdatesPost -@try_manual -def step_device_install_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device install-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/ScanForUpdatesPost -@try_manual -def step_device_scan_for_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device scan-for-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Alerts/get/AlertGet -@try_manual -def step_alert_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge alert show ' - '--name "159a00c7-8543-4343-9435-263ac87df3bb" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Alerts/get/AlertGetAllInDevice -@try_manual -def step_alert_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge alert list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/put/BandwidthSchedulePut -@try_manual -def step_bandwidth_schedule_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule create ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--days "Sunday" "Monday" ' - '--rate-in-mbps 100 ' - '--start "0:0:0" ' - '--stop "13:59:0" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/get/BandwidthScheduleGet -@try_manual -def step_bandwidth_schedule_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule show ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/get/BandwidthScheduleGetAllInDevice -@try_manual -def step_bandwidth_schedule_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/delete/BandwidthScheduleDelete -@try_manual -def step_bandwidth_schedule_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule delete -y ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Jobs/get/JobsGet -@try_manual -def step_show_job(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge show-job ' - '--name "159a00c7-8543-4343-9435-263ac87df3bb" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Nodes/get/NodesGetAllInDevice -@try_manual -def step_list_node(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge list-node ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/put/OrderPut -@try_manual -def step_order_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order create ' - '--device-name "{myDevice}" ' - '--company-name "Microsoft" ' - '--contact-person "John Mcclane" ' - '--email-list "john@microsoft.com" ' - '--phone "(800) 426-9400" ' - '--address-line1 "Microsoft Corporation" ' - '--address-line2 "One Microsoft Way" ' - '--address-line3 "Redmond" ' - '--city "WA" ' - '--country "United States" ' - '--postal-code "98052" ' - '--state "WA" ' - '--status "Untracked" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/get/OrderGet -@try_manual -def step_order_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order show ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/get/OrderGetAllInDevice -@try_manual -def step_order_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/delete/OrderDelete -@try_manual -def step_order_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order delete -y ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/delete/DataBoxEdgeDeviceDelete -@try_manual -def step_device_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device delete -y ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Skus/get/ListSkus -@try_manual -def step_list_sku(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge list-sku', - checks=checks) diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_device_general.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_device_general.yaml deleted file mode 100644 index 02b1a2292eb..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_device_general.yaml +++ /dev/null @@ -1,448 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "sku": {"name": "Edge", "tier": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device create - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --location --sku --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A53%3A14.4640664Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A14.4720717Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"properties\": {\r\n - \ \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": - \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0,\r\n \"nodeCount\": - 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": \"None\"\r\n - \ }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '805' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A53%3A14.4640664Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A14.4720717Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '687' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n - \ \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A53%3A14.4640664Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A14.4720717Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '784' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n - \ \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A53%3A14.4640664Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A14.4720717Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A53%3A12.8687569Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A12.8747611Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest6dioyesf4l4gpngh3ltw5fm2jwsut4dchb7jwpbd5f4hacf24ne6axxl5bdxkd36csm5/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-12-07T09%3A57%3A46.069116Z'\\\"_W/\\\"datetime'2020-12-07T09%3A57%3A46.0751198Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"c9fd4631-c426-427e-bfda-13038fdcc74f\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n - \ },\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": - \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 1\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testdevice\",\r\n - \ \"name\": \"testdevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-11-26T07%3A55%3A22.0431885Z'\\\"_W/\\\"datetime'2020-11-26T07%3A55%3A22.0511943Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '3122' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"tags": {"Key1": "value1", "Key2": "value2"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device update - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --name --tags --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Key1\": - \"value1\",\r\n \"Key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A53%3A21.6038818Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A21.609886Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": - \"None\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '810' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Key1\": - \"value1\",\r\n \"Key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A53%3A21.6038818Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A21.609886Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '735' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:53:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:35 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_general_Scenario.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_general_Scenario.yaml deleted file mode 100644 index 61f2eb2c519..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_general_Scenario.yaml +++ /dev/null @@ -1,45 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge list-sku - Connection: - - keep-alive - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge/skus?api-version=2019-08-01 - response: - body: - string: '{"value":[{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["eastus"],"locationInfo":[{"location":"eastus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["eastus"],"locationInfo":[{"location":"eastus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westcentralus"],"locationInfo":[{"location":"westcentralus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westcentralus"],"locationInfo":[{"location":"westcentralus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["southeastasia"],"locationInfo":[{"location":"southeastasia","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["southeastasia"],"locationInfo":[{"location":"southeastasia","zones":[],"zoneDetails":[]}],"restrictions":[]}]}' - headers: - cache-control: - - no-cache - content-length: - - '2396' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_order_Scenario.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_order_Scenario.yaml deleted file mode 100644 index ee655b80caf..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/recordings/test_order_Scenario.yaml +++ /dev/null @@ -1,520 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "sku": {"name": "Edge", "tier": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device create - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --location --sku --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A53%3A12.8687569Z'\\\"_W/\\\"datetime'2020-12-08T08%3A53%3A12.8747611Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"properties\": {\r\n - \ \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": - \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0,\r\n \"nodeCount\": - 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": \"None\"\r\n - \ }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '805' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:53:14 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"contactInformation": {"contactPerson": "John Mcclane", - "companyName": "Microsoft", "phone": "(800) 426-9400", "emailList": ["aaa@foo.com"]}, - "shippingAddress": {"addressLine1": "Microsoft Corporation", "addressLine2": - "One Microsoft Way", "addressLine3": "Redmond", "postalCode": "98052", "city": - "WA", "state": "WA", "country": "United States"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - Content-Length: - - '371' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:53:15 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/d035e8aa-5f94-4679-af67-2eadc51c7fcb?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/d035e8aa-5f94-4679-af67-2eadc51c7fcb?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:53:46 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": - \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": - \"(800) 426-9400\",\r\n \"emailList\": [\r\n \"aaa@foo.com\"\r\n - \ ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": - \"Microsoft Corporation\",\r\n \"addressLine2\": \"One Microsoft Way\",\r\n - \ \"addressLine3\": \"Redmond\",\r\n \"postalCode\": \"98052\",\r\n - \ \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n \"country\": - \"United States\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": - []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1330' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:54:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order show - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": - \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": - \"(800) 426-9400\",\r\n \"emailList\": [\r\n \"aaa@foo.com\"\r\n - \ ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": - \"Microsoft Corporation\",\r\n \"addressLine2\": \"One Microsoft Way\",\r\n - \ \"addressLine3\": \"Redmond\",\r\n \"postalCode\": \"98052\",\r\n - \ \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n \"country\": - \"United States\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": - []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1330' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:54:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order list - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"contactInformation\": - {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": - \"Microsoft\",\r\n \"phone\": \"(800) 426-9400\",\r\n \"emailList\": - [\r\n \"aaa@foo.com\"\r\n ]\r\n },\r\n \"shippingAddress\": - {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"addressLine2\": - \"One Microsoft Way\",\r\n \"addressLine3\": \"Redmond\",\r\n \"postalCode\": - \"98052\",\r\n \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n - \ \"country\": \"United States\"\r\n },\r\n \"currentStatus\": - {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": - \"0001-01-01T00:00:00Z\",\r\n \"comments\": \"Initialising Order - with Untracked status\",\r\n \"additionalOrderDetails\": {}\r\n },\r\n - \ \"orderHistory\": [\r\n {\r\n \"status\": \"Untracked\",\r\n - \ \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n \"comments\": - \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n - \ \"returnTrackingInfo\": []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1515' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:54:20 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:54:22 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/f148c4f0-6521-4039-803a-9f847a6f79e6?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order delete - Connection: - - keep-alive - ParameterSetName: - - -y --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/f148c4f0-6521-4039-803a-9f847a6f79e6?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:54:53 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order list - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": []\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '19' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:54:55 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:55:03 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 204 - message: No Content -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario.py deleted file mode 100644 index fb1c43b9922..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario.py +++ /dev/null @@ -1,99 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk.checkers import JMESPathCheckGreaterThan -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_device_create -from .example_steps import step_device_list -from .example_steps import step_device_list2 -from .example_steps import step_device_update -from .example_steps import step_device_show -from .example_steps import step_device_delete -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_general -@try_manual -def setup_general(test, rg): - pass - - -# Env cleanup_general -@try_manual -def cleanup_general(test, rg): - pass - - -# Testcase: general -@try_manual -def call_general(test, rg): - setup_general(test, rg) - step_device_create(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_show(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_list(test, rg, checks=[ - test.check('length(@)', 1), - ]) - step_device_list2(test, rg, checks=[ - JMESPathCheckGreaterThan('length(@)', 0), - ]) - step_device_update(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - test.check("tags.Key1", "value1", case_sensitive=False), - test.check("tags.Key2", "value2", case_sensitive=False), - ]) - step_device_show(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_delete(test, rg, checks=[]) - step_device_list(test, rg, checks=[ - test.check('length(@)', 0), - ]) - cleanup_general(test, rg) - - -# Test class for general -@try_manual -class DevicegeneralTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_device_general(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_general(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario_coverage.md deleted file mode 100644 index f0f2837dc5c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_device_scenario_coverage.md +++ /dev/null @@ -1,8 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_device_create|successed||||2022-05-29 04:43:38.862795|2022-05-29 04:43:39.070971| -|step_device_show|successed||||2022-05-29 04:43:39.420809|2022-05-29 04:43:39.502976| -|step_device_list|successed||||2022-05-29 04:43:39.596480|2022-05-29 04:43:39.662522| -|step_device_list2|successed||||2022-05-29 04:43:39.243706|2022-05-29 04:43:39.335097| -|step_device_update|successed||||2022-05-29 04:43:39.335097|2022-05-29 04:43:39.420809| -|step_device_delete|successed||||2022-05-29 04:43:39.502976|2022-05-29 04:43:39.596480| -Coverage: 6/6 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario.py deleted file mode 100644 index acc1b26d3ba..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk.checkers import JMESPathCheckGreaterThan -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_list_sku -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test, rg): - pass - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test, rg): - pass - - -# Testcase: Scenario -@try_manual -def call_scenario(test, rg): - setup_scenario(test, rg) - step_list_sku(test, rg, checks=[JMESPathCheckGreaterThan('length(@)', 0)]) - cleanup_scenario(test, rg) - - -# Test class for Scenario -@try_manual -class GeneralScenarioTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_general_Scenario(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario_coverage.md deleted file mode 100644 index 610d740af86..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_general_scenario_coverage.md +++ /dev/null @@ -1,3 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_list_sku|successed||||2022-05-29 04:43:38.862795|2022-05-29 04:43:39.068703| -Coverage: 1/1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario.py deleted file mode 100644 index d5261fa1d2c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario.py +++ /dev/null @@ -1,79 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_device_create -from .example_steps import step_device_delete -from .example_steps import step_order_create -from .example_steps import step_order_show -from .example_steps import step_order_list -from .example_steps import step_order_delete -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test, rg): - step_device_create(test, rg) - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test, rg): - step_device_delete(test, rg) - - -# Testcase: Scenario -@try_manual -def call_scenario(test, rg): - setup_scenario(test, rg) - step_order_create(test, rg, checks=[ - test.check("contactInformation.companyName", "Microsoft", case_sensitive=False), - test.check("contactInformation.contactPerson", "John Mcclane", case_sensitive=False), - test.check("shippingAddress.country", "United States", case_sensitive=False), - ]) - step_order_show(test, rg, checks=[ - test.check("contactInformation.companyName", "Microsoft", case_sensitive=False), - test.check("contactInformation.contactPerson", "John Mcclane", case_sensitive=False), - test.check("shippingAddress.country", "United States", case_sensitive=False), - ]) - step_order_list(test, rg, checks=[ - test.check('length(@)', 1), - ]) - step_order_delete(test, rg, checks=[]) - step_order_list(test, rg, checks=[ - test.check('length(@)', 0), - ]) - cleanup_scenario(test, rg) - - -# Test class for Scenario -@try_manual -class OrderScenarioTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_order_Scenario(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario_coverage.md deleted file mode 100644 index 53bfb8b18a8..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2019_03_01/test_order_scenario_coverage.md +++ /dev/null @@ -1,8 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_device_create|successed||||2022-05-29 04:43:38.862795|2022-05-29 04:43:39.072449| -|step_order_create|successed||||2022-05-29 04:43:39.072449|2022-05-29 04:43:39.422804| -|step_order_show|successed||||2022-05-29 04:43:39.422804|2022-05-29 04:43:39.518695| -|step_order_list|successed||||2022-05-29 04:43:39.854892|2022-05-29 04:43:39.947733| -|step_order_delete|successed||||2022-05-29 04:43:39.601244|2022-05-29 04:43:39.854892| -|step_device_delete|successed||||2022-05-29 04:43:39.948732|2022-05-29 04:43:40.039155| -Coverage: 6/6 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/__init__.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/__init__.py deleted file mode 100644 index c9cfdc73e77..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/example_steps.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/example_steps.py deleted file mode 100644 index c121e563394..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/example_steps.py +++ /dev/null @@ -1,285 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=unused-argument - -from .. import try_manual - - -# EXAMPLE: /Devices/put/DataBoxEdgeDevicePut -@try_manual -def step_device_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device create ' - '--location "eastus" ' - '--sku "Edge" ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetByName -@try_manual -def step_device_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device show ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetByResourceGroup -@try_manual -def step_device_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device list ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/get/DataBoxEdgeDeviceGetBySubscription -@try_manual -def step_device_list2(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device list ' - '-g ""', - checks=checks) - - -# EXAMPLE: /Devices/get/UpdateSummaryGet -@try_manual -def step_device_show_update_summary(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device show-update-summary ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/patch/DataBoxEdgeDevicePatch -@try_manual -def step_device_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device update ' - '--name "{myDevice}" ' - '--tags Key1="value1" Key2="value2" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/DownloadUpdatesPost -@try_manual -def step_device_download_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device download-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/InstallUpdatesPost -@try_manual -def step_device_install_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device install-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/post/ScanForUpdatesPost -@try_manual -def step_device_scan_for_update(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device scan-for-update ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Alerts/get/AlertGet -@try_manual -def step_alert_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge alert show ' - '--name "159a00c7-8543-4343-9435-263ac87df3bb" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Alerts/get/AlertGetAllInDevice -@try_manual -def step_alert_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge alert list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/put/BandwidthSchedulePut -@try_manual -def step_bandwidth_schedule_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule create ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--days "Sunday" "Monday" ' - '--rate-in-mbps 100 ' - '--start "0:0:0" ' - '--stop "13:59:0" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/get/BandwidthScheduleGet -@try_manual -def step_bandwidth_schedule_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule show ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/get/BandwidthScheduleGetAllInDevice -@try_manual -def step_bandwidth_schedule_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /BandwidthSchedules/delete/BandwidthScheduleDelete -@try_manual -def step_bandwidth_schedule_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge bandwidth-schedule delete -y ' - '--name "bandwidth-1" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Jobs/get/JobsGet -@try_manual -def step_show_job(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge show-job ' - '--name "159a00c7-8543-4343-9435-263ac87df3bb" ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Nodes/get/NodesGetAllInDevice -@try_manual -def step_list_node(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge list-node ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/put/OrderPut -@try_manual -def step_order_create(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order create ' - '--device-name "{myDevice}" ' - '--company-name "Microsoft" ' - '--contact-person "John Mcclane" ' - '--email-list "john@microsoft.com" ' - '--phone "(800) 426-9400" ' - '--address-line1 "Microsoft Corporation" ' - '--address-line2 "One Microsoft Way" ' - '--address-line3 "Redmond" ' - '--city "WA" ' - '--country "United States" ' - '--postal-code "98052" ' - '--state "WA" ' - '--status "Untracked" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/get/OrderGet -@try_manual -def step_order_show(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order show ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/get/OrderGetAllInDevice -@try_manual -def step_order_list(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order list ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Orders/delete/OrderDelete -@try_manual -def step_order_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge order delete -y ' - '--device-name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Devices/delete/DataBoxEdgeDeviceDelete -@try_manual -def step_device_delete(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge device delete -y ' - '--name "{myDevice}" ' - '--resource-group "{rg}"', - checks=checks) - - -# EXAMPLE: /Skus/get/ListSkus -@try_manual -def step_list_sku(test, rg, checks=None): - if checks is None: - checks = [] - test.cmd('az databoxedge list-sku', - checks=checks) diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_device_general.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_device_general.yaml deleted file mode 100644 index 5a38d8292cf..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_device_general.yaml +++ /dev/null @@ -1,448 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "sku": {"name": "Edge", "tier": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device create - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --location --sku --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A49%3A48.0627442Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.0697495Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"properties\": {\r\n - \ \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": - \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0,\r\n \"nodeCount\": - 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": \"None\"\r\n - \ }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '805' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A49%3A48.0627442Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.0697495Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '687' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:50 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n - \ \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A49%3A48.0627442Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.0697495Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '784' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:52 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Edge\",\r\n - \ \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A49%3A48.0627442Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.0697495Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A49%3A48.2747073Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.2817118Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitesthjrbg5bss6skhe7l3d67hgvebvmmsbm34q7oxnv4fjkj2anc3kvotitm7njjzxjfek5r/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Gateway\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-12-07T09%3A57%3A46.069116Z'\\\"_W/\\\"datetime'2020-12-07T09%3A57%3A46.0751198Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"c9fd4631-c426-427e-bfda-13038fdcc74f\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n - \ },\r\n \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": - \"ReadyToSetup\",\r\n \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 1\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testdevice\",\r\n - \ \"name\": \"testdevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n - \ },\r\n \"etag\": \"W/\\\"datetime'2020-11-26T07%3A55%3A22.0431885Z'\\\"_W/\\\"datetime'2020-11-26T07%3A55%3A22.0511943Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '3122' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"tags": {"Key1": "value1", "Key2": "value2"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device update - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --name --tags --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Key1\": - \"value1\",\r\n \"Key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A49%3A56.5183185Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A56.5253239Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": - \"None\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '811' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"Key1\": - \"value1\",\r\n \"Key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": - \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2020-12-08T08%3A49%3A56.5183185Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A56.5253239Z'\\\"\",\r\n - \ \"properties\": {\r\n \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n - \ \"deviceType\": \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": - 0,\r\n \"nodeCount\": 0\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '736' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:50:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:50:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices?api-version=2019-08-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:50:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_general_Scenario.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_general_Scenario.yaml deleted file mode 100644 index d8b57217289..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_general_Scenario.yaml +++ /dev/null @@ -1,45 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge list-sku - Connection: - - keep-alive - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge/skus?api-version=2019-08-01 - response: - body: - string: '{"value":[{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["eastus"],"locationInfo":[{"location":"eastus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["eastus"],"locationInfo":[{"location":"eastus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westcentralus"],"locationInfo":[{"location":"westcentralus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westcentralus"],"locationInfo":[{"location":"westcentralus","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Edge","locations":["southeastasia"],"locationInfo":[{"location":"southeastasia","zones":[],"zoneDetails":[]}],"restrictions":[]},{"resourceType":"dataBoxEdgeDevices","name":"Gateway","locations":["southeastasia"],"locationInfo":[{"location":"southeastasia","zones":[],"zoneDetails":[]}],"restrictions":[]}]}' - headers: - cache-control: - - no-cache - content-length: - - '2396' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:42 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_order_Scenario.yaml b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_order_Scenario.yaml deleted file mode 100644 index 3c748e3626b..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/recordings/test_order_Scenario.yaml +++ /dev/null @@ -1,520 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "sku": {"name": "Edge", "tier": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device create - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --location --sku --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: "{\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n - \ \"name\": \"Edge\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"etag\": - \"W/\\\"datetime'2020-12-08T08%3A49%3A48.2747073Z'\\\"_W/\\\"datetime'2020-12-08T08%3A49%3A48.2817118Z'\\\"\",\r\n - \ \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"properties\": {\r\n - \ \"dataBoxEdgeDeviceStatus\": \"ReadyToSetup\",\r\n \"deviceType\": - \"DataBoxEdgeDevice\",\r\n \"deviceLocalCapacity\": 0,\r\n \"nodeCount\": - 0,\r\n \"resourceMoveDetails\": {\r\n \"operationInProgress\": \"None\"\r\n - \ }\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice\",\r\n - \ \"name\": \"testedgedevice\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '805' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:49:50 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"contactInformation": {"contactPerson": "John Mcclane", - "companyName": "Microsoft", "phone": "(800) 426-9400", "emailList": ["aaa@foo.com"]}, - "shippingAddress": {"addressLine1": "Microsoft Corporation", "addressLine2": - "One Microsoft Way", "addressLine3": "Redmond", "postalCode": "98052", "city": - "WA", "state": "WA", "country": "United States"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - Content-Length: - - '371' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:49:52 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/c9462237-2f09-4200-b558-64505e5e75a8?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/c9462237-2f09-4200-b558-64505e5e75a8?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:50:23 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order create - Connection: - - keep-alive - ParameterSetName: - - --device-name --company-name --contact-person --email-list --phone --address-line1 - --address-line2 --address-line3 --city --country --postal-code --state --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": - \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": - \"(800) 426-9400\",\r\n \"emailList\": [\r\n \"aaa@foo.com\"\r\n - \ ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": - \"Microsoft Corporation\",\r\n \"addressLine2\": \"One Microsoft Way\",\r\n - \ \"addressLine3\": \"Redmond\",\r\n \"postalCode\": \"98052\",\r\n - \ \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n \"country\": - \"United States\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": - []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1330' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:50:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order show - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"contactInformation\": {\r\n \"contactPerson\": - \"John Mcclane\",\r\n \"companyName\": \"Microsoft\",\r\n \"phone\": - \"(800) 426-9400\",\r\n \"emailList\": [\r\n \"aaa@foo.com\"\r\n - \ ]\r\n },\r\n \"shippingAddress\": {\r\n \"addressLine1\": - \"Microsoft Corporation\",\r\n \"addressLine2\": \"One Microsoft Way\",\r\n - \ \"addressLine3\": \"Redmond\",\r\n \"postalCode\": \"98052\",\r\n - \ \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n \"country\": - \"United States\"\r\n },\r\n \"currentStatus\": {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n },\r\n \"orderHistory\": [\r\n {\r\n \"status\": - \"Untracked\",\r\n \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n - \ \"comments\": \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n \"returnTrackingInfo\": - []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1330' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:50:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order list - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"contactInformation\": - {\r\n \"contactPerson\": \"John Mcclane\",\r\n \"companyName\": - \"Microsoft\",\r\n \"phone\": \"(800) 426-9400\",\r\n \"emailList\": - [\r\n \"aaa@foo.com\"\r\n ]\r\n },\r\n \"shippingAddress\": - {\r\n \"addressLine1\": \"Microsoft Corporation\",\r\n \"addressLine2\": - \"One Microsoft Way\",\r\n \"addressLine3\": \"Redmond\",\r\n \"postalCode\": - \"98052\",\r\n \"city\": \"WA\",\r\n \"state\": \"WA\",\r\n - \ \"country\": \"United States\"\r\n },\r\n \"currentStatus\": - {\r\n \"status\": \"Untracked\",\r\n \"updateDateTime\": - \"0001-01-01T00:00:00Z\",\r\n \"comments\": \"Initialising Order - with Untracked status\",\r\n \"additionalOrderDetails\": {}\r\n },\r\n - \ \"orderHistory\": [\r\n {\r\n \"status\": \"Untracked\",\r\n - \ \"updateDateTime\": \"0001-01-01T00:00:00Z\",\r\n \"comments\": - \"Initialising Order with Untracked status\",\r\n \"additionalOrderDetails\": - {}\r\n }\r\n ],\r\n \"deliveryTrackingInfo\": [],\r\n - \ \"returnTrackingInfo\": []\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default\",\r\n - \ \"name\": \"default\",\r\n \"type\": \"Microsoft.DataBoxEdge/dataBoxEdgeDevices/orders\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1515' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:50:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 08 Dec 2020 08:50:59 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/7b490365-71f6-4a80-ac89-c84b39095f9e?api-version=2019-08-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order delete - Connection: - - keep-alive - ParameterSetName: - - -y --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders/default/operationResults/7b490365-71f6-4a80-ac89-c84b39095f9e?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:51:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge order list - Connection: - - keep-alive - ParameterSetName: - - --device-name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/orders?api-version=2019-08-01 - response: - body: - string: "{\r\n \"value\": []\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '19' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 08 Dec 2020 08:51:32 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - databoxedge device delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -y --name --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-databoxedge/0.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice?api-version=2019-08-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - date: - - Tue, 08 Dec 2020 08:51:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 204 - message: No Content -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario.py deleted file mode 100644 index fb1c43b9922..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario.py +++ /dev/null @@ -1,99 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk.checkers import JMESPathCheckGreaterThan -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_device_create -from .example_steps import step_device_list -from .example_steps import step_device_list2 -from .example_steps import step_device_update -from .example_steps import step_device_show -from .example_steps import step_device_delete -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_general -@try_manual -def setup_general(test, rg): - pass - - -# Env cleanup_general -@try_manual -def cleanup_general(test, rg): - pass - - -# Testcase: general -@try_manual -def call_general(test, rg): - setup_general(test, rg) - step_device_create(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_show(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_list(test, rg, checks=[ - test.check('length(@)', 1), - ]) - step_device_list2(test, rg, checks=[ - JMESPathCheckGreaterThan('length(@)', 0), - ]) - step_device_update(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - test.check("tags.Key1", "value1", case_sensitive=False), - test.check("tags.Key2", "value2", case_sensitive=False), - ]) - step_device_show(test, rg, checks=[ - test.check("location", "eastus", case_sensitive=False), - test.check("sku.name", "Edge", case_sensitive=False), - test.check("sku.tier", "Standard", case_sensitive=False), - test.check("name", "{myDevice}", case_sensitive=False), - ]) - step_device_delete(test, rg, checks=[]) - step_device_list(test, rg, checks=[ - test.check('length(@)', 0), - ]) - cleanup_general(test, rg) - - -# Test class for general -@try_manual -class DevicegeneralTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_device_general(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_general(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario_coverage.md deleted file mode 100644 index ad10a442103..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_device_scenario_coverage.md +++ /dev/null @@ -1,8 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_device_create|successed||||2022-05-29 04:47:11.918128|2022-05-29 04:47:12.090361| -|step_device_show|successed||||2022-05-29 04:47:12.442557|2022-05-29 04:47:12.545650| -|step_device_list|successed||||2022-05-29 04:47:12.620966|2022-05-29 04:47:12.721921| -|step_device_list2|successed||||2022-05-29 04:47:12.267646|2022-05-29 04:47:12.344971| -|step_device_update|successed||||2022-05-29 04:47:12.344971|2022-05-29 04:47:12.434498| -|step_device_delete|successed||||2022-05-29 04:47:12.545650|2022-05-29 04:47:12.620966| -Coverage: 6/6 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario.py deleted file mode 100644 index acc1b26d3ba..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario.py +++ /dev/null @@ -1,59 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk.checkers import JMESPathCheckGreaterThan -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_list_sku -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test, rg): - pass - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test, rg): - pass - - -# Testcase: Scenario -@try_manual -def call_scenario(test, rg): - setup_scenario(test, rg) - step_list_sku(test, rg, checks=[JMESPathCheckGreaterThan('length(@)', 0)]) - cleanup_scenario(test, rg) - - -# Test class for Scenario -@try_manual -class GeneralScenarioTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_general_Scenario(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario_coverage.md deleted file mode 100644 index 61153652ebb..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_general_scenario_coverage.md +++ /dev/null @@ -1,3 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_list_sku|successed||||2022-05-29 04:47:09.715647|2022-05-29 04:47:09.872939| -Coverage: 1/1 diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario.py b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario.py deleted file mode 100644 index d5261fa1d2c..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario.py +++ /dev/null @@ -1,79 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import os -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_device_create -from .example_steps import step_device_delete -from .example_steps import step_order_create -from .example_steps import step_order_show -from .example_steps import step_order_list -from .example_steps import step_order_delete -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test, rg): - step_device_create(test, rg) - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test, rg): - step_device_delete(test, rg) - - -# Testcase: Scenario -@try_manual -def call_scenario(test, rg): - setup_scenario(test, rg) - step_order_create(test, rg, checks=[ - test.check("contactInformation.companyName", "Microsoft", case_sensitive=False), - test.check("contactInformation.contactPerson", "John Mcclane", case_sensitive=False), - test.check("shippingAddress.country", "United States", case_sensitive=False), - ]) - step_order_show(test, rg, checks=[ - test.check("contactInformation.companyName", "Microsoft", case_sensitive=False), - test.check("contactInformation.contactPerson", "John Mcclane", case_sensitive=False), - test.check("shippingAddress.country", "United States", case_sensitive=False), - ]) - step_order_list(test, rg, checks=[ - test.check('length(@)', 1), - ]) - step_order_delete(test, rg, checks=[]) - step_order_list(test, rg, checks=[ - test.check('length(@)', 0), - ]) - cleanup_scenario(test, rg) - - -# Test class for Scenario -@try_manual -class OrderScenarioTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestdataboxedge_GroupForEdgeAutomation'[:7], key='rg', parameter_name='rg') - def test_order_Scenario(self, rg): - - self.kwargs.update({ - 'myDevice': 'testedgedevice', - }) - - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() diff --git a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario_coverage.md b/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario_coverage.md deleted file mode 100644 index 64cc430f39d..00000000000 --- a/src/azure-cli/azure/cli/command_modules/databoxedge/tests/hybrid_2020_09_01/test_order_scenario_coverage.md +++ /dev/null @@ -1,8 +0,0 @@ -|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_device_create|successed||||2022-05-29 04:47:13.208925|2022-05-29 04:47:13.387326| -|step_order_create|successed||||2022-05-29 04:47:13.387326|2022-05-29 04:47:13.791156| -|step_order_show|successed||||2022-05-29 04:47:13.791156|2022-05-29 04:47:13.873325| -|step_order_list|successed||||2022-05-29 04:47:14.241150|2022-05-29 04:47:14.326360| -|step_order_delete|successed||||2022-05-29 04:47:13.971787|2022-05-29 04:47:14.240153| -|step_device_delete|successed||||2022-05-29 04:47:14.326360|2022-05-29 04:47:14.410157| -Coverage: 6/6