summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add new basic auth middlewarexena-em4.4.0ramishra2021-08-034-0/+390
| | | | | | | | | | | | | | | | | This adds a middleware that can be used as an alternative to noauth in standalone environments. This middleware uses a password file which supports the Apache htpasswd syntax. This file is read for every request, so no service restart is required when changes are made. The only password digest supported is bcrypt, and the ``bcrypt`` python library is used for password checks since it supports ``$2y$`` prefixed bcrypt passwords as generated by the Apache htpasswd utility. Adapted from I874783b8ece0eedf27a94dfed5163d0c82f8b9de. Change-Id: I3d80d86afd063af9fa2f411885dbd0dc65a7bbc7
* Merge "setup.cfg: Replace dashes with underscores"4.3.0Zuul2021-05-261-4/+4
|\
| * setup.cfg: Replace dashes with underscoresYuehuiLei2021-05-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: Ic9487a052e549a91fcf09b94e5fae525548f8d68
* | Upgrade the pre-commit-hooks versionwu.shiming2021-05-181-1/+1
|/ | | | | | [1] https://github.com/pre-commit/pre-commit-hooks/commit/9136088a246768144165fcc3ecc3d31bb686920a Change-Id: If753ad2d234798bb94d184b4390de6cc16c2e051
* Merge "Warning about /healthcheck"Zuul2021-04-211-0/+6
|\
| * Warning about /healthcheckThomas Goirand2021-04-211-0/+6
| | | | | | | | | | | | | | Add a warning in the doc to explain '/healthcheck' doesn't provide any sort of check if the API actually works. Change-Id: Ib4a065f31140f885d3de53e2423e7b4a6635f345
* | Merge "Use py3 as the default runtime for tox"Zuul2021-04-161-1/+1
|\ \
| * | Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: Ife0711d33bba3fcde65a98be57da462cf8b06625
* | | Merge "ignore reno generated artifacts"Zuul2021-04-161-0/+2
|\ \ \
| * | | ignore reno generated artifactsHervé Beraud2020-09-221-0/+2
| | |/ | |/| | | | | | | Change-Id: Ic85d9ddc9c1272c81143eeef62fd0ce5a1e6909f
* | | Merge "Add Python3 xena unit tests"Zuul2021-04-161-1/+1
|\ \ \
| * | | Add Python3 xena unit testsOpenStack Release Bot2021-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for xena. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: If0a6bed65fdbed4d44c265265fe7186a9bacb5b0
* | | | Merge "remove unicode from code"Zuul2021-04-163-7/+7
|\ \ \ \
| * | | | remove unicode from codexuanyandong2021-01-033-7/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: I5efbe90ec103fbf25412b2dc2cc6d85ccbb90f83
* | | | | Merge "Update master for stable/wallaby"Zuul2021-04-152-0/+7
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Update master for stable/wallabyOpenStack Release Bot2021-04-152-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/wallaby. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/wallaby. Sem-Ver: feature Change-Id: I29d90fbf1a417053b1a50b0f70a6f61804346eb1
* | | | | Merge "Fix requirements issues"Zuul2021-04-150-0/+0
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix requirements issuesDaniel Bengtsson2021-04-124-52/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the merge of 2 current fixes that need to be solved in the same time. Indeed each issue lock our gates independently. Dropping lower constraints testing We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Move flake8 as a pre-commit local target. The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach[1]. The flake8 version to install will be determined by hacking and requirements[2] will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Co-authored-by: Hervé Beraud <hberaud@redhat.com> (cherry picked from commit 5c806d492b22f25b79e6598b2fe3847ba6963220) Change-Id: Ic94f064f073755bee09495ced4f7627484bf8337
* | | | Fix requirements issuesDaniel Bengtsson2021-03-254-52/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the merge of 2 current fixes that need to be solved in the same time. Indeed each issue lock our gates independently. Dropping lower constraints testing We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Move flake8 as a pre-commit local target. The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach[1]. The flake8 version to install will be determined by hacking and requirements[2] will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Co-authored-by: Hervé Beraud <hberaud@redhat.com> Change-Id: I2f41e05df1cc978821bf7cb6d9a95bf543c7fba3
* | | Use TOX_CONSTRAINTS_FILE4.2.0Hervé Beraud2020-11-041-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated This allows to use upper-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. [1] https://review.opendev.org/#/c/722814/ [2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: I086b5173b45ef5f4ce6691ad33af7903b0fd78e0
* | Merge "Adding pre-commit"Zuul2020-10-055-5/+43
|\ \ | |/ |/|
| * Adding pre-commitHervé Beraud2020-09-225-5/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: Ifc5ee35d399c628604ec1644eb447936803c45f5 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* | Add Python3 wallaby unit testsOpenStack Release Bot2020-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I84116991e71e5d01d28fee6ddc5d8014a6d212a2
* | Update master for stable/victoriaOpenStack Release Bot2020-09-112-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: I4a6c70c8fad5c120b4382fd34e4b281012e6f3a0 Sem-Ver: feature
* | Bump bandit versionvictoria-em4.1.1Moisés Guimarães de Medeiros2020-07-241-1/+1
|/ | | | | | | | This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393 Change-Id: I0b8b5a8899b22744cfd65b5e889a6283aec9ddfe Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* Merge "Align contributing doc with oslo's policy"Zuul2020-06-301-0/+5
|\
| * Align contributing doc with oslo's policyHervé Beraud2020-05-041-0/+5
| | | | | | | | | | | | | | | | Related to: - https://review.opendev.org/#/c/723044/ - https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html Change-Id: I80edcba7366e4c3b43b440222e6e2c811f55e442
* | Fix pygments stylemelissaml2020-06-042-2/+2
| | | | | | | | | | | | | | | | New theme of docs respects pygments_style. more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Ieaa8a37dbd07ec0312fee1cefd85973140fd9503
* | Stop to use the __future__ module.4.1.0Hervé Beraud2020-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I4bc9301f5045848545182ef98e47f343a95904c3
* | Merge "Remove translation sections from setup.cfg"Zuul2020-05-282-15/+0
|\ \
| * | Remove translation sections from setup.cfgmelissaml2020-05-152-15/+0
| |/ | | | | | | | | | | | | These translation sections are not needed anymore, Babel can generate translation files without them. Change-Id: I39beb972383622d4c4a3b17cb9c3d30674bca5bc
* | Merge "Add release notes links to doc index"Zuul2020-05-282-5/+2
|\ \
| * | Add release notes links to doc indexHervé Beraud2020-04-162-5/+2
| | | | | | | | | | | | Change-Id: I98b08205c9c22430be019d4e30ec3e788087b940
* | | Merge "Fix hacking min version to 3.0.1"Zuul2020-05-261-1/+1
|\ \ \
| * | | Fix hacking min version to 3.0.1zhangboye2020-05-221-1/+1
| | | | | | | | | | | | | | | | Change-Id: I95cb5bd989ec10e6bcc8f7f2aea9aa81c3e79dd6
* | | | Merge "Remove the unused coding style modules"Zuul2020-05-251-5/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Remove the unused coding style modulesjacky062020-05-151-5/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Python modules related to coding style checks (listed in blacklist.txt in openstack/requirements repo) are dropped from lower-constraints.txt as they are not actually used in tests (other than pep8). more info: https://github.com/openstack/requirements/blob/master/blacklist.txt Change-Id: I65f45f9e8788d3a7df4078c3f1cc6eaf0069c140
* | | Merge "Switch to newer openstackdocstheme and reno versions"Zuul2020-05-193-9/+9
|\ \ \
| * | | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-05-183-9/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. Depends-On: https://review.opendev.org/728938 Change-Id: Idc8d870e5c12e18efd07427eb1772d0f4e65d262
* | | Merge "Drop use of six"Zuul2020-05-188-29/+18
|\ \ \ | |/ / |/| |
| * | Drop use of sixSean McGinnis2020-05-068-29/+18
| | | | | | | | | | | | | | | Change-Id: I53005107bf4c05809182dc3865c5dc72c77b1054 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | | Merge "Add py38 package metadata"Zuul2020-04-271-0/+1
|\ \ \
| * | | Add py38 package metadataSean McGinnis2020-04-241-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Now that we are running the Victoria tests that include a voting py38, we can now add the Python 3.8 metadata to the package information to reflect that support. Change-Id: I568967e4ae45a47bb625d9ed8b172e56d58d78ac Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | | Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 is now our highest level supported python runtime. This updates the default tox target environments to swap out py37 for py38 to make sure local development testing is covering this version. This does not impact zuul jobs in any way, nor prevent local tests against py37. It just changes the default if none is explicitly provided. Change-Id: I436529f8db217e9ad899ece05cc3af291198a081 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Merge "Add Python3 victoria unit tests"Zuul2020-04-141-1/+1
|\ \
| * | Add Python3 victoria unit testsOpenStack Release Bot2020-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for victoria. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I254525a3c048e69f3b0d3f0523fc9177c671ca06
* | | Merge "Update master for stable/ussuri"Zuul2020-04-142-0/+7
|\ \ \ | |/ /
| * | Update master for stable/ussuriOpenStack Release Bot2020-04-142-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: I2f4be7d3e6d46a23eedd5444fa7458cf410780d6 Sem-Ver: feature
* | | Cleanup py27 supportAndreas Jaeger2020-04-135-13/+6
|/ / | | | | | | | | | | | | | | | | | | | | This repo is now testing only with Python 3, so let's make a few cleanups: - Remove obsolete sections from setup.cfg - Update classifiers - Use newer openstackdocstheme version - Switch to hacking 3.0, fix problems found Change-Id: I539b00204279c7645ef4a3f804f64a1e7af30f05
* | Use unittest.mock instead of third party mockussuri-em4.0.2Sean McGinnis2020-03-316-6/+6
|/ | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I15fc9e39d69f817fb5db8ce7111d0397a25c94b0 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>