Merge "Add test service api"

This commit is contained in:
Zuul 2020-01-09 10:20:11 +00:00 committed by Gerrit Code Review
commit a99e8f6207
2 changed files with 34 additions and 8 deletions

View File

@ -0,0 +1,30 @@
# Copyright 2019 - Nokia Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from tempest.lib import decorators
from mistral_tempest_tests.tests import base
class ServicesTestsV2(base.TestCase):
_service = 'workflowv2'
@decorators.attr(type='sanity')
@decorators.idempotent_id('f4359ad2-9109-4305-a00a-77679878f7f9')
def test_get_services_list(self):
resp, body = self.client.get_list_obj('services')
self.assertEqual(200, resp.status)
self.assertNotEmpty(body['services'])

12
tox.ini
View File

@ -1,9 +1,11 @@
[tox]
minversion = 2.0
envlist = py36,py35,py27,pypy,pep8
minversion = 3.1.1
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
setenv =
@ -16,15 +18,12 @@ deps = -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
[testenv:pep8]
basepython = python3
commands = flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source mistral-tempest-plugin --parallel-mode
@ -35,7 +34,6 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3
whitelist_externals =
rm
commands =
@ -43,7 +41,6 @@ commands =
sphinx-build -W -d doc/build/doctrees --keep-going -b html doc/source/ doc/build/html
[testenv:releasenotes]
basepython = python3
whitelist_externals =
rm
commands =
@ -51,7 +48,6 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]