Commit Graph

25 Commits

Author SHA1 Message Date
Elod Illes f2e985e8fd Add test documentation for docs tox target
Enable sphinx to generate documentation from docstrings by running
'tox -e docs'.

Change-Id: I5996e5f07493f69f14172b4bb0535852e89d5456
2023-11-08 15:52:37 +01:00
Rodolfo Alonso Hernandez d179684d12 Add the requirements.txt file to the tox deps
The requirements.txt file was missing in the tox dependencies. That
will enforce the requirements installation using the requirements
limits.

Change-Id: I777c1ad808e0ef8622f199c6839e73a2f535434d
Closes-Bug: #2002947
2023-01-16 10:40:43 +01:00
Rodolfo Alonso Hernandez 0302a8e36f Fix tox.ini with tox4
Change-Id: I430d9e1852e54be6c75e05b82ed245cafac08a57
2022-12-24 03:52:58 +01:00
wu.shiming d32821b1d2 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I7b4606fd49ea7919cff56d819a2a5236ea3b1e73
2021-07-06 16:10:57 +08:00
elajkat 2903040070 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver for the release team.
Removed specific doc requirements from test-requirements.txt

Change-Id: Ia88848fd9c4ce35d396bc186ae3894a1d5865db9
2021-01-05 12:52:45 +01:00
wu.shiming d783a82901 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/

Change-Id: I67b55e739b5c33f7d16f4750ff557d2d9218ea21
2020-11-17 14:04:29 +08:00
Bernard Cafarelli c3bec86663
Update hacking for Focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

This bumps hacking to 3.2.0 in order to work with focal, disabling W504
to align with neutron (W503 is enabled in this version)

Story: #2007865
Task: #40199

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: Ic7a6da941172aae6dc504eb377c3e94de4805a89
2020-09-10 14:02:37 +02:00
Andreas Jaeger 5719f992d1 Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3
* Remove unneeded doc and translation sections from setup.cfg

Change-Id: Ie6cae5b1e7b600a2b2396f403a8fa5a90e5f3463
2020-04-19 09:53:19 +02:00
Ghanshyam 42aac38cc8 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

neutron-tempest-plugin is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/705184/

Change-Id: I9daafef0847a9a9baa45382b87da71fe8d1fffd0
2020-02-26 15:35:20 +00:00
pengyuesheng 778cacc0ca Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I357b434a30128b23c8e80bfe4ec4fbd4655d36cc
2019-09-20 17:50:43 +08:00
Brian Haley d11f4ec31a Start enforcing E125 flake8 directive
Removed E125 (continuation line does not distinguish itself
from next logical line) from the ignore list and fixed all
the indentation issues.  Recently done in neutron tree.

Change-Id: Id002c874af7197823df4577035803528296dd4b7
2019-08-13 12:09:57 -04:00
Brian Haley d4fa6dc0f6 Update flake8 style enforcement
Added enforcement of H204 and H205 extensions to match
neutron repo, there were no few failures.

Change-Id: I9809f9f93e5c9dc4b654e2a50b35ed8cf3428987
2019-06-27 11:31:55 -04:00
caoyuan d49cf7ab5c Replace git.openstack.org URLs with opendev.org URLs
Change-Id: If60f0bea94b5cf1009466c6371a4c8ee06e9c728
2019-04-26 17:31:20 +08:00
Doug Wiegley 6b03ab1bb4
Fix neutron-tempest-plugin tox pep8 setup
The plugin pep8 setup was failing due to trying to use upper-constraints
with the pip install -e ., with a version constraint error. Grab
the setup commands from the neutron tox.ini to fix this.

Change-Id: Ic7b6e80213aafac6df7b0a8b044fe45f60870483
2019-03-01 10:23:57 -07:00
Brian Haley aee61ac85e Fix flake8 E405 errors
Fix E405 error and start enforcing it.

Trivialfix

Change-Id: I6a55102d03bbcdd5c0c3a5cc75aea0ca37578117
2018-10-09 20:00:27 -04:00
Brian Haley 8aaa73ff53 Fix flake8 E265 errors
Fix E265 error and start enforcing it.

Trivialfix

Change-Id: I947599c95c92376657eddaace190b728b8987a57
2018-10-09 19:55:44 -04:00
Brian Haley ae328b923a Fix flake8 H404 errors
Fix H404 error and start enforcing it.

Trivialfix

Change-Id: I0c062733660031faf43838798a697daf6674ef14
2018-10-09 19:51:54 -04:00
Tuan Do Anh dbd7d3f686 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because of that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I38db902c553d25f528b3ba9a80e185705f327b24
2018-07-16 07:47:23 +00:00
Slawek Kaplonski aa6baae9e0 Switch to stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I856024f8b66f5edaf40ae7b798fce21c43d021e7
2018-05-29 14:34:42 -04:00
Brian Haley 33ef4607ff Fix some pep8 errors, update tox.ini
Fixed E731, W503 and I201 pep8 errors.

Added flake8-import-order to test-requirements.txt to avoid
an "unknown option 'import-order-style' ignored" warning.

Removed {posargs} from flake8 invocation so it can be called
such as 'tox -e pep8 HEAD~1' in order to only run on files
changed in the top commit.

Removed py34, py27 and pypy from the tox.ini envlist since
there are no unit tests, and tox reports it skipped all tests.

Change-Id: I574cafe074befa59aaee44b092b011e27f5f4211
2018-05-02 11:51:17 -04:00
Brian Haley 6767cecb79 Fix some pep8 warnings
Fix some pep8 warnings found running under python3.5.

Also removed some ignore directives that were carried
over from the neutron tree, and exclude some additional
directories.

Trivialfix

Change-Id: I96f53d3d142352f0d2c7cc641391019b476b0724
2018-04-10 15:30:23 -04:00
Manjeet Singh Bhatia 3448e0b7d7 Update tox debug env
Having no path in debug environment assumes the test path to be
neutron_tempest_plugin/tests which doesn't exists, so tox -e debug
debug fails complaining that neutron_tempest_plugin/tests isn't
importable. This patch fixes the test path for debug environment.

Change-Id: Iac685d4d4fcee357c40141acc79b2aac28bd535b
2018-02-14 10:43:10 -08:00
Dongcan Ye 6381395cc0 Add duplicated idempotent_ids checks
Add a shell script for duplicated idempotent_ids checks,
this is a copy from Neutron repo.

Change-Id: I0a00f9830a7d29812bcccc257a1bea8a6477d9e8
2017-11-18 14:22:25 +08:00
Chandan Kumar 667d3d3260 Refactored Neutron tempest plugin directory structure
* switch from neutron.tests.tempest to neutron_tempest_plugin
* Cleaned up README.rst and setup.cfg
* Use neutron_tempest_plugin as a tempest plugin package
* Fixed gitreview
* Keeping flake8 Ignores in tox.ini as tempest plugin is
  imported from neutron codebase.

Change-Id: I42d389836e72813fdeebc797a577f4a8ac2ee603
2017-11-13 09:19:11 +05:30
Chandan Kumar 5e6198734b Apply cookiecutter to newly split project
This tempest plugin is being split out of the main neutron project in
accordance with Queens goal "Split Tempest Plugins into Separate
Repos/Projects"[1]. This patch applies the standard boilerplate files
for OpenStack projects so that it can stand on its own.

[1] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html
2017-09-07 22:23:55 +05:30