From d5bc5c76171389c12504946863df3f9b0c989088 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 27 Apr 2023 13:00:22 +0200 Subject: [PATCH] Add new tox env and workflow for ovn_migration sanity tests This patch adds new tox env "ovn_migration_sanity" which runs only tests marked as "ovn_migration" and explicitly skip all tests marked as "skip_during_ovn_migration". This patch additionally modifies check-resources-ovn-migration workflow so it will now first check resources after migration (run "ovn_migration" tox env) and next run ovn_migration sanity tests too. Change-Id: Ib50bfb0c294ee305fa7bee53c048939479e2e436 --- .../test-workflow-check-resources-ovn-migration.yaml | 5 +++++ tox.ini | 10 ++++++++++ 2 files changed, 15 insertions(+) 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 index 55139bf07..b8877c3f1 100644 --- a/roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml +++ b/roles/tobiko-run/vars/test-workflow-check-resources-ovn-migration.yaml @@ -6,3 +6,8 @@ test_workflow_steps: tox_step_name: verify_resources tox_environment: TOBIKO_PREVENT_CREATE: yes + - tox_description: 'run sanity tests related to ML2OVS to ML2OVN migration' + tox_envlist: ovn_migration_sanity + tox_step_name: sanity + tox_environment: + TOBIKO_PREVENT_CREATE: yes diff --git a/tox.ini b/tox.ini index 84a2821f3..0df16627d 100644 --- a/tox.ini +++ b/tox.ini @@ -252,6 +252,16 @@ setenv = OS_TEST_PATH = {toxinidir}/tobiko/tests/sanity/neutron +[testenv:ovn_migration_sanity] + +basepython = {[integration]basepython} +envdir = {[integration]envdir} +passenv = {[integration]passenv} +setenv = + {[testenv:sanity]setenv} + RUN_TESTS_EXTRA_ARGS = -m "ovn_migration and not skip_during_ovn_migration" {env:OS_TEST_PATH} + + [testenv:shiftstack_sanity] basepython = {[integration]basepython}