Separate out configuration tests

Following up on an #action from the weekly Glance meeting:
http://eavesdrop.openstack.org/meetings/glance/2019/glance.2019-01-31-13.59.log.html#l-134

Change-Id: Ic9b8c4c055345b0128ab1c8dbfabac3f20e326b6
This commit is contained in:
Brian Rosmaita 2019-03-22 12:46:57 -04:00
parent ba96e2ea1b
commit 03539b7f8b
5 changed files with 43 additions and 0 deletions

View File

@ -29,6 +29,25 @@
- ^tox.ini$
- ^\.zuul\.yaml$
- job:
name: glance-code-constants-check
parent: tox
description: |
Tests to catch when code constants have gotten out of sync.
vars:
tox_envlist: gateonly
irrelevant-files:
- ^(test-|)requirements.txt$
- ^lower-constraints.txt$
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tox.ini$
- ^\.zuul\.yaml$
- job:
name: glance-tox-oslo-tips-base
parent: tox
@ -217,6 +236,7 @@
- openstack-tox-functional-py35
- glance-eventlet-ssl-handshake-broken-py35:
voting: false
- glance-code-constants-check
- devstack-plugin-ceph-tempest:
voting: false
irrelevant-files:

11
glance/tests/gate/README Normal file
View File

@ -0,0 +1,11 @@
===============
Gate-only tests
===============
These tests catch configuration problems for some code constants that
must be maintained manually. We have them separated out from the other
tests so that they can easily be run in their own gate job and don't
affect local development.
It would be nice if someone with some free time could figure out how
to make these changes automatic (or unnecessary) ...

View File

12
tox.ini
View File

@ -76,6 +76,18 @@ setenv =
commands =
stestr run --whitelist-file ./broken-functional-py35-ssl-tests.txt {posargs}
[testenv:gateonly]
# NOTE(rosmaita): these tests catch configuration problems for some code
# constants that must be maintained manually; we have them separated out
# so they don't affect local development
# TODO(someone other than me): figure out how to make these changes either
# automatic or unnecessary
basepython = python3
setenv =
TEST_PATH = ./glance/tests/gate
commands =
stestr run {posargs}
[testenv:pep8]
basepython = python3
commands =