Seperate unit and fullstack testing in dragonflow

Dragonflow tox command now only runs tests
inside /dragonflow/tests/unit .
This patch also introduce another test job that will
be used for gate tempest testing called 'fullstack'.
You can debug tests written there using
'tox -e fullstack'
Tests in this lib assume a working devstack installation
with dragonflow exists.

Change-Id: I3089f9caab9062fee7f60bbcd5c17c72071c62ac
This commit is contained in:
Gal Sagie 2015-12-08 08:40:54 +02:00
parent 91b6c5041e
commit cf052dada0
5 changed files with 24 additions and 4 deletions

View File

@ -1,7 +1,4 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./dragonflow/tests/unit} $LISTOPT $IDOPTION | cat
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

View File

@ -0,0 +1,19 @@
# 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 oslotest import base
class TestPlugink(base.BaseTestCase):
def test_something(self):
pass

View File

@ -16,6 +16,10 @@ whitelist_externals = sh
commands =
sh tools/pretty_tox.sh '{posargs}'
[testenv:fullstack]
basepython = python2.7
setenv = OS_TEST_PATH=./dragonflow/tests/fullstack
[testenv:pep8]
commands = flake8