Separate unit tests from fullstack tests
With this patch the tox command only runs the unit tests at the ./kuryr/tests/unit lib. Another test job is added for fullstack which is meant to be run only with a working devstack setup and will run at the gate with tempest. You can run the tests there for debugging with 'tox -e fullstack' implements blueprint: fullstack-testing Change-Id: Ia646b3f1a2b25f0a7fd4d01ed72ea1b51bb3b21c
This commit is contained in:
parent
22653141d8
commit
0e45ee44f5
@ -1,8 +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} \
|
||||
OS_LOG_CAPTURE=1 \
|
||||
${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:-./kuryr/tests/unit} $LISTOPT $IDOPTION | cat
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
||||
|
0
kuryr/tests/fullstack/__init__.py
Normal file
0
kuryr/tests/fullstack/__init__.py
Normal file
19
kuryr/tests/fullstack/test_network.py
Normal file
19
kuryr/tests/fullstack/test_network.py
Normal 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 TestNetwork(base.BaseTestCase):
|
||||
|
||||
def test_something(self):
|
||||
pass
|
0
kuryr/tests/unit/__init__.py
Normal file
0
kuryr/tests/unit/__init__.py
Normal file
@ -17,14 +17,14 @@ from neutronclient.common import exceptions as n_exceptions
|
||||
from kuryr.common import config
|
||||
from kuryr.common import exceptions
|
||||
from kuryr import controllers
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
|
||||
|
||||
class ConfigurationTest(base.TestKuryrBase):
|
||||
|
||||
def test_defaults(self):
|
||||
basepath = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'../../'))
|
||||
'../../../'))
|
||||
self.assertEqual(basepath,
|
||||
config.CONF.pybasedir)
|
||||
self.assertEqual(basepath + '/usr/libexec/kuryr',
|
@ -22,7 +22,7 @@ from werkzeug import exceptions as w_exceptions
|
||||
from kuryr import app
|
||||
from kuryr import binding
|
||||
from kuryr.common import exceptions
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
from kuryr import utils
|
||||
|
||||
|
@ -20,7 +20,7 @@ from oslo_serialization import jsonutils
|
||||
from kuryr import app
|
||||
from kuryr.common import config
|
||||
from kuryr.common import constants
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
from kuryr import utils
|
||||
|
||||
|
@ -20,7 +20,7 @@ from oslo_serialization import jsonutils
|
||||
|
||||
from kuryr import app
|
||||
from kuryr.common import constants
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
from kuryr import utils
|
||||
|
||||
|
@ -19,7 +19,7 @@ from neutronclient.common import exceptions
|
||||
from oslo_serialization import jsonutils
|
||||
|
||||
from kuryr import app
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
|
||||
|
||||
class TestKuryrNetworkCreateFailures(base.TestKuryrFailures):
|
@ -22,7 +22,7 @@ from werkzeug import exceptions as w_exceptions
|
||||
from kuryr import app
|
||||
from kuryr import binding
|
||||
from kuryr.common import exceptions
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
from kuryr import utils
|
||||
|
||||
|
@ -15,7 +15,7 @@ import random
|
||||
|
||||
import ddt
|
||||
|
||||
from kuryr.tests import base
|
||||
from kuryr.tests.unit import base
|
||||
from kuryr import utils
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user