From d652328de4e33678439a2fe0f4c4cd597ccd59d4 Mon Sep 17 00:00:00 2001 From: Roman Safronov Date: Tue, 13 Jul 2021 22:55:18 +0300 Subject: [PATCH] Create workflows for OVN migration This patch adds 2 workflows for creating and checking resources relevant for ML2OVS to ML2OVN migration scenario. Change-Id: I4a425fbdbe48759780de1456c3fbf8123157cfb4 --- .../test-workflow-check-resources-ovn-migration.yaml | 8 ++++++++ .../test-workflow-create-resources-ovn-migration.yaml | 8 ++++++++ tox.ini | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml create mode 100644 roles/tobiko-run/vars/test-workflow-create-resources-ovn-migration.yaml diff --git a/roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml b/roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml new file mode 100644 index 000000000..55139bf07 --- /dev/null +++ b/roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml @@ -0,0 +1,8 @@ +--- + +test_workflow_steps: + - tox_description: 'check workload resources after ML2OVS to ML2OVN migration' + tox_envlist: ovn_migration + tox_step_name: verify_resources + tox_environment: + TOBIKO_PREVENT_CREATE: yes diff --git a/roles/tobiko-run/vars/test-workflow-create-resources-ovn-migration.yaml b/roles/tobiko-run/vars/test-workflow-create-resources-ovn-migration.yaml new file mode 100644 index 000000000..8ee7f67aa --- /dev/null +++ b/roles/tobiko-run/vars/test-workflow-create-resources-ovn-migration.yaml @@ -0,0 +1,8 @@ +--- + +test_workflow_steps: + - tox_description: 'create workload resources for ML2OVS to ML2OVN migration' + tox_envlist: ovn_migration + tox_step_name: create_resources + tox_environment: + TOBIKO_PREVENT_CREATE: no diff --git a/tox.ini b/tox.ini index f89b68633..9ba9e1a45 100644 --- a/tox.ini +++ b/tox.ini @@ -193,6 +193,17 @@ setenv = {[integration]setenv} OS_TEST_PATH = {toxinidir}/tobiko/tests/scenario/octavia + +[testenv:ovn_migration] + +basepython = {[integration]basepython} +envdir = {[integration]envdir} +passenv = {[integration]passenv} +setenv = + {[testenv:scenario]setenv} + RUN_TESTS_EXTRA_ARGS = -m ovn_migration {env:OS_TEST_PATH} + + [testenv:nova] basepython = {[integration]basepython}