Use pifpaf instead of overtest to run tests
Change-Id: If00fd31e61410b8fcc660867aacf7862cb91af83
This commit is contained in:
parent
fa7312ef23
commit
25cd3c6cda
|
@ -29,7 +29,7 @@ class GnocchiClient(object):
|
|||
|
||||
def __init__(self):
|
||||
self.cli_dir = os.environ.get('GNOCCHI_CLIENT_EXEC_DIR')
|
||||
self.endpoint = os.environ.get('OVERTEST_GNOCCHI_HTTP_URL')
|
||||
self.endpoint = os.environ.get('PIFPAF_GNOCCHI_HTTP_URL')
|
||||
self.user_id = str(uuid.uuid4())
|
||||
self.project_id = str(uuid.uuid4())
|
||||
|
||||
|
|
|
@ -176,12 +176,13 @@ class ResourceClientTest(base.ClientTestBase):
|
|||
self.assertNotIn(self.RESOURCE_ID2, resource_ids)
|
||||
|
||||
# LIST THE RESOUCES TYPES
|
||||
resource_type = ('instance', 'generic', 'volume',
|
||||
'instance_disk', 'stack', 'identity')
|
||||
|
||||
result = self.gnocchi(
|
||||
'resource', params="list-types")
|
||||
result_list = self.parser.listing(result)
|
||||
type_from_list = [t['resource_type'] for t in result_list]
|
||||
for one_type in resource_type:
|
||||
self.assertIn(one_type, type_from_list)
|
||||
r = self.parser.listing(result)
|
||||
self.assertEqual([
|
||||
{
|
||||
'resource_controller_url':
|
||||
'http://localhost:8041/v1/resource/generic',
|
||||
'resource_type': 'generic'
|
||||
},
|
||||
], r)
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -8,12 +8,11 @@ usedevelop = True
|
|||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
GNOCCHI_CLIENT_EXEC_DIR={envdir}/bin
|
||||
OVERTEST_DEBUG=1
|
||||
passenv = GNOCCHI_* OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
|
||||
deps = .[test]
|
||||
http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz#egg=gnocchi[postgresql,file]
|
||||
overtest>=0.12
|
||||
commands = overtest gnocchi python setup.py test --slowest --testr-args='{posargs}'
|
||||
pifpaf
|
||||
commands = pifpaf run gnocchi -- python setup.py test --slowest --testr-args='{posargs}'
|
||||
|
||||
[testenv:pep8]
|
||||
deps = hacking<0.11,>=0.10.0
|
||||
|
@ -39,7 +38,7 @@ setenv = SPHINX_HTML_THEME=sphinx_rtd_theme
|
|||
commands = python setup.py build_sphinx
|
||||
|
||||
[testenv:debug]
|
||||
commands = overtest gnocchi oslo_debug_helper {posargs}
|
||||
commands = pifpaf --debug run gnocchi -- oslo_debug_helper {posargs}
|
||||
|
||||
[flake8]
|
||||
show-source = True
|
||||
|
|
Loading…
Reference in New Issue