Merge "Add a API test list sanity check gate job to Zuul"

This commit is contained in:
Zuul 2019-05-15 19:05:26 +00:00 committed by Gerrit Code Review
commit bd0ac06960
2 changed files with 22 additions and 1 deletions

View File

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

View File

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