diff --git a/src/plugins/azgenerator/CodeModelAz.ts b/src/plugins/azgenerator/CodeModelAz.ts index 71393e935..34ada896e 100644 --- a/src/plugins/azgenerator/CodeModelAz.ts +++ b/src/plugins/azgenerator/CodeModelAz.ts @@ -236,7 +236,7 @@ export interface CodeModelAz { GenerateTestInit(): void; SelectFirstExample(): boolean; SelectNextExample(): boolean; - FindExampleById(id: string, commandParams: any, examples: any[]): string[][]; + FindExampleById(id: string, commandParams: any, examples: any[], minimum: boolean): string[][]; Example_Body: string[]; Example_Title: string; Example_Params: any; diff --git a/src/plugins/azgenerator/CodeModelAzImpl.ts b/src/plugins/azgenerator/CodeModelAzImpl.ts index 55a9df25e..fcd92eec7 100644 --- a/src/plugins/azgenerator/CodeModelAzImpl.ts +++ b/src/plugins/azgenerator/CodeModelAzImpl.ts @@ -1763,7 +1763,11 @@ export class CodeModelCliImpl implements CodeModelAz { } public get MethodParameter_IsRequired(): boolean { - return this.MethodParameter.required; + return this.Parameter_IsRequired(this.MethodParameter); + } + + private Parameter_IsRequired(param: Parameter): boolean { + return param?.required; } public get MethodParameter_IsFlattened(): boolean { @@ -2313,13 +2317,14 @@ export class CodeModelCliImpl implements CodeModelAz { return ret; } - public GetExampleItems(example: CommandExample, isTest: boolean, commandParams: any): string[] { + public GetExampleItems(example: CommandExample, isTest: boolean, commandParams: any, minimum=false): string[] { let parameters: string[] = []; parameters.push("az " + this.Command_Name); let hasRG = false; let resourceObjectName = undefined; for (let param of example.Parameters) { + if (minimum && !this.Parameter_IsRequired(param.methodParam.value)) continue; let param_value = param.value; if (isTest || this.FormalizeNames) { let replaced_value = this.resource_pool.addEndpointResource(param_value, param.isJson, param.keyValue, [], [], param, isTest); @@ -2357,6 +2362,7 @@ export class CodeModelCliImpl implements CodeModelAz { resourceObject.example_params = []; } for (let param of example.Parameters) { + if (minimum && !this.Parameter_IsRequired(param.methodParam.value)) continue; resourceObject.addOrUpdateParam(param); } resourceObject.testStatus = ObjectStatus.Created; @@ -2414,11 +2420,11 @@ export class CodeModelCliImpl implements CodeModelAz { } } - public FindExampleById(id: string, commandParams: any, examples: CommandExample[]): string[][] { + public FindExampleById(id: string, commandParams: any, examples: CommandExample[], minimum=false): string[][] { let ret: string[][] = []; this.GetAllExamples(id, (example) => { examples.push(example); - ret.push(this.GetExampleItems(example, true, commandParams)); + ret.push(this.GetExampleItems(example, true, commandParams, minimum)); }); return ret; } diff --git a/src/plugins/azgenerator/templates/tests/CliTestScenario.ts b/src/plugins/azgenerator/templates/tests/CliTestScenario.ts index 0c006be6f..877969c68 100644 --- a/src/plugins/azgenerator/templates/tests/CliTestScenario.ts +++ b/src/plugins/azgenerator/templates/tests/CliTestScenario.ts @@ -58,13 +58,11 @@ export class CliTestScenario extends TemplateBase { let class_info: string[] = []; let initiates: string[] = []; - let body: string[] = []; class_info.push(`# Test class for ${scenarioName}`); class_info.push("@try_manual"); class_info.push("class " + Capitalize(this.groupName) + scenarioName + "Test(ScenarioTest):"); class_info.push(""); - initiates.push(""); let subscription_id = model.GetSubscriptionKey(); if (subscription_id) { @@ -75,73 +73,109 @@ export class CliTestScenario extends TemplateBase { } let decorators: string[] = []; - let parameterNames = CliTestStep.InitiateDependencies(model, this.header, decorators, initiates, this.groupName + "_" + scenarioName); + let parameterNames = CliTestStep.InitiateDependencies(model, this.header, decorators, initiates); let jsonAdded = false; let funcScenario: string[] = []; + let funcMinScenario: string[] = []; let steps: string[] = []; funcScenario.push(`# Testcase: ${scenarioName}`); funcScenario.push("@try_manual"); funcScenario.push(...ToMultiLine(`def call_${scenarioName.toLowerCase()}(test${CliTestStep.parameterLine(parameterNames)}):`)); - model.GetResourcePool().clearExampleParams(); - - // go through the examples to generate steps - for (var ci = 0; ci < config.length; ci++) { - let exampleId: string = config[ci].name; - let functionName: string = CliTestStep.ToFunctionName(config[ci]); - if (exampleId) { - let disabled: string = config[ci].disabled ? "# " : ""; - // find example by name - let found = false; - let examples: CommandExample[] = []; - let exampleIdx = -1; - for (let exampleCmd of model.FindExampleById(exampleId, commandParams, examples)) { - exampleIdx += 1; - if (exampleCmd && exampleCmd.length > 0) { - found = true; - let checks = model.GetExampleChecks(examples[exampleIdx]); - functionName = CliTestStep.ToFunctionName({name: examples[exampleIdx].Id}, exampleCmd[0]); - if (checks.length > 0) { - funcScenario.push(...ToMultiLine(` ${disabled}${functionName}(test${CliTestStep.parameterLine(parameterNames)}, checks=[`)); - for (let check of checks) { - ToMultiLine(" " + disabled + " " + check, funcScenario); - if (!jsonAdded && !disabled && check.indexOf("json.loads") >= 0) { - this.header.addImport("json"); - jsonAdded = true; + funcMinScenario.push("@try_manual"); + funcMinScenario.push(...ToMultiLine(`def call_${scenarioName.toLowerCase()}_min(test${CliTestStep.parameterLine(parameterNames)}):`)); + + function buildSenario(header: HeaderGenerator, outputFunc: string[], minimum: boolean) { + model.GetResourcePool().clearExampleParams(); + + // go through the examples to generate steps + for (var ci = 0; ci < config.length; ci++) { + let exampleId: string = config[ci].name; + let functionName: string = CliTestStep.ToFunctionName(config[ci]); + if (exampleId) { + let disabled: string = config[ci].disabled ? "# " : ""; + // find example by name + let found = false; + let examples: CommandExample[] = []; + let exampleIdx = -1; + for (let exampleCmd of model.FindExampleById(exampleId, commandParams, examples, minimum)) { + exampleIdx += 1; + if (exampleCmd && exampleCmd.length > 0) { + found = true; + let checks = model.GetExampleChecks(examples[exampleIdx]); + functionName = CliTestStep.ToFunctionName({name: examples[exampleIdx].Id}, exampleCmd[0]); + if (minimum) functionName += "_min"; + if (checks.length > 0) { + outputFunc.push(...ToMultiLine(` ${disabled}${functionName}(test${CliTestStep.parameterLine(parameterNames)}, checks=[`)); + for (let check of checks) { + ToMultiLine(" " + disabled + " " + check, outputFunc); + if (!jsonAdded && !disabled && check.indexOf("json.loads") >= 0) { + header.addImport("json"); + jsonAdded = true; + } } + outputFunc.push(` ${disabled}])`); + } + else { + outputFunc.push(...ToMultiLine(` ${functionName}(test${CliTestStep.parameterLine(parameterNames)}, checks=[])`)); } - funcScenario.push(` ${disabled}])`); - } - else { - funcScenario.push(...ToMultiLine(` ${functionName}(test${CliTestStep.parameterLine(parameterNames)}, checks=[])`)); } } - } - if (found) { - this.header.addFromImport(".example_steps", [functionName]); + if (found) { + header.addFromImport(".example_steps", [functionName]); + } + else { + outputFunc.push(...ToMultiLine(` # STEP NOT FOUND: ${exampleId}`)); + } } else { - funcScenario.push(...ToMultiLine(` # STEP NOT FOUND: ${exampleId}`)); - } + if (!minimum) { + steps.push(`# Env ${functionName}`); + steps.push("@try_manual"); + steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames)}):`)); + steps.push(" pass"); + steps.push(""); + steps.push(""); + } + outputFunc.push(...ToMultiLine(` ${functionName}(test${CliTestStep.parameterLine(parameterNames)})`)); + } + } + outputFunc.push(""); + outputFunc.push(""); + } + buildSenario(this.header, funcScenario, false); + buildSenario(this.header, funcMinScenario, true); + + class_info.push(" def __init__(self):"); + if (initiates.length>0) { + class_info.push(...initiates); + } + else { + class_info.push(" pass"); + } + class_info.push(""); + class_info.push(""); + + function buildTestcase(testcaseName: string, minimum: boolean) { + let ret = [...decorators]; + if (minimum) testcaseName += "_min"; + let funcLine = " def test_" + testcaseName + "(self"; + for (let parameterName of parameterNames) { + funcLine += `, ${parameterName}`; } - else { - steps.push(`# Env ${functionName}`); - steps.push("@try_manual"); - steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames)}):`)); - steps.push(" pass"); - steps.push(""); - steps.push(""); - funcScenario.push(...ToMultiLine(` ${functionName}(test${CliTestStep.parameterLine(parameterNames)})`)); - } + funcLine += "):"; + ToMultiLine(funcLine, ret); + let _scenarioName = scenarioName; + if (minimum) _scenarioName += "_min"; + ret.push(` call_${_scenarioName.toLowerCase()}(self${CliTestStep.parameterLine(parameterNames)})`); + ret.push(` calc_coverage(__file__)`); + ret.push(` raise_if()`); + ret.push(""); + ret.push(""); + return ret; } - funcScenario.push(""); - funcScenario.push(""); - body.push(` call_${scenarioName.toLowerCase()}(self${CliTestStep.parameterLine(parameterNames)})`); - body.push(` calc_coverage(__file__)`); - body.push(` raise_if()`); - body.push(""); - body.push(""); - this.scenarios.push(...steps.concat(funcScenario, class_info, decorators, initiates, body)); + let testCaseName = this.groupName + "_" + scenarioName; + this.scenarios.push(...steps.concat(funcScenario, funcMinScenario, class_info, buildTestcase(testCaseName, false), buildTestcase(testCaseName, true))); } private EndGenerateAzureCliTestScenario(): string[] { diff --git a/src/plugins/azgenerator/templates/tests/CliTestStep.ts b/src/plugins/azgenerator/templates/tests/CliTestStep.ts index 5a147aac1..655313b02 100644 --- a/src/plugins/azgenerator/templates/tests/CliTestStep.ts +++ b/src/plugins/azgenerator/templates/tests/CliTestStep.ts @@ -11,13 +11,14 @@ import { TemplateBase } from "../TemplateBase"; import { PathConstants } from "../../../models"; import { isNullOrUndefined } from 'util'; -let usePreparers: boolean, shortToLongName, funcNames, allSteps; +let usePreparers: boolean, shortToLongName, funcNames, allSteps, stepBuff: object; function initVars() { usePreparers = false; shortToLongName = {}; funcNames = {}; allSteps = []; + stepBuff = {}; } export function NeedPreparer(): boolean { @@ -57,7 +58,7 @@ export class CliTestStep extends TemplateBase { let header: HeaderGenerator = new HeaderGenerator(); - let parameterNames = CliTestStep.InitiateDependencies(model, new HeaderGenerator(), [], [], ""); + let parameterNames = CliTestStep.InitiateDependencies(model, new HeaderGenerator(), [], []); model.GetResourcePool().clearExampleParams(); // go through the examples to generate steps @@ -69,58 +70,72 @@ export class CliTestStep extends TemplateBase { if (exampleId) { let disabled: string = config[ci].disabled ? "# " : ""; steps.push("# EXAMPLE: " + exampleId); - steps.push("@try_manual"); + function create_step(minimum=false) { + steps.push("@try_manual"); - // find example by name - let found = false; - let examples: CommandExample[] = []; - let exampleIdx = -1; - for (let exampleCmd of model.FindExampleById(exampleId, commandParams, examples)) { - exampleIdx += 1; - if (exampleCmd && exampleCmd.length > 0) { - functionName = CliTestStep.ToFunctionName({name: examples[exampleIdx].Id}, exampleCmd[0]); - if (exampleIdx==0) { - steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames, true)}):`)); - } - found = true; - if (exampleCmd[0].indexOf(' delete') > -1) { - exampleCmd[0] += " -y"; - } + // find example by name + let found = false; + let examples: CommandExample[] = []; + let exampleIdx = -1; + for (let exampleCmd of model.FindExampleById(exampleId, commandParams, examples, minimum)) { + exampleIdx += 1; + if (exampleCmd && exampleCmd.length > 0) { + functionName = CliTestStep.ToFunctionName({name: examples[exampleIdx].Id}, exampleCmd[0]); + if (minimum) functionName += "_min"; + if (exampleIdx==0) { + steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames, true)}):`)); + } + found = true; + + let cmdString = exampleCmd.join("\n"); + if (stepBuff.hasOwnProperty(cmdString)) { + steps.push(...ToMultiLine(` return ${stepBuff[cmdString]}(test${CliTestStep.parameterLine(parameterNames)}, checks)`)); + } + else { + stepBuff[cmdString] = functionName; + if (exampleCmd[0].indexOf(' delete') > -1) { + exampleCmd[0] += " -y"; + } - steps.push(` if checks is None:`); - steps.push(` checks = []`); + steps.push(` if checks is None:`); + steps.push(` checks = []`); - for (let idx = 0; idx < exampleCmd.length; idx++) { - let prefix: string = " " + disabled + ((idx == 0) ? "test.cmd('" : " '"); - let postfix: string = (idx < exampleCmd.length - 1) ? " '" : "',"; - ToMultiLine(prefix + exampleCmd[idx] + postfix, steps); + for (let idx = 0; idx < exampleCmd.length; idx++) { + let prefix: string = " " + disabled + ((idx == 0) ? "test.cmd('" : " '"); + let postfix: string = (idx < exampleCmd.length - 1) ? " '" : "',"; + ToMultiLine(prefix + exampleCmd[idx] + postfix, steps); + } + steps.push(" " + disabled + " checks=checks)"); + } } - steps.push(" " + disabled + " checks=checks)"); } - } - if (!found) { - steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames, true)}):`)); - steps.push(" # EXAMPLE NOT FOUND!"); - steps.push(" pass"); - } - else { - for (let exampleCmd of model.FindExampleWaitById(exampleId)) { - if (exampleCmd && exampleCmd.length > 0) { - found = true; - for (let idx = 0; idx < exampleCmd.length; idx++) { - let prefix: string = " " + disabled + ((idx == 0) ? "test.cmd('" : " '"); - let postfix: string = (idx < exampleCmd.length - 1) ? " '" : "',"; - ToMultiLine(prefix + exampleCmd[idx] + postfix, steps); + if (!found) { + if (minimum) functionName += "_min"; + steps.push(...ToMultiLine(`def ${functionName}(test${CliTestStep.parameterLine(parameterNames, true)}):`)); + steps.push(" # EXAMPLE NOT FOUND!"); + steps.push(" pass"); + } + else { + for (let exampleCmd of model.FindExampleWaitById(exampleId)) { + if (exampleCmd && exampleCmd.length > 0) { + found = true; + for (let idx = 0; idx < exampleCmd.length; idx++) { + let prefix: string = " " + disabled + ((idx == 0) ? "test.cmd('" : " '"); + let postfix: string = (idx < exampleCmd.length - 1) ? " '" : "',"; + ToMultiLine(prefix + exampleCmd[idx] + postfix, steps); + } + steps.push(" " + disabled + " checks=[])"); } - steps.push(" " + disabled + " checks=[])"); } } + if (disabled) { + steps.push(" pass"); + } + steps.push(""); + steps.push(""); } - if (disabled) { - steps.push(" pass"); - } - steps.push(""); - steps.push(""); + create_step(); + create_step(true); } else if (functionName) { steps.push(`# Env ${functionName}`); @@ -150,7 +165,7 @@ export class CliTestStep extends TemplateBase { return ret; } - public static InitiateDependencies(model: CodeModelAz, header: HeaderGenerator, decorators: string[], initiates: string[], scenarioName: string): string[] { + public static InitiateDependencies(model: CodeModelAz, header: HeaderGenerator, decorators: string[], initiates: string[]): string[] { let decorated = []; let internalObjects = []; let parameterNames = []; @@ -185,12 +200,6 @@ export class CliTestStep extends TemplateBase { decorated.push(entity.info.name); } } - let funcLine = " def test_" + scenarioName + "(self"; - for (let parameterName of parameterNames) { - funcLine += `, ${parameterName}`; - } - funcLine += "):"; - initiates.unshift(...ToMultiLine(funcLine)); // randomize name for internal resources if (internalObjects.length > 0) { @@ -206,7 +215,6 @@ export class CliTestStep extends TemplateBase { initiates.push(` '${kargs_key}': '${object_name}',`); // keep the original name in example if there is no create example in the test-scenario } initiates.push(" })"); - initiates.push(""); } return parameterNames; } diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/example_steps.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/example_steps.py index dbb52ca3d..6577dc646 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/example_steps.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/example_steps.py @@ -23,6 +23,11 @@ def step_attestation_provider_show(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_attestation_provider_show_min(test, rg, rg_2, rg_3, checks=None): + return step_attestation_provider_show(test, rg, rg_2, rg_3, checks) + + # EXAMPLE: /AttestationProviders/get/AttestationProviders_List @try_manual def step_attestation_provider_provider_list(test, rg, rg_2, rg_3, checks=None): @@ -33,6 +38,11 @@ def step_attestation_provider_provider_list(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_attestation_provider_provider_list_min(test, rg, rg_2, rg_3, checks=None): + return step_attestation_provider_provider_list(test, rg, rg_2, rg_3, checks) + + # EXAMPLE: /AttestationProviders/get/AttestationProviders_ListByResourceGroup @try_manual def step_attestation_provider_provider_list2(test, rg, rg_2, rg_3, checks=None): @@ -43,6 +53,11 @@ def step_attestation_provider_provider_list2(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_attestation_provider_provider_list2_min(test, rg, rg_2, rg_3, checks=None): + return step_attestation_provider_provider_list2(test, rg, rg_2, rg_3, checks) + + # EXAMPLE: /AttestationProviders/patch/AttestationProviders_Update @try_manual def step_attestation_provider_update(test, rg, rg_2, rg_3, checks=None): @@ -55,6 +70,16 @@ def step_attestation_provider_update(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_attestation_provider_update_min(test, rg, rg_2, rg_3, checks=None): + if checks is None: + checks = [] + test.cmd('az attestation attestation-provider update ' + '--provider-name "myattestationprovider" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /AttestationProviders/delete/AttestationProviders_Delete @try_manual def step_attestation_provider_delete(test, rg, rg_2, rg_3, checks=None): @@ -66,6 +91,11 @@ def step_attestation_provider_delete(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_attestation_provider_delete_min(test, rg, rg_2, rg_3, checks=None): + return step_attestation_provider_delete(test, rg, rg_2, rg_3, checks) + + # EXAMPLE: /Operation/put/AttestationProviders_Create @try_manual def step_create_provider(test, rg, rg_2, rg_3, checks=None): @@ -77,6 +107,11 @@ def step_create_provider(test, rg, rg_2, rg_3, checks=None): checks=checks) +@try_manual +def step_create_provider_min(test, rg, rg_2, rg_3, checks=None): + return step_create_provider(test, rg, rg_2, rg_3, checks) + + # EXAMPLE: /Operation/get/Operations_List @try_manual def step_list_operation(test, rg, rg_2, rg_3, checks=None): @@ -85,3 +120,8 @@ def step_list_operation(test, rg, rg_2, rg_3, checks=None): test.cmd('az attestation list-operation', checks=checks) + +@try_manual +def step_list_operation_min(test, rg, rg_2, rg_3, checks=None): + return step_list_operation(test, rg, rg_2, rg_3, checks) + diff --git a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/test_attestation_scenario.py b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/test_attestation_scenario.py index 46ccba2da..4459d8553 100644 --- a/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/test_attestation_scenario.py +++ b/src/test/scenarios/attestation/output/src/attestation/azext_attestation/tests/latest/test_attestation_scenario.py @@ -17,6 +17,12 @@ from .example_steps import step_attestation_provider_provider_list from .example_steps import step_attestation_provider_provider_list2 from .example_steps import step_attestation_provider_delete +from .example_steps import step_list_operation_min +from .example_steps import step_create_provider_min +from .example_steps import step_attestation_provider_show_min +from .example_steps import step_attestation_provider_provider_list_min +from .example_steps import step_attestation_provider_provider_list2_min +from .example_steps import step_attestation_provider_delete_min from .. import ( try_manual, raise_if, @@ -59,17 +65,43 @@ def call_scenario(test, rg, rg_2, rg_3): cleanup_scenario(test, rg, rg_2, rg_3) +@try_manual +def call_scenario_min(test, rg, rg_2, rg_3): + setup_scenario(test, rg, rg_2, rg_3) + step_list_operation_min(test, rg, rg_2, rg_3, checks=[]) + step_create_provider_min(test, rg, rg_2, rg_3, checks=[]) + step_attestation_provider_show_min(test, rg, rg_2, rg_3, checks=[]) + mytest(test, rg, rg_2, rg_3) + step_attestation_provider_provider_list_min(test, rg, rg_2, rg_3, checks=[]) + step_attestation_provider_provider_list2_min(test, rg, rg_2, rg_3, checks=[]) + step_attestation_provider_delete_min(test, rg, rg_2, rg_3, checks=[]) + cleanup_scenario(test, rg, rg_2, rg_3) + + # Test class for Scenario @try_manual class AttestationScenarioTest(ScenarioTest): + def __init__(self): + pass + + @ResourceGroupPreparer(name_prefix='clitestattestation_MyResourceGroup'[:7], key='rg', parameter_name='rg') @ResourceGroupPreparer(name_prefix='clitestattestation_testrg1'[:7], key='rg_2', parameter_name='rg_2') @ResourceGroupPreparer(name_prefix='clitestattestation_sample-resource-group'[:7], key='rg_3', parameter_name='rg_3') def test_attestation_Scenario(self, rg, rg_2, rg_3): - call_scenario(self, rg, rg_2, rg_3) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestattestation_MyResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestattestation_testrg1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestattestation_sample-resource-group'[:7], key='rg_3', + parameter_name='rg_3') + def test_attestation_Scenario_min(self, rg, rg_2, rg_3): + call_scenario_min(self, rg, rg_2, rg_3) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/example_steps.py b/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/example_steps.py index e8b9b0edb..c11d74bb1 100644 --- a/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/example_steps.py +++ b/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/example_steps.py @@ -22,3 +22,8 @@ def step_virtual_machine_assess_patch(test, rg, checks=None): '--vm-name "myVMName"', checks=checks) + +@try_manual +def step_virtual_machine_assess_patch_min(test, rg, checks=None): + return step_virtual_machine_assess_patch(test, rg, checks) + diff --git a/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py b/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py index 841263338..b8ce9d672 100644 --- a/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py +++ b/src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_scenario_incrementalGenerated.py @@ -12,6 +12,7 @@ from azure.cli.testsdk import ScenarioTest from azure.cli.testsdk import ResourceGroupPreparer from .example_steps import step_virtual_machine_assess_patch +from .example_steps import step_virtual_machine_assess_patch_min from .. import ( try_manual, raise_if, @@ -42,14 +43,31 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_virtual_machine_assess_patch_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class VmScenarioTest(ScenarioTest): + def __init__(self): + pass + + @ResourceGroupPreparer(name_prefix='clitestvm_myResourceGroupName'[:7], key='rg', parameter_name='rg') def test_vm_Scenario(self, rg): - call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestvm_myResourceGroupName'[:7], key='rg', parameter_name='rg') + def test_vm_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/example_steps.py b/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/example_steps.py index 99cd68d1b..ffa7ebf98 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/example_steps.py +++ b/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/example_steps.py @@ -25,6 +25,16 @@ def step_create(test, rg, checks=None): checks=checks) +@try_manual +def step_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory create ' + '--name "{myFactory}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Factories/get/Factories_Get @try_manual def step_show(test, rg, checks=None): @@ -36,6 +46,11 @@ def step_show(test, rg, checks=None): checks=checks) +@try_manual +def step_show_min(test, rg, checks=None): + return step_show(test, rg, checks) + + # EXAMPLE: /Factories/get/Factories_List @try_manual def step_list(test, rg, checks=None): @@ -46,6 +61,11 @@ def step_list(test, rg, checks=None): checks=checks) +@try_manual +def step_list_min(test, rg, checks=None): + return step_list(test, rg, checks) + + # EXAMPLE: /Factories/get/Factories_ListByResourceGroup @try_manual def step_list2(test, rg, checks=None): @@ -56,6 +76,11 @@ def step_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_list2_min(test, rg, checks=None): + return step_list2(test, rg, checks) + + # EXAMPLE: /Factories/patch/Factories_Update @try_manual def step_update(test, rg, checks=None): @@ -68,6 +93,16 @@ def step_update(test, rg, checks=None): checks=checks) +@try_manual +def step_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory update ' + '--name "{myFactory}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Factories/post/Factories_ConfigureFactoryRepo @try_manual def step_configure_factory_repo(test, rg, checks=None): @@ -81,6 +116,15 @@ def step_configure_factory_repo(test, rg, checks=None): checks=checks) +@try_manual +def step_configure_factory_repo_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory configure-factory-repo ' + '--location-id "East US"', + checks=checks) + + # EXAMPLE: /Factories/post/Factories_GetDataPlaneAccess @try_manual def step_get_data_plane_access(test, rg, checks=None): @@ -97,6 +141,16 @@ def step_get_data_plane_access(test, rg, checks=None): checks=checks) +@try_manual +def step_get_data_plane_access_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory get-data-plane-access ' + '--name "{myFactory}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Factories/post/Factories_GetGitHubAccessToken @try_manual def step_get_git_hub_access_token(test, rg, checks=None): @@ -111,6 +165,18 @@ def step_get_git_hub_access_token(test, rg, checks=None): checks=checks) +@try_manual +def step_get_git_hub_access_token_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory get-git-hub-access-token ' + '--name "{myFactory}" ' + '--git-hub-access-code "some" ' + '--git-hub-access-token-base-url "some" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/put/IntegrationRuntimes_Create @try_manual def step_integration_runtime_self_hosted_create(test, rg, checks=None): @@ -124,6 +190,17 @@ def step_integration_runtime_self_hosted_create(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_self_hosted_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory integration-runtime self-hosted create ' + '--factory-name "{myFactory}" ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/get/IntegrationRuntimes_Get @try_manual def step_integration_runtime_show(test, rg, checks=None): @@ -136,6 +213,11 @@ def step_integration_runtime_show(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_show_min(test, rg, checks=None): + return step_integration_runtime_show(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/get/IntegrationRuntimes_ListByFactory @try_manual def step_integration_runtime_list(test, rg, checks=None): @@ -147,6 +229,11 @@ def step_integration_runtime_list(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_list_min(test, rg, checks=None): + return step_integration_runtime_list(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/patch/IntegrationRuntimes_Update @try_manual def step_integration_runtime_update(test, rg, checks=None): @@ -161,6 +248,17 @@ def step_integration_runtime_update(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory integration-runtime update ' + '--factory-name "{myFactory}" ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_CreateLinkedIntegrationRuntime @try_manual def step_integration_runtime_linked(test, rg, checks=None): @@ -178,6 +276,17 @@ def step_integration_runtime_linked(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_linked_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory integration-runtime linked-integration-runtime create ' + '--factory-name "{myFactory}" ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_GetConnectionInfo @try_manual def step_integration_runtime_get_connection_info(test, rg, checks=None): @@ -190,6 +299,11 @@ def step_integration_runtime_get_connection_info(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_get_connection_info_min(test, rg, checks=None): + return step_integration_runtime_get_connection_info(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_GetMonitoringData @try_manual def step_integration_runtime_get_monitoring_data(test, rg, checks=None): @@ -202,6 +316,11 @@ def step_integration_runtime_get_monitoring_data(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_get_monitoring_data_min(test, rg, checks=None): + return step_integration_runtime_get_monitoring_data(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_GetStatus @try_manual def step_integration_runtime_get_status(test, rg, checks=None): @@ -214,6 +333,11 @@ def step_integration_runtime_get_status(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_get_status_min(test, rg, checks=None): + return step_integration_runtime_get_status(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_ListAuthKeys @try_manual def step_integration_runtime_list_auth_key(test, rg, checks=None): @@ -226,6 +350,11 @@ def step_integration_runtime_list_auth_key(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_list_auth_key_min(test, rg, checks=None): + return step_integration_runtime_list_auth_key(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_RegenerateAuthKey @try_manual def step_integration_runtime_regenerate_auth_key(test, rg, checks=None): @@ -239,6 +368,17 @@ def step_integration_runtime_regenerate_auth_key(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_regenerate_auth_key_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory integration-runtime regenerate-auth-key ' + '--factory-name "{myFactory}" ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_RemoveLinks @try_manual def step_integration_runtime_remove_link(test, rg, checks=None): @@ -252,6 +392,11 @@ def step_integration_runtime_remove_link(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_remove_link_min(test, rg, checks=None): + return step_integration_runtime_remove_link(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_Start @try_manual def step_integration_runtime_start(test, rg, checks=None): @@ -264,6 +409,11 @@ def step_integration_runtime_start(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_start_min(test, rg, checks=None): + return step_integration_runtime_start(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_Stop @try_manual def step_integration_runtime_stop(test, rg, checks=None): @@ -276,6 +426,11 @@ def step_integration_runtime_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_stop_min(test, rg, checks=None): + return step_integration_runtime_stop(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_SyncCredentials @try_manual def step_integration_runtime_sync_credentials(test, rg, checks=None): @@ -288,6 +443,11 @@ def step_integration_runtime_sync_credentials(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_sync_credentials_min(test, rg, checks=None): + return step_integration_runtime_sync_credentials(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/post/IntegrationRuntimes_Upgrade @try_manual def step_integration_runtime_upgrade(test, rg, checks=None): @@ -300,6 +460,11 @@ def step_integration_runtime_upgrade(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_upgrade_min(test, rg, checks=None): + return step_integration_runtime_upgrade(test, rg, checks) + + # EXAMPLE: /IntegrationRuntimes/delete/IntegrationRuntimes_Delete @try_manual def step_integration_runtime_delete(test, rg, checks=None): @@ -312,6 +477,11 @@ def step_integration_runtime_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_integration_runtime_delete_min(test, rg, checks=None): + return step_integration_runtime_delete(test, rg, checks) + + # EXAMPLE: /Triggers/put/Triggers_Create @try_manual def step_trigger_create(test, rg, checks=None): @@ -329,6 +499,11 @@ def step_trigger_create(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_create_min(test, rg, checks=None): + return step_trigger_create(test, rg, checks) + + # EXAMPLE: /Triggers/put/Triggers_Update @try_manual def step_trigger_update(test, rg, checks=None): @@ -342,6 +517,17 @@ def step_trigger_update(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory trigger update ' + '--factory-name "{myFactory}" ' + '--resource-group "{rg}" ' + '--name "{myTrigger}"', + checks=checks) + + # EXAMPLE: /Triggers/get/Triggers_Get @try_manual def step_trigger_show(test, rg, checks=None): @@ -354,6 +540,11 @@ def step_trigger_show(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_show_min(test, rg, checks=None): + return step_trigger_show(test, rg, checks) + + # EXAMPLE: /Triggers/get/Triggers_ListByFactory @try_manual def step_trigger_list(test, rg, checks=None): @@ -365,6 +556,11 @@ def step_trigger_list(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_list_min(test, rg, checks=None): + return step_trigger_list(test, rg, checks) + + # EXAMPLE: /Triggers/post/Triggers_GetEventSubscriptionStatus @try_manual def step_trigger_get_event_subscription_status(test, rg, checks=None): @@ -377,6 +573,11 @@ def step_trigger_get_event_subscription_status(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_get_event_subscription_status_min(test, rg, checks=None): + return step_trigger_get_event_subscription_status(test, rg, checks) + + # EXAMPLE: /Triggers/post/Triggers_QueryByFactory @try_manual def step_trigger_query_by_factory(test, rg, checks=None): @@ -389,6 +590,16 @@ def step_trigger_query_by_factory(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_query_by_factory_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az datafactory trigger query-by-factory ' + '--factory-name "{myFactory}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Triggers/post/Triggers_Start @try_manual def step_trigger_start(test, rg, checks=None): @@ -401,6 +612,11 @@ def step_trigger_start(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_start_min(test, rg, checks=None): + return step_trigger_start(test, rg, checks) + + # EXAMPLE: /Triggers/post/Triggers_Stop @try_manual def step_trigger_stop(test, rg, checks=None): @@ -413,6 +629,11 @@ def step_trigger_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_stop_min(test, rg, checks=None): + return step_trigger_stop(test, rg, checks) + + # EXAMPLE: /Triggers/post/Triggers_SubscribeToEvents @try_manual def step_trigger_subscribe_to_event(test, rg, checks=None): @@ -425,6 +646,11 @@ def step_trigger_subscribe_to_event(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_subscribe_to_event_min(test, rg, checks=None): + return step_trigger_subscribe_to_event(test, rg, checks) + + # EXAMPLE: /Triggers/post/Triggers_UnsubscribeFromEvents @try_manual def step_trigger_unsubscribe_from_event(test, rg, checks=None): @@ -437,6 +663,11 @@ def step_trigger_unsubscribe_from_event(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_unsubscribe_from_event_min(test, rg, checks=None): + return step_trigger_unsubscribe_from_event(test, rg, checks) + + # EXAMPLE: /Triggers/delete/Triggers_Delete @try_manual def step_trigger_delete(test, rg, checks=None): @@ -449,6 +680,11 @@ def step_trigger_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_trigger_delete_min(test, rg, checks=None): + return step_trigger_delete(test, rg, checks) + + # EXAMPLE: /Factories/delete/Factories_Delete @try_manual def step_delete(test, rg, checks=None): @@ -459,3 +695,8 @@ def step_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_delete_min(test, rg, checks=None): + return step_delete(test, rg, checks) + diff --git a/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/test_datafactory_scenario.py b/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/test_datafactory_scenario.py index c163286f7..4cad44617 100644 --- a/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/test_datafactory_scenario.py +++ b/src/test/scenarios/datafactory/output/src/datafactory-preview/azext_datafactory_preview/tests/latest/test_datafactory_scenario.py @@ -47,6 +47,42 @@ from .example_steps import step_trigger_unsubscribe_from_event from .example_steps import step_trigger_delete from .example_steps import step_delete +from .example_steps import step_create_min +from .example_steps import step_show_min +from .example_steps import step_list_min +from .example_steps import step_list2_min +from .example_steps import step_update_min +from .example_steps import step_configure_factory_repo_min +from .example_steps import step_get_data_plane_access_min +from .example_steps import step_get_git_hub_access_token_min +from .example_steps import step_integration_runtime_self_hosted_create_min +from .example_steps import step_integration_runtime_show_min +from .example_steps import step_integration_runtime_list_min +from .example_steps import step_integration_runtime_update_min +from .example_steps import step_integration_runtime_linked_min +from .example_steps import step_integration_runtime_get_connection_info_min +from .example_steps import step_integration_runtime_get_monitoring_data_min +from .example_steps import step_integration_runtime_get_status_min +from .example_steps import step_integration_runtime_list_auth_key_min +from .example_steps import step_integration_runtime_regenerate_auth_key_min +from .example_steps import step_integration_runtime_remove_link_min +from .example_steps import step_integration_runtime_start_min +from .example_steps import step_integration_runtime_stop_min +from .example_steps import step_integration_runtime_sync_credentials_min +from .example_steps import step_integration_runtime_upgrade_min +from .example_steps import step_integration_runtime_delete_min +from .example_steps import step_trigger_create_min +from .example_steps import step_trigger_update_min +from .example_steps import step_trigger_show_min +from .example_steps import step_trigger_list_min +from .example_steps import step_trigger_get_event_subscription_status_min +from .example_steps import step_trigger_query_by_factory_min +from .example_steps import step_trigger_start_min +from .example_steps import step_trigger_stop_min +from .example_steps import step_trigger_subscribe_to_event_min +from .example_steps import step_trigger_unsubscribe_from_event_min +from .example_steps import step_trigger_delete_min +from .example_steps import step_delete_min from .. import ( try_manual, raise_if, @@ -112,13 +148,53 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_create_min(test, rg, checks=[]) + step_show_min(test, rg, checks=[]) + step_list_min(test, rg, checks=[]) + step_list2_min(test, rg, checks=[]) + step_update_min(test, rg, checks=[]) + step_configure_factory_repo_min(test, rg, checks=[]) + step_get_data_plane_access_min(test, rg, checks=[]) + step_get_git_hub_access_token_min(test, rg, checks=[]) + step_integration_runtime_self_hosted_create_min(test, rg, checks=[]) + step_integration_runtime_show_min(test, rg, checks=[]) + step_integration_runtime_list_min(test, rg, checks=[]) + step_integration_runtime_update_min(test, rg, checks=[]) + step_integration_runtime_linked_min(test, rg, checks=[]) + step_integration_runtime_get_connection_info_min(test, rg, checks=[]) + step_integration_runtime_get_monitoring_data_min(test, rg, checks=[]) + step_integration_runtime_get_status_min(test, rg, checks=[]) + step_integration_runtime_list_auth_key_min(test, rg, checks=[]) + step_integration_runtime_regenerate_auth_key_min(test, rg, checks=[]) + step_integration_runtime_remove_link_min(test, rg, checks=[]) + step_integration_runtime_start_min(test, rg, checks=[]) + step_integration_runtime_stop_min(test, rg, checks=[]) + step_integration_runtime_sync_credentials_min(test, rg, checks=[]) + step_integration_runtime_upgrade_min(test, rg, checks=[]) + step_integration_runtime_delete_min(test, rg, checks=[]) + step_trigger_create_min(test, rg, checks=[]) + step_trigger_update_min(test, rg, checks=[]) + step_trigger_show_min(test, rg, checks=[]) + step_trigger_list_min(test, rg, checks=[]) + step_trigger_get_event_subscription_status_min(test, rg, checks=[]) + step_trigger_query_by_factory_min(test, rg, checks=[]) + step_trigger_start_min(test, rg, checks=[]) + step_trigger_stop_min(test, rg, checks=[]) + step_trigger_subscribe_to_event_min(test, rg, checks=[]) + step_trigger_unsubscribe_from_event_min(test, rg, checks=[]) + step_trigger_delete_min(test, rg, checks=[]) + step_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class DatafactoryScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestdatafactory_exampleResourceGroup'[:7], key='rg', parameter_name='rg') - def test_datafactory_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -130,7 +206,17 @@ def test_datafactory_Scenario(self, rg): 'myIntegrationRuntime2': 'exampleManagedIntegrationRuntime', }) + + @ResourceGroupPreparer(name_prefix='clitestdatafactory_exampleResourceGroup'[:7], key='rg', parameter_name='rg') + def test_datafactory_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestdatafactory_exampleResourceGroup'[:7], key='rg', parameter_name='rg') + def test_datafactory_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py b/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py index cbeb48fab..36f7e760d 100644 --- a/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py +++ b/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/example_steps.py @@ -33,6 +33,21 @@ def step_attached_database_configuration_create(test, rg, checks=None): checks=[]) +@try_manual +def step_attached_database_configuration_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto attached-database-configuration create ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--cluster-name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto attached-database-configuration wait --created ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/AttachedDatabaseConfigurationsGet @try_manual def step_attached_database_configuration_show(test, rg, checks=None): @@ -45,6 +60,11 @@ def step_attached_database_configuration_show(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_show_min(test, rg, checks=None): + return step_attached_database_configuration_show(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/KustoAttachedDatabaseConfigurationsListByCluster @try_manual def step_attached_database_configuration_list(test, rg, checks=None): @@ -56,6 +76,11 @@ def step_attached_database_configuration_list(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_list_min(test, rg, checks=None): + return step_attached_database_configuration_list(test, rg, checks) + + # EXAMPLE: /Clusters/put/KustoClustersCreateOrUpdate @try_manual def step_cluster_create(test, rg, checks=None): @@ -77,6 +102,22 @@ def step_cluster_create(test, rg, checks=None): checks=[]) +@try_manual +def step_cluster_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster create ' + '--name "{myCluster}" ' + '--location "westus" ' + '--sku name="Standard_L8s" capacity=2 tier="Standard" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto cluster wait --created ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /Clusters/get/KustoClustersGet @try_manual def step_cluster_show(test, rg, checks=None): @@ -88,6 +129,11 @@ def step_cluster_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_show_min(test, rg, checks=None): + return step_cluster_show(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersList @try_manual def step_cluster_list(test, rg, checks=None): @@ -98,6 +144,11 @@ def step_cluster_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_min(test, rg, checks=None): + return step_cluster_list(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListByResourceGroup @try_manual def step_cluster_list2(test, rg, checks=None): @@ -108,6 +159,11 @@ def step_cluster_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list2_min(test, rg, checks=None): + return step_cluster_list2(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListResourceSkus @try_manual def step_cluster_list_sku(test, rg, checks=None): @@ -119,6 +175,11 @@ def step_cluster_list_sku(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku_min(test, rg, checks=None): + return step_cluster_list_sku(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListSkus @try_manual def step_cluster_list_sku2(test, rg, checks=None): @@ -129,6 +190,11 @@ def step_cluster_list_sku2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku2_min(test, rg, checks=None): + return step_cluster_list_sku2(test, rg, checks) + + # EXAMPLE: /Clusters/patch/KustoClustersUpdate @try_manual def step_cluster_update(test, rg, checks=None): @@ -146,6 +212,16 @@ def step_cluster_update(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster update ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterAddLanguageExtensions @try_manual def step_cluster_add_language_extension(test, rg, checks=None): @@ -159,6 +235,16 @@ def step_cluster_add_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_add_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster add-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterDetachFollowerDatabases @try_manual def step_cluster_detach_follower_database(test, rg, checks=None): @@ -173,6 +259,11 @@ def step_cluster_detach_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_detach_follower_database_min(test, rg, checks=None): + return step_cluster_detach_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterDiagnoseVirtualNetwork @try_manual def step_cluster_diagnose_virtual_network(test, rg, checks=None): @@ -184,6 +275,11 @@ def step_cluster_diagnose_virtual_network(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_diagnose_virtual_network_min(test, rg, checks=None): + return step_cluster_diagnose_virtual_network(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListFollowerDatabases @try_manual def step_cluster_list_follower_database(test, rg, checks=None): @@ -195,6 +291,11 @@ def step_cluster_list_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_follower_database_min(test, rg, checks=None): + return step_cluster_list_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListLanguageExtensions @try_manual def step_cluster_list_language_extension(test, rg, checks=None): @@ -206,6 +307,11 @@ def step_cluster_list_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_language_extension_min(test, rg, checks=None): + return step_cluster_list_language_extension(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterRemoveLanguageExtensions @try_manual def step_cluster_remove_language_extension(test, rg, checks=None): @@ -219,6 +325,16 @@ def step_cluster_remove_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_remove_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster remove-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClustersStart @try_manual def step_cluster_start(test, rg, checks=None): @@ -230,6 +346,11 @@ def step_cluster_start(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_start_min(test, rg, checks=None): + return step_cluster_start(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClustersStop @try_manual def step_cluster_stop(test, rg, checks=None): @@ -241,6 +362,11 @@ def step_cluster_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_stop_min(test, rg, checks=None): + return step_cluster_stop(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/put/KustoClusterPrincipalAssignmentsCreateOrUpdate @try_manual def step_cluster_principal_assignment_create(test, rg, checks=None): @@ -257,6 +383,17 @@ def step_cluster_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoClusterPrincipalAssignmentsGet @try_manual def step_cluster_principal_assignment_show(test, rg, checks=None): @@ -269,6 +406,11 @@ def step_cluster_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_show_min(test, rg, checks=None): + return step_cluster_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_cluster_principal_assignment_list(test, rg, checks=None): @@ -280,6 +422,11 @@ def step_cluster_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_list_min(test, rg, checks=None): + return step_cluster_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/put/KustoDatabasePrincipalAssignmentsCreateOrUpdate @try_manual def step_database_principal_assignment_create(test, rg, checks=None): @@ -297,6 +444,18 @@ def step_database_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoDatabasePrincipalAssignmentsGet @try_manual def step_database_principal_assignment_show(test, rg, checks=None): @@ -310,6 +469,11 @@ def step_database_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_show_min(test, rg, checks=None): + return step_database_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_database_principal_assignment_list(test, rg, checks=None): @@ -322,6 +486,11 @@ def step_database_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_list_min(test, rg, checks=None): + return step_database_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/delete/KustoDatabasePrincipalAssignmentsDelete @try_manual def step_database_principal_assignment_delete(test, rg, checks=None): @@ -335,6 +504,11 @@ def step_database_principal_assignment_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_delete_min(test, rg, checks=None): + return step_database_principal_assignment_delete(test, rg, checks) + + # EXAMPLE: /Databases/put/KustoDatabasesCreateOrUpdate @try_manual def step_database_create(test, rg, checks=None): @@ -348,6 +522,17 @@ def step_database_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database create ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/get/KustoDatabasesGet @try_manual def step_database_show(test, rg, checks=None): @@ -360,6 +545,11 @@ def step_database_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_show_min(test, rg, checks=None): + return step_database_show(test, rg, checks) + + # EXAMPLE: /Databases/get/KustoDatabasesListByCluster @try_manual def step_database_list(test, rg, checks=None): @@ -371,6 +561,11 @@ def step_database_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_min(test, rg, checks=None): + return step_database_list(test, rg, checks) + + # EXAMPLE: /Databases/patch/KustoDatabasesUpdate @try_manual def step_database_update(test, rg, checks=None): @@ -384,6 +579,11 @@ def step_database_update(test, rg, checks=None): checks=checks) +@try_manual +def step_database_update_min(test, rg, checks=None): + return step_database_update(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseAddPrincipals @try_manual def step_database_add_principal(test, rg, checks=None): @@ -399,6 +599,17 @@ def step_database_add_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_add_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database add-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/post/KustoDatabaseListPrincipals @try_manual def step_database_list_principal(test, rg, checks=None): @@ -411,6 +622,11 @@ def step_database_list_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_principal_min(test, rg, checks=None): + return step_database_list_principal(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseRemovePrincipals @try_manual def step_database_remove_principal(test, rg, checks=None): @@ -426,6 +642,17 @@ def step_database_remove_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_remove_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database remove-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/delete/KustoDatabasesDelete @try_manual def step_database_delete(test, rg, checks=None): @@ -438,6 +665,11 @@ def step_database_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_delete_min(test, rg, checks=None): + return step_database_delete(test, rg, checks) + + # EXAMPLE: /DataConnections/put/KustoDataConnectionsCreateOrUpdate @try_manual def step_data_connection_create(test, rg, checks=None): @@ -454,6 +686,18 @@ def step_data_connection_create(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection create ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/get/KustoDatabasesListByCluster @try_manual def step_data_connection_list(test, rg, checks=None): @@ -466,6 +710,11 @@ def step_data_connection_list(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_list_min(test, rg, checks=None): + return step_data_connection_list(test, rg, checks) + + # EXAMPLE: /DataConnections/get/KustoDataConnectionsGet @try_manual def step_data_connection_show(test, rg, checks=None): @@ -479,6 +728,11 @@ def step_data_connection_show(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_show_min(test, rg, checks=None): + return step_data_connection_show(test, rg, checks) + + # EXAMPLE: /DataConnections/patch/KustoDataConnectionsUpdate @try_manual def step_data_connection_update(test, rg, checks=None): @@ -495,6 +749,18 @@ def step_data_connection_update(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection update ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/post/KustoDataConnectionValidation @try_manual def step_data_connection_data_connection_validation(test, rg, checks=None): @@ -511,6 +777,17 @@ def step_data_connection_data_connection_validation(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_data_connection_validation_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection data-connection-validation ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/delete/KustoDataConnectionsDelete @try_manual def step_data_connection_delete(test, rg, checks=None): @@ -524,6 +801,11 @@ def step_data_connection_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_delete_min(test, rg, checks=None): + return step_data_connection_delete(test, rg, checks) + + # EXAMPLE: /Clusters/delete/KustoClustersDelete @try_manual def step_cluster_delete(test, rg, checks=None): @@ -535,6 +817,11 @@ def step_cluster_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_delete_min(test, rg, checks=None): + return step_cluster_delete(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/delete/AttachedDatabaseConfigurationsDelete @try_manual def step_attached_database_configuration_delete(test, rg, checks=None): @@ -547,6 +834,11 @@ def step_attached_database_configuration_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_delete_min(test, rg, checks=None): + return step_attached_database_configuration_delete(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/delete/KustoClusterPrincipalAssignmentsDelete @try_manual def step_cluster_principal_assignment_delete(test, rg, checks=None): @@ -558,3 +850,8 @@ def step_cluster_principal_assignment_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_cluster_principal_assignment_delete_min(test, rg, checks=None): + return step_cluster_principal_assignment_delete(test, rg, checks) + diff --git a/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py b/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py index c6c4f1ced..b82e4aee4 100644 --- a/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py +++ b/src/test/scenarios/kusto/output/coredefault/src/azure-cli/azure/cli/command_modules/kusto/tests/latest/test_kusto_scenario.py @@ -53,6 +53,48 @@ from .example_steps import step_cluster_delete from .example_steps import step_attached_database_configuration_delete from .example_steps import step_cluster_principal_assignment_delete +from .example_steps import step_attached_database_configuration_create_min +from .example_steps import step_attached_database_configuration_show_min +from .example_steps import step_attached_database_configuration_list_min +from .example_steps import step_cluster_create_min +from .example_steps import step_cluster_show_min +from .example_steps import step_cluster_list_min +from .example_steps import step_cluster_list2_min +from .example_steps import step_cluster_list_sku_min +from .example_steps import step_cluster_list_sku2_min +from .example_steps import step_cluster_update_min +from .example_steps import step_cluster_add_language_extension_min +from .example_steps import step_cluster_detach_follower_database_min +from .example_steps import step_cluster_diagnose_virtual_network_min +from .example_steps import step_cluster_list_follower_database_min +from .example_steps import step_cluster_list_language_extension_min +from .example_steps import step_cluster_remove_language_extension_min +from .example_steps import step_cluster_start_min +from .example_steps import step_cluster_stop_min +from .example_steps import step_cluster_principal_assignment_create_min +from .example_steps import step_cluster_principal_assignment_show_min +from .example_steps import step_cluster_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_create_min +from .example_steps import step_database_principal_assignment_show_min +from .example_steps import step_database_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_delete_min +from .example_steps import step_database_create_min +from .example_steps import step_database_show_min +from .example_steps import step_database_list_min +from .example_steps import step_database_update_min +from .example_steps import step_database_add_principal_min +from .example_steps import step_database_list_principal_min +from .example_steps import step_database_remove_principal_min +from .example_steps import step_database_delete_min +from .example_steps import step_data_connection_create_min +from .example_steps import step_data_connection_list_min +from .example_steps import step_data_connection_show_min +from .example_steps import step_data_connection_update_min +from .example_steps import step_data_connection_data_connection_validation_min +from .example_steps import step_data_connection_delete_min +from .example_steps import step_cluster_delete_min +from .example_steps import step_attached_database_configuration_delete_min +from .example_steps import step_cluster_principal_assignment_delete_min from .. import ( try_manual, raise_if, @@ -170,13 +212,85 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_attached_database_configuration_create_min(test, rg, checks=[]) + step_attached_database_configuration_show_min(test, rg, checks=[]) + step_attached_database_configuration_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_create_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_show_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list2_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list_sku_min(test, rg, checks=[]) + step_cluster_list_sku2_min(test, rg, checks=[]) + step_cluster_update_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_add_language_extension_min(test, rg, checks=[]) + step_cluster_detach_follower_database_min(test, rg, checks=[]) + step_cluster_diagnose_virtual_network_min(test, rg, checks=[]) + step_cluster_list_follower_database_min(test, rg, checks=[]) + step_cluster_list_language_extension_min(test, rg, checks=[]) + step_cluster_remove_language_extension_min(test, rg, checks=[]) + step_cluster_start_min(test, rg, checks=[]) + step_cluster_stop_min(test, rg, checks=[]) + step_cluster_principal_assignment_create_min(test, rg, checks=[]) + step_cluster_principal_assignment_show_min(test, rg, checks=[]) + step_cluster_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_create_min(test, rg, checks=[]) + step_database_principal_assignment_show_min(test, rg, checks=[]) + step_database_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_delete_min(test, rg, checks=[]) + step_database_create_min(test, rg, checks=[]) + step_database_show_min(test, rg, checks=[]) + step_database_list_min(test, rg, checks=[]) + step_database_update_min(test, rg, checks=[]) + step_database_add_principal_min(test, rg, checks=[]) + step_database_list_principal_min(test, rg, checks=[]) + step_database_remove_principal_min(test, rg, checks=[]) + step_database_delete_min(test, rg, checks=[]) + step_data_connection_create_min(test, rg, checks=[]) + step_data_connection_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_data_connection_show_min(test, rg, checks=[]) + step_data_connection_update_min(test, rg, checks=[]) + step_data_connection_data_connection_validation_min(test, rg, checks=[]) + step_data_connection_delete_min(test, rg, checks=[]) + step_cluster_delete_min(test, rg, checks=[]) + step_attached_database_configuration_delete_min(test, rg, checks=[]) + step_cluster_principal_assignment_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class KustoScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') - def test_kusto_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -193,7 +307,17 @@ def test_kusto_Scenario(self, rg): 'myDataConnection2': 'kustoeventhubconnection1', }) + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/example_steps.py b/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/example_steps.py index 55c9a479c..48f382227 100644 --- a/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/example_steps.py +++ b/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/example_steps.py @@ -33,6 +33,21 @@ def step_attached_database_configuration_create(test, rg, checks=None): checks=[]) +@try_manual +def step_attached_database_configuration_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto attached-database-configuration create ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--cluster-name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto attached-database-configuration wait --created ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/AttachedDatabaseConfigurationsGet @try_manual def step_attached_database_configuration_show(test, rg, checks=None): @@ -45,6 +60,11 @@ def step_attached_database_configuration_show(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_show_min(test, rg, checks=None): + return step_attached_database_configuration_show(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/KustoAttachedDatabaseConfigurationsListByCluster @try_manual def step_attached_database_configuration_list(test, rg, checks=None): @@ -56,6 +76,11 @@ def step_attached_database_configuration_list(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_list_min(test, rg, checks=None): + return step_attached_database_configuration_list(test, rg, checks) + + # EXAMPLE: /Clusters/put/KustoClustersCreateOrUpdate @try_manual def step_cluster_create(test, rg, checks=None): @@ -77,6 +102,22 @@ def step_cluster_create(test, rg, checks=None): checks=[]) +@try_manual +def step_cluster_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster create ' + '--name "{myCluster}" ' + '--location "westus" ' + '--sku name="Standard_L8s" capacity=2 tier="Standard" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto cluster wait --created ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /Clusters/get/KustoClustersGet @try_manual def step_cluster_show(test, rg, checks=None): @@ -88,6 +129,11 @@ def step_cluster_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_show_min(test, rg, checks=None): + return step_cluster_show(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersList @try_manual def step_cluster_list(test, rg, checks=None): @@ -98,6 +144,11 @@ def step_cluster_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_min(test, rg, checks=None): + return step_cluster_list(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListByResourceGroup @try_manual def step_cluster_list2(test, rg, checks=None): @@ -108,6 +159,11 @@ def step_cluster_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list2_min(test, rg, checks=None): + return step_cluster_list2(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListResourceSkus @try_manual def step_cluster_list_sku(test, rg, checks=None): @@ -119,6 +175,11 @@ def step_cluster_list_sku(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku_min(test, rg, checks=None): + return step_cluster_list_sku(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListSkus @try_manual def step_cluster_list_sku2(test, rg, checks=None): @@ -129,6 +190,11 @@ def step_cluster_list_sku2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku2_min(test, rg, checks=None): + return step_cluster_list_sku2(test, rg, checks) + + # EXAMPLE: /Clusters/patch/KustoClustersUpdate @try_manual def step_cluster_update(test, rg, checks=None): @@ -146,6 +212,16 @@ def step_cluster_update(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster update ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterAddLanguageExtensions @try_manual def step_cluster_add_language_extension(test, rg, checks=None): @@ -159,6 +235,16 @@ def step_cluster_add_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_add_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster add-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterDetachFollowerDatabases @try_manual def step_cluster_detach_follower_database(test, rg, checks=None): @@ -173,6 +259,11 @@ def step_cluster_detach_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_detach_follower_database_min(test, rg, checks=None): + return step_cluster_detach_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterDiagnoseVirtualNetwork @try_manual def step_cluster_diagnose_virtual_network(test, rg, checks=None): @@ -184,6 +275,11 @@ def step_cluster_diagnose_virtual_network(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_diagnose_virtual_network_min(test, rg, checks=None): + return step_cluster_diagnose_virtual_network(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListFollowerDatabases @try_manual def step_cluster_list_follower_database(test, rg, checks=None): @@ -195,6 +291,11 @@ def step_cluster_list_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_follower_database_min(test, rg, checks=None): + return step_cluster_list_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListLanguageExtensions @try_manual def step_cluster_list_language_extension(test, rg, checks=None): @@ -206,6 +307,11 @@ def step_cluster_list_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_language_extension_min(test, rg, checks=None): + return step_cluster_list_language_extension(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterRemoveLanguageExtensions @try_manual def step_cluster_remove_language_extension(test, rg, checks=None): @@ -219,6 +325,16 @@ def step_cluster_remove_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_remove_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster remove-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClustersStart @try_manual def step_cluster_start(test, rg, checks=None): @@ -230,6 +346,11 @@ def step_cluster_start(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_start_min(test, rg, checks=None): + return step_cluster_start(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClustersStop @try_manual def step_cluster_stop(test, rg, checks=None): @@ -241,6 +362,11 @@ def step_cluster_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_stop_min(test, rg, checks=None): + return step_cluster_stop(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/put/KustoClusterPrincipalAssignmentsCreateOrUpdate @try_manual def step_cluster_principal_assignment_create(test, rg, checks=None): @@ -257,6 +383,17 @@ def step_cluster_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoClusterPrincipalAssignmentsGet @try_manual def step_cluster_principal_assignment_show(test, rg, checks=None): @@ -269,6 +406,11 @@ def step_cluster_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_show_min(test, rg, checks=None): + return step_cluster_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_cluster_principal_assignment_list(test, rg, checks=None): @@ -280,6 +422,11 @@ def step_cluster_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_list_min(test, rg, checks=None): + return step_cluster_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/put/KustoDatabasePrincipalAssignmentsCreateOrUpdate @try_manual def step_database_principal_assignment_create(test, rg, checks=None): @@ -297,6 +444,18 @@ def step_database_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoDatabasePrincipalAssignmentsGet @try_manual def step_database_principal_assignment_show(test, rg, checks=None): @@ -310,6 +469,11 @@ def step_database_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_show_min(test, rg, checks=None): + return step_database_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_database_principal_assignment_list(test, rg, checks=None): @@ -322,6 +486,11 @@ def step_database_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_list_min(test, rg, checks=None): + return step_database_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/delete/KustoDatabasePrincipalAssignmentsDelete @try_manual def step_database_principal_assignment_delete(test, rg, checks=None): @@ -335,6 +504,11 @@ def step_database_principal_assignment_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_delete_min(test, rg, checks=None): + return step_database_principal_assignment_delete(test, rg, checks) + + # EXAMPLE: /Databases/put/KustoDatabasesCreateOrUpdate @try_manual def step_database_create(test, rg, checks=None): @@ -348,6 +522,17 @@ def step_database_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database create ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/get/KustoDatabasesGet @try_manual def step_database_show(test, rg, checks=None): @@ -360,6 +545,11 @@ def step_database_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_show_min(test, rg, checks=None): + return step_database_show(test, rg, checks) + + # EXAMPLE: /Databases/get/KustoDatabasesListByCluster @try_manual def step_database_list(test, rg, checks=None): @@ -371,6 +561,11 @@ def step_database_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_min(test, rg, checks=None): + return step_database_list(test, rg, checks) + + # EXAMPLE: /Databases/patch/KustoDatabasesUpdate @try_manual def step_database_update(test, rg, checks=None): @@ -384,6 +579,11 @@ def step_database_update(test, rg, checks=None): checks=checks) +@try_manual +def step_database_update_min(test, rg, checks=None): + return step_database_update(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseAddPrincipals @try_manual def step_database_add_principal(test, rg, checks=None): @@ -399,6 +599,17 @@ def step_database_add_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_add_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database add-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/post/KustoDatabaseListPrincipals @try_manual def step_database_list_principal(test, rg, checks=None): @@ -411,6 +622,11 @@ def step_database_list_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_principal_min(test, rg, checks=None): + return step_database_list_principal(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseRemovePrincipals @try_manual def step_database_remove_principal(test, rg, checks=None): @@ -426,6 +642,17 @@ def step_database_remove_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_remove_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database remove-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/delete/KustoDatabasesDelete @try_manual def step_database_delete(test, rg, checks=None): @@ -438,6 +665,11 @@ def step_database_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_delete_min(test, rg, checks=None): + return step_database_delete(test, rg, checks) + + # EXAMPLE: /DataConnections/put/KustoDataConnectionsCreateOrUpdate @try_manual def step_data_connection_event_hub_create(test, rg, checks=None): @@ -455,6 +687,18 @@ def step_data_connection_event_hub_create(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub create ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/get/KustoDatabasesListByCluster @try_manual def step_data_connection_list(test, rg, checks=None): @@ -467,6 +711,11 @@ def step_data_connection_list(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_list_min(test, rg, checks=None): + return step_data_connection_list(test, rg, checks) + + # EXAMPLE: /DataConnections/get/KustoDataConnectionsGet @try_manual def step_data_connection_show(test, rg, checks=None): @@ -480,6 +729,11 @@ def step_data_connection_show(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_show_min(test, rg, checks=None): + return step_data_connection_show(test, rg, checks) + + # EXAMPLE: /DataConnections/patch/KustoDataConnectionsUpdate @try_manual def step_data_connection_event_hub_update(test, rg, checks=None): @@ -497,6 +751,18 @@ def step_data_connection_event_hub_update(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub update ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/post/KustoDataConnectionValidation @try_manual def step_data_connection_event(test, rg, checks=None): @@ -513,6 +779,17 @@ def step_data_connection_event(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub data-connection-validation ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/delete/KustoDataConnectionsDelete @try_manual def step_data_connection_delete(test, rg, checks=None): @@ -526,6 +803,11 @@ def step_data_connection_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_delete_min(test, rg, checks=None): + return step_data_connection_delete(test, rg, checks) + + # EXAMPLE: /Clusters/delete/KustoClustersDelete @try_manual def step_cluster_delete(test, rg, checks=None): @@ -537,6 +819,11 @@ def step_cluster_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_delete_min(test, rg, checks=None): + return step_cluster_delete(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/delete/AttachedDatabaseConfigurationsDelete @try_manual def step_attached_database_configuration_delete(test, rg, checks=None): @@ -549,6 +836,11 @@ def step_attached_database_configuration_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_delete_min(test, rg, checks=None): + return step_attached_database_configuration_delete(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/delete/KustoClusterPrincipalAssignmentsDelete @try_manual def step_cluster_principal_assignment_delete(test, rg, checks=None): @@ -560,3 +852,8 @@ def step_cluster_principal_assignment_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_cluster_principal_assignment_delete_min(test, rg, checks=None): + return step_cluster_principal_assignment_delete(test, rg, checks) + diff --git a/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py b/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py index bc35c4520..c408b9249 100644 --- a/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py +++ b/src/test/scenarios/kusto/output/ext_default_folder/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py @@ -53,6 +53,48 @@ from .example_steps import step_cluster_delete from .example_steps import step_attached_database_configuration_delete from .example_steps import step_cluster_principal_assignment_delete +from .example_steps import step_attached_database_configuration_create_min +from .example_steps import step_attached_database_configuration_show_min +from .example_steps import step_attached_database_configuration_list_min +from .example_steps import step_cluster_create_min +from .example_steps import step_cluster_show_min +from .example_steps import step_cluster_list_min +from .example_steps import step_cluster_list2_min +from .example_steps import step_cluster_list_sku_min +from .example_steps import step_cluster_list_sku2_min +from .example_steps import step_cluster_update_min +from .example_steps import step_cluster_add_language_extension_min +from .example_steps import step_cluster_detach_follower_database_min +from .example_steps import step_cluster_diagnose_virtual_network_min +from .example_steps import step_cluster_list_follower_database_min +from .example_steps import step_cluster_list_language_extension_min +from .example_steps import step_cluster_remove_language_extension_min +from .example_steps import step_cluster_start_min +from .example_steps import step_cluster_stop_min +from .example_steps import step_cluster_principal_assignment_create_min +from .example_steps import step_cluster_principal_assignment_show_min +from .example_steps import step_cluster_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_create_min +from .example_steps import step_database_principal_assignment_show_min +from .example_steps import step_database_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_delete_min +from .example_steps import step_database_create_min +from .example_steps import step_database_show_min +from .example_steps import step_database_list_min +from .example_steps import step_database_update_min +from .example_steps import step_database_add_principal_min +from .example_steps import step_database_list_principal_min +from .example_steps import step_database_remove_principal_min +from .example_steps import step_database_delete_min +from .example_steps import step_data_connection_event_hub_create_min +from .example_steps import step_data_connection_list_min +from .example_steps import step_data_connection_show_min +from .example_steps import step_data_connection_event_hub_update_min +from .example_steps import step_data_connection_event_min +from .example_steps import step_data_connection_delete_min +from .example_steps import step_cluster_delete_min +from .example_steps import step_attached_database_configuration_delete_min +from .example_steps import step_cluster_principal_assignment_delete_min from .. import ( try_manual, raise_if, @@ -175,13 +217,85 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_attached_database_configuration_create_min(test, rg, checks=[]) + step_attached_database_configuration_show_min(test, rg, checks=[]) + step_attached_database_configuration_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_create_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_show_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list2_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list_sku_min(test, rg, checks=[]) + step_cluster_list_sku2_min(test, rg, checks=[]) + step_cluster_update_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_add_language_extension_min(test, rg, checks=[]) + step_cluster_detach_follower_database_min(test, rg, checks=[]) + step_cluster_diagnose_virtual_network_min(test, rg, checks=[]) + step_cluster_list_follower_database_min(test, rg, checks=[]) + step_cluster_list_language_extension_min(test, rg, checks=[]) + step_cluster_remove_language_extension_min(test, rg, checks=[]) + step_cluster_start_min(test, rg, checks=[]) + step_cluster_stop_min(test, rg, checks=[]) + step_cluster_principal_assignment_create_min(test, rg, checks=[]) + step_cluster_principal_assignment_show_min(test, rg, checks=[]) + step_cluster_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_create_min(test, rg, checks=[]) + step_database_principal_assignment_show_min(test, rg, checks=[]) + step_database_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_delete_min(test, rg, checks=[]) + step_database_create_min(test, rg, checks=[]) + step_database_show_min(test, rg, checks=[]) + step_database_list_min(test, rg, checks=[]) + step_database_update_min(test, rg, checks=[]) + step_database_add_principal_min(test, rg, checks=[]) + step_database_list_principal_min(test, rg, checks=[]) + step_database_remove_principal_min(test, rg, checks=[]) + step_database_delete_min(test, rg, checks=[]) + step_data_connection_event_hub_create_min(test, rg, checks=[]) + step_data_connection_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_data_connection_show_min(test, rg, checks=[]) + step_data_connection_event_hub_update_min(test, rg, checks=[]) + step_data_connection_event_min(test, rg, checks=[]) + step_data_connection_delete_min(test, rg, checks=[]) + step_cluster_delete_min(test, rg, checks=[]) + step_attached_database_configuration_delete_min(test, rg, checks=[]) + step_cluster_principal_assignment_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class KustoScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') - def test_kusto_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -198,7 +312,17 @@ def test_kusto_Scenario(self, rg): 'myDataConnection2': 'kustoeventhubconnection1', }) + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/example_steps.py b/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/example_steps.py index 55c9a479c..48f382227 100644 --- a/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/example_steps.py +++ b/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/example_steps.py @@ -33,6 +33,21 @@ def step_attached_database_configuration_create(test, rg, checks=None): checks=[]) +@try_manual +def step_attached_database_configuration_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto attached-database-configuration create ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--cluster-name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto attached-database-configuration wait --created ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/AttachedDatabaseConfigurationsGet @try_manual def step_attached_database_configuration_show(test, rg, checks=None): @@ -45,6 +60,11 @@ def step_attached_database_configuration_show(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_show_min(test, rg, checks=None): + return step_attached_database_configuration_show(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/KustoAttachedDatabaseConfigurationsListByCluster @try_manual def step_attached_database_configuration_list(test, rg, checks=None): @@ -56,6 +76,11 @@ def step_attached_database_configuration_list(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_list_min(test, rg, checks=None): + return step_attached_database_configuration_list(test, rg, checks) + + # EXAMPLE: /Clusters/put/KustoClustersCreateOrUpdate @try_manual def step_cluster_create(test, rg, checks=None): @@ -77,6 +102,22 @@ def step_cluster_create(test, rg, checks=None): checks=[]) +@try_manual +def step_cluster_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster create ' + '--name "{myCluster}" ' + '--location "westus" ' + '--sku name="Standard_L8s" capacity=2 tier="Standard" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto cluster wait --created ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /Clusters/get/KustoClustersGet @try_manual def step_cluster_show(test, rg, checks=None): @@ -88,6 +129,11 @@ def step_cluster_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_show_min(test, rg, checks=None): + return step_cluster_show(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersList @try_manual def step_cluster_list(test, rg, checks=None): @@ -98,6 +144,11 @@ def step_cluster_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_min(test, rg, checks=None): + return step_cluster_list(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListByResourceGroup @try_manual def step_cluster_list2(test, rg, checks=None): @@ -108,6 +159,11 @@ def step_cluster_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list2_min(test, rg, checks=None): + return step_cluster_list2(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListResourceSkus @try_manual def step_cluster_list_sku(test, rg, checks=None): @@ -119,6 +175,11 @@ def step_cluster_list_sku(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku_min(test, rg, checks=None): + return step_cluster_list_sku(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListSkus @try_manual def step_cluster_list_sku2(test, rg, checks=None): @@ -129,6 +190,11 @@ def step_cluster_list_sku2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku2_min(test, rg, checks=None): + return step_cluster_list_sku2(test, rg, checks) + + # EXAMPLE: /Clusters/patch/KustoClustersUpdate @try_manual def step_cluster_update(test, rg, checks=None): @@ -146,6 +212,16 @@ def step_cluster_update(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster update ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterAddLanguageExtensions @try_manual def step_cluster_add_language_extension(test, rg, checks=None): @@ -159,6 +235,16 @@ def step_cluster_add_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_add_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster add-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterDetachFollowerDatabases @try_manual def step_cluster_detach_follower_database(test, rg, checks=None): @@ -173,6 +259,11 @@ def step_cluster_detach_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_detach_follower_database_min(test, rg, checks=None): + return step_cluster_detach_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterDiagnoseVirtualNetwork @try_manual def step_cluster_diagnose_virtual_network(test, rg, checks=None): @@ -184,6 +275,11 @@ def step_cluster_diagnose_virtual_network(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_diagnose_virtual_network_min(test, rg, checks=None): + return step_cluster_diagnose_virtual_network(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListFollowerDatabases @try_manual def step_cluster_list_follower_database(test, rg, checks=None): @@ -195,6 +291,11 @@ def step_cluster_list_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_follower_database_min(test, rg, checks=None): + return step_cluster_list_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListLanguageExtensions @try_manual def step_cluster_list_language_extension(test, rg, checks=None): @@ -206,6 +307,11 @@ def step_cluster_list_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_language_extension_min(test, rg, checks=None): + return step_cluster_list_language_extension(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterRemoveLanguageExtensions @try_manual def step_cluster_remove_language_extension(test, rg, checks=None): @@ -219,6 +325,16 @@ def step_cluster_remove_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_remove_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster remove-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClustersStart @try_manual def step_cluster_start(test, rg, checks=None): @@ -230,6 +346,11 @@ def step_cluster_start(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_start_min(test, rg, checks=None): + return step_cluster_start(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClustersStop @try_manual def step_cluster_stop(test, rg, checks=None): @@ -241,6 +362,11 @@ def step_cluster_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_stop_min(test, rg, checks=None): + return step_cluster_stop(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/put/KustoClusterPrincipalAssignmentsCreateOrUpdate @try_manual def step_cluster_principal_assignment_create(test, rg, checks=None): @@ -257,6 +383,17 @@ def step_cluster_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoClusterPrincipalAssignmentsGet @try_manual def step_cluster_principal_assignment_show(test, rg, checks=None): @@ -269,6 +406,11 @@ def step_cluster_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_show_min(test, rg, checks=None): + return step_cluster_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_cluster_principal_assignment_list(test, rg, checks=None): @@ -280,6 +422,11 @@ def step_cluster_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_list_min(test, rg, checks=None): + return step_cluster_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/put/KustoDatabasePrincipalAssignmentsCreateOrUpdate @try_manual def step_database_principal_assignment_create(test, rg, checks=None): @@ -297,6 +444,18 @@ def step_database_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoDatabasePrincipalAssignmentsGet @try_manual def step_database_principal_assignment_show(test, rg, checks=None): @@ -310,6 +469,11 @@ def step_database_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_show_min(test, rg, checks=None): + return step_database_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_database_principal_assignment_list(test, rg, checks=None): @@ -322,6 +486,11 @@ def step_database_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_list_min(test, rg, checks=None): + return step_database_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/delete/KustoDatabasePrincipalAssignmentsDelete @try_manual def step_database_principal_assignment_delete(test, rg, checks=None): @@ -335,6 +504,11 @@ def step_database_principal_assignment_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_delete_min(test, rg, checks=None): + return step_database_principal_assignment_delete(test, rg, checks) + + # EXAMPLE: /Databases/put/KustoDatabasesCreateOrUpdate @try_manual def step_database_create(test, rg, checks=None): @@ -348,6 +522,17 @@ def step_database_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database create ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/get/KustoDatabasesGet @try_manual def step_database_show(test, rg, checks=None): @@ -360,6 +545,11 @@ def step_database_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_show_min(test, rg, checks=None): + return step_database_show(test, rg, checks) + + # EXAMPLE: /Databases/get/KustoDatabasesListByCluster @try_manual def step_database_list(test, rg, checks=None): @@ -371,6 +561,11 @@ def step_database_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_min(test, rg, checks=None): + return step_database_list(test, rg, checks) + + # EXAMPLE: /Databases/patch/KustoDatabasesUpdate @try_manual def step_database_update(test, rg, checks=None): @@ -384,6 +579,11 @@ def step_database_update(test, rg, checks=None): checks=checks) +@try_manual +def step_database_update_min(test, rg, checks=None): + return step_database_update(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseAddPrincipals @try_manual def step_database_add_principal(test, rg, checks=None): @@ -399,6 +599,17 @@ def step_database_add_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_add_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database add-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/post/KustoDatabaseListPrincipals @try_manual def step_database_list_principal(test, rg, checks=None): @@ -411,6 +622,11 @@ def step_database_list_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_principal_min(test, rg, checks=None): + return step_database_list_principal(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseRemovePrincipals @try_manual def step_database_remove_principal(test, rg, checks=None): @@ -426,6 +642,17 @@ def step_database_remove_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_remove_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database remove-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/delete/KustoDatabasesDelete @try_manual def step_database_delete(test, rg, checks=None): @@ -438,6 +665,11 @@ def step_database_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_delete_min(test, rg, checks=None): + return step_database_delete(test, rg, checks) + + # EXAMPLE: /DataConnections/put/KustoDataConnectionsCreateOrUpdate @try_manual def step_data_connection_event_hub_create(test, rg, checks=None): @@ -455,6 +687,18 @@ def step_data_connection_event_hub_create(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub create ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/get/KustoDatabasesListByCluster @try_manual def step_data_connection_list(test, rg, checks=None): @@ -467,6 +711,11 @@ def step_data_connection_list(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_list_min(test, rg, checks=None): + return step_data_connection_list(test, rg, checks) + + # EXAMPLE: /DataConnections/get/KustoDataConnectionsGet @try_manual def step_data_connection_show(test, rg, checks=None): @@ -480,6 +729,11 @@ def step_data_connection_show(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_show_min(test, rg, checks=None): + return step_data_connection_show(test, rg, checks) + + # EXAMPLE: /DataConnections/patch/KustoDataConnectionsUpdate @try_manual def step_data_connection_event_hub_update(test, rg, checks=None): @@ -497,6 +751,18 @@ def step_data_connection_event_hub_update(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub update ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/post/KustoDataConnectionValidation @try_manual def step_data_connection_event(test, rg, checks=None): @@ -513,6 +779,17 @@ def step_data_connection_event(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub data-connection-validation ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/delete/KustoDataConnectionsDelete @try_manual def step_data_connection_delete(test, rg, checks=None): @@ -526,6 +803,11 @@ def step_data_connection_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_delete_min(test, rg, checks=None): + return step_data_connection_delete(test, rg, checks) + + # EXAMPLE: /Clusters/delete/KustoClustersDelete @try_manual def step_cluster_delete(test, rg, checks=None): @@ -537,6 +819,11 @@ def step_cluster_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_delete_min(test, rg, checks=None): + return step_cluster_delete(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/delete/AttachedDatabaseConfigurationsDelete @try_manual def step_attached_database_configuration_delete(test, rg, checks=None): @@ -549,6 +836,11 @@ def step_attached_database_configuration_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_delete_min(test, rg, checks=None): + return step_attached_database_configuration_delete(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/delete/KustoClusterPrincipalAssignmentsDelete @try_manual def step_cluster_principal_assignment_delete(test, rg, checks=None): @@ -560,3 +852,8 @@ def step_cluster_principal_assignment_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_cluster_principal_assignment_delete_min(test, rg, checks=None): + return step_cluster_principal_assignment_delete(test, rg, checks) + diff --git a/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py b/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py index bc35c4520..c408b9249 100644 --- a/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py +++ b/src/test/scenarios/kusto/output/extflatten/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py @@ -53,6 +53,48 @@ from .example_steps import step_cluster_delete from .example_steps import step_attached_database_configuration_delete from .example_steps import step_cluster_principal_assignment_delete +from .example_steps import step_attached_database_configuration_create_min +from .example_steps import step_attached_database_configuration_show_min +from .example_steps import step_attached_database_configuration_list_min +from .example_steps import step_cluster_create_min +from .example_steps import step_cluster_show_min +from .example_steps import step_cluster_list_min +from .example_steps import step_cluster_list2_min +from .example_steps import step_cluster_list_sku_min +from .example_steps import step_cluster_list_sku2_min +from .example_steps import step_cluster_update_min +from .example_steps import step_cluster_add_language_extension_min +from .example_steps import step_cluster_detach_follower_database_min +from .example_steps import step_cluster_diagnose_virtual_network_min +from .example_steps import step_cluster_list_follower_database_min +from .example_steps import step_cluster_list_language_extension_min +from .example_steps import step_cluster_remove_language_extension_min +from .example_steps import step_cluster_start_min +from .example_steps import step_cluster_stop_min +from .example_steps import step_cluster_principal_assignment_create_min +from .example_steps import step_cluster_principal_assignment_show_min +from .example_steps import step_cluster_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_create_min +from .example_steps import step_database_principal_assignment_show_min +from .example_steps import step_database_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_delete_min +from .example_steps import step_database_create_min +from .example_steps import step_database_show_min +from .example_steps import step_database_list_min +from .example_steps import step_database_update_min +from .example_steps import step_database_add_principal_min +from .example_steps import step_database_list_principal_min +from .example_steps import step_database_remove_principal_min +from .example_steps import step_database_delete_min +from .example_steps import step_data_connection_event_hub_create_min +from .example_steps import step_data_connection_list_min +from .example_steps import step_data_connection_show_min +from .example_steps import step_data_connection_event_hub_update_min +from .example_steps import step_data_connection_event_min +from .example_steps import step_data_connection_delete_min +from .example_steps import step_cluster_delete_min +from .example_steps import step_attached_database_configuration_delete_min +from .example_steps import step_cluster_principal_assignment_delete_min from .. import ( try_manual, raise_if, @@ -175,13 +217,85 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_attached_database_configuration_create_min(test, rg, checks=[]) + step_attached_database_configuration_show_min(test, rg, checks=[]) + step_attached_database_configuration_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_create_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_show_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list2_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list_sku_min(test, rg, checks=[]) + step_cluster_list_sku2_min(test, rg, checks=[]) + step_cluster_update_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_add_language_extension_min(test, rg, checks=[]) + step_cluster_detach_follower_database_min(test, rg, checks=[]) + step_cluster_diagnose_virtual_network_min(test, rg, checks=[]) + step_cluster_list_follower_database_min(test, rg, checks=[]) + step_cluster_list_language_extension_min(test, rg, checks=[]) + step_cluster_remove_language_extension_min(test, rg, checks=[]) + step_cluster_start_min(test, rg, checks=[]) + step_cluster_stop_min(test, rg, checks=[]) + step_cluster_principal_assignment_create_min(test, rg, checks=[]) + step_cluster_principal_assignment_show_min(test, rg, checks=[]) + step_cluster_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_create_min(test, rg, checks=[]) + step_database_principal_assignment_show_min(test, rg, checks=[]) + step_database_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_delete_min(test, rg, checks=[]) + step_database_create_min(test, rg, checks=[]) + step_database_show_min(test, rg, checks=[]) + step_database_list_min(test, rg, checks=[]) + step_database_update_min(test, rg, checks=[]) + step_database_add_principal_min(test, rg, checks=[]) + step_database_list_principal_min(test, rg, checks=[]) + step_database_remove_principal_min(test, rg, checks=[]) + step_database_delete_min(test, rg, checks=[]) + step_data_connection_event_hub_create_min(test, rg, checks=[]) + step_data_connection_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_data_connection_show_min(test, rg, checks=[]) + step_data_connection_event_hub_update_min(test, rg, checks=[]) + step_data_connection_event_min(test, rg, checks=[]) + step_data_connection_delete_min(test, rg, checks=[]) + step_cluster_delete_min(test, rg, checks=[]) + step_attached_database_configuration_delete_min(test, rg, checks=[]) + step_cluster_principal_assignment_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class KustoScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') - def test_kusto_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -198,7 +312,17 @@ def test_kusto_Scenario(self, rg): 'myDataConnection2': 'kustoeventhubconnection1', }) + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/example_steps.py b/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/example_steps.py index 55c9a479c..48f382227 100644 --- a/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/example_steps.py +++ b/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/example_steps.py @@ -33,6 +33,21 @@ def step_attached_database_configuration_create(test, rg, checks=None): checks=[]) +@try_manual +def step_attached_database_configuration_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto attached-database-configuration create ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--cluster-name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto attached-database-configuration wait --created ' + '--name "{myAttachedDatabaseConfiguration2}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/AttachedDatabaseConfigurationsGet @try_manual def step_attached_database_configuration_show(test, rg, checks=None): @@ -45,6 +60,11 @@ def step_attached_database_configuration_show(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_show_min(test, rg, checks=None): + return step_attached_database_configuration_show(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/get/KustoAttachedDatabaseConfigurationsListByCluster @try_manual def step_attached_database_configuration_list(test, rg, checks=None): @@ -56,6 +76,11 @@ def step_attached_database_configuration_list(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_list_min(test, rg, checks=None): + return step_attached_database_configuration_list(test, rg, checks) + + # EXAMPLE: /Clusters/put/KustoClustersCreateOrUpdate @try_manual def step_cluster_create(test, rg, checks=None): @@ -77,6 +102,22 @@ def step_cluster_create(test, rg, checks=None): checks=[]) +@try_manual +def step_cluster_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster create ' + '--name "{myCluster}" ' + '--location "westus" ' + '--sku name="Standard_L8s" capacity=2 tier="Standard" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az kusto cluster wait --created ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /Clusters/get/KustoClustersGet @try_manual def step_cluster_show(test, rg, checks=None): @@ -88,6 +129,11 @@ def step_cluster_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_show_min(test, rg, checks=None): + return step_cluster_show(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersList @try_manual def step_cluster_list(test, rg, checks=None): @@ -98,6 +144,11 @@ def step_cluster_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_min(test, rg, checks=None): + return step_cluster_list(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListByResourceGroup @try_manual def step_cluster_list2(test, rg, checks=None): @@ -108,6 +159,11 @@ def step_cluster_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list2_min(test, rg, checks=None): + return step_cluster_list2(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListResourceSkus @try_manual def step_cluster_list_sku(test, rg, checks=None): @@ -119,6 +175,11 @@ def step_cluster_list_sku(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku_min(test, rg, checks=None): + return step_cluster_list_sku(test, rg, checks) + + # EXAMPLE: /Clusters/get/KustoClustersListSkus @try_manual def step_cluster_list_sku2(test, rg, checks=None): @@ -129,6 +190,11 @@ def step_cluster_list_sku2(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_sku2_min(test, rg, checks=None): + return step_cluster_list_sku2(test, rg, checks) + + # EXAMPLE: /Clusters/patch/KustoClustersUpdate @try_manual def step_cluster_update(test, rg, checks=None): @@ -146,6 +212,16 @@ def step_cluster_update(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster update ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterAddLanguageExtensions @try_manual def step_cluster_add_language_extension(test, rg, checks=None): @@ -159,6 +235,16 @@ def step_cluster_add_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_add_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster add-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClusterDetachFollowerDatabases @try_manual def step_cluster_detach_follower_database(test, rg, checks=None): @@ -173,6 +259,11 @@ def step_cluster_detach_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_detach_follower_database_min(test, rg, checks=None): + return step_cluster_detach_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterDiagnoseVirtualNetwork @try_manual def step_cluster_diagnose_virtual_network(test, rg, checks=None): @@ -184,6 +275,11 @@ def step_cluster_diagnose_virtual_network(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_diagnose_virtual_network_min(test, rg, checks=None): + return step_cluster_diagnose_virtual_network(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListFollowerDatabases @try_manual def step_cluster_list_follower_database(test, rg, checks=None): @@ -195,6 +291,11 @@ def step_cluster_list_follower_database(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_follower_database_min(test, rg, checks=None): + return step_cluster_list_follower_database(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterListLanguageExtensions @try_manual def step_cluster_list_language_extension(test, rg, checks=None): @@ -206,6 +307,11 @@ def step_cluster_list_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_list_language_extension_min(test, rg, checks=None): + return step_cluster_list_language_extension(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClusterRemoveLanguageExtensions @try_manual def step_cluster_remove_language_extension(test, rg, checks=None): @@ -219,6 +325,16 @@ def step_cluster_remove_language_extension(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_remove_language_extension_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster remove-language-extension ' + '--name "{myCluster}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Clusters/post/KustoClustersStart @try_manual def step_cluster_start(test, rg, checks=None): @@ -230,6 +346,11 @@ def step_cluster_start(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_start_min(test, rg, checks=None): + return step_cluster_start(test, rg, checks) + + # EXAMPLE: /Clusters/post/KustoClustersStop @try_manual def step_cluster_stop(test, rg, checks=None): @@ -241,6 +362,11 @@ def step_cluster_stop(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_stop_min(test, rg, checks=None): + return step_cluster_stop(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/put/KustoClusterPrincipalAssignmentsCreateOrUpdate @try_manual def step_cluster_principal_assignment_create(test, rg, checks=None): @@ -257,6 +383,17 @@ def step_cluster_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoClusterPrincipalAssignmentsGet @try_manual def step_cluster_principal_assignment_show(test, rg, checks=None): @@ -269,6 +406,11 @@ def step_cluster_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_show_min(test, rg, checks=None): + return step_cluster_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_cluster_principal_assignment_list(test, rg, checks=None): @@ -280,6 +422,11 @@ def step_cluster_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_principal_assignment_list_min(test, rg, checks=None): + return step_cluster_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/put/KustoDatabasePrincipalAssignmentsCreateOrUpdate @try_manual def step_database_principal_assignment_create(test, rg, checks=None): @@ -297,6 +444,18 @@ def step_database_principal_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoDatabasePrincipalAssignmentsGet @try_manual def step_database_principal_assignment_show(test, rg, checks=None): @@ -310,6 +469,11 @@ def step_database_principal_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_show_min(test, rg, checks=None): + return step_database_principal_assignment_show(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/get/KustoPrincipalAssignmentsList @try_manual def step_database_principal_assignment_list(test, rg, checks=None): @@ -322,6 +486,11 @@ def step_database_principal_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_list_min(test, rg, checks=None): + return step_database_principal_assignment_list(test, rg, checks) + + # EXAMPLE: /DatabasePrincipalAssignments/delete/KustoDatabasePrincipalAssignmentsDelete @try_manual def step_database_principal_assignment_delete(test, rg, checks=None): @@ -335,6 +504,11 @@ def step_database_principal_assignment_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_principal_assignment_delete_min(test, rg, checks=None): + return step_database_principal_assignment_delete(test, rg, checks) + + # EXAMPLE: /Databases/put/KustoDatabasesCreateOrUpdate @try_manual def step_database_create(test, rg, checks=None): @@ -348,6 +522,17 @@ def step_database_create(test, rg, checks=None): checks=checks) +@try_manual +def step_database_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database create ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/get/KustoDatabasesGet @try_manual def step_database_show(test, rg, checks=None): @@ -360,6 +545,11 @@ def step_database_show(test, rg, checks=None): checks=checks) +@try_manual +def step_database_show_min(test, rg, checks=None): + return step_database_show(test, rg, checks) + + # EXAMPLE: /Databases/get/KustoDatabasesListByCluster @try_manual def step_database_list(test, rg, checks=None): @@ -371,6 +561,11 @@ def step_database_list(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_min(test, rg, checks=None): + return step_database_list(test, rg, checks) + + # EXAMPLE: /Databases/patch/KustoDatabasesUpdate @try_manual def step_database_update(test, rg, checks=None): @@ -384,6 +579,11 @@ def step_database_update(test, rg, checks=None): checks=checks) +@try_manual +def step_database_update_min(test, rg, checks=None): + return step_database_update(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseAddPrincipals @try_manual def step_database_add_principal(test, rg, checks=None): @@ -399,6 +599,17 @@ def step_database_add_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_add_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database add-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/post/KustoDatabaseListPrincipals @try_manual def step_database_list_principal(test, rg, checks=None): @@ -411,6 +622,11 @@ def step_database_list_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_list_principal_min(test, rg, checks=None): + return step_database_list_principal(test, rg, checks) + + # EXAMPLE: /Databases/post/KustoDatabaseRemovePrincipals @try_manual def step_database_remove_principal(test, rg, checks=None): @@ -426,6 +642,17 @@ def step_database_remove_principal(test, rg, checks=None): checks=checks) +@try_manual +def step_database_remove_principal_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database remove-principal ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /Databases/delete/KustoDatabasesDelete @try_manual def step_database_delete(test, rg, checks=None): @@ -438,6 +665,11 @@ def step_database_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_database_delete_min(test, rg, checks=None): + return step_database_delete(test, rg, checks) + + # EXAMPLE: /DataConnections/put/KustoDataConnectionsCreateOrUpdate @try_manual def step_data_connection_event_hub_create(test, rg, checks=None): @@ -455,6 +687,18 @@ def step_data_connection_event_hub_create(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub create ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/get/KustoDatabasesListByCluster @try_manual def step_data_connection_list(test, rg, checks=None): @@ -467,6 +711,11 @@ def step_data_connection_list(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_list_min(test, rg, checks=None): + return step_data_connection_list(test, rg, checks) + + # EXAMPLE: /DataConnections/get/KustoDataConnectionsGet @try_manual def step_data_connection_show(test, rg, checks=None): @@ -480,6 +729,11 @@ def step_data_connection_show(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_show_min(test, rg, checks=None): + return step_data_connection_show(test, rg, checks) + + # EXAMPLE: /DataConnections/patch/KustoDataConnectionsUpdate @try_manual def step_data_connection_event_hub_update(test, rg, checks=None): @@ -497,6 +751,18 @@ def step_data_connection_event_hub_update(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_hub_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub update ' + '--cluster-name "{myCluster}" ' + '--name "{myDataConnection}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/post/KustoDataConnectionValidation @try_manual def step_data_connection_event(test, rg, checks=None): @@ -513,6 +779,17 @@ def step_data_connection_event(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_event_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub data-connection-validation ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /DataConnections/delete/KustoDataConnectionsDelete @try_manual def step_data_connection_delete(test, rg, checks=None): @@ -526,6 +803,11 @@ def step_data_connection_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_data_connection_delete_min(test, rg, checks=None): + return step_data_connection_delete(test, rg, checks) + + # EXAMPLE: /Clusters/delete/KustoClustersDelete @try_manual def step_cluster_delete(test, rg, checks=None): @@ -537,6 +819,11 @@ def step_cluster_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_cluster_delete_min(test, rg, checks=None): + return step_cluster_delete(test, rg, checks) + + # EXAMPLE: /AttachedDatabaseConfigurations/delete/AttachedDatabaseConfigurationsDelete @try_manual def step_attached_database_configuration_delete(test, rg, checks=None): @@ -549,6 +836,11 @@ def step_attached_database_configuration_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_attached_database_configuration_delete_min(test, rg, checks=None): + return step_attached_database_configuration_delete(test, rg, checks) + + # EXAMPLE: /ClusterPrincipalAssignments/delete/KustoClusterPrincipalAssignmentsDelete @try_manual def step_cluster_principal_assignment_delete(test, rg, checks=None): @@ -560,3 +852,8 @@ def step_cluster_principal_assignment_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_cluster_principal_assignment_delete_min(test, rg, checks=None): + return step_cluster_principal_assignment_delete(test, rg, checks) + diff --git a/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py b/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py index bc35c4520..c408b9249 100644 --- a/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py +++ b/src/test/scenarios/kusto/output/extnosdknoflattentrack1/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py @@ -53,6 +53,48 @@ from .example_steps import step_cluster_delete from .example_steps import step_attached_database_configuration_delete from .example_steps import step_cluster_principal_assignment_delete +from .example_steps import step_attached_database_configuration_create_min +from .example_steps import step_attached_database_configuration_show_min +from .example_steps import step_attached_database_configuration_list_min +from .example_steps import step_cluster_create_min +from .example_steps import step_cluster_show_min +from .example_steps import step_cluster_list_min +from .example_steps import step_cluster_list2_min +from .example_steps import step_cluster_list_sku_min +from .example_steps import step_cluster_list_sku2_min +from .example_steps import step_cluster_update_min +from .example_steps import step_cluster_add_language_extension_min +from .example_steps import step_cluster_detach_follower_database_min +from .example_steps import step_cluster_diagnose_virtual_network_min +from .example_steps import step_cluster_list_follower_database_min +from .example_steps import step_cluster_list_language_extension_min +from .example_steps import step_cluster_remove_language_extension_min +from .example_steps import step_cluster_start_min +from .example_steps import step_cluster_stop_min +from .example_steps import step_cluster_principal_assignment_create_min +from .example_steps import step_cluster_principal_assignment_show_min +from .example_steps import step_cluster_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_create_min +from .example_steps import step_database_principal_assignment_show_min +from .example_steps import step_database_principal_assignment_list_min +from .example_steps import step_database_principal_assignment_delete_min +from .example_steps import step_database_create_min +from .example_steps import step_database_show_min +from .example_steps import step_database_list_min +from .example_steps import step_database_update_min +from .example_steps import step_database_add_principal_min +from .example_steps import step_database_list_principal_min +from .example_steps import step_database_remove_principal_min +from .example_steps import step_database_delete_min +from .example_steps import step_data_connection_event_hub_create_min +from .example_steps import step_data_connection_list_min +from .example_steps import step_data_connection_show_min +from .example_steps import step_data_connection_event_hub_update_min +from .example_steps import step_data_connection_event_min +from .example_steps import step_data_connection_delete_min +from .example_steps import step_cluster_delete_min +from .example_steps import step_attached_database_configuration_delete_min +from .example_steps import step_cluster_principal_assignment_delete_min from .. import ( try_manual, raise_if, @@ -175,13 +217,85 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_attached_database_configuration_create_min(test, rg, checks=[]) + step_attached_database_configuration_show_min(test, rg, checks=[]) + step_attached_database_configuration_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_create_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_show_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list2_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_cluster_list_sku_min(test, rg, checks=[]) + step_cluster_list_sku2_min(test, rg, checks=[]) + step_cluster_update_min(test, rg, checks=[ + test.check("name", "{myCluster}", case_sensitive=False), + test.check("location", "westus", case_sensitive=False), + test.check("sku.name", "Standard_L8s", case_sensitive=False), + test.check("sku.capacity", 2), + test.check("sku.tier", "Standard", case_sensitive=False), + ]) + step_cluster_add_language_extension_min(test, rg, checks=[]) + step_cluster_detach_follower_database_min(test, rg, checks=[]) + step_cluster_diagnose_virtual_network_min(test, rg, checks=[]) + step_cluster_list_follower_database_min(test, rg, checks=[]) + step_cluster_list_language_extension_min(test, rg, checks=[]) + step_cluster_remove_language_extension_min(test, rg, checks=[]) + step_cluster_start_min(test, rg, checks=[]) + step_cluster_stop_min(test, rg, checks=[]) + step_cluster_principal_assignment_create_min(test, rg, checks=[]) + step_cluster_principal_assignment_show_min(test, rg, checks=[]) + step_cluster_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_create_min(test, rg, checks=[]) + step_database_principal_assignment_show_min(test, rg, checks=[]) + step_database_principal_assignment_list_min(test, rg, checks=[]) + step_database_principal_assignment_delete_min(test, rg, checks=[]) + step_database_create_min(test, rg, checks=[]) + step_database_show_min(test, rg, checks=[]) + step_database_list_min(test, rg, checks=[]) + step_database_update_min(test, rg, checks=[]) + step_database_add_principal_min(test, rg, checks=[]) + step_database_list_principal_min(test, rg, checks=[]) + step_database_remove_principal_min(test, rg, checks=[]) + step_database_delete_min(test, rg, checks=[]) + step_data_connection_event_hub_create_min(test, rg, checks=[]) + step_data_connection_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_data_connection_show_min(test, rg, checks=[]) + step_data_connection_event_hub_update_min(test, rg, checks=[]) + step_data_connection_event_min(test, rg, checks=[]) + step_data_connection_delete_min(test, rg, checks=[]) + step_cluster_delete_min(test, rg, checks=[]) + step_attached_database_configuration_delete_min(test, rg, checks=[]) + step_cluster_principal_assignment_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class KustoScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') - def test_kusto_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -198,7 +312,17 @@ def test_kusto_Scenario(self, rg): 'myDataConnection2': 'kustoeventhubconnection1', }) + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/example_steps.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/example_steps.py index ad1bf9b5d..bfaf9c1cd 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/example_steps.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/example_steps.py @@ -33,6 +33,11 @@ def step_mn_create(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_create_min(test, rg, checks=None): + return step_mn_create(test, rg, checks) + + # EXAMPLE: /ManagedNetworks/get/ManagedNetworksGet @try_manual def step_mn_show_modify(test, rg, checks=None): @@ -44,6 +49,11 @@ def step_mn_show_modify(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_show_modify_min(test, rg, checks=None): + return step_mn_show_modify(test, rg, checks) + + # EXAMPLE: /ManagedNetworks/get/ManagedNetworksListByResourceGroup @try_manual def step_mn_list(test, rg, checks=None): @@ -54,6 +64,11 @@ def step_mn_list(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_list_min(test, rg, checks=None): + return step_mn_list(test, rg, checks) + + # EXAMPLE: /ManagedNetworks/get/ManagedNetworksListBySubscription @try_manual def step_mn_list2(test, rg, checks=None): @@ -64,6 +79,11 @@ def step_mn_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_list2_min(test, rg, checks=None): + return step_mn_list2(test, rg, checks) + + # EXAMPLE: /ManagedNetworks/patch/ManagedNetworksPatch @try_manual def step_mn_update(test, rg, checks=None): @@ -75,6 +95,11 @@ def step_mn_update(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_update_min(test, rg, checks=None): + return step_mn_update(test, rg, checks) + + # EXAMPLE: /ManagedNetworkGroups/put/ManagementNetworkGroupsPut @try_manual def step_mn_group_create(test, rg, checks=None): @@ -99,6 +124,21 @@ def step_mn_group_create(test, rg, checks=None): checks=[]) +@try_manual +def step_mn_group_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az managed-network mn group create ' + '--group-name "{myManagedNetworkGroup}" ' + '--managed-network-name "{myManagedNetwork}" ' + '--resource-group "{rg}"', + checks=checks) + test.cmd('az managed-network mn group wait --created ' + '--group-name "{myManagedNetworkGroup}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /ManagedNetworkGroups/get/ManagedNetworksGroupsListByManagedNetwork @try_manual def step_mn_group_list(test, rg, checks=None): @@ -110,6 +150,11 @@ def step_mn_group_list(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_group_list_min(test, rg, checks=None): + return step_mn_group_list(test, rg, checks) + + # EXAMPLE: /ManagedNetworkGroups/get/ManagementNetworkGroupsGet @try_manual def step_mn_group_show(test, rg, checks=None): @@ -122,6 +167,11 @@ def step_mn_group_show(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_group_show_min(test, rg, checks=None): + return step_mn_group_show(test, rg, checks) + + # EXAMPLE: /ManagedNetworkPeeringPolicies/put/ManagedNetworkPeeringPoliciesPut @try_manual def step_managed_network_peering(test, rg, checks=None): @@ -138,6 +188,17 @@ def step_managed_network_peering(test, rg, checks=None): checks=checks) +@try_manual +def step_managed_network_peering_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az managed-network managed-network-peering-policy hub-and-spoke-topology create ' + '--managed-network-name "{myManagedNetwork}" ' + '--policy-name "{myManagedNetworkPeeringPolicy}" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /ManagedNetworkPeeringPolicies/get/ManagedNetworkPeeringPoliciesGet @try_manual def step_managed_network_peering_policy_show(test, rg, checks=None): @@ -150,6 +211,11 @@ def step_managed_network_peering_policy_show(test, rg, checks=None): checks=checks) +@try_manual +def step_managed_network_peering_policy_show_min(test, rg, checks=None): + return step_managed_network_peering_policy_show(test, rg, checks) + + # EXAMPLE: /ManagedNetworkPeeringPolicies/get/ManagedNetworkPeeringPoliciesListByManagedNetwork @try_manual def step_managed_network_peering_policy_list(test, rg, checks=None): @@ -161,6 +227,11 @@ def step_managed_network_peering_policy_list(test, rg, checks=None): checks=checks) +@try_manual +def step_managed_network_peering_policy_list_min(test, rg, checks=None): + return step_managed_network_peering_policy_list(test, rg, checks) + + # EXAMPLE: /ManagedNetworkPeeringPolicies/delete/ManagedNetworkPeeringPoliciesDelete @try_manual def step_managed_network_peering_policy_delete(test, rg, checks=None): @@ -173,6 +244,11 @@ def step_managed_network_peering_policy_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_managed_network_peering_policy_delete_min(test, rg, checks=None): + return step_managed_network_peering_policy_delete(test, rg, checks) + + # EXAMPLE: /ManagedNetworkGroups/delete/ManagementNetworkGroupsDelete @try_manual def step_mn_group_delete(test, rg, checks=None): @@ -185,6 +261,11 @@ def step_mn_group_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_group_delete_min(test, rg, checks=None): + return step_mn_group_delete(test, rg, checks) + + # EXAMPLE: /ScopeAssignments/put/ScopeAssignmentsPut @try_manual def step_mn_scope_assignment_create(test, rg, checks=None): @@ -198,6 +279,16 @@ def step_mn_scope_assignment_create(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_scope_assignment_create_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az managed-network mn scope-assignment create ' + '--scope "subscriptions/subscriptionC" ' + '--name "{myScopeAssignment}"', + checks=checks) + + # EXAMPLE: /ScopeAssignments/get/ScopeAssignmentsGet @try_manual def step_mn_scope_assignment_show(test, rg, checks=None): @@ -209,6 +300,11 @@ def step_mn_scope_assignment_show(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_scope_assignment_show_min(test, rg, checks=None): + return step_mn_scope_assignment_show(test, rg, checks) + + # EXAMPLE: /ScopeAssignments/get/ScopeAssignmentsList @try_manual def step_mn_scope_assignment_list(test, rg, checks=None): @@ -219,6 +315,11 @@ def step_mn_scope_assignment_list(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_scope_assignment_list_min(test, rg, checks=None): + return step_mn_scope_assignment_list(test, rg, checks) + + # EXAMPLE: /ScopeAssignments/delete/ScopeAssignmentsDelete @try_manual def step_mn_scope_assignment_delete(test, rg, checks=None): @@ -230,6 +331,11 @@ def step_mn_scope_assignment_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_mn_scope_assignment_delete_min(test, rg, checks=None): + return step_mn_scope_assignment_delete(test, rg, checks) + + # EXAMPLE: /ManagedNetworks/delete/ManagedNetworksDelete @try_manual def step_mn_delete(test, rg, checks=None): @@ -240,3 +346,8 @@ def step_mn_delete(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_mn_delete_min(test, rg, checks=None): + return step_mn_delete(test, rg, checks) + diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ManagedNetworks_scenario.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ManagedNetworks_scenario.py index ffa4606fb..3b11a3a73 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ManagedNetworks_scenario.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ManagedNetworks_scenario.py @@ -16,12 +16,20 @@ from .example_steps import step_mn_group_create from .example_steps import step_managed_network_peering from .example_steps import step_mn_show_modify +from .example_steps import step_mn_create_min +from .example_steps import step_mn_group_create_min +from .example_steps import step_managed_network_peering_min +from .example_steps import step_mn_show_modify_min from azure.cli.testsdk import ResourceGroupPreparer from .preparers import VirtualNetworkPreparer from .example_steps import step_mn_list from .example_steps import step_mn_list2 from .example_steps import step_mn_delete from .example_steps import step_mn_group_show +from .example_steps import step_mn_list_min +from .example_steps import step_mn_list2_min +from .example_steps import step_mn_delete_min +from .example_steps import step_mn_group_show_min from azure.cli.testsdk import ResourceGroupPreparer from .preparers import VirtualNetworkPreparer from .example_steps import step_mn_group_list @@ -29,6 +37,11 @@ from .example_steps import step_managed_network_peering_policy_list from .example_steps import step_managed_network_peering_policy_delete from .example_steps import step_mn_group_delete +from .example_steps import step_mn_group_list_min +from .example_steps import step_managed_network_peering_policy_show_min +from .example_steps import step_managed_network_peering_policy_list_min +from .example_steps import step_managed_network_peering_policy_delete_min +from .example_steps import step_mn_group_delete_min from .. import ( try_manual, raise_if, @@ -67,17 +80,25 @@ def call_scenario1(test, rg): cleanup_scenario1(test, rg) +@try_manual +def call_scenario1_min(test, rg): + setup_scenario1(test, rg) + step_mn_create_min(test, rg, checks=[ + test.check("name", "{myManagedNetwork}", case_sensitive=False), + ]) + step_mn_group_create_min(test, rg, checks=[ + test.check("name", "{myManagedNetworkGroup}", case_sensitive=False), + ]) + step_managed_network_peering_min(test, rg, checks=[]) + step_mn_show_modify_min(test, rg, checks=[]) + cleanup_scenario1(test, rg) + + # Test class for scenario1 @try_manual class ManagedNetworksscenario1Test(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') - def test_ManagedNetworks_scenario1(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -89,11 +110,29 @@ def test_ManagedNetworks_scenario1(self, rg): 'myManagedNetworkPeeringPolicy': self.create_random_name(prefix='myHubAndSpoke'[:6], length=13), }) + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario1(self, rg): call_scenario1(self, rg) calc_coverage(__file__) raise_if() + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario1_min(self, rg): + call_scenario1_min(self, rg) + calc_coverage(__file__) + raise_if() + + # Env setup_scenario2 @try_manual def setup_scenario2(test, rg): @@ -119,17 +158,21 @@ def call_scenario2(test, rg): cleanup_scenario2(test, rg) +@try_manual +def call_scenario2_min(test, rg): + setup_scenario2(test, rg) + step_mn_list_min(test, rg, checks=[]) + step_mn_list2_min(test, rg, checks=[]) + step_mn_delete_min(test, rg, checks=[]) + step_mn_group_show_min(test, rg, checks=[]) + cleanup_scenario2(test, rg) + + # Test class for scenario2 @try_manual class ManagedNetworksscenario2Test(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') - def test_ManagedNetworks_scenario2(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -141,11 +184,29 @@ def test_ManagedNetworks_scenario2(self, rg): 'myManagedNetworkPeeringPolicy': self.create_random_name(prefix='myHubAndSpoke'[:6], length=13), }) + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario2(self, rg): call_scenario2(self, rg) calc_coverage(__file__) raise_if() + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario2_min(self, rg): + call_scenario2_min(self, rg) + calc_coverage(__file__) + raise_if() + + # Env setup_scenario3 @try_manual def setup_scenario3(test, rg): @@ -170,17 +231,22 @@ def call_scenario3(test, rg): cleanup_scenario3(test, rg) +@try_manual +def call_scenario3_min(test, rg): + setup_scenario3(test, rg) + step_mn_group_list_min(test, rg, checks=[]) + step_managed_network_peering_policy_show_min(test, rg, checks=[]) + step_managed_network_peering_policy_list_min(test, rg, checks=[]) + step_managed_network_peering_policy_delete_min(test, rg, checks=[]) + step_mn_group_delete_min(test, rg, checks=[]) + cleanup_scenario3(test, rg) + + # Test class for scenario3 @try_manual class ManagedNetworksscenario3Test(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') - def test_ManagedNetworks_scenario3(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -192,7 +258,25 @@ def test_ManagedNetworks_scenario3(self, rg): 'myManagedNetworkPeeringPolicy': self.create_random_name(prefix='myHubAndSpoke'[:6], length=13), }) + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario3(self, rg): call_scenario3(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ManagedNetworks_scenario3_min(self, rg): + call_scenario3_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ScopeAssignments_scenario.py b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ScopeAssignments_scenario.py index 5a4ca832e..2f1cfdd41 100644 --- a/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ScopeAssignments_scenario.py +++ b/src/test/scenarios/managed-network/output/src/managed-network/azext_managed_network/tests/latest/test_ScopeAssignments_scenario.py @@ -16,6 +16,10 @@ from .example_steps import step_mn_scope_assignment_show from .example_steps import step_mn_scope_assignment_list from .example_steps import step_mn_scope_assignment_delete +from .example_steps import step_mn_scope_assignment_create_min +from .example_steps import step_mn_scope_assignment_show_min +from .example_steps import step_mn_scope_assignment_list_min +from .example_steps import step_mn_scope_assignment_delete_min from .. import ( try_manual, raise_if, @@ -59,17 +63,27 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + step_mn_scope_assignment_create_min(test, rg, checks=[ + test.check("name", "{myScopeAssignment}", case_sensitive=False), + ]) + step_mn_scope_assignment_show_min(test, rg, checks=[ + test.check("name", "{myScopeAssignment}", case_sensitive=False), + ]) + step_mn_scope_assignment_list_min(test, rg, checks=[ + test.check('length(@)', 1), + ]) + step_mn_scope_assignment_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class ScopeAssignmentsScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') - @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') - def test_ScopeAssignments_Scenario(self, rg): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -81,7 +95,25 @@ def test_ScopeAssignments_Scenario(self, rg): 'myManagedNetworkPeeringPolicy': self.create_random_name(prefix='myHubAndSpoke'[:6], length=13), }) + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ScopeAssignments_Scenario(self, rg): call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestmanaged_network_myResourceGroup'[:7], key='rg', parameter_name='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetA'[:7], key='vn', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetB'[:7], key='vn_2', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_VnetC'[:7], key='vn_3', resource_group_key='rg') + @VirtualNetworkPreparer(name_prefix='clitestmanaged_network_myHubVnet'[:7], key='vn_4', resource_group_key='rg') + def test_ScopeAssignments_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/example_steps.py b/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/example_steps.py index 2c7ca4986..dc0c58cfc 100644 --- a/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/example_steps.py +++ b/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/example_steps.py @@ -24,6 +24,11 @@ def step_create(test, rg, checks=None): checks=checks) +@try_manual +def step_create_min(test, rg, checks=None): + return step_create(test, rg, checks) + + # EXAMPLE: /RemoteRenderingAccounts/get/Get remote rendering account @try_manual def step_show(test, rg, checks=None): @@ -35,6 +40,11 @@ def step_show(test, rg, checks=None): checks=checks) +@try_manual +def step_show_min(test, rg, checks=None): + return step_show(test, rg, checks) + + # EXAMPLE: /RemoteRenderingAccounts/get/List remote rendering accounts by resource group @try_manual def step_list(test, rg, checks=None): @@ -45,6 +55,11 @@ def step_list(test, rg, checks=None): checks=checks) +@try_manual +def step_list_min(test, rg, checks=None): + return step_list(test, rg, checks) + + # EXAMPLE: /RemoteRenderingAccounts/get/List remote rendering accounts by subscription @try_manual def step_list2(test, rg, checks=None): @@ -55,6 +70,11 @@ def step_list2(test, rg, checks=None): checks=checks) +@try_manual +def step_list2_min(test, rg, checks=None): + return step_list2(test, rg, checks) + + # EXAMPLE: /RemoteRenderingAccounts/patch/Update remote rendering account @try_manual def step_update(test, rg, checks=None): @@ -68,6 +88,17 @@ def step_update(test, rg, checks=None): checks=checks) +@try_manual +def step_update_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az remote-rendering-account update ' + '--account-name "MyAccount" ' + '--location "eastus2euap" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /RemoteRenderingAccounts/post/List remote rendering account key @try_manual def step_list_key(test, rg, checks=None): @@ -79,6 +110,11 @@ def step_list_key(test, rg, checks=None): checks=checks) +@try_manual +def step_list_key_min(test, rg, checks=None): + return step_list_key(test, rg, checks) + + # EXAMPLE: /RemoteRenderingAccounts/post/Regenerate remote rendering account keys @try_manual def step_regenerate_key(test, rg, checks=None): @@ -91,6 +127,16 @@ def step_regenerate_key(test, rg, checks=None): checks=checks) +@try_manual +def step_regenerate_key_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az remote-rendering-account regenerate-key ' + '--account-name "MyAccount" ' + '--resource-group "{rg}"', + checks=checks) + + # EXAMPLE: /RemoteRenderingAccounts/delete/Delete remote rendering account @try_manual def step_delete(test, rg, checks=None): @@ -102,6 +148,11 @@ def step_delete(test, rg, checks=None): checks=checks) +@try_manual +def step_delete_min(test, rg, checks=None): + return step_delete(test, rg, checks) + + # EXAMPLE: /SpatialAnchorsAccounts/post/Regenerate spatial anchors account keys @try_manual def step_regenerate_key2(test, rg, checks=None): @@ -113,3 +164,13 @@ def step_regenerate_key2(test, rg, checks=None): '--resource-group "{rg}"', checks=checks) + +@try_manual +def step_regenerate_key2_min(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az spatial-anchors-account regenerate-key ' + '--account-name "MyAccount" ' + '--resource-group "{rg}"', + checks=checks) + diff --git a/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/test_mixed_reality_scenario_incrementalGenerated.py b/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/test_mixed_reality_scenario_incrementalGenerated.py index debd7d670..7dfc331ae 100644 --- a/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/test_mixed_reality_scenario_incrementalGenerated.py +++ b/src/test/scenarios/mixed-reality/output/ext_Incremental/src/mixed-reality/azext_mixed_reality/tests/latest/test_mixed_reality_scenario_incrementalGenerated.py @@ -19,6 +19,14 @@ from .example_steps import step_regenerate_key2 from .example_steps import step_update from .example_steps import step_delete +from .example_steps import step_create_min +from .example_steps import step_list_min +from .example_steps import step_show_min +from .example_steps import step_list2_min +from .example_steps import step_regenerate_key_min +from .example_steps import step_regenerate_key2_min +from .example_steps import step_update_min +from .example_steps import step_delete_min from .. import ( try_manual, raise_if, @@ -66,14 +74,48 @@ def call_scenario(test, rg): cleanup_scenario(test, rg) +@try_manual +def call_scenario_min(test, rg): + setup_scenario(test, rg) + # STEP NOT FOUND: Create spatial anchor account + step_create_min(test, rg, checks=[]) + # STEP NOT FOUND: Get remote rendering account key + # STEP NOT FOUND: Get spatial anchor account key + # STEP NOT FOUND: List spatial anchor accounts by resource group + step_list_min(test, rg, checks=[]) + # STEP NOT FOUND: Get spatial anchors account + step_show_min(test, rg, checks=[]) + step_list2_min(test, rg, checks=[]) + # STEP NOT FOUND: List spatial anchors accounts by subscription + # STEP NOT FOUND: List available operations + step_regenerate_key_min(test, rg, checks=[]) + step_regenerate_key2_min(test, rg, checks=[]) + step_update_min(test, rg, checks=[]) + # STEP NOT FOUND: Update spatial anchors account + # STEP NOT FOUND: CheckLocalNameAvailability + # STEP NOT FOUND: Delete spatial anchors account + step_delete_min(test, rg, checks=[]) + cleanup_scenario(test, rg) + + # Test class for Scenario @try_manual class Mixed_realityScenarioTest(ScenarioTest): + def __init__(self): + pass + + @ResourceGroupPreparer(name_prefix='clitestmixed_reality_MyResourceGroup'[:7], key='rg', parameter_name='rg') def test_mixed_reality_Scenario(self, rg): - call_scenario(self, rg) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestmixed_reality_MyResourceGroup'[:7], key='rg', parameter_name='rg') + def test_mixed_reality_Scenario_min(self, rg): + call_scenario_min(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py b/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py index c0e2a8f3a..a89e5b83e 100644 --- a/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py +++ b/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/example_steps.py @@ -37,6 +37,22 @@ def step_workspace_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=[]) +@try_manual +def step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace create ' + '--resource-group "{rg_2}" ' + '--location "East US" ' + '--name "{myWorkspace2}"', + checks=checks) + test.cmd('az synapse workspace wait --created ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=[]) + + # EXAMPLE: /Workspaces/get/Get a workspace @try_manual def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -49,6 +65,13 @@ def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in resource group @try_manual def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -60,6 +83,13 @@ def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in subscription @try_manual def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -71,6 +101,13 @@ def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/patch/Update a workspace @try_manual def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -86,6 +123,17 @@ def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=checks) +@try_manual +def step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace update ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /BigDataPools/put/Create or update a Big Data pool @try_manual def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -114,6 +162,23 @@ def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=[]) +@try_manual +def step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool create ' + '--location "West US 2" ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse big-data-pool wait --created ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /BigDataPools/get/Get a Big Data pool @try_manual def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -127,6 +192,13 @@ def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/get/List Big Data pools in a workspace @try_manual def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -139,6 +211,13 @@ def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/patch/Update a Big Data pool @try_manual def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -153,6 +232,18 @@ def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool update ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /BigDataPools/delete/Delete a Big Data pool @try_manual def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -166,6 +257,13 @@ def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/put/Create integration runtime @try_manual def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -180,6 +278,13 @@ def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/Get integration runtime @try_manual def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -193,6 +298,13 @@ def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/List integration runtimes @try_manual def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -205,6 +317,13 @@ def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/patch/Update integration runtime @try_manual def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -220,6 +339,18 @@ def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime update ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/Start integration runtime @try_manual def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -233,6 +364,13 @@ def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Stop integration runtime @try_manual def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -246,6 +384,13 @@ def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Upgrade integration runtime @try_manual def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -259,6 +404,13 @@ def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/List auth keys @try_manual def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -272,6 +424,13 @@ def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/Regenerate auth key @try_manual def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -286,6 +445,18 @@ def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key regenerate ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeConnectionInfos/post/Get connection info @try_manual def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -299,6 +470,14 @@ def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeCredentials/post/Sync credentials @try_manual def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -312,6 +491,13 @@ def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeMonitoringData/post/Get monitoring data @try_manual def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -325,6 +511,14 @@ def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodeIpAddress/post/Get integration runtime node IP address @try_manual def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -339,6 +533,14 @@ def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodes/get/Get integration runtime node @try_manual def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -353,6 +555,13 @@ def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeNodes/patch/Update integration runtime node @try_manual def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -368,6 +577,19 @@ def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node update ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeNodes/delete/Delete integration runtime node @try_manual def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -382,6 +604,13 @@ def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Get integration runtime object metadata @try_manual def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -396,6 +625,18 @@ def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata get ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Refresh object metadata @try_manual def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -409,6 +650,15 @@ def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeStatus/post/Get status @try_manual def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -422,6 +672,13 @@ def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/delete/Delete integration runtime @try_manual def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -435,6 +692,13 @@ def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/put/Create an IP firewall rule @try_manual def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -450,6 +714,18 @@ def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule create ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/get/Create an IP firewall rule @try_manual def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -463,6 +739,13 @@ def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/get/List IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -475,6 +758,13 @@ def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/post/Replace all IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -490,6 +780,17 @@ def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg checks=checks) +@try_manual +def step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule replace-all ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/delete/Delete an IP firewall rule from a workspace @try_manual def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -503,6 +804,13 @@ def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Operations/get/Get azure async operation header result @try_manual def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -516,6 +824,14 @@ def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /Operations/get/Get location header result @try_manual def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -529,6 +845,13 @@ def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/put/Approve private endpoint connection @try_manual def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -546,6 +869,17 @@ def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=[]) +@try_manual +def step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + test.cmd('az synapse private-endpoint-connection wait --created ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /PrivateEndpointConnections/get/Get private endpoint connection @try_manual def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -559,6 +893,13 @@ def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/get/List private endpoint connections in workspace @try_manual def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -571,6 +912,13 @@ def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/delete/Delete private endpoint connection @try_manual def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -584,6 +932,13 @@ def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/put/Create or update a privateLinkHub @try_manual def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -598,6 +953,18 @@ def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub create ' + '--location "East US" ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/get/Get a privateLinkHub @try_manual def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -610,6 +977,13 @@ def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in resource group @try_manual def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -621,6 +995,13 @@ def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in subscription @try_manual def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -632,6 +1013,13 @@ def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/patch/Update a privateLinkHub @try_manual def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -645,6 +1033,17 @@ def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub update ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/delete/Delete a privateLinkHub @try_manual def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -657,6 +1056,13 @@ def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkResources/get/Get private link resources for workspace @try_manual def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -669,6 +1075,13 @@ def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/put/Create a SQL Analytics pool @try_manual def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -695,6 +1108,23 @@ def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=[]) +@try_manual +def step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool create ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse sql-pool wait --created ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}"', + checks=[]) + + # EXAMPLE: /SqlPools/get/Get a SQL Analytics pool @try_manual def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -708,6 +1138,13 @@ def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace @try_manual def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -720,16 +1157,26 @@ def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace with filter @try_manual def step_sql_pool_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): - if checks is None: - checks = [] - test.cmd('az synapse sql-pool list ' - '--resource-group "{rg_3}" ' - '--workspace-name "{myWorkspace3}"', - checks=checks) + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + +@try_manual +def step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) # EXAMPLE: /SqlPools/patch/Update a SQL Analytics pool @@ -754,6 +1201,18 @@ def step_sql_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool update ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPools/post/Pause a SQL Analytics pool @try_manual def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -767,6 +1226,13 @@ def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Rename a SQL Analytics pool @try_manual def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -782,6 +1248,13 @@ def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Resume a SQL Analytics pool @try_manual def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -795,6 +1268,13 @@ def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with all parameters @try_manual def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -818,6 +1298,18 @@ def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with minimal parameters @try_manual def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -835,6 +1327,14 @@ def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/get/Get blob auditing policy of a SQL Analytics pool @try_manual def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -848,6 +1348,13 @@ def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolConnectionPolicies/get/Get a connection policy of a SQL Analytics pool @try_manual def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -861,6 +1368,13 @@ def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolDataWarehouseUserActivities/get/Get a SQL Analytics pool user activity @try_manual def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -874,6 +1388,15 @@ def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolGeoBackupPolicies/get/Get Sql pool geo backup policy @try_manual def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -887,6 +1410,13 @@ def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/put/Set metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -901,6 +1431,18 @@ def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config create ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/get/Get metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -914,6 +1456,13 @@ def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperationResults/get/Get the result of an operation on a SQL Analytics pool @try_manual def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -928,6 +1477,13 @@ def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperations/get/List the Sql Analytics pool management operations @try_manual def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -941,6 +1497,13 @@ def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolReplicationLinks/get/Lists a Sql Analytic pool's replication links @try_manual def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -954,6 +1517,13 @@ def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/get/Get a list of restore points of a SQL Analytics pool @try_manual def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -967,6 +1537,13 @@ def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/post/Creates Sql pool restore point. @try_manual def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -981,6 +1558,13 @@ def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSchemas/get/List the schema in a SQL Analytics pool @try_manual def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -994,6 +1578,13 @@ def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Create a Sql pool's threat detection policy with all parameters @try_manual def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1015,6 +1606,18 @@ def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy create ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Update a Sql pool's threat detection policy with minimal parameters @try_manual def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1029,6 +1632,18 @@ def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy update ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/get/Get a security alert of a SQL Analytics pool @try_manual def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1042,6 +1657,13 @@ def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, r checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/put/Updates the sensitivity label of a given column with all parameters @try_manual def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1062,6 +1684,21 @@ def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label create ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the current sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1075,6 +1712,14 @@ def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the recommended sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1088,6 +1733,15 @@ def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Disables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1104,6 +1758,13 @@ def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Enables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1120,6 +1781,13 @@ def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/delete/Deletes the sensitivity label of a given column @try_manual def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1136,6 +1804,13 @@ def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTableColumns/get/List the columns in a table of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1151,6 +1826,13 @@ def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTables/get/List the tables of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1165,6 +1847,13 @@ def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/put/Create or update a Sql pool's transparent data encryption configuration @try_manual def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1179,6 +1868,19 @@ def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption create ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/get/Get transparent data encryption configuration of a SQL Analytics pool @try_manual def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1192,6 +1894,14 @@ def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolUsages/get/List the usages of a SQL Analytics pool @try_manual def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1205,6 +1915,13 @@ def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/put/Creates or updates a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1223,6 +1940,20 @@ def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline create ' + '--baseline-name "default" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/delete/Removes a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1238,6 +1969,13 @@ def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with all parameters @try_manual def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1256,6 +1994,18 @@ def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1271,6 +2021,14 @@ def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1286,6 +2044,14 @@ def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a Sql pool's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1299,6 +2065,13 @@ def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a vulnerability assessment of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1312,6 +2085,13 @@ def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/delete/Remove a database's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1325,6 +2105,14 @@ def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/get/Get a vulnerability scan record of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1338,6 +2126,15 @@ def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Executes a Sql pool's vulnerability assessment scan. @try_manual def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1352,6 +2149,13 @@ def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Export a database's vulnerability assessment scan results. @try_manual def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1366,6 +2170,15 @@ def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_ checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPools/delete/Delete a SQL Analytics pool @try_manual def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1379,6 +2192,13 @@ def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/put/Create or update workspace active directory admin @try_manual def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1395,6 +2215,17 @@ def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceAadAdmins/get/Get workspace active directory admin @try_manual def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1407,6 +2238,13 @@ def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/delete/Delete workspace active directory admin @try_manual def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1419,6 +2257,13 @@ def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/put/Create or update managed identity sql control settings @try_manual def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1432,6 +2277,17 @@ def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/get/Get managed identity sql control settings @try_manual def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1444,6 +2300,13 @@ def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/delete/Delete a workspace @try_manual def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1455,3 +2318,10 @@ def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg '--name "{myWorkspace2}"', checks=checks) + +@try_manual +def step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + diff --git a/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py b/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py index 19a919810..a39f72407 100644 --- a/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py +++ b/src/test/scenarios/synapse/output/coredefault/src/azure-cli/azure/cli/command_modules/synapse/tests/latest/test_synapse_scenario.py @@ -114,6 +114,108 @@ from .example_steps import step_sql_pool_delete from .example_steps import step_workspace_aad_admin_delete from .example_steps import step_workspace_delete +from .example_steps import step_workspace_create_min +from .example_steps import step_big_data_pool_create_min +from .example_steps import step_big_data_pool_list_min +from .example_steps import step_big_data_pool_update_min +from .example_steps import step_integration_runtime_create_min +from .example_steps import step_integration_runtime_show_min +from .example_steps import step_integration_runtime_list_min +from .example_steps import step_integration_runtime_start_min +from .example_steps import step_integration_runtime_stop_min +from .example_steps import step_integration_runtime_upgrade_min +from .example_steps import step_integration_runtime_update_min +from .example_steps import step_integration_runtime_auth_key_list_min +from .example_steps import step_integration_runtime_auth_key_regenerate_min +from .example_steps import step_integration_runtime_connection_info_get_min +from .example_steps import step_integration_runtime_credentials_sync_min +from .example_steps import step_integration_runtime_monitoring_data_get_min +from .example_steps import step_integration_runtime_node_ip_address_get_min +from .example_steps import step_integration_runtime_node_show_min +from .example_steps import step_integration_runtime_node_update_min +from .example_steps import step_integration_runtime_object_metadata_get_min +from .example_steps import step_integration_runtime_object_metadata_refresh_min +from .example_steps import step_integration_runtime_status_get_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_list_min +from .example_steps import step_ip_firewall_rule_replace_all_min +from .example_steps import step_operation_show_azure_async_header_result_min +from .example_steps import step_operation_show_location_header_result_min +from .example_steps import step_private_endpoint_connection_create_min +from .example_steps import step_private_endpoint_connection_show_min +from .example_steps import step_private_endpoint_connection_list_min +from .example_steps import step_private_link_hub_create_min +from .example_steps import step_private_link_hub_show_min +from .example_steps import step_private_link_hub_list_min +from .example_steps import step_private_link_hub_list2_min +from .example_steps import step_private_link_hub_update_min +from .example_steps import step_big_data_pool_show_min +from .example_steps import step_workspace_show_min +from .example_steps import step_workspace_list_min +from .example_steps import step_workspace_list2_min +from .example_steps import step_workspace_update_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_sql_pool_create_min +from .example_steps import step_sql_pool_show_min +from .example_steps import step_sql_pool_list_min +from .example_steps import step_sql_pool_list2_min +from .example_steps import step_sql_pool_pause_min +from .example_steps import step_sql_pool_rename_min +from .example_steps import step_sql_pool_resume_min +from .example_steps import step_sql_pool_update_min +from .example_steps import step_sql_pool_blob_auditing_policy_create_min +from .example_steps import step_sql_pool_blob_auditing_policy_create2_min +from .example_steps import step_sql_pool_blob_auditing_policy_show_min +from .example_steps import step_sql_pool_connection_policy_show_min +from .example_steps import step_sql_pool_data_warehouse_user_activity_show_min +from .example_steps import step_sql_pool_geo_backup_policy_show_min +from .example_steps import step_sql_pool_metadata_sync_config_create_min +from .example_steps import step_sql_pool_metadata_sync_config_show_min +from .example_steps import step_sql_pool_operation_min +from .example_steps import step_sql_pool_operation_list_min +from .example_steps import step_sql_pool_replication_link_list_min +from .example_steps import step_sql_pool_restore_point_list_min +from .example_steps import step_sql_pool_restore_point_create_min +from .example_steps import step_sql_pool_schema_list_min +from .example_steps import step_sql_pool_security_alert_policy_update_min +from .example_steps import step_sql_pool_security_alert_policy_show_min +from .example_steps import step_sql_pool_sensitivity_label_create_min +from .example_steps import step_sql_pool_sensitivity_label_list_current_min +from .example_steps import step_sql_pool_sensitivity_label_list_recommended_min +from .example_steps import step_sql_pool_sensitivity_min +from .example_steps import step_sql_pool_sensitivity2_min +from .example_steps import step_sql_pool_table_column_list_min +from .example_steps import step_sql_pool_table_list_min +from .example_steps import step_sql_pool_transparent_data_encryption_create_min +from .example_steps import step_sql_pool_transparent_data_encryption_show_min +from .example_steps import step_sql_pool_usage_list_min +from .example_steps import step_sql_pool_vulnerability_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_list_min +from .example_steps import step_sql_pool_vulnerability3_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_export_min +from .example_steps import step_sql_pool_vulnerability_assessment_create_min +from .example_steps import step_sql_pool_vulnerability_assessment_create2_min +from .example_steps import step_sql_pool_vulnerability_assessment_create3_min +from .example_steps import step_sql_pool_vulnerability_assessment_show_min +from .example_steps import step_sql_pool_vulnerability_assessment_list_min +from .example_steps import step_sql_pool_sensitivity_label_delete_min +from .example_steps import step_workspace_aad_admin_create_min +from .example_steps import step_workspace_aad_admin_show_min +from .example_steps import step_workspace_managed_identity_min +from .example_steps import step_workspace_managed_identity2_min +from .example_steps import step_big_data_pool_delete_min +from .example_steps import step_integration_runtime_node_delete_min +from .example_steps import step_integration_runtime_delete_min +from .example_steps import step_ip_firewall_rule_delete_min +from .example_steps import step_private_endpoint_connection_delete_min +from .example_steps import step_sql_pool_vulnerability2_min +from .example_steps import step_private_link_hub_delete_min +from .example_steps import step_sql_pool_vulnerability_assessment_delete_min +from .example_steps import step_sql_pool_delete_min +from .example_steps import step_workspace_aad_admin_delete_min +from .example_steps import step_workspace_delete_min from .. import ( try_manual, raise_if, @@ -487,34 +589,288 @@ def call_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_1 rg_15, rg_16, rg_17) +@try_manual +def call_scenario_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17): + setup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, + rg_16, rg_17) + step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + # STEP NOT FOUND: Update a Sql pool's threat detection policy with all parameters + step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + cleanup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17) + + # Test class for Scenario @try_manual class SynapseScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', - parameter_name='rg_5') - @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') - @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') - @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', - parameter_name='rg_12') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', - parameter_name='rg_13') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', - parameter_name='rg_14') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') - @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') - def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, - rg_14, rg_15, rg_16, rg_17): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -558,7 +914,59 @@ def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg 'mySqlPool9': 'myDatabase', }) + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): call_scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): + call_scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/example_steps.py b/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/example_steps.py index c0e2a8f3a..a89e5b83e 100644 --- a/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/example_steps.py +++ b/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/example_steps.py @@ -37,6 +37,22 @@ def step_workspace_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=[]) +@try_manual +def step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace create ' + '--resource-group "{rg_2}" ' + '--location "East US" ' + '--name "{myWorkspace2}"', + checks=checks) + test.cmd('az synapse workspace wait --created ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=[]) + + # EXAMPLE: /Workspaces/get/Get a workspace @try_manual def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -49,6 +65,13 @@ def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in resource group @try_manual def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -60,6 +83,13 @@ def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in subscription @try_manual def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -71,6 +101,13 @@ def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/patch/Update a workspace @try_manual def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -86,6 +123,17 @@ def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=checks) +@try_manual +def step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace update ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /BigDataPools/put/Create or update a Big Data pool @try_manual def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -114,6 +162,23 @@ def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=[]) +@try_manual +def step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool create ' + '--location "West US 2" ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse big-data-pool wait --created ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /BigDataPools/get/Get a Big Data pool @try_manual def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -127,6 +192,13 @@ def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/get/List Big Data pools in a workspace @try_manual def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -139,6 +211,13 @@ def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/patch/Update a Big Data pool @try_manual def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -153,6 +232,18 @@ def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool update ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /BigDataPools/delete/Delete a Big Data pool @try_manual def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -166,6 +257,13 @@ def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/put/Create integration runtime @try_manual def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -180,6 +278,13 @@ def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/Get integration runtime @try_manual def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -193,6 +298,13 @@ def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/List integration runtimes @try_manual def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -205,6 +317,13 @@ def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/patch/Update integration runtime @try_manual def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -220,6 +339,18 @@ def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime update ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/Start integration runtime @try_manual def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -233,6 +364,13 @@ def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Stop integration runtime @try_manual def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -246,6 +384,13 @@ def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Upgrade integration runtime @try_manual def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -259,6 +404,13 @@ def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/List auth keys @try_manual def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -272,6 +424,13 @@ def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/Regenerate auth key @try_manual def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -286,6 +445,18 @@ def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key regenerate ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeConnectionInfos/post/Get connection info @try_manual def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -299,6 +470,14 @@ def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeCredentials/post/Sync credentials @try_manual def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -312,6 +491,13 @@ def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeMonitoringData/post/Get monitoring data @try_manual def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -325,6 +511,14 @@ def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodeIpAddress/post/Get integration runtime node IP address @try_manual def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -339,6 +533,14 @@ def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodes/get/Get integration runtime node @try_manual def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -353,6 +555,13 @@ def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeNodes/patch/Update integration runtime node @try_manual def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -368,6 +577,19 @@ def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node update ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeNodes/delete/Delete integration runtime node @try_manual def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -382,6 +604,13 @@ def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Get integration runtime object metadata @try_manual def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -396,6 +625,18 @@ def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata get ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Refresh object metadata @try_manual def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -409,6 +650,15 @@ def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeStatus/post/Get status @try_manual def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -422,6 +672,13 @@ def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/delete/Delete integration runtime @try_manual def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -435,6 +692,13 @@ def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/put/Create an IP firewall rule @try_manual def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -450,6 +714,18 @@ def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule create ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/get/Create an IP firewall rule @try_manual def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -463,6 +739,13 @@ def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/get/List IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -475,6 +758,13 @@ def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/post/Replace all IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -490,6 +780,17 @@ def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg checks=checks) +@try_manual +def step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule replace-all ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/delete/Delete an IP firewall rule from a workspace @try_manual def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -503,6 +804,13 @@ def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Operations/get/Get azure async operation header result @try_manual def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -516,6 +824,14 @@ def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /Operations/get/Get location header result @try_manual def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -529,6 +845,13 @@ def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/put/Approve private endpoint connection @try_manual def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -546,6 +869,17 @@ def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=[]) +@try_manual +def step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + test.cmd('az synapse private-endpoint-connection wait --created ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /PrivateEndpointConnections/get/Get private endpoint connection @try_manual def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -559,6 +893,13 @@ def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/get/List private endpoint connections in workspace @try_manual def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -571,6 +912,13 @@ def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/delete/Delete private endpoint connection @try_manual def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -584,6 +932,13 @@ def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/put/Create or update a privateLinkHub @try_manual def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -598,6 +953,18 @@ def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub create ' + '--location "East US" ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/get/Get a privateLinkHub @try_manual def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -610,6 +977,13 @@ def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in resource group @try_manual def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -621,6 +995,13 @@ def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in subscription @try_manual def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -632,6 +1013,13 @@ def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/patch/Update a privateLinkHub @try_manual def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -645,6 +1033,17 @@ def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub update ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/delete/Delete a privateLinkHub @try_manual def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -657,6 +1056,13 @@ def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkResources/get/Get private link resources for workspace @try_manual def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -669,6 +1075,13 @@ def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/put/Create a SQL Analytics pool @try_manual def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -695,6 +1108,23 @@ def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=[]) +@try_manual +def step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool create ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse sql-pool wait --created ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}"', + checks=[]) + + # EXAMPLE: /SqlPools/get/Get a SQL Analytics pool @try_manual def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -708,6 +1138,13 @@ def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace @try_manual def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -720,16 +1157,26 @@ def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace with filter @try_manual def step_sql_pool_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): - if checks is None: - checks = [] - test.cmd('az synapse sql-pool list ' - '--resource-group "{rg_3}" ' - '--workspace-name "{myWorkspace3}"', - checks=checks) + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + +@try_manual +def step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) # EXAMPLE: /SqlPools/patch/Update a SQL Analytics pool @@ -754,6 +1201,18 @@ def step_sql_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool update ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPools/post/Pause a SQL Analytics pool @try_manual def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -767,6 +1226,13 @@ def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Rename a SQL Analytics pool @try_manual def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -782,6 +1248,13 @@ def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Resume a SQL Analytics pool @try_manual def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -795,6 +1268,13 @@ def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with all parameters @try_manual def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -818,6 +1298,18 @@ def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with minimal parameters @try_manual def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -835,6 +1327,14 @@ def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/get/Get blob auditing policy of a SQL Analytics pool @try_manual def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -848,6 +1348,13 @@ def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolConnectionPolicies/get/Get a connection policy of a SQL Analytics pool @try_manual def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -861,6 +1368,13 @@ def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolDataWarehouseUserActivities/get/Get a SQL Analytics pool user activity @try_manual def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -874,6 +1388,15 @@ def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolGeoBackupPolicies/get/Get Sql pool geo backup policy @try_manual def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -887,6 +1410,13 @@ def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/put/Set metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -901,6 +1431,18 @@ def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config create ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/get/Get metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -914,6 +1456,13 @@ def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperationResults/get/Get the result of an operation on a SQL Analytics pool @try_manual def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -928,6 +1477,13 @@ def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperations/get/List the Sql Analytics pool management operations @try_manual def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -941,6 +1497,13 @@ def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolReplicationLinks/get/Lists a Sql Analytic pool's replication links @try_manual def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -954,6 +1517,13 @@ def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/get/Get a list of restore points of a SQL Analytics pool @try_manual def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -967,6 +1537,13 @@ def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/post/Creates Sql pool restore point. @try_manual def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -981,6 +1558,13 @@ def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSchemas/get/List the schema in a SQL Analytics pool @try_manual def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -994,6 +1578,13 @@ def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Create a Sql pool's threat detection policy with all parameters @try_manual def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1015,6 +1606,18 @@ def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy create ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Update a Sql pool's threat detection policy with minimal parameters @try_manual def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1029,6 +1632,18 @@ def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy update ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/get/Get a security alert of a SQL Analytics pool @try_manual def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1042,6 +1657,13 @@ def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, r checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/put/Updates the sensitivity label of a given column with all parameters @try_manual def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1062,6 +1684,21 @@ def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label create ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the current sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1075,6 +1712,14 @@ def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the recommended sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1088,6 +1733,15 @@ def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Disables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1104,6 +1758,13 @@ def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Enables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1120,6 +1781,13 @@ def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/delete/Deletes the sensitivity label of a given column @try_manual def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1136,6 +1804,13 @@ def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTableColumns/get/List the columns in a table of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1151,6 +1826,13 @@ def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTables/get/List the tables of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1165,6 +1847,13 @@ def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/put/Create or update a Sql pool's transparent data encryption configuration @try_manual def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1179,6 +1868,19 @@ def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption create ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/get/Get transparent data encryption configuration of a SQL Analytics pool @try_manual def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1192,6 +1894,14 @@ def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolUsages/get/List the usages of a SQL Analytics pool @try_manual def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1205,6 +1915,13 @@ def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/put/Creates or updates a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1223,6 +1940,20 @@ def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline create ' + '--baseline-name "default" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/delete/Removes a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1238,6 +1969,13 @@ def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with all parameters @try_manual def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1256,6 +1994,18 @@ def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1271,6 +2021,14 @@ def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1286,6 +2044,14 @@ def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a Sql pool's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1299,6 +2065,13 @@ def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a vulnerability assessment of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1312,6 +2085,13 @@ def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/delete/Remove a database's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1325,6 +2105,14 @@ def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/get/Get a vulnerability scan record of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1338,6 +2126,15 @@ def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Executes a Sql pool's vulnerability assessment scan. @try_manual def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1352,6 +2149,13 @@ def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Export a database's vulnerability assessment scan results. @try_manual def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1366,6 +2170,15 @@ def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_ checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPools/delete/Delete a SQL Analytics pool @try_manual def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1379,6 +2192,13 @@ def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/put/Create or update workspace active directory admin @try_manual def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1395,6 +2215,17 @@ def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceAadAdmins/get/Get workspace active directory admin @try_manual def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1407,6 +2238,13 @@ def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/delete/Delete workspace active directory admin @try_manual def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1419,6 +2257,13 @@ def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/put/Create or update managed identity sql control settings @try_manual def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1432,6 +2277,17 @@ def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/get/Get managed identity sql control settings @try_manual def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1444,6 +2300,13 @@ def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/delete/Delete a workspace @try_manual def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1455,3 +2318,10 @@ def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg '--name "{myWorkspace2}"', checks=checks) + +@try_manual +def step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + diff --git a/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py b/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py index 19a919810..a39f72407 100644 --- a/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py +++ b/src/test/scenarios/synapse/output/ext_default_folder/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py @@ -114,6 +114,108 @@ from .example_steps import step_sql_pool_delete from .example_steps import step_workspace_aad_admin_delete from .example_steps import step_workspace_delete +from .example_steps import step_workspace_create_min +from .example_steps import step_big_data_pool_create_min +from .example_steps import step_big_data_pool_list_min +from .example_steps import step_big_data_pool_update_min +from .example_steps import step_integration_runtime_create_min +from .example_steps import step_integration_runtime_show_min +from .example_steps import step_integration_runtime_list_min +from .example_steps import step_integration_runtime_start_min +from .example_steps import step_integration_runtime_stop_min +from .example_steps import step_integration_runtime_upgrade_min +from .example_steps import step_integration_runtime_update_min +from .example_steps import step_integration_runtime_auth_key_list_min +from .example_steps import step_integration_runtime_auth_key_regenerate_min +from .example_steps import step_integration_runtime_connection_info_get_min +from .example_steps import step_integration_runtime_credentials_sync_min +from .example_steps import step_integration_runtime_monitoring_data_get_min +from .example_steps import step_integration_runtime_node_ip_address_get_min +from .example_steps import step_integration_runtime_node_show_min +from .example_steps import step_integration_runtime_node_update_min +from .example_steps import step_integration_runtime_object_metadata_get_min +from .example_steps import step_integration_runtime_object_metadata_refresh_min +from .example_steps import step_integration_runtime_status_get_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_list_min +from .example_steps import step_ip_firewall_rule_replace_all_min +from .example_steps import step_operation_show_azure_async_header_result_min +from .example_steps import step_operation_show_location_header_result_min +from .example_steps import step_private_endpoint_connection_create_min +from .example_steps import step_private_endpoint_connection_show_min +from .example_steps import step_private_endpoint_connection_list_min +from .example_steps import step_private_link_hub_create_min +from .example_steps import step_private_link_hub_show_min +from .example_steps import step_private_link_hub_list_min +from .example_steps import step_private_link_hub_list2_min +from .example_steps import step_private_link_hub_update_min +from .example_steps import step_big_data_pool_show_min +from .example_steps import step_workspace_show_min +from .example_steps import step_workspace_list_min +from .example_steps import step_workspace_list2_min +from .example_steps import step_workspace_update_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_sql_pool_create_min +from .example_steps import step_sql_pool_show_min +from .example_steps import step_sql_pool_list_min +from .example_steps import step_sql_pool_list2_min +from .example_steps import step_sql_pool_pause_min +from .example_steps import step_sql_pool_rename_min +from .example_steps import step_sql_pool_resume_min +from .example_steps import step_sql_pool_update_min +from .example_steps import step_sql_pool_blob_auditing_policy_create_min +from .example_steps import step_sql_pool_blob_auditing_policy_create2_min +from .example_steps import step_sql_pool_blob_auditing_policy_show_min +from .example_steps import step_sql_pool_connection_policy_show_min +from .example_steps import step_sql_pool_data_warehouse_user_activity_show_min +from .example_steps import step_sql_pool_geo_backup_policy_show_min +from .example_steps import step_sql_pool_metadata_sync_config_create_min +from .example_steps import step_sql_pool_metadata_sync_config_show_min +from .example_steps import step_sql_pool_operation_min +from .example_steps import step_sql_pool_operation_list_min +from .example_steps import step_sql_pool_replication_link_list_min +from .example_steps import step_sql_pool_restore_point_list_min +from .example_steps import step_sql_pool_restore_point_create_min +from .example_steps import step_sql_pool_schema_list_min +from .example_steps import step_sql_pool_security_alert_policy_update_min +from .example_steps import step_sql_pool_security_alert_policy_show_min +from .example_steps import step_sql_pool_sensitivity_label_create_min +from .example_steps import step_sql_pool_sensitivity_label_list_current_min +from .example_steps import step_sql_pool_sensitivity_label_list_recommended_min +from .example_steps import step_sql_pool_sensitivity_min +from .example_steps import step_sql_pool_sensitivity2_min +from .example_steps import step_sql_pool_table_column_list_min +from .example_steps import step_sql_pool_table_list_min +from .example_steps import step_sql_pool_transparent_data_encryption_create_min +from .example_steps import step_sql_pool_transparent_data_encryption_show_min +from .example_steps import step_sql_pool_usage_list_min +from .example_steps import step_sql_pool_vulnerability_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_list_min +from .example_steps import step_sql_pool_vulnerability3_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_export_min +from .example_steps import step_sql_pool_vulnerability_assessment_create_min +from .example_steps import step_sql_pool_vulnerability_assessment_create2_min +from .example_steps import step_sql_pool_vulnerability_assessment_create3_min +from .example_steps import step_sql_pool_vulnerability_assessment_show_min +from .example_steps import step_sql_pool_vulnerability_assessment_list_min +from .example_steps import step_sql_pool_sensitivity_label_delete_min +from .example_steps import step_workspace_aad_admin_create_min +from .example_steps import step_workspace_aad_admin_show_min +from .example_steps import step_workspace_managed_identity_min +from .example_steps import step_workspace_managed_identity2_min +from .example_steps import step_big_data_pool_delete_min +from .example_steps import step_integration_runtime_node_delete_min +from .example_steps import step_integration_runtime_delete_min +from .example_steps import step_ip_firewall_rule_delete_min +from .example_steps import step_private_endpoint_connection_delete_min +from .example_steps import step_sql_pool_vulnerability2_min +from .example_steps import step_private_link_hub_delete_min +from .example_steps import step_sql_pool_vulnerability_assessment_delete_min +from .example_steps import step_sql_pool_delete_min +from .example_steps import step_workspace_aad_admin_delete_min +from .example_steps import step_workspace_delete_min from .. import ( try_manual, raise_if, @@ -487,34 +589,288 @@ def call_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_1 rg_15, rg_16, rg_17) +@try_manual +def call_scenario_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17): + setup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, + rg_16, rg_17) + step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + # STEP NOT FOUND: Update a Sql pool's threat detection policy with all parameters + step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + cleanup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17) + + # Test class for Scenario @try_manual class SynapseScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', - parameter_name='rg_5') - @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') - @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') - @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', - parameter_name='rg_12') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', - parameter_name='rg_13') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', - parameter_name='rg_14') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') - @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') - def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, - rg_14, rg_15, rg_16, rg_17): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -558,7 +914,59 @@ def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg 'mySqlPool9': 'myDatabase', }) + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): call_scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): + call_scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/example_steps.py b/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/example_steps.py index c0e2a8f3a..a89e5b83e 100644 --- a/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/example_steps.py +++ b/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/example_steps.py @@ -37,6 +37,22 @@ def step_workspace_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=[]) +@try_manual +def step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace create ' + '--resource-group "{rg_2}" ' + '--location "East US" ' + '--name "{myWorkspace2}"', + checks=checks) + test.cmd('az synapse workspace wait --created ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=[]) + + # EXAMPLE: /Workspaces/get/Get a workspace @try_manual def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -49,6 +65,13 @@ def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in resource group @try_manual def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -60,6 +83,13 @@ def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in subscription @try_manual def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -71,6 +101,13 @@ def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/patch/Update a workspace @try_manual def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -86,6 +123,17 @@ def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=checks) +@try_manual +def step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace update ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /BigDataPools/put/Create or update a Big Data pool @try_manual def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -114,6 +162,23 @@ def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=[]) +@try_manual +def step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool create ' + '--location "West US 2" ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse big-data-pool wait --created ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /BigDataPools/get/Get a Big Data pool @try_manual def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -127,6 +192,13 @@ def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/get/List Big Data pools in a workspace @try_manual def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -139,6 +211,13 @@ def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/patch/Update a Big Data pool @try_manual def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -153,6 +232,18 @@ def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool update ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /BigDataPools/delete/Delete a Big Data pool @try_manual def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -166,6 +257,13 @@ def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/put/Create integration runtime @try_manual def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -180,6 +278,13 @@ def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/Get integration runtime @try_manual def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -193,6 +298,13 @@ def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/List integration runtimes @try_manual def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -205,6 +317,13 @@ def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/patch/Update integration runtime @try_manual def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -220,6 +339,18 @@ def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime update ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/Start integration runtime @try_manual def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -233,6 +364,13 @@ def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Stop integration runtime @try_manual def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -246,6 +384,13 @@ def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Upgrade integration runtime @try_manual def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -259,6 +404,13 @@ def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/List auth keys @try_manual def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -272,6 +424,13 @@ def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/Regenerate auth key @try_manual def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -286,6 +445,18 @@ def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key regenerate ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeConnectionInfos/post/Get connection info @try_manual def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -299,6 +470,14 @@ def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeCredentials/post/Sync credentials @try_manual def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -312,6 +491,13 @@ def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeMonitoringData/post/Get monitoring data @try_manual def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -325,6 +511,14 @@ def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodeIpAddress/post/Get integration runtime node IP address @try_manual def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -339,6 +533,14 @@ def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodes/get/Get integration runtime node @try_manual def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -353,6 +555,13 @@ def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeNodes/patch/Update integration runtime node @try_manual def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -368,6 +577,19 @@ def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node update ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeNodes/delete/Delete integration runtime node @try_manual def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -382,6 +604,13 @@ def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Get integration runtime object metadata @try_manual def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -396,6 +625,18 @@ def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata get ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Refresh object metadata @try_manual def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -409,6 +650,15 @@ def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeStatus/post/Get status @try_manual def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -422,6 +672,13 @@ def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/delete/Delete integration runtime @try_manual def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -435,6 +692,13 @@ def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/put/Create an IP firewall rule @try_manual def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -450,6 +714,18 @@ def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule create ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/get/Create an IP firewall rule @try_manual def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -463,6 +739,13 @@ def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/get/List IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -475,6 +758,13 @@ def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/post/Replace all IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -490,6 +780,17 @@ def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg checks=checks) +@try_manual +def step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule replace-all ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/delete/Delete an IP firewall rule from a workspace @try_manual def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -503,6 +804,13 @@ def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Operations/get/Get azure async operation header result @try_manual def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -516,6 +824,14 @@ def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /Operations/get/Get location header result @try_manual def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -529,6 +845,13 @@ def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/put/Approve private endpoint connection @try_manual def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -546,6 +869,17 @@ def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=[]) +@try_manual +def step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + test.cmd('az synapse private-endpoint-connection wait --created ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /PrivateEndpointConnections/get/Get private endpoint connection @try_manual def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -559,6 +893,13 @@ def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/get/List private endpoint connections in workspace @try_manual def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -571,6 +912,13 @@ def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/delete/Delete private endpoint connection @try_manual def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -584,6 +932,13 @@ def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/put/Create or update a privateLinkHub @try_manual def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -598,6 +953,18 @@ def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub create ' + '--location "East US" ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/get/Get a privateLinkHub @try_manual def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -610,6 +977,13 @@ def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in resource group @try_manual def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -621,6 +995,13 @@ def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in subscription @try_manual def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -632,6 +1013,13 @@ def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/patch/Update a privateLinkHub @try_manual def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -645,6 +1033,17 @@ def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub update ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/delete/Delete a privateLinkHub @try_manual def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -657,6 +1056,13 @@ def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkResources/get/Get private link resources for workspace @try_manual def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -669,6 +1075,13 @@ def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/put/Create a SQL Analytics pool @try_manual def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -695,6 +1108,23 @@ def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=[]) +@try_manual +def step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool create ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse sql-pool wait --created ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}"', + checks=[]) + + # EXAMPLE: /SqlPools/get/Get a SQL Analytics pool @try_manual def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -708,6 +1138,13 @@ def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace @try_manual def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -720,16 +1157,26 @@ def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace with filter @try_manual def step_sql_pool_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): - if checks is None: - checks = [] - test.cmd('az synapse sql-pool list ' - '--resource-group "{rg_3}" ' - '--workspace-name "{myWorkspace3}"', - checks=checks) + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + +@try_manual +def step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) # EXAMPLE: /SqlPools/patch/Update a SQL Analytics pool @@ -754,6 +1201,18 @@ def step_sql_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool update ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPools/post/Pause a SQL Analytics pool @try_manual def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -767,6 +1226,13 @@ def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Rename a SQL Analytics pool @try_manual def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -782,6 +1248,13 @@ def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Resume a SQL Analytics pool @try_manual def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -795,6 +1268,13 @@ def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with all parameters @try_manual def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -818,6 +1298,18 @@ def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with minimal parameters @try_manual def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -835,6 +1327,14 @@ def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/get/Get blob auditing policy of a SQL Analytics pool @try_manual def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -848,6 +1348,13 @@ def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolConnectionPolicies/get/Get a connection policy of a SQL Analytics pool @try_manual def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -861,6 +1368,13 @@ def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolDataWarehouseUserActivities/get/Get a SQL Analytics pool user activity @try_manual def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -874,6 +1388,15 @@ def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolGeoBackupPolicies/get/Get Sql pool geo backup policy @try_manual def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -887,6 +1410,13 @@ def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/put/Set metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -901,6 +1431,18 @@ def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config create ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/get/Get metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -914,6 +1456,13 @@ def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperationResults/get/Get the result of an operation on a SQL Analytics pool @try_manual def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -928,6 +1477,13 @@ def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperations/get/List the Sql Analytics pool management operations @try_manual def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -941,6 +1497,13 @@ def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolReplicationLinks/get/Lists a Sql Analytic pool's replication links @try_manual def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -954,6 +1517,13 @@ def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/get/Get a list of restore points of a SQL Analytics pool @try_manual def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -967,6 +1537,13 @@ def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/post/Creates Sql pool restore point. @try_manual def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -981,6 +1558,13 @@ def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSchemas/get/List the schema in a SQL Analytics pool @try_manual def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -994,6 +1578,13 @@ def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Create a Sql pool's threat detection policy with all parameters @try_manual def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1015,6 +1606,18 @@ def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy create ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Update a Sql pool's threat detection policy with minimal parameters @try_manual def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1029,6 +1632,18 @@ def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy update ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/get/Get a security alert of a SQL Analytics pool @try_manual def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1042,6 +1657,13 @@ def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, r checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/put/Updates the sensitivity label of a given column with all parameters @try_manual def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1062,6 +1684,21 @@ def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label create ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the current sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1075,6 +1712,14 @@ def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the recommended sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1088,6 +1733,15 @@ def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Disables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1104,6 +1758,13 @@ def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Enables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1120,6 +1781,13 @@ def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/delete/Deletes the sensitivity label of a given column @try_manual def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1136,6 +1804,13 @@ def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTableColumns/get/List the columns in a table of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1151,6 +1826,13 @@ def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTables/get/List the tables of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1165,6 +1847,13 @@ def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/put/Create or update a Sql pool's transparent data encryption configuration @try_manual def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1179,6 +1868,19 @@ def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption create ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/get/Get transparent data encryption configuration of a SQL Analytics pool @try_manual def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1192,6 +1894,14 @@ def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolUsages/get/List the usages of a SQL Analytics pool @try_manual def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1205,6 +1915,13 @@ def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/put/Creates or updates a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1223,6 +1940,20 @@ def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline create ' + '--baseline-name "default" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/delete/Removes a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1238,6 +1969,13 @@ def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with all parameters @try_manual def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1256,6 +1994,18 @@ def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1271,6 +2021,14 @@ def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1286,6 +2044,14 @@ def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a Sql pool's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1299,6 +2065,13 @@ def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a vulnerability assessment of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1312,6 +2085,13 @@ def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/delete/Remove a database's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1325,6 +2105,14 @@ def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/get/Get a vulnerability scan record of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1338,6 +2126,15 @@ def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Executes a Sql pool's vulnerability assessment scan. @try_manual def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1352,6 +2149,13 @@ def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Export a database's vulnerability assessment scan results. @try_manual def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1366,6 +2170,15 @@ def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_ checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPools/delete/Delete a SQL Analytics pool @try_manual def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1379,6 +2192,13 @@ def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/put/Create or update workspace active directory admin @try_manual def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1395,6 +2215,17 @@ def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceAadAdmins/get/Get workspace active directory admin @try_manual def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1407,6 +2238,13 @@ def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/delete/Delete workspace active directory admin @try_manual def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1419,6 +2257,13 @@ def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/put/Create or update managed identity sql control settings @try_manual def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1432,6 +2277,17 @@ def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/get/Get managed identity sql control settings @try_manual def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1444,6 +2300,13 @@ def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/delete/Delete a workspace @try_manual def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1455,3 +2318,10 @@ def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg '--name "{myWorkspace2}"', checks=checks) + +@try_manual +def step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + diff --git a/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py b/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py index 19a919810..a39f72407 100644 --- a/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py +++ b/src/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py @@ -114,6 +114,108 @@ from .example_steps import step_sql_pool_delete from .example_steps import step_workspace_aad_admin_delete from .example_steps import step_workspace_delete +from .example_steps import step_workspace_create_min +from .example_steps import step_big_data_pool_create_min +from .example_steps import step_big_data_pool_list_min +from .example_steps import step_big_data_pool_update_min +from .example_steps import step_integration_runtime_create_min +from .example_steps import step_integration_runtime_show_min +from .example_steps import step_integration_runtime_list_min +from .example_steps import step_integration_runtime_start_min +from .example_steps import step_integration_runtime_stop_min +from .example_steps import step_integration_runtime_upgrade_min +from .example_steps import step_integration_runtime_update_min +from .example_steps import step_integration_runtime_auth_key_list_min +from .example_steps import step_integration_runtime_auth_key_regenerate_min +from .example_steps import step_integration_runtime_connection_info_get_min +from .example_steps import step_integration_runtime_credentials_sync_min +from .example_steps import step_integration_runtime_monitoring_data_get_min +from .example_steps import step_integration_runtime_node_ip_address_get_min +from .example_steps import step_integration_runtime_node_show_min +from .example_steps import step_integration_runtime_node_update_min +from .example_steps import step_integration_runtime_object_metadata_get_min +from .example_steps import step_integration_runtime_object_metadata_refresh_min +from .example_steps import step_integration_runtime_status_get_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_list_min +from .example_steps import step_ip_firewall_rule_replace_all_min +from .example_steps import step_operation_show_azure_async_header_result_min +from .example_steps import step_operation_show_location_header_result_min +from .example_steps import step_private_endpoint_connection_create_min +from .example_steps import step_private_endpoint_connection_show_min +from .example_steps import step_private_endpoint_connection_list_min +from .example_steps import step_private_link_hub_create_min +from .example_steps import step_private_link_hub_show_min +from .example_steps import step_private_link_hub_list_min +from .example_steps import step_private_link_hub_list2_min +from .example_steps import step_private_link_hub_update_min +from .example_steps import step_big_data_pool_show_min +from .example_steps import step_workspace_show_min +from .example_steps import step_workspace_list_min +from .example_steps import step_workspace_list2_min +from .example_steps import step_workspace_update_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_sql_pool_create_min +from .example_steps import step_sql_pool_show_min +from .example_steps import step_sql_pool_list_min +from .example_steps import step_sql_pool_list2_min +from .example_steps import step_sql_pool_pause_min +from .example_steps import step_sql_pool_rename_min +from .example_steps import step_sql_pool_resume_min +from .example_steps import step_sql_pool_update_min +from .example_steps import step_sql_pool_blob_auditing_policy_create_min +from .example_steps import step_sql_pool_blob_auditing_policy_create2_min +from .example_steps import step_sql_pool_blob_auditing_policy_show_min +from .example_steps import step_sql_pool_connection_policy_show_min +from .example_steps import step_sql_pool_data_warehouse_user_activity_show_min +from .example_steps import step_sql_pool_geo_backup_policy_show_min +from .example_steps import step_sql_pool_metadata_sync_config_create_min +from .example_steps import step_sql_pool_metadata_sync_config_show_min +from .example_steps import step_sql_pool_operation_min +from .example_steps import step_sql_pool_operation_list_min +from .example_steps import step_sql_pool_replication_link_list_min +from .example_steps import step_sql_pool_restore_point_list_min +from .example_steps import step_sql_pool_restore_point_create_min +from .example_steps import step_sql_pool_schema_list_min +from .example_steps import step_sql_pool_security_alert_policy_update_min +from .example_steps import step_sql_pool_security_alert_policy_show_min +from .example_steps import step_sql_pool_sensitivity_label_create_min +from .example_steps import step_sql_pool_sensitivity_label_list_current_min +from .example_steps import step_sql_pool_sensitivity_label_list_recommended_min +from .example_steps import step_sql_pool_sensitivity_min +from .example_steps import step_sql_pool_sensitivity2_min +from .example_steps import step_sql_pool_table_column_list_min +from .example_steps import step_sql_pool_table_list_min +from .example_steps import step_sql_pool_transparent_data_encryption_create_min +from .example_steps import step_sql_pool_transparent_data_encryption_show_min +from .example_steps import step_sql_pool_usage_list_min +from .example_steps import step_sql_pool_vulnerability_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_list_min +from .example_steps import step_sql_pool_vulnerability3_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_export_min +from .example_steps import step_sql_pool_vulnerability_assessment_create_min +from .example_steps import step_sql_pool_vulnerability_assessment_create2_min +from .example_steps import step_sql_pool_vulnerability_assessment_create3_min +from .example_steps import step_sql_pool_vulnerability_assessment_show_min +from .example_steps import step_sql_pool_vulnerability_assessment_list_min +from .example_steps import step_sql_pool_sensitivity_label_delete_min +from .example_steps import step_workspace_aad_admin_create_min +from .example_steps import step_workspace_aad_admin_show_min +from .example_steps import step_workspace_managed_identity_min +from .example_steps import step_workspace_managed_identity2_min +from .example_steps import step_big_data_pool_delete_min +from .example_steps import step_integration_runtime_node_delete_min +from .example_steps import step_integration_runtime_delete_min +from .example_steps import step_ip_firewall_rule_delete_min +from .example_steps import step_private_endpoint_connection_delete_min +from .example_steps import step_sql_pool_vulnerability2_min +from .example_steps import step_private_link_hub_delete_min +from .example_steps import step_sql_pool_vulnerability_assessment_delete_min +from .example_steps import step_sql_pool_delete_min +from .example_steps import step_workspace_aad_admin_delete_min +from .example_steps import step_workspace_delete_min from .. import ( try_manual, raise_if, @@ -487,34 +589,288 @@ def call_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_1 rg_15, rg_16, rg_17) +@try_manual +def call_scenario_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17): + setup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, + rg_16, rg_17) + step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + # STEP NOT FOUND: Update a Sql pool's threat detection policy with all parameters + step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + cleanup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17) + + # Test class for Scenario @try_manual class SynapseScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', - parameter_name='rg_5') - @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') - @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') - @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', - parameter_name='rg_12') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', - parameter_name='rg_13') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', - parameter_name='rg_14') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') - @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') - def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, - rg_14, rg_15, rg_16, rg_17): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -558,7 +914,59 @@ def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg 'mySqlPool9': 'myDatabase', }) + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): call_scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): + call_scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) + calc_coverage(__file__) + raise_if() + diff --git a/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/example_steps.py b/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/example_steps.py index c0e2a8f3a..a89e5b83e 100644 --- a/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/example_steps.py +++ b/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/example_steps.py @@ -37,6 +37,22 @@ def step_workspace_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=[]) +@try_manual +def step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace create ' + '--resource-group "{rg_2}" ' + '--location "East US" ' + '--name "{myWorkspace2}"', + checks=checks) + test.cmd('az synapse workspace wait --created ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=[]) + + # EXAMPLE: /Workspaces/get/Get a workspace @try_manual def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -49,6 +65,13 @@ def step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in resource group @try_manual def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -60,6 +83,13 @@ def step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/get/List workspaces in subscription @try_manual def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -71,6 +101,13 @@ def step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/patch/Update a workspace @try_manual def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -86,6 +123,17 @@ def step_workspace_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg checks=checks) +@try_manual +def step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace update ' + '--resource-group "{rg_2}" ' + '--name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /BigDataPools/put/Create or update a Big Data pool @try_manual def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -114,6 +162,23 @@ def step_big_data_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=[]) +@try_manual +def step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool create ' + '--location "West US 2" ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse big-data-pool wait --created ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /BigDataPools/get/Get a Big Data pool @try_manual def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -127,6 +192,13 @@ def step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/get/List Big Data pools in a workspace @try_manual def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -139,6 +211,13 @@ def step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /BigDataPools/patch/Update a Big Data pool @try_manual def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -153,6 +232,18 @@ def step_big_data_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse big-data-pool update ' + '--name "{myBigDataPool}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /BigDataPools/delete/Delete a Big Data pool @try_manual def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -166,6 +257,13 @@ def step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_big_data_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/put/Create integration runtime @try_manual def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -180,6 +278,13 @@ def step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/Get integration runtime @try_manual def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -193,6 +298,13 @@ def step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/get/List integration runtimes @try_manual def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -205,6 +317,13 @@ def step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/patch/Update integration runtime @try_manual def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -220,6 +339,18 @@ def step_integration_runtime_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime update ' + '--name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimes/post/Start integration runtime @try_manual def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -233,6 +364,13 @@ def step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_start(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Stop integration runtime @try_manual def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -246,6 +384,13 @@ def step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_stop(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/post/Upgrade integration runtime @try_manual def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -259,6 +404,13 @@ def step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_upgrade(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/List auth keys @try_manual def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -272,6 +424,13 @@ def step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_auth_key_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeAuthKeys/post/Regenerate auth key @try_manual def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -286,6 +445,18 @@ def step_integration_runtime_auth_key_regenerate(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-auth-key regenerate ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeConnectionInfos/post/Get connection info @try_manual def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -299,6 +470,14 @@ def step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_connection_info_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeCredentials/post/Sync credentials @try_manual def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -312,6 +491,13 @@ def step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_credentials_sync(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeMonitoringData/post/Get monitoring data @try_manual def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -325,6 +511,14 @@ def step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_monitoring_data_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodeIpAddress/post/Get integration runtime node IP address @try_manual def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -339,6 +533,14 @@ def step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_ip_address_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeNodes/get/Get integration runtime node @try_manual def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -353,6 +555,13 @@ def step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeNodes/patch/Update integration runtime node @try_manual def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -368,6 +577,19 @@ def step_integration_runtime_node_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-node update ' + '--integration-runtime-name "{myIntegrationRuntime}" ' + '--node-name "Node_1" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeNodes/delete/Delete integration runtime node @try_manual def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -382,6 +604,13 @@ def step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_node_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Get integration runtime object metadata @try_manual def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -396,6 +625,18 @@ def step_integration_runtime_object_metadata_get(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse integration-runtime-object-metadata get ' + '--integration-runtime-name "{myIntegrationRuntime3}" ' + '--resource-group "{rg_17}" ' + '--workspace-name "{myWorkspace20}"', + checks=checks) + + # EXAMPLE: /IntegrationRuntimeObjectMetadata/post/Refresh object metadata @try_manual def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -409,6 +650,15 @@ def step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_integration_runtime_object_metadata_refresh(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /IntegrationRuntimeStatus/post/Get status @try_manual def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -422,6 +672,13 @@ def step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_status_get(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IntegrationRuntimes/delete/Delete integration runtime @try_manual def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -435,6 +692,13 @@ def step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_integration_runtime_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/put/Create an IP firewall rule @try_manual def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -450,6 +714,18 @@ def step_ip_firewall_rule_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule create ' + '--resource-group "{rg}" ' + '--rule-name "ExampleIpFirewallRule" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/get/Create an IP firewall rule @try_manual def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -463,6 +739,13 @@ def step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/get/List IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -475,6 +758,13 @@ def step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /IpFirewallRules/post/Replace all IP firewall rules in a workspace @try_manual def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -490,6 +780,17 @@ def step_ip_firewall_rule_replace_all(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg checks=checks) +@try_manual +def step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse ip-firewall-rule replace-all ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /IpFirewallRules/delete/Delete an IP firewall rule from a workspace @try_manual def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -503,6 +804,13 @@ def step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_ip_firewall_rule_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Operations/get/Get azure async operation header result @try_manual def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -516,6 +824,14 @@ def step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_azure_async_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /Operations/get/Get location header result @try_manual def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -529,6 +845,13 @@ def step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_operation_show_location_header_result(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/put/Approve private endpoint connection @try_manual def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -546,6 +869,17 @@ def step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=[]) +@try_manual +def step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + test.cmd('az synapse private-endpoint-connection wait --created ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}"', + checks=[]) + + # EXAMPLE: /PrivateEndpointConnections/get/Get private endpoint connection @try_manual def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -559,6 +893,13 @@ def step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/get/List private endpoint connections in workspace @try_manual def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -571,6 +912,13 @@ def step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6 checks=checks) +@try_manual +def step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateEndpointConnections/delete/Delete private endpoint connection @try_manual def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -584,6 +932,13 @@ def step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_endpoint_connection_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/put/Create or update a privateLinkHub @try_manual def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -598,6 +953,18 @@ def step_private_link_hub_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub create ' + '--location "East US" ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/get/Get a privateLinkHub @try_manual def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -610,6 +977,13 @@ def step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in resource group @try_manual def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -621,6 +995,13 @@ def step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/get/List privateLinkHubs in subscription @try_manual def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -632,6 +1013,13 @@ def step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkHubs/patch/Update a privateLinkHub @try_manual def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -645,6 +1033,17 @@ def step_private_link_hub_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse private-link-hub update ' + '--name "{myPrivateLinkHub}" ' + '--resource-group "{rg_2}"', + checks=checks) + + # EXAMPLE: /PrivateLinkHubs/delete/Delete a privateLinkHub @try_manual def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -657,6 +1056,13 @@ def step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_hub_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /PrivateLinkResources/get/Get private link resources for workspace @try_manual def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -669,6 +1075,13 @@ def step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_private_link_resource_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/put/Create a SQL Analytics pool @try_manual def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -695,6 +1108,23 @@ def step_sql_pool_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=[]) +@try_manual +def step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool create ' + '--resource-group "{rg}" ' + '--location "West US 2" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + test.cmd('az synapse sql-pool wait --created ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}"', + checks=[]) + + # EXAMPLE: /SqlPools/get/Get a SQL Analytics pool @try_manual def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -708,6 +1138,13 @@ def step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace @try_manual def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -720,16 +1157,26 @@ def step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, checks=checks) +@try_manual +def step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/get/List SQL Analytics pools in a workspace with filter @try_manual def step_sql_pool_list2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): - if checks is None: - checks = [] - test.cmd('az synapse sql-pool list ' - '--resource-group "{rg_3}" ' - '--workspace-name "{myWorkspace3}"', - checks=checks) + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + +@try_manual +def step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) # EXAMPLE: /SqlPools/patch/Update a SQL Analytics pool @@ -754,6 +1201,18 @@ def step_sql_pool_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool update ' + '--resource-group "{rg}" ' + '--name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPools/post/Pause a SQL Analytics pool @try_manual def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -767,6 +1226,13 @@ def step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9 checks=checks) +@try_manual +def step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_pause(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Rename a SQL Analytics pool @try_manual def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -782,6 +1248,13 @@ def step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_rename(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPools/post/Resume a SQL Analytics pool @try_manual def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -795,6 +1268,13 @@ def step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_resume(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with all parameters @try_manual def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -818,6 +1298,18 @@ def step_sql_pool_blob_auditing_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-blob-auditing-policy create ' + '--resource-group "{rg_8}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace10}"', + checks=checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/put/Create or update a database's blob auditing policy with minimal parameters @try_manual def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -835,6 +1327,14 @@ def step_sql_pool_blob_auditing_policy_create2(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolBlobAuditingPolicies/get/Get blob auditing policy of a SQL Analytics pool @try_manual def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -848,6 +1348,13 @@ def step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_blob_auditing_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolConnectionPolicies/get/Get a connection policy of a SQL Analytics pool @try_manual def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -861,6 +1368,13 @@ def step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_connection_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolDataWarehouseUserActivities/get/Get a SQL Analytics pool user activity @try_manual def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -874,6 +1388,15 @@ def step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_data_warehouse_user_activity_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolGeoBackupPolicies/get/Get Sql pool geo backup policy @try_manual def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -887,6 +1410,13 @@ def step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_geo_backup_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/put/Set metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -901,6 +1431,18 @@ def step_sql_pool_metadata_sync_config_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-metadata-sync-config create ' + '--resource-group "{rg}" ' + '--sql-pool-name "{mySqlPool2}" ' + '--workspace-name "{myWorkspace}"', + checks=checks) + + # EXAMPLE: /SqlPoolMetadataSyncConfigs/get/Get metadata sync config for a SQL Analytics pool @try_manual def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -914,6 +1456,13 @@ def step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg checks=checks) +@try_manual +def step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_metadata_sync_config_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperationResults/get/Get the result of an operation on a SQL Analytics pool @try_manual def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -928,6 +1477,13 @@ def step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolOperations/get/List the Sql Analytics pool management operations @try_manual def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -941,6 +1497,13 @@ def step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_operation_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolReplicationLinks/get/Lists a Sql Analytic pool's replication links @try_manual def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -954,6 +1517,13 @@ def step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, checks=checks) +@try_manual +def step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_replication_link_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/get/Get a list of restore points of a SQL Analytics pool @try_manual def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -967,6 +1537,13 @@ def step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolRestorePoints/post/Creates Sql pool restore point. @try_manual def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -981,6 +1558,13 @@ def step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, r checks=checks) +@try_manual +def step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_restore_point_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSchemas/get/List the schema in a SQL Analytics pool @try_manual def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -994,6 +1578,13 @@ def step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_schema_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Create a Sql pool's threat detection policy with all parameters @try_manual def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1015,6 +1606,18 @@ def step_sql_pool_security_alert_policy_create(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy create ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/put/Update a Sql pool's threat detection policy with minimal parameters @try_manual def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1029,6 +1632,18 @@ def step_sql_pool_security_alert_policy_update(test, rg_5, rg, rg_2, rg_3, rg_4, checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-security-alert-policy update ' + '--resource-group "{rg_16}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace19}"', + checks=checks) + + # EXAMPLE: /SqlPoolSecurityAlertPolicies/get/Get a security alert of a SQL Analytics pool @try_manual def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1042,6 +1657,13 @@ def step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, r checks=checks) +@try_manual +def step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_security_alert_policy_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/put/Updates the sensitivity label of a given column with all parameters @try_manual def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1062,6 +1684,21 @@ def step_sql_pool_sensitivity_label_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-sensitivity-label create ' + '--column-name "myColumn" ' + '--resource-group "{rg_11}" ' + '--schema-name "dbo" ' + '--sql-pool-name "{mySqlPool9}" ' + '--table-name "myTable" ' + '--workspace-name "{myWorkspace13}"', + checks=checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the current sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1075,6 +1712,14 @@ def step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_list_current(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/get/Gets the recommended sensitivity labels of a given SQL Analytics pool @try_manual def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1088,6 +1733,15 @@ def step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_sensitivity_label_list_recommended(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Disables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1104,6 +1758,13 @@ def step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8 checks=checks) +@try_manual +def step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/post/Enables sensitivity recommendations on a given column @try_manual def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1120,6 +1781,13 @@ def step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolSensitivityLabels/delete/Deletes the sensitivity label of a given column @try_manual def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1136,6 +1804,13 @@ def step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_ checks=checks) +@try_manual +def step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_sensitivity_label_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTableColumns/get/List the columns in a table of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1151,6 +1826,13 @@ def step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_column_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTables/get/List the tables of a given schema in a SQL Analytics pool @try_manual def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1165,6 +1847,13 @@ def step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_table_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/put/Create or update a Sql pool's transparent data encryption configuration @try_manual def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1179,6 +1868,19 @@ def step_sql_pool_transparent_data_encryption_create(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-transparent-data-encryption create ' + '--resource-group "{rg_4}" ' + '--sql-pool-name "{mySqlPool}" ' + '--workspace-name "{myWorkspace4}"', + checks=checks) + + # EXAMPLE: /SqlPoolTransparentDataEncryptions/get/Get transparent data encryption configuration of a SQL Analytics pool @try_manual def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1192,6 +1894,14 @@ def step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_transparent_data_encryption_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolUsages/get/List the usages of a SQL Analytics pool @try_manual def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1205,6 +1915,13 @@ def step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, checks=checks) +@try_manual +def step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_usage_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/put/Creates or updates a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1223,6 +1940,20 @@ def step_sql_pool_vulnerability(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment-rule-baseline create ' + '--baseline-name "default" ' + '--resource-group "{rg_12}" ' + '--rule-id "VA1001" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentRuleBaselines/delete/Removes a database's vulnerability assessment rule baseline. @try_manual def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1238,6 +1969,13 @@ def step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with all parameters @try_manual def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1256,6 +1994,18 @@ def step_sql_pool_vulnerability_assessment_create(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse sql-pool-vulnerability-assessment create ' + '--resource-group "{rg_12}" ' + '--sql-pool-name "{mySqlPool5}" ' + '--workspace-name "{myWorkspace15}"', + checks=checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1271,6 +2021,14 @@ def step_sql_pool_vulnerability_assessment_create2(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/put/Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified @try_manual def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1286,6 +2044,14 @@ def step_sql_pool_vulnerability_assessment_create3(test, rg_5, rg, rg_2, rg_3, r checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a Sql pool's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1299,6 +2065,13 @@ def step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/get/Get a vulnerability assessment of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, @@ -1312,6 +2085,13 @@ def step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4 checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessments/delete/Remove a database's vulnerability assessment @try_manual def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1325,6 +2105,14 @@ def step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability_assessment_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/get/Get a vulnerability scan record of a SQL Analytics pool @try_manual def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1338,6 +2126,15 @@ def step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_list(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Executes a Sql pool's vulnerability assessment scan. @try_manual def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1352,6 +2149,13 @@ def step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, r checks=checks) +@try_manual +def step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_vulnerability3(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /SqlPoolVulnerabilityAssessmentScans/post/Export a database's vulnerability assessment scan results. @try_manual def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, @@ -1366,6 +2170,15 @@ def step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_ checks=checks) +@try_manual +def step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=None): + return step_sql_pool_vulnerability_assessment_scan_export(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks) + + # EXAMPLE: /SqlPools/delete/Delete a SQL Analytics pool @try_manual def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1379,6 +2192,13 @@ def step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_ checks=checks) +@try_manual +def step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_sql_pool_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/put/Create or update workspace active directory admin @try_manual def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1395,6 +2215,17 @@ def step_workspace_aad_admin_create(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-aad-admin create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceAadAdmins/get/Get workspace active directory admin @try_manual def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, @@ -1407,6 +2238,13 @@ def step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, checks=checks) +@try_manual +def step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_show(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceAadAdmins/delete/Delete workspace active directory admin @try_manual def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1419,6 +2257,13 @@ def step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_aad_admin_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/put/Create or update managed identity sql control settings @try_manual def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1432,6 +2277,17 @@ def step_workspace_managed_identity(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7 checks=checks) +@try_manual +def step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + if checks is None: + checks = [] + test.cmd('az synapse workspace-managed-identity-sql-control-setting create ' + '--resource-group "{rg_2}" ' + '--workspace-name "{myWorkspace2}"', + checks=checks) + + # EXAMPLE: /WorkspaceManagedIdentitySqlControlSettings/get/Get managed identity sql control settings @try_manual def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, @@ -1444,6 +2300,13 @@ def step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_ checks=checks) +@try_manual +def step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_managed_identity2(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks) + + # EXAMPLE: /Workspaces/delete/Delete a workspace @try_manual def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, @@ -1455,3 +2318,10 @@ def step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg '--name "{myWorkspace2}"', checks=checks) + +@try_manual +def step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=None): + return step_workspace_delete(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks) + diff --git a/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py b/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py index 19a919810..a39f72407 100644 --- a/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py +++ b/src/test/scenarios/synapse/output/extnosdknoflattentrack1/src/synapse/azext_synapse/tests/latest/test_synapse_scenario.py @@ -114,6 +114,108 @@ from .example_steps import step_sql_pool_delete from .example_steps import step_workspace_aad_admin_delete from .example_steps import step_workspace_delete +from .example_steps import step_workspace_create_min +from .example_steps import step_big_data_pool_create_min +from .example_steps import step_big_data_pool_list_min +from .example_steps import step_big_data_pool_update_min +from .example_steps import step_integration_runtime_create_min +from .example_steps import step_integration_runtime_show_min +from .example_steps import step_integration_runtime_list_min +from .example_steps import step_integration_runtime_start_min +from .example_steps import step_integration_runtime_stop_min +from .example_steps import step_integration_runtime_upgrade_min +from .example_steps import step_integration_runtime_update_min +from .example_steps import step_integration_runtime_auth_key_list_min +from .example_steps import step_integration_runtime_auth_key_regenerate_min +from .example_steps import step_integration_runtime_connection_info_get_min +from .example_steps import step_integration_runtime_credentials_sync_min +from .example_steps import step_integration_runtime_monitoring_data_get_min +from .example_steps import step_integration_runtime_node_ip_address_get_min +from .example_steps import step_integration_runtime_node_show_min +from .example_steps import step_integration_runtime_node_update_min +from .example_steps import step_integration_runtime_object_metadata_get_min +from .example_steps import step_integration_runtime_object_metadata_refresh_min +from .example_steps import step_integration_runtime_status_get_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_show_min +from .example_steps import step_ip_firewall_rule_list_min +from .example_steps import step_ip_firewall_rule_replace_all_min +from .example_steps import step_operation_show_azure_async_header_result_min +from .example_steps import step_operation_show_location_header_result_min +from .example_steps import step_private_endpoint_connection_create_min +from .example_steps import step_private_endpoint_connection_show_min +from .example_steps import step_private_endpoint_connection_list_min +from .example_steps import step_private_link_hub_create_min +from .example_steps import step_private_link_hub_show_min +from .example_steps import step_private_link_hub_list_min +from .example_steps import step_private_link_hub_list2_min +from .example_steps import step_private_link_hub_update_min +from .example_steps import step_big_data_pool_show_min +from .example_steps import step_workspace_show_min +from .example_steps import step_workspace_list_min +from .example_steps import step_workspace_list2_min +from .example_steps import step_workspace_update_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_private_link_resource_list_min +from .example_steps import step_sql_pool_create_min +from .example_steps import step_sql_pool_show_min +from .example_steps import step_sql_pool_list_min +from .example_steps import step_sql_pool_list2_min +from .example_steps import step_sql_pool_pause_min +from .example_steps import step_sql_pool_rename_min +from .example_steps import step_sql_pool_resume_min +from .example_steps import step_sql_pool_update_min +from .example_steps import step_sql_pool_blob_auditing_policy_create_min +from .example_steps import step_sql_pool_blob_auditing_policy_create2_min +from .example_steps import step_sql_pool_blob_auditing_policy_show_min +from .example_steps import step_sql_pool_connection_policy_show_min +from .example_steps import step_sql_pool_data_warehouse_user_activity_show_min +from .example_steps import step_sql_pool_geo_backup_policy_show_min +from .example_steps import step_sql_pool_metadata_sync_config_create_min +from .example_steps import step_sql_pool_metadata_sync_config_show_min +from .example_steps import step_sql_pool_operation_min +from .example_steps import step_sql_pool_operation_list_min +from .example_steps import step_sql_pool_replication_link_list_min +from .example_steps import step_sql_pool_restore_point_list_min +from .example_steps import step_sql_pool_restore_point_create_min +from .example_steps import step_sql_pool_schema_list_min +from .example_steps import step_sql_pool_security_alert_policy_update_min +from .example_steps import step_sql_pool_security_alert_policy_show_min +from .example_steps import step_sql_pool_sensitivity_label_create_min +from .example_steps import step_sql_pool_sensitivity_label_list_current_min +from .example_steps import step_sql_pool_sensitivity_label_list_recommended_min +from .example_steps import step_sql_pool_sensitivity_min +from .example_steps import step_sql_pool_sensitivity2_min +from .example_steps import step_sql_pool_table_column_list_min +from .example_steps import step_sql_pool_table_list_min +from .example_steps import step_sql_pool_transparent_data_encryption_create_min +from .example_steps import step_sql_pool_transparent_data_encryption_show_min +from .example_steps import step_sql_pool_usage_list_min +from .example_steps import step_sql_pool_vulnerability_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_list_min +from .example_steps import step_sql_pool_vulnerability3_min +from .example_steps import step_sql_pool_vulnerability_assessment_scan_export_min +from .example_steps import step_sql_pool_vulnerability_assessment_create_min +from .example_steps import step_sql_pool_vulnerability_assessment_create2_min +from .example_steps import step_sql_pool_vulnerability_assessment_create3_min +from .example_steps import step_sql_pool_vulnerability_assessment_show_min +from .example_steps import step_sql_pool_vulnerability_assessment_list_min +from .example_steps import step_sql_pool_sensitivity_label_delete_min +from .example_steps import step_workspace_aad_admin_create_min +from .example_steps import step_workspace_aad_admin_show_min +from .example_steps import step_workspace_managed_identity_min +from .example_steps import step_workspace_managed_identity2_min +from .example_steps import step_big_data_pool_delete_min +from .example_steps import step_integration_runtime_node_delete_min +from .example_steps import step_integration_runtime_delete_min +from .example_steps import step_ip_firewall_rule_delete_min +from .example_steps import step_private_endpoint_connection_delete_min +from .example_steps import step_sql_pool_vulnerability2_min +from .example_steps import step_private_link_hub_delete_min +from .example_steps import step_sql_pool_vulnerability_assessment_delete_min +from .example_steps import step_sql_pool_delete_min +from .example_steps import step_workspace_aad_admin_delete_min +from .example_steps import step_workspace_delete_min from .. import ( try_manual, raise_if, @@ -487,34 +589,288 @@ def call_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_1 rg_15, rg_16, rg_17) +@try_manual +def call_scenario_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17): + setup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, + rg_16, rg_17) + step_workspace_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_big_data_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_big_data_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_big_data_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_integration_runtime_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("properties.type", "SelfHosted", case_sensitive=False), + test.check("properties.description", "A selfhosted integration runtime", case_sensitive=False), + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_integration_runtime_start_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_stop_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_upgrade_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("name", "{myIntegrationRuntime}", case_sensitive=False), + ]) + step_integration_runtime_auth_key_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_auth_key_regenerate_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_connection_info_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_credentials_sync_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_monitoring_data_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_ip_address_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_object_metadata_refresh_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_integration_runtime_status_get_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_replace_all_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_azure_async_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_operation_show_location_header_result_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_private_link_hub_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_private_link_hub_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myPrivateLinkHub}", case_sensitive=False), + ]) + step_big_data_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{myBigDataPool}", case_sensitive=False), + ]) + step_workspace_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_workspace_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check('length(@)', 1), + ]) + step_workspace_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "East US", case_sensitive=False), + test.check("name", "{myWorkspace2}", case_sensitive=False), + ]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_resource_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_list2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_pause_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_rename_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_resume_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[ + test.check("location", "West US 2", case_sensitive=False), + test.check("name", "{mySqlPool2}", case_sensitive=False), + ]) + step_sql_pool_blob_auditing_policy_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_blob_auditing_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_connection_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_data_warehouse_user_activity_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_geo_backup_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_metadata_sync_config_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_operation_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_replication_link_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_restore_point_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_schema_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + # STEP NOT FOUND: Update a Sql pool's threat detection policy with all parameters + step_sql_pool_security_alert_policy_update_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_security_alert_policy_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_current_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_list_recommended_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_sensitivity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_column_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_table_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_transparent_data_encryption_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_transparent_data_encryption_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_usage_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_scan_export_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, + rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, + checks=[]) + step_sql_pool_vulnerability_assessment_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_create3_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_list_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_sensitivity_label_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_create_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_show_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_managed_identity2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_big_data_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_node_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_integration_runtime_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_ip_firewall_rule_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_endpoint_connection_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, + rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability2_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_private_link_hub_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_vulnerability_assessment_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, + rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_sql_pool_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_aad_admin_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, + rg_13, rg_14, rg_15, rg_16, rg_17, checks=[]) + step_workspace_delete_min(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17, checks=[]) + cleanup_scenario(test, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, + rg_15, rg_16, rg_17) + + # Test class for Scenario @try_manual class SynapseScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', - parameter_name='rg_5') - @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') - @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') - @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') - @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') - @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', - parameter_name='rg_12') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', - parameter_name='rg_13') - @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', - parameter_name='rg_14') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') - @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') - @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') - def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, - rg_14, rg_15, rg_16, rg_17): - + def __init__(self): self.kwargs.update({ 'subscription_id': self.get_subscription_id() }) @@ -558,7 +914,59 @@ def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg 'mySqlPool9': 'myDatabase', }) + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): call_scenario(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) calc_coverage(__file__) raise_if() + + @ResourceGroupPreparer(name_prefix='clitestsynapse_Default-SQL-SouthEastAsia'[:7], key='rg_5', + parameter_name='rg_5') + @ResourceGroupPreparer(name_prefix='clitestsynapse_ExampleResourceGroup'[:7], key='rg', parameter_name='rg') + @ResourceGroupPreparer(name_prefix='clitestsynapse_resourceGroup1'[:7], key='rg_2', parameter_name='rg_2') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6845'[:7], key='rg_3', parameter_name='rg_3') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6852'[:7], key='rg_4', parameter_name='rg_4') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-4799'[:7], key='rg_6', parameter_name='rg_6') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-6852'[:7], key='rg_7', parameter_name='rg_7') + @ResourceGroupPreparer(name_prefix='clitestsynapse_blobauditingtest-4799'[:7], key='rg_8', parameter_name='rg_8') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-7398'[:7], key='rg_9', parameter_name='rg_9') + @ResourceGroupPreparer(name_prefix='clitestsynapse_sqlcrudtest-6730'[:7], key='rg_10', parameter_name='rg_10') + @ResourceGroupPreparer(name_prefix='clitestsynapse_myRG'[:7], key='rg_11', parameter_name='rg_11') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityaseessmenttest-4799'[:7], key='rg_12', + parameter_name='rg_12') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4711'[:7], key='rg_13', + parameter_name='rg_13') + @ResourceGroupPreparer(name_prefix='clitestsynapse_vulnerabilityassessmenttest-4799'[:7], key='rg_14', + parameter_name='rg_14') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-6852'[:7], key='rg_15', parameter_name='rg_15') + @ResourceGroupPreparer(name_prefix='clitestsynapse_securityalert-4799'[:7], key='rg_16', parameter_name='rg_16') + @ResourceGroupPreparer(name_prefix='clitestsynapse_exampleResourceGroup'[:7], key='rg_17', parameter_name='rg_17') + def test_synapse_Scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, + rg_14, rg_15, rg_16, rg_17): + call_scenario_min(self, rg_5, rg, rg_2, rg_3, rg_4, rg_6, rg_7, rg_8, rg_9, rg_10, rg_11, rg_12, rg_13, rg_14, rg_15, rg_16, rg_17) + calc_coverage(__file__) + raise_if() +