From 1b24ce5c766c02a22c0540004f2e4a3623e71777 Mon Sep 17 00:00:00 2001 From: Chi Song <27178119+squirrelsc@users.noreply.github.com> Date: Thu, 4 Mar 2021 17:51:32 +0800 Subject: [PATCH] Add Microsoft runbooks phase 1 T0 and T1 tested, add them first. --- microsoft/runbook/azure.yml | 15 +++++++++++++++ microsoft/runbook/ready.yml | 21 +++++++++++++++++++++ microsoft/runbook/tiers/base.yml | 8 ++++++++ microsoft/runbook/tiers/t0.yml | 5 +++++ microsoft/runbook/tiers/t1.yml | 10 ++++++++++ 5 files changed, 59 insertions(+) create mode 100644 microsoft/runbook/azure.yml create mode 100644 microsoft/runbook/ready.yml create mode 100644 microsoft/runbook/tiers/base.yml create mode 100644 microsoft/runbook/tiers/t0.yml create mode 100644 microsoft/runbook/tiers/t1.yml diff --git a/microsoft/runbook/azure.yml b/microsoft/runbook/azure.yml new file mode 100644 index 000000000..166b210dc --- /dev/null +++ b/microsoft/runbook/azure.yml @@ -0,0 +1,15 @@ +name: azure default +parent: + - path: ./tiers/t0.yml +variable: + - name: reserve_environment + value: "no" +notifier: + - type: html +platform: + - type: azure + admin_private_key_file: $(admin_private_key_file) + reserve_environment: $(reserve_environment) + azure: + subscription_id: $(subscription_id) + wait_delete: false diff --git a/microsoft/runbook/ready.yml b/microsoft/runbook/ready.yml new file mode 100644 index 000000000..6a1f45853 --- /dev/null +++ b/microsoft/runbook/ready.yml @@ -0,0 +1,21 @@ +name: ready default +parent: + - path: ./tiers/t0.yml +variable: + - name: user_name + value: "lisatest" + - name: public_port + value: 22 +notifier: + - type: html +environment: + environments: + - nodes: + - type: remote + isDefault: true + public_address: $(public_address) + public_port: $(public_port) + username: $(user_name) +platform: + - type: ready + admin_private_key_file: $(admin_private_key_file) diff --git a/microsoft/runbook/tiers/base.yml b/microsoft/runbook/tiers/base.yml new file mode 100644 index 000000000..f59be4a2d --- /dev/null +++ b/microsoft/runbook/tiers/base.yml @@ -0,0 +1,8 @@ +extension: + paths: + - ../../../testsuites/basic +variable: + - name: location + value: westus2 + - name: v2_rg_cleanup + value: Delete diff --git a/microsoft/runbook/tiers/t0.yml b/microsoft/runbook/tiers/t0.yml new file mode 100644 index 000000000..73d528c89 --- /dev/null +++ b/microsoft/runbook/tiers/t0.yml @@ -0,0 +1,5 @@ +parent: + - path: base.yml +testcase: + - criteria: + priority: 0 diff --git a/microsoft/runbook/tiers/t1.yml b/microsoft/runbook/tiers/t1.yml new file mode 100644 index 000000000..13419f97d --- /dev/null +++ b/microsoft/runbook/tiers/t1.yml @@ -0,0 +1,10 @@ +parent: + - path: base.yml +variable: + - name: v2_rg + value: v2-t1 +testcase: + - criteria: + priority: [0, 1] + - type: legacy + command: .\Run-LisaV2.ps1 -TestLocation '$(location)' -RGIdentifier '$(v2_rg)' -TestPlatform 'Azure' -ARMImageName '$(image)' -XMLSecretFile '$(v2_secret_file)' -TestPriority 0 -ResourceCleanup $(v2_rg_cleanup)