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:
parent
ba96e2ea1b
commit
03539b7f8b
20
.zuul.yaml
20
.zuul.yaml
@ -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
11
glance/tests/gate/README
Normal 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) ...
|
0
glance/tests/gate/__init__.py
Normal file
0
glance/tests/gate/__init__.py
Normal file
12
tox.ini
12
tox.ini
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user