Refactored zaqar tempest plugin directory structure
* switch from zaqar.tests.tempest_plugin to zaqar_tempest_plugin * Cleaned up README.rst and setup.cfg * Use zaqar_tempest_plugin as a tempest plugin package * Fixed git-review * Fixed tox.ini Implements: blueprint zaqar-tempest-plugin Change-Id: I78d657bcdec4d5c095af8eb1dfb93b5e3dfa0ff5
This commit is contained in:
parent
db9d4c259b
commit
30219666aa
@ -1,4 +1,4 @@
|
|||||||
[gerrit]
|
[gerrit]
|
||||||
host=review.openstack.org
|
host=review.openstack.org
|
||||||
port=29418
|
port=29418
|
||||||
project=openstack/openstack.git
|
project=openstack/zaqar-tempest-plugin.git
|
||||||
|
23
README.rst
23
README.rst
@ -1,19 +1,12 @@
|
|||||||
===============================
|
====================
|
||||||
openstack
|
Zaqar Tempest Plugin
|
||||||
===============================
|
====================
|
||||||
|
|
||||||
Tempest plugin zaqar_tempest_plugin
|
Tempest plugin for Zaqar project.
|
||||||
|
|
||||||
Please fill here a long description which must be at least 3 lines wrapped on
|
It contains the tempest plugin for the functional testing of Zaqar Project.
|
||||||
80 cols, so that distribution package maintainers can use it in their packages.
|
|
||||||
Note that this is a hard requirement.
|
|
||||||
|
|
||||||
* Free software: Apache license
|
* Free software: Apache license
|
||||||
* Documentation: http://docs.openstack.org/developer/openstack
|
* Documentation: http://docs.openstack.org/developer/zaqar
|
||||||
* Source: http://git.openstack.org/cgit/openstack/openstack
|
* Source: http://git.openstack.org/cgit/openstack/zaqar-tempest-plugin
|
||||||
* Bugs: http://bugs.launchpad.net/zaqar_tempest_plugin
|
* Bugs: http://bugs.launchpad.net/zaqar
|
||||||
|
|
||||||
Features
|
|
||||||
--------
|
|
||||||
|
|
||||||
* TODO
|
|
||||||
|
18
setup.cfg
18
setup.cfg
@ -1,5 +1,5 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = openstack
|
name = zaqar_tempest_plugin
|
||||||
summary = Tempest plugin zaqar_tempest_plugin
|
summary = Tempest plugin zaqar_tempest_plugin
|
||||||
description-file =
|
description-file =
|
||||||
README.rst
|
README.rst
|
||||||
@ -21,7 +21,7 @@ classifier =
|
|||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
zaqar
|
zaqar_tempest_plugin
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
all-files = 1
|
all-files = 1
|
||||||
@ -33,19 +33,19 @@ build-dir = doc/build
|
|||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
|
||||||
[compile_catalog]
|
[compile_catalog]
|
||||||
directory = zaqar/locale
|
directory = zaqar_tempest_plugin/locale
|
||||||
domain = zaqar
|
domain = zaqar_tempest_plugin
|
||||||
|
|
||||||
[update_catalog]
|
[update_catalog]
|
||||||
domain = zaqar
|
domain = zaqar_tempest_plugin
|
||||||
output_dir = zaqar/locale
|
output_dir = zaqar_tempest_plugin/locale
|
||||||
input_file = zaqar/locale/zaqar_tempest_plugin.pot
|
input_file = zaqar_tempest_plugin/locale/zaqar_tempest_plugin.pot
|
||||||
|
|
||||||
[extract_messages]
|
[extract_messages]
|
||||||
keywords = _ gettext ngettext l_ lazy_gettext
|
keywords = _ gettext ngettext l_ lazy_gettext
|
||||||
mapping_file = babel.cfg
|
mapping_file = babel.cfg
|
||||||
output_file = zaqar/locale/zaqar_tempest_plugin.pot
|
output_file = zaqar_tempest_plugin/locale/zaqar_tempest_plugin.pot
|
||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
tempest.test_plugins =
|
tempest.test_plugins =
|
||||||
zaqar_tests = zaqar.tests.tempest_plugin.plugin:ZaqarTempestPlugin
|
zaqar_tests = zaqar_tempest_plugin.plugin:ZaqarTempestPlugin
|
||||||
|
5
tox.ini
5
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 2.0
|
||||||
envlist = py34,py27,pypy,pep8
|
envlist = py35,py27,pypy,pep8
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -9,7 +9,8 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
|
|||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
PYTHONWARNINGS=default::DeprecationWarning
|
PYTHONWARNINGS=default::DeprecationWarning
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
@ -18,17 +18,14 @@ import os
|
|||||||
|
|
||||||
from tempest.test_discover import plugins
|
from tempest.test_discover import plugins
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin import config as zaqar_config
|
from zaqar_tempest_plugin import config as zaqar_config
|
||||||
|
|
||||||
|
|
||||||
class ZaqarTempestPlugin(plugins.TempestPlugin):
|
class ZaqarTempestPlugin(plugins.TempestPlugin):
|
||||||
def load_tests(self):
|
def load_tests(self):
|
||||||
base_path = os.path.split(os.path.dirname(
|
base_path = os.path.split(os.path.dirname(
|
||||||
os.path.abspath(__file__)))[0]
|
os.path.abspath(__file__)))[0]
|
||||||
# Note: base_path should be set to the top directory
|
test_dir = "zaqar_tempest_plugin/tests"
|
||||||
# of zaqar.
|
|
||||||
base_path += '/../..'
|
|
||||||
test_dir = "zaqar/tests/tempest_plugin/tests"
|
|
||||||
full_test_dir = os.path.join(base_path, test_dir)
|
full_test_dir = os.path.join(base_path, test_dir)
|
||||||
return full_test_dir, base_path
|
return full_test_dir, base_path
|
||||||
|
|
@ -19,11 +19,11 @@ from oslo_serialization import jsonutils as json
|
|||||||
from six.moves.urllib import parse as urllib
|
from six.moves.urllib import parse as urllib
|
||||||
from tempest.lib.common import rest_client
|
from tempest.lib.common import rest_client
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.api_schema.response.v1 \
|
from zaqar_tempest_plugin.api_schema.response.v1 \
|
||||||
import queues as v1schema
|
import queues as v1schema
|
||||||
from zaqar.tests.tempest_plugin.api_schema.response.v1_1 \
|
from zaqar_tempest_plugin.api_schema.response.v1_1 \
|
||||||
import queues as v11schema
|
import queues as v11schema
|
||||||
from zaqar.tests.tempest_plugin.api_schema.response.v2 \
|
from zaqar_tempest_plugin.api_schema.response.v2 \
|
||||||
import queues as v2schema
|
import queues as v2schema
|
||||||
|
|
||||||
|
|
@ -17,7 +17,7 @@ from tempest import config
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest import test
|
from tempest import test
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.services.messaging.json import messaging_client
|
from zaqar_tempest_plugin.services.messaging.json import messaging_client
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -18,7 +18,7 @@ from tempest import config
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
@ -17,7 +17,7 @@ from tempest import config
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -20,7 +20,7 @@ from tempest.lib import decorators
|
|||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
class TestQueues(base.BaseV1MessagingTest):
|
class TestQueues(base.BaseV1MessagingTest):
|
@ -18,7 +18,7 @@ from tempest import config
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
@ -18,7 +18,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -18,7 +18,7 @@ from six import moves
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
class TestQueues(base.BaseV11MessagingTest):
|
class TestQueues(base.BaseV11MessagingTest):
|
@ -20,7 +20,7 @@ from tempest import config
|
|||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
@ -20,7 +20,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -18,7 +18,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -22,7 +22,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -20,7 +20,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
@ -18,7 +18,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
class QueueNegativeTestJSON(base.BaseV2MessagingTest):
|
class QueueNegativeTestJSON(base.BaseV2MessagingTest):
|
@ -20,7 +20,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib.common.utils import test_utils
|
from tempest.lib.common.utils import test_utils
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
|
|
||||||
class TestSubscriptions(base.BaseV2MessagingTest):
|
class TestSubscriptions(base.BaseV2MessagingTest):
|
@ -20,7 +20,7 @@ from tempest.lib.common.utils import data_utils
|
|||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest.lib import exceptions as lib_exc
|
from tempest.lib import exceptions as lib_exc
|
||||||
|
|
||||||
from zaqar.tests.tempest_plugin.tests import base
|
from zaqar_tempest_plugin.tests import base
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user