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:
@@ -14,6 +14,7 @@ import os
|
|||||||
|
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import requests
|
import requests
|
||||||
|
import requests.auth
|
||||||
import six
|
import six
|
||||||
from tempest.lib import exceptions
|
from tempest.lib import exceptions
|
||||||
|
|
||||||
@@ -508,6 +509,7 @@ class AodhClientGnocchiRulesTest(base.ClientTestBase):
|
|||||||
|
|
||||||
req = requests.post(
|
req = requests.post(
|
||||||
os.environ.get("GNOCCHI_ENDPOINT") + "/v1/resource/instance",
|
os.environ.get("GNOCCHI_ENDPOINT") + "/v1/resource/instance",
|
||||||
|
auth=requests.auth.HTTPBasicAuth('admin', ''),
|
||||||
json={
|
json={
|
||||||
"display_name": "myvm",
|
"display_name": "myvm",
|
||||||
"flavor_id": "2", "host": "blah",
|
"flavor_id": "2", "host": "blah",
|
||||||
|
16
setup.cfg
16
setup.cfg
@@ -23,6 +23,22 @@ classifier =
|
|||||||
packages =
|
packages =
|
||||||
aodhclient
|
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]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
aodh = aodhclient.shell:main
|
aodh = aodhclient.shell:main
|
||||||
|
@@ -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
|
|
9
tox.ini
9
tox.ini
@@ -11,9 +11,11 @@ setenv =
|
|||||||
AODH_ENDPOINT=http://localhost:8042
|
AODH_ENDPOINT=http://localhost:8042
|
||||||
GNOCCHI_ENDPOINT=http://localhost:8051
|
GNOCCHI_ENDPOINT=http://localhost:8051
|
||||||
passenv = GNOCCHI_* AODH_* OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
|
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
|
# 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}'
|
commands = pifpaf run aodh --gnocchi-create-legacy-resource-types -- python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
@@ -21,6 +23,8 @@ deps = hacking<0.13,>=0.12
|
|||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
|
# Used by openstack-infra to build the doc
|
||||||
|
deps = .[doc]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
@@ -32,6 +36,7 @@ commands =
|
|||||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
deps = .[doc]
|
||||||
commands =
|
commands =
|
||||||
rm -rf doc/source/ref
|
rm -rf doc/source/ref
|
||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
Reference in New Issue
Block a user