diff --git a/.zuul.yaml b/.zuul.yaml index eea1d51..f210e90 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -13,3 +13,19 @@ - project: templates: - tempest-plugin-jobs + check: + jobs: + - tox-list-api-tests + gate: + jobs: + - tox-list-api-tests + +- job: + name: tox-list-api-tests + parent: tox + nodeset: ubuntu-xenial + description: | + Use tox to run a stestr list against the tests/api/ directory as a + sanity check + vars: + tox_envlist: listapitests diff --git a/tox.ini b/tox.ini index 3086344..85d8bb6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = pep8,py35,py27 +envlist = pep8,py35,py27,listapitests skipsdist = True [testenv] @@ -25,6 +25,11 @@ basepython = python3 commands = flake8 {posargs} check-uuid --package airship_tempest_plugin.tests.api +[testenv:listapitests] +basepython = python3 +commands = stestr init + stestr --test-path ./airship_tempest_plugin/tests/api list + [testenv:uuidgen] basepython = python3 commands = check-uuid --package airship_tempest_plugin.tests.api --fix