Skip to content

Commit

Permalink
extracted placement (#265)
Browse files Browse the repository at this point in the history
The gabbi tests in nova are moving away and are now
in openstack/placement, so we'd like to use that code
for the integration test. A small win from this is that
the tests ought to be a bit faster because less (much less)
data is downloaded.
  • Loading branch information
cdent committed Dec 7, 2018
1 parent d17d75c commit f36a9c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ matrix:
- env: TOXENV=pep8
- env: TOXENV=py27-pytest
- env: TOXENV=gnocchi
- env: TOXENV=placement
- python: 3.7
env: TOXENV=placement
- python: pypy
env: TOXENV=pypy
dist: trusty
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ commands = tox -e py27-postgresql-file --notest # ensure a virtualenv is built
tox -e py27-postgresql-file gabbi

[testenv:placement]
basepython = python2.7
basepython = python3.7
deps = tox
commands = -mkdir {envdir}/src
-rm -r {envdir}/src/*
bash -c "curl https://tarballs.openstack.org/nova/nova-master.tar.gz | tar -C {envdir}/src -zx --strip-components 1 -f - "
tox -c {envdir}/src -e functional --notest # ensure a virtualenv is built
bash -c "curl https://tarballs.openstack.org/placement/placement-master.tar.gz | tar -C {envdir}/src -zx --strip-components 1 -f - "
tox -c {envdir}/src -e functional-py37 --notest # ensure a virtualenv is built
# nova shares tox envs so it's just luck that we know the tox dir is different from name
{envdir}/src/.tox/py27/bin/pip install -U {toxinidir} # install gabbi
tox -c {envdir}/src -e functional test_placement_api
{envdir}/src/.tox/py37/bin/pip install -U {toxinidir} # install gabbi
tox -c {envdir}/src -e functional-py37 test_api
whitelist_externals =
mkdir
curl
Expand Down

0 comments on commit f36a9c1

Please sign in to comment.