Extras usage for test requirements + basic auth against Gnocch

This switches the deps in test/doc section in extras.
Also fix Gnocchi authentication with pifpaf which is by default to basic now
(Gnocchi 3.1).

Change-Id: Ida3be5d986941c8c312a72c9066672fbb6ea8c25
This commit is contained in:
Julien Danjou 2017-01-20 21:39:30 +01:00
parent 98135d6b74
commit d028ca5ff4
4 changed files with 25 additions and 20 deletions

View File

@ -14,6 +14,7 @@ import os
from oslo_utils import uuidutils
import requests
import requests.auth
import six
from tempest.lib import exceptions
@ -508,6 +509,7 @@ class AodhClientGnocchiRulesTest(base.ClientTestBase):
req = requests.post(
os.environ.get("GNOCCHI_ENDPOINT") + "/v1/resource/instance",
auth=requests.auth.HTTPBasicAuth('admin', ''),
json={
"display_name": "myvm",
"flavor_id": "2", "host": "blah",

View File

@ -23,6 +23,22 @@ classifier =
packages =
aodhclient
[extras]
test =
coverage>=3.6
python-subunit>=0.0.18
oslotest>=1.10.0 # Apache-2.0
reno>=1.6.2 # Apache2
tempest>=10
testrepository>=0.0.18
testscenarios>=0.4
testtools>=1.4.0
pifpaf>=0.23
mock>=1.2 # BSD
doc =
sphinx!=1.2.0,!=1.3b1,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
[entry_points]
console_scripts =
aodh = aodhclient.shell:main

View File

@ -1,18 +0,0 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
coverage>=3.6
python-subunit>=0.0.18
sphinx!=1.2.0,!=1.3b1,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
reno>=1.6.2 # Apache2
tempest>=10
testrepository>=0.0.18
testscenarios>=0.4
testtools>=1.4.0
http://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql]
http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz#egg=gnocchi[postgresql,file]
pifpaf>=0.0.6
mock>=1.2 # BSD

View File

@ -11,9 +11,11 @@ setenv =
AODH_ENDPOINT=http://localhost:8042
GNOCCHI_ENDPOINT=http://localhost:8051
passenv = GNOCCHI_* AODH_* OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
deps =
.[test]
http://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql]
http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz#egg=gnocchi[postgresql,file]
commands = pifpaf run aodh --gnocchi-create-legacy-resource-types -- python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
@ -21,6 +23,8 @@ deps = hacking<0.13,>=0.12
commands = flake8
[testenv:venv]
# Used by openstack-infra to build the doc
deps = .[doc]
commands = {posargs}
[testenv:cover]
@ -32,6 +36,7 @@ commands =
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:docs]
deps = .[doc]
commands =
rm -rf doc/source/ref
python setup.py build_sphinx