From ee2cbbbd1d16195567676189aab99747be51d63d Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Tue, 14 Apr 2020 16:48:23 +0200 Subject: [PATCH] Add faults-neutron workflow Change-Id: Ie8b71a7e3998606ebe5e2bbaa9506a983a2edca9 --- roles/tobiko-run/tasks/main.yaml | 2 +- ...default.yaml => test-workflow-default.yaml} | 0 .../vars/test-workflow-faults-neutron.yaml | 18 ++++++++++++++++++ .../{faults.yaml => test-workflow-faults.yaml} | 0 ...onal.yaml => test-workflow-functional.yaml} | 0 .../{unit.yaml => test-workflow-unit.yaml} | 0 6 files changed, 19 insertions(+), 1 deletion(-) rename roles/tobiko-run/vars/{default.yaml => test-workflow-default.yaml} (100%) create mode 100644 roles/tobiko-run/vars/test-workflow-faults-neutron.yaml rename roles/tobiko-run/vars/{faults.yaml => test-workflow-faults.yaml} (100%) rename roles/tobiko-run/vars/{functional.yaml => test-workflow-functional.yaml} (100%) rename roles/tobiko-run/vars/{unit.yaml => test-workflow-unit.yaml} (100%) diff --git a/roles/tobiko-run/tasks/main.yaml b/roles/tobiko-run/tasks/main.yaml index f616cb954..b145ecc2c 100644 --- a/roles/tobiko-run/tasks/main.yaml +++ b/roles/tobiko-run/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: "include test workflow steps for name '{{ test_workflow }}'" - include_vars: "{{ test_workflow }}.yaml" + include_vars: "test-workflow-{{ test_workflow }}.yaml" - name: "show test workflow steps" diff --git a/roles/tobiko-run/vars/default.yaml b/roles/tobiko-run/vars/test-workflow-default.yaml similarity index 100% rename from roles/tobiko-run/vars/default.yaml rename to roles/tobiko-run/vars/test-workflow-default.yaml diff --git a/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml b/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml new file mode 100644 index 000000000..635cd3a5e --- /dev/null +++ b/roles/tobiko-run/vars/test-workflow-faults-neutron.yaml @@ -0,0 +1,18 @@ +--- + +test_workflow_steps: + - tox_description: 'create workload resources' + tox_envlist: neutron + tox_step_name: create_resources + tox_environment: + TOBIKO_PREVENT_CREATE: no + + - tox_description: 'run disruptive test cases' + tox_envlist: faults + tox_step_name: faults + + - tox_description: 'verify workload resources' + tox_envlist: neutron + tox_step_name: verify_resources' + tox_environment: + TOBIKO_PREVENT_CREATE: yes diff --git a/roles/tobiko-run/vars/faults.yaml b/roles/tobiko-run/vars/test-workflow-faults.yaml similarity index 100% rename from roles/tobiko-run/vars/faults.yaml rename to roles/tobiko-run/vars/test-workflow-faults.yaml diff --git a/roles/tobiko-run/vars/functional.yaml b/roles/tobiko-run/vars/test-workflow-functional.yaml similarity index 100% rename from roles/tobiko-run/vars/functional.yaml rename to roles/tobiko-run/vars/test-workflow-functional.yaml diff --git a/roles/tobiko-run/vars/unit.yaml b/roles/tobiko-run/vars/test-workflow-unit.yaml similarity index 100% rename from roles/tobiko-run/vars/unit.yaml rename to roles/tobiko-run/vars/test-workflow-unit.yaml