Merge "Separate out configuration tests"

This commit is contained in:
Zuul 2019-04-12 13:02:27 +00:00 committed by Gerrit Code Review
commit 6cd76cb591
5 changed files with 43 additions and 0 deletions

View File

@ -28,6 +28,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
@ -216,6 +235,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

@ -90,6 +90,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 =