Add a API test list sanity check gate job to Zuul

This patch set adds a simple Zuul gate job that lists the plugin's
API tests as a sanity check.

Change-Id: I8462002b7b13ba760a25b629e2aff78b0cebb4bc
This commit is contained in:
Carter, Matthew (mc981n) 2019-05-06 15:35:31 -05:00 committed by Matthew Carter
parent f1609695bd
commit ce79550ee1
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