diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6197c5a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,22 @@ +[metadata] +name=whitebox_neutron_tempest_plugin +summary = Tempest plugin with TripleO oriented whitebox tests for Neutron Project +author = OpenStack +author_email = openstack-discuss@lists.openstack.org +python_requires = >=3.6 +classifier = + Environment :: OpenStack + Intended Audience :: Information Technology + Intended Audience :: System Administrators + License :: OSI Approved :: Apache Software License + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + +[entry_points] +tempest.test_plugins = + whitebox-neutron-tempest-plugin = whitebox_neutron_tempest_plugin.plugin:WhiteboxNeutronTempestPlugin diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..566d844 --- /dev/null +++ b/setup.py @@ -0,0 +1,29 @@ +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# 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. + +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import setuptools + +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass + +setuptools.setup( + setup_requires=['pbr>=2.0.0'], + pbr=True) diff --git a/whitebox_neutron_tempest_plugin/__init__.py b/whitebox_neutron_tempest_plugin/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/whitebox_neutron_tempest_plugin/plugin.py b/whitebox_neutron_tempest_plugin/plugin.py new file mode 100644 index 0000000..6db8860 --- /dev/null +++ b/whitebox_neutron_tempest_plugin/plugin.py @@ -0,0 +1,35 @@ +# Copyright 2022 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. + + +import os + +from tempest.test_discover import plugins + + +class WhiteboxNeutronTempestPlugin(plugins.TempestPlugin): + + def load_tests(self): + base_path = os.path.split(os.path.dirname( + os.path.abspath(__file__)))[0] + test_dir = "whitebox_neutron_tempest_plugin/tests" + full_test_dir = os.path.join(base_path, test_dir) + return full_test_dir, base_path + + def register_opts(self): + pass + + def get_opt_lists(self): + pass diff --git a/whitebox_neutron_tempest_plugin/tests/__init__.py b/whitebox_neutron_tempest_plugin/tests/__init__.py new file mode 100644 index 0000000..e69de29