diff --git a/tox.ini b/tox.ini index cd321741de..efdaacc2ad 100644 --- a/tox.ini +++ b/tox.ini @@ -125,6 +125,18 @@ commands = find . -type f -name "*.pyc" -delete tempest run --regex '(^tempest\.scenario.*)|(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs} +[testenv:api-microversion-tests] +envdir = .tox/tempest +sitepackages = {[tempestenv]sitepackages} +basepython = {[tempestenv]basepython} +setenv = {[tempestenv]setenv} +deps = {[tempestenv]deps} +# The regex below is used to select all tempest api tests for services having API +# microversion concept. +commands = + find . -type f -name "*.pyc" -delete + tempest run --regex '(^tempest\.api\.compute)|(^tempest\.api\.volume)' {posargs} + [testenv:integrated-network] envdir = .tox/tempest sitepackages = {[tempestenv]sitepackages} diff --git a/zuul.d/integrated-gate.yaml b/zuul.d/integrated-gate.yaml index 2da5579f30..2faaa29e4b 100644 --- a/zuul.d/integrated-gate.yaml +++ b/zuul.d/integrated-gate.yaml @@ -193,6 +193,20 @@ # for future once swift is ready on py3. USE_PYTHON3: true +- job: + name: tempest-with-latest-microversion + parent: tempest-full-py3 + description: | + This job runs compute, placement and volume API tests with 'latest' + API microversion (This can be extended to other services having API + microversion concept). + vars: + tox_envlist: api-microversion-tests + devstack_localrc: + TEMPEST_COMPUTE_MIN_MICROVERSION: 'latest' + TEMPEST_VOLUME_MIN_MICROVERSION: 'latest' + TEMPEST_PLACEMENT_MIN_MICROVERSION: 'latest' + - job: name: tempest-multinode-full parent: tempest-multinode-full-base diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 7f490e1eb4..566c2c3f80 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -132,6 +132,7 @@ irrelevant-files: *tempest-irrelevant-files experimental: jobs: + - tempest-with-latest-microversion - tempest-stestr-master - tempest-cinder-v2-api: irrelevant-files: *tempest-irrelevant-files