Commit Graph

107 Commits

Author SHA1 Message Date
Zuul e49893e598 Merge "External OAuth2.0 Authorization Server Support" 2023-09-13 18:32:57 +00:00
sunyonggen de15a610e1 External OAuth2.0 Authorization Server Support
The external_oauth2_token filter has been added for accepting or denying
incoming requests containing OAuth 2.0 access tokens that are obtained
from an External Authentication Server.

Depends-On: https://review.opendev.org/c/openstack/keystoneauth/+/860614
Implements: blueprint enhance-oauth2-interoperability
Change-Id: I529c5b0c89933395b126e86651ef09368dd7e6b4
2023-08-30 13:30:32 +00:00
Stephen Finucane 0f48ff3e8d Bump hacking to 6.0.x
A note about dependency ordering is removed from the requirements file:
this is no longer true with the dependency resolver introduced with pip
20.3.

Change-Id: I615be3453db37588edf98a46ce484efc5e051f11
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:30 +01:00
Dave Wilde dc0b796495 Fix pep8 gate
This updates the test-requirements to more recent flake8-docstrings
and pep8 versions.  I also added some more ignores that would take
significant work to update and fixed some minor linting issues.

Change-Id: Ia416658b8a4bfb8f43f8df170053abb3ae958d44
2022-12-09 10:28:06 -06:00
Zuul 3659bdad86 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-10 17:36:03 +00:00
Ghanshyam Mann 5ca2846d25 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40190

Closes-Bug: #1886298

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

Change-Id: I602c3ce7c94a039e3fd550cbb47a8e8f095aacea
2020-09-09 00:54:13 +00:00
Sean McGinnis 215217ea8b
Use unittest.mock instead of third party mock
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: Idc319f3f8a3ddd57cba91e4cefc66dbb18d5cc22
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:53:42 -05:00
Andreas Jaeger f32fcc6623 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Blacklist:
W504 line break after binary operator
W503 line break before binary operator

Fix other problems found

Change-Id: I2fb257a4f42b499df3702f3e8f3c99ecb28557d6
2020-03-30 10:32:07 +00:00
Gage Hugo e93d078958 Blacklist bandit 1.6.0 & cap sphinx for 2.7
The latest version of bandit has broken directory exclusion,
so multiple test files are getting flagged. This change
blocks version 1.6.0 while this issue is fixed for 1.6.1.

This change also caps sphinx at <2.0.0 for python version 2.7.

Change-Id: I5d32d835886360522af21f735c74b2f85036f7f1
2019-05-20 11:26:34 -05:00
Colleen Murphy fa0500e4a2 Bump memcached minimum version
python-memcached==1.56 causes the unit tests to fail under python3.7, so
bump to the latest allowed by upper-constraints.

Change-Id: I22a596afcb6b7477f6753ea9896f7ac025be3a85
2019-04-17 14:56:56 -07:00
Lance Bragstad 9a6875d479 Remove tox_install.sh
As part of removing reliance on the old and deprecated zuul-cloner, we
need to shift constraints declaration to the deps line. This means we
unfortunately have to duplicate the extras declarations into
test-requirements - because otherwise the contraints for
keystonemiddleware conflicts with the installation of itself.

Change-Id: I8dbb31d1c1fda6df386f456dcf1d8bbed6d168ce
2018-09-07 13:26:57 +10:00
Zuul c5171adb2b Merge "Follow the new PTI for document build" 2018-06-06 22:13:59 +00:00
melissaml a451b28c43 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: Ia0a27229f09467980ff4af014001febb017bb36d
2018-06-06 15:22:22 +00:00
Colleen Murphy e734468fdf Switch coverage tox env to stestr
We already switched the unit tests to follow the updated PTI
guidelines[1] but neglected to switch the coverage environment. Do that
now.

[1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running

Change-Id: Ie153516196f18c030ea58e76a0eac15c86169c6b
2018-05-31 08:02:35 -07:00
OpenStack Proposal Bot fadab2fb2b Updated from global requirements
Change-Id: I71330bf5adcdd55a1a782189a29886f9189dddd0
2018-03-23 01:02:54 +00:00
OpenStack Proposal Bot e15e2d040b Updated from global requirements
Change-Id: Ia31fc31bd33e85622a15bc383cf1bb7af753de7e
2018-03-17 08:35:04 +00:00
OpenStack Proposal Bot 8b7ac8e3e4 Updated from global requirements
Change-Id: I6effa91e130eaf7ebdf30dd36e1c486e2f36df07
2018-01-16 04:09:47 +00:00
Colleen Murphy ba9c1a3bec Fix docs builds
With the new way of generating docs in the gate[1] our autodoc builds
are slightly broken. Put the required dependencies for doc building and
autodoc generation into doc/requirements.txt. We can also now remove
docs-related requirements from test-requirements.txt.

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ifbd16fe364bb216821125c70bb7d3ab0ac1f10a3
2017-12-20 00:39:46 +01:00
OpenStack Proposal Bot 579f5cee17 Updated from global requirements
Change-Id: I193865cda77ca1e22495b01ea602ebb28a912a8a
2017-11-16 11:07:11 +00:00
OpenStack Proposal Bot 9df878e7db Updated from global requirements
Change-Id: I8f3fb853bf358db8fe01427d57b0823f5e3d82c0
2017-10-15 17:00:19 +00:00
Jenkins cd598a4f83 Merge "Add doc8 rule and check doc/source files" 2017-08-27 17:48:16 +00:00
liuxiaoyang 31be1c5ad3 Add doc8 rule and check doc/source files
doc8 is a linter for documents and used in openstack-manuals.
It is better to enforce document linters for simple checking.
This change is to add doc8 in tox file and fix line too long
in some files.

The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
  - RST exception: line with no whitespace except in the beginning
  - RST exception: lines with http or https urls
  - RST exception: literal blocks
  - RST exception: rst target directives
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005

Change-Id: I01b11619b42eebf13cb17e1b4a2e8464a8ccc797
2017-08-26 20:18:57 +00:00
OpenStack Proposal Bot b2d6502c26 Updated from global requirements
Change-Id: I83f38668dcc15e5e884c8928047537c8b1a19bd3
2017-08-24 05:50:50 +00:00
OpenStack Proposal Bot 4e91647c1f Updated from global requirements
Change-Id: I15c7eed7a39f8ed7c5d8e18e4083979870cdfbb8
2017-07-27 20:22:52 +00:00
Van Hung Pham 27296d5858 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I5150a456df75d61035a6f00366fa70bd4ec83457
2017-06-30 15:21:25 +07:00
OpenStack Proposal Bot c86bbd076f Updated from global requirements
Change-Id: I119fbce30d448bcda1be5da1122922b1ea5c3b57
2017-06-03 13:05:19 +00:00
Jenkins e1cd9a47e1 Merge "Replace pycrypto with cryptography" 2017-05-23 15:09:33 +00:00
Tin Lam e23cb36ac0 Replace pycrypto with cryptography
The pycrypto library is unmaintained, and keystonemiddleware currently
uses pycrypto to encrypt and decrpyt things before caching them.
This patch set removes the pycrypto dependency and updates the code
to use the cryptography library.  See [1].  Replacing the cryptographic
library is backward compatible.  See [2].

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568.html
[2] http://paste.openstack.org/show/610186/

Change-Id: Iced7f5115e49ccf4f7f5bf6813cb5988b95c248b
Closes-Bug: #1677308
2017-05-22 16:52:37 -05:00
OpenStack Proposal Bot e9929a3a38 Updated from global requirements
Change-Id: I112a32382d16a64ed8a814d23ed2d40062151605
2017-05-17 03:49:14 +00:00
OpenStack Proposal Bot bf5bf96dc6 Updated from global requirements
Change-Id: I5a9e67d2ded7ac9b9079ffbfcf30c03f442e3c24
2017-05-15 00:45:35 +00:00
OpenStack Proposal Bot 9b14d80fe0 Updated from global requirements
Change-Id: I5c42ec052c4b8f6a3cabc5e2456b1aacc322e479
2017-04-06 22:03:25 +00:00
OpenStack Proposal Bot 8221869f4e Updated from global requirements
Change-Id: Id74368e2b0b7421c2cc1ad498a008b33df38f39a
2017-02-11 17:43:25 +00:00
Lucas Alvares Gomes 53adca6deb Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement for
pretty_tox.sh bash scripts which spread like a plague through OpenStack
projects after Nova copied it from Tempest.

Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.

Change-Id: Id1ad26bc9670efa94c3c91142a177c75a12ce7d6
2017-01-03 17:13:13 +00:00
OpenStack Proposal Bot 3e6c3ff6bd Updated from global requirements
Change-Id: I5381a3354994e7398be705d8c3783d464aabbb9a
2016-12-15 21:22:43 +00:00
Gage Hugo 29a879c0ed Add docutils contraint on 0.13.1 to fix building
See:
http://lists.openstack.org/pipermail/openstack-dev/2016-December/108742.html

Change-Id: Ied3c922b8bbb52a3589c2f5308ecf87fc1415fbc
2016-12-15 01:16:01 -06:00
OpenStack Proposal Bot 8bb477382f Updated from global requirements
Change-Id: I506b5036961fef7645c2010bef090f2b4b098189
2016-11-06 01:59:49 +00:00
OpenStack Proposal Bot 7edc15e9da Updated from global requirements
Change-Id: Ic4b6ab9857311a4f9efc111dd2cfc32fc6f76fd0
2016-10-22 01:20:11 +00:00
OpenStack Proposal Bot d627714d7a Updated from global requirements
Change-Id: I381ccea9500b3cfdd81ed54c29a02fd33345c07e
2016-10-11 12:00:43 +00:00
Jamie Lennox b8024ff8c6 Return and use an app wherever possible
Audit middleware does a lot of faking up environments and calling
methods instead of just running the middleware. It's a whole bunch
easier to just run the middleware wherever possible.

This means we don't have to stub context from tests as these tests
actually pass through the wsgi layer correctly. Ideally we would do more
of this.

Change-Id: I95377f030b07ffae18698ecc3c82cc6aa1dddbc7
2016-09-30 05:45:25 +00:00
OpenStack Proposal Bot d1f8a4f32e Updated from global requirements
Change-Id: I136d82a940047057049c83b36990dededc4f18f5
2016-09-27 10:00:42 +00:00
OpenStack Proposal Bot 3e95edf0e4 Updated from global requirements
Change-Id: I4b38ccb5b0dcd87cc64390d9c3724fb68988982b
2016-09-26 04:21:13 +00:00
OpenStack Proposal Bot d4b0be8f93 Updated from global requirements
Change-Id: I017e73cb5cc694ffe01b64d0bde2db21313532b4
2016-08-18 05:50:56 +00:00
OpenStack Proposal Bot 6c0c988b69 Updated from global requirements
Change-Id: Iae85a4cdec8085d1f86806df44351d183ec1b4b5
2016-07-17 23:53:48 +00:00
Steve Martinelli ef29dfce89 Use extras for oslo.messaging dependency
Install the oslo.messaging optional dependency by doing:

  keystonemiddleware[audit_notifications]

pbr documentation:

  http://docs.openstack.org/developer/pbr/#environment-markers

Partial-Bug: 1540115

Change-Id: I59eea1f7eb0e770ac4fe30211eff49ae76fb2550
2016-06-28 23:56:47 +00:00
OpenStack Proposal Bot 7a6af0b8f0 Updated from global requirements
Change-Id: Iba1e77fbc1ab60426207c15e463e7ebd4f02d40e
2016-06-24 03:12:19 +00:00
OpenStack Proposal Bot 1f4a8fa4a3 Updated from global requirements
Change-Id: Ica548a437fd192539daf1a7bc6b60e2796d35466
2016-06-21 18:00:06 +00:00
OpenStack Proposal Bot 20b4a87e87 Updated from global requirements
Change-Id: Ibdb8afed4820b6cc98f200bfc1d379c1ec8fb2d7
2016-06-08 21:58:45 +00:00
OpenStack Proposal Bot 68c951434b Updated from global requirements
Change-Id: I13fed05c4fe82f9f454f22f57d29770835e76f52
2016-06-03 18:13:39 +00:00
OpenStack Proposal Bot 06fb469625 Updated from global requirements
Change-Id: Idf43817cf80ab45660f29b035ca10816499e27df
2016-05-30 20:41:03 +00:00
OpenStack Proposal Bot ae891c147a Updated from global requirements
Change-Id: If9c7f08f67f89df318cdef7c6e9d2155c9a89f71
2016-05-30 00:34:23 +00:00