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
This commit is contained in:
Slawek Kaplonski 2023-04-27 13:00:22 +02:00
parent 3aa8b57abf
commit d5bc5c7617
2 changed files with 15 additions and 0 deletions

View File

@ -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

10
tox.ini
View File

@ -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}