-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/connectedmachine/azext_connectedmachine/tests/latest/test_Setting_scenario.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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, json | ||
from azure.cli.testsdk import ScenarioTest | ||
from azure.cli.testsdk import ResourceGroupPreparer | ||
from .example_steps import step_private_link_resource_list | ||
from .example_steps import step_private_link_scope_create | ||
from .example_steps import step_private_link_scope_update | ||
from .example_steps import step_private_link_scope_show | ||
from .example_steps import step_private_link_scope_list | ||
from .example_steps import step_private_link_scope_list2 | ||
from .example_steps import step_private_link_scope_update_tag | ||
from .example_steps import step_private_endpoint_connection_update | ||
from .example_steps import step_private_endpoint_connection_list | ||
from .example_steps import step_private_endpoint_connection_show | ||
from .example_steps import step_private_endpoint_connection_delete | ||
from .example_steps import step_private_link_scope_delete | ||
from .. import ( | ||
try_manual, | ||
raise_if, | ||
calc_coverage | ||
) | ||
from azure.cli.testsdk.scenario_tests import ( | ||
live_only | ||
) | ||
|
||
TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) | ||
|
||
|
||
class SettingScenarioTest(ScenarioTest): | ||
@live_only() | ||
@ResourceGroupPreparer(name_prefix='cli_test_setting') | ||
def test_setting(self): | ||
rand_string = 'test' | ||
self.kwargs.update({ | ||
'machine': 'testmachine', | ||
'rg': 'manojamp', | ||
'location': 'eastus2euap', | ||
'subscription': '00000000-0000-0000-0000-000000000000', | ||
'gatewayName': 'myGateway', | ||
'newResourceGroup': 'ytongtest', | ||
}) | ||
|
||
# # bug in the service, add back once the api version is added to the service | ||
# self.cmd('az connectedmachine setting update ' | ||
# '--resource-group "{newResourceGroup}" ' | ||
# '--subscription "{subscription}" ' | ||
# '--base-provider "Microsoft.HybridCompute" ' | ||
# '--base-resource-type "machines" ' | ||
# '--base-resource-name "testmachine" ' | ||
# '--settings-resource-name "default" ' | ||
# '--gateway-resource-id "/subscriptions/{subscription}/resourceGroups/manojamp/providers/Microsoft.HybridCompute/gateways/amkgw1" ' | ||
# '--name "default"', | ||
# checks=[]) |