forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12312 in Azure/azure-rest-api-specs
Merge f60440cbb5151864b42b901b83940b7930ee52dd into fdfffcf
- Loading branch information
SDKAuto
committed
Jan 13, 2021
1 parent
9ccf850
commit 911ec7a
Showing
26 changed files
with
198 additions
and
207 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"azext.isExperimental": true, | ||
"azext.minCliCoreVersion": "2.17.0" | ||
} | ||
"azext.minCliCoreVersion": "2.15.0" | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,23 @@ def step_organization_create(test, rg, checks=None): # pylint: disable=unused-a | |
checks=[]) | ||
|
||
|
||
def step_organization_create(test, rg, checks=None): | ||
if checks is None: | ||
checks = [] | ||
test.cmd('az confluent organization create ' | ||
'--location "West US" ' | ||
'--offer-detail id="string" plan-id="string" plan-name="string" publisher-id="string" term-unit="string" ' | ||
'--user-detail email-address="[email protected]" first-name="string" last-name="string" ' | ||
'--tags Environment="Dev" ' | ||
'--name "{myOrganization}" ' | ||
'--resource-group "{rg}"', | ||
checks=[]) | ||
test.cmd('az confluent organization wait --created ' | ||
'--name "{myOrganization}" ' | ||
'--resource-group "{rg}"', | ||
checks=checks) | ||
|
||
|
||
# EXAMPLE: /Organization/get/Organization_Get | ||
@try_manual | ||
def step_organization_show(test, rg, checks=None): # pylint: disable=unused-argument | ||
|
@@ -62,6 +79,16 @@ def step_organization_list(test, rg, checks=None): # pylint: disable=unused-arg | |
checks=checks) | ||
|
||
|
||
# EXAMPLE: /Organization/get/Organization_ListBySubscription | ||
@try_manual | ||
def step_organization_list2(test, rg, checks=None): | ||
if checks is None: | ||
checks = [] | ||
test.cmd('az confluent organization list ' | ||
'-g ""', | ||
checks=checks) | ||
|
||
|
||
# EXAMPLE: /Organization/patch/Confluent_Update | ||
@try_manual | ||
def step_organization_update(test, rg, checks=None): # pylint: disable=unused-argument | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
from .example_steps import step_organization_create | ||
from .example_steps import step_organization_show | ||
from .example_steps import step_organization_list | ||
from .example_steps import step_organization_list | ||
from .example_steps import step_organization_list2 | ||
from .example_steps import step_organization_update | ||
from .example_steps import step_organization_delete | ||
from .. import ( | ||
|
@@ -69,6 +69,9 @@ def call_scenario(test, rg): | |
step_organization_list(test, "", checks=[ | ||
test.greater_than('length(@)', 0), | ||
]) | ||
step_organization_list2(test, rg, checks=[ | ||
test.check('length(@)', 1), | ||
]) | ||
step_organization_update(test, rg, checks=[ | ||
test.check("location", "eastus2euap", case_sensitive=False), | ||
test.check("userDetail.emailAddress", "[email protected]", case_sensitive=False), | ||
|
@@ -85,13 +88,15 @@ def call_scenario(test, rg): | |
@try_manual | ||
class ConfluentScenarioTest(ScenarioTest): | ||
|
||
@ResourceGroupPreparer(name_prefix='clitestconfluent_myResourceGroup'[:7], key='rg', parameter_name='rg') | ||
def test_confluent_Scenario(self, rg): | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(ConfluentScenarioTest, self).__init__(*args, **kwargs) | ||
self.kwargs.update({ | ||
'myOrganization': 'myOrganization', | ||
}) | ||
|
||
|
||
@ResourceGroupPreparer(name_prefix='clitestconfluent_myResourceGroup'[:7], key='rg', parameter_name='rg') | ||
def test_confluent_Scenario(self, rg): | ||
call_scenario(self, rg) | ||
calc_coverage(__file__) | ||
raise_if() |
8 changes: 0 additions & 8 deletions
8
src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md
This file was deleted.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
src/confluent/azext_confluent/vendored_sdks/confluent/_version.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,9 @@ | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
VERSION = "1.0.0b1" |
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
Oops, something went wrong.