diff --git a/tobiko/tests/sanity/__init__.py b/tobiko/tests/sanity/__init__.py new file mode 100644 index 000000000..8459cfe0c --- /dev/null +++ b/tobiko/tests/sanity/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) 2021 Red Hat, Inc. +# +# All Rights Reserved. +# +# 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. diff --git a/tobiko/tests/sanity/ha/__init__.py b/tobiko/tests/sanity/ha/__init__.py new file mode 100644 index 000000000..8459cfe0c --- /dev/null +++ b/tobiko/tests/sanity/ha/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) 2021 Red Hat, Inc. +# +# All Rights Reserved. +# +# 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. diff --git a/tobiko/tests/sanity/ha/test_something.py b/tobiko/tests/sanity/ha/test_something.py new file mode 100644 index 000000000..cfcd6a7e1 --- /dev/null +++ b/tobiko/tests/sanity/ha/test_something.py @@ -0,0 +1,24 @@ +# Copyright (c) 2021 Red Hat, Inc. +# +# All Rights Reserved. +# +# 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 __future__ import absolute_import + +import testtools + + +class DummySanityTest(testtools.TestCase): + + def test_something(self): + pass diff --git a/tox.ini b/tox.ini index 95d9a6d74..0e240b00d 100644 --- a/tox.ini +++ b/tox.ini @@ -224,6 +224,17 @@ setenv = OS_TEST_PATH = {toxinidir}/tobiko/tests/scenario/nova +[testenv:sanity] + +basepython = {[integration]basepython} +envdir = {[integration]envdir} +passenv = {[integration]passenv} +setenv = + {[integration]setenv} + OS_TEST_PATH = {toxinidir}/tobiko/tests/sanity + PYTEST_TIMEOUT = 1800 + + [testenv:faults] basepython = {[integration]basepython}