Commit Graph

124 Commits

Author SHA1 Message Date
Takashi Kajinami 9f896ab03d Bump hacking
hacking 3.0.x is too old.

Change-Id: I33875c36dbbdb946841f8c583636ccdf88d3331f
2024-01-27 16:55:11 +00:00
Cyril Roelandt e46d9d8095 Remove Babel requirement
Babel is not needed as requirement, remove it.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Commit 36d46bb0b1 removed the
openstack.common.gettextutils module, which used the babel package.
Commit a8fb4e2587 removed the babel.cfg
file.
It is therefore not needed to mock babel.localedata.locale_identifiers
in _set_expected_languages.

Change-Id: I05eaaf39c706e8ef43fe06611ea825a145caf015
2022-03-08 02:16:01 +01:00
Lance Bragstad 764f29a99d Bump requirements to prepare for secure RBAC
To implement proper scope checking, we need some updated libraries that
properly handle tokens and relay that information to the underlying
service. This commit updates the oslo.policy, oslo.context, oslo.log,
and keystonemiddleware requirements to versions that understand all the
various scopes so that we can update the default policies.

Additionally, this commit updates transitive dependencies in
requirements.txt and lower-constraints.txt to install properly with
lower-constraints defined.

Implements: blueprint secure-rbac

Change-Id: I7dec6b9919e7679aff1a0bb5db1e806384730386
2021-02-23 17:27:03 +00:00
whoami-rajat 09b924c9bc Add functional tests for cinder multiple store
This patch adds functional tests for cinder multiple stores[1] legacy
image migration and new image create.
NOTE: This has been proposed separately as it has a dependency on a
glance-store change[2] which will require a new release of glance-store
to reflect changes on the gate.

[1] https://review.opendev.org/#/c/748039
[2] https://review.opendev.org/#/c/750131

Depends-On: https://review.opendev.org/#/c/750131
Change-Id: I2a3a99bd27db1c72d49b36b87e073e0b97fc874d
2021-02-05 08:10:57 -05:00
wangzihao c98c3965a8 Update version of doc8
The doc8 lib supports Py36 starting from version 0.8.1

Change-Id: Ib92ccbc2407e9825e446bb3c69d29f7841467434
2021-01-06 15:39:52 +08:00
Erno Kuvaja 673666cbf4 Deprecation cleanout Registry and related
This patch removes majority of the registry and it's related
endpoints and config options that has been deprecated for
removal in various releases.

Change-Id: I75014bd50bf382efebe56bd89c20ffefbdde25f5
2020-06-30 20:41:30 +01:00
Ghanshyam Mann bf637a2a0c Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I8ce6e3aa6e8d9dbb04261238c37744b053f72eca
2020-05-12 19:24:18 -05:00
Sean McGinnis 94b0876429 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: I44e7b6f76e2d12f620ec602afc77ce11ba6b9d9a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-20 15:07:00 +00:00
Andreas Jaeger 89df136bc4 Update hacking and reenable local checks
Update to hacking 3.0.

Enable local hacking checks again, newer flake has a different
interface.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Unbreak docs:
Don't build apidocs for hacking - blacklist in doc/source/conf.py.

Change-Id: Ib230d72be9f0288d77cecd2c5ee0ff7aa91fc086
2020-04-02 18:00:44 +02:00
Zuul 2143060833 Merge "Raise hacking to latest 2.0.0 release" 2020-03-30 14:50:31 +00:00
Andreas Jaeger 176d24de94 Cleanup old cruft
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Update requirements: Remove sphinx, it's not needed for testing, add
  pygments which is really needed.
- Update doc/requirements: Remove python 2.7 support
- tox.ini: Remove testing of po files, the infra scripts do this since
  a long time
- Update conf.py, no need to import openstackdocstheme anymore.

Change-Id: I9d030eb450f2c7ae74c25b7564a01b8785503e5e
2020-03-28 08:18:01 +01:00
Dirk Mueller 595c1b17ff
Raise hacking to latest 2.0.0 release
We were capped at a very old version of hacking. Hacking itself caps the
various linters it uses to remain consistent, so our pep8 job was not
checking quite a bit that current versions have added.

This raises that limit to the latest to get up to the level of other
projects and addresses the errors the updated linters uncovered.

Change-Id: I89a9d73fbd59606a649e26077acebc5c42873d67
Co-authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-27 14:11:08 -05:00
Brian Rosmaita d2d67ae3a1 Install requirements during the correct tox phase
Glance isn't explicitly installing requirements, so add requirements
as tox deps in such a way that they'll be properly constrained by the
current openstack upper-constraints.

This change also bumps the version of psycopg to that of the current
upper-constraints in test-requirements and lower-constraints.  (The
version in our current lower-constraints is subject to the "could not
determine PostgreSQL version from '10.x'" error, which causes the
lower-constraints job to fail.)

Change-Id: I1bb5759e6b1e3f8545ab417617072a61323b59a7
Closes-bug: #1852356
2019-11-14 08:20:29 -05:00
pengyuesheng fd6f2fa027 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: I8c91468dce50f2404e3689d939cfd482a613b015
2019-06-12 14:17:22 +08:00
pengyuesheng 7dea25d8c4 Update sphinx dependency
Sphinx 2.0 no longer works on python 2.7,
so we need to start capping it there as well
depend on https://review.opendev.org/#/c/657890/

Change-Id: Ibb821fabd479af05bd4daf3d68cac16fc5e1b9c4
2019-05-28 15:39:33 +08:00
Chuck Short 0c9a419d8f
Switch to using 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: I3c5d4e068ee5f2919a4061e8f7b78f724cd61724
Signed-off-by: Chuck Short <chucks@redhat.com>
2019-04-15 10:30:30 -05:00
Lucian Petrut d7321ada06 Update requirement platform checks
pysendfile and xattr cannot be used on Windows, so we had to add
platform checks for those requirements. This has already merged
in the global requirements project.

We now have to pull those changes in glance. Without it, the
requirements test job is failing.

blueprint windows-support

Change-Id: I488537b9490591fa43a0610f7503bc05e1c72134
2019-03-13 14:09:54 +02:00
Brian Rosmaita d261892731 Remove qpid-python from test-requirements
I can't find any evidence that we need this dependency, so let's
remove it.

Change-Id: I4ad8c8f5bab82bb4494e43e4e123c68fc251dd46
2018-08-22 10:33:29 -04:00
Erno Kuvaja 2142860353 Remove broken bandit from testing
Change-Id: I415eed3096698c805d1f3ed3e23eeb87337471de
2018-08-16 19:53:58 +01:00
Nguyen Hai 5e5ba92aec 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

Remove the '[build_sphinx]' and [pbr] sections as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Adds the use of sphinxcontrib.apidoc to get (mostly) the same output as what
was provided by the removed [pbr] section.

Change-Id: Ie7e3acef7161cb8f218c2333167490c8116a2122
Depends-On: https://review.openstack.org/#/c/560270/
2018-04-11 06:02:54 +00:00
OpenStack Proposal Bot ec81cb97ca Updated from global requirements
Change-Id: I371c316e1dcc2df092eb45af31033d5a8782a894
2018-03-17 08:28:33 +00:00
OpenStack Proposal Bot 3914fefd50 Updated from global requirements
Change-Id: I97c43ba4c7d0525ee11a51adbe75a8e43c6b3958
2018-03-13 01:04:44 +00:00
OpenStack Proposal Bot d0f37354be Updated from global requirements
Change-Id: I813e24f7c24452f537fadeacdd9405dc5c1a4c7c
2018-01-24 00:53:12 +00:00
Nguyen Van Trung 97dbfb02d7 Add doc8 to pep8 check for glance project
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Co-authored-By: Hoang Trung Hieu <hieuht@vn.fujitsu.com>
Change-Id: I5a9299200202576d97760ebf07bceb930888f2d7
2018-01-19 08:20:56 +00:00
OpenStack Proposal Bot 631add1ba8 Updated from global requirements
Change-Id: Ie28ec068eabaa34e3d40183334d31513c13ff927
2018-01-17 20:32:44 +00:00
OpenStack Proposal Bot ec950dce83 Updated from global requirements
Change-Id: I6344cb40cc97ff29e2bfbb1fe0b7360b4c11d182
2018-01-16 12:27:26 +00:00
OpenStack Proposal Bot 91779579f6 Updated from global requirements
Change-Id: I5ca05002f1a4d034f52b697b24c6aa347aabfddc
2017-11-16 11:03:18 +00:00
OpenStack Proposal Bot 6df72f9c98 Updated from global requirements
Change-Id: Ib377a75f372b4e89fa64affc1479f9dc31be9d7a
2017-09-16 23:11:44 +00:00
OpenStack Proposal Bot 86d4a76b47 Updated from global requirements
Change-Id: I7e60640967e78d0e43657101c3a9ce69bfdc31c4
2017-09-13 12:50:08 +00:00
OpenStack Proposal Bot 917d0d0c04 Updated from global requirements
Change-Id: I679e75aab9327a2582f87319795e8e3e4e92a3f8
2017-08-18 15:46:35 +00:00
OpenStack Proposal Bot b75d3938b3 Updated from global requirements
Change-Id: Iaf4d39d4122f2ad850be84313d163dfd42cefe31
2017-07-27 20:21:01 +00:00
Jenkins 504ffa0918 Merge "Handle file delete races in image cache" 2017-07-12 00:24:08 +00:00
Sean McGinnis 2ee6e04276 Handle file delete races in image cache
In at least one case (see bug report) files have been deleted between
when we check that they exist and when we actually attempt the deletion.
Since we ultimately just want the file gone, we shouldn't care if we
get an error that the file does not exist and just move on.

Change-Id: Iaf71109fc6659650075ab4b4b48aec57819fb0b5
Closes-bug: #1229823
2017-07-10 11:37:55 -05:00
OpenStack Proposal Bot 17bb02517d Updated from global requirements
Change-Id: I74e862042ce26438ec223cdec370fa05c6dd4f95
2017-06-30 12:14:28 +00:00
Doug Hellmann 10edf27c7f switch to openstackdocstheme
Change-Id: Iae7d55aa065b3ac18ff3ec84dc9e3eaa7243ca52
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 16:14:44 -04:00
OpenStack Proposal Bot bac5948d1a Updated from global requirements
Change-Id: I0ca13eb158a2de09402f606ada0dc93cb54ec510
2017-06-15 18:00:03 +00:00
OpenStack Proposal Bot 40a9e61f57 Updated from global requirements
Change-Id: Iee8ea4ec4fda4cc167258fe698c886958a75c4e8
2017-06-07 11:49:18 +00:00
OpenStack Proposal Bot cfc2f92780 Updated from global requirements
Change-Id: Ieeeed33d76ce4aeccede30aaaaa7a785da7530a3
2017-05-20 04:35:18 +00:00
OpenStack Proposal Bot e3cd785d92 Updated from global requirements
Change-Id: I35b0552470d049fe7b79c97112d2eff93fa040e3
2017-04-07 06:03:59 +00:00
OpenStack Proposal Bot d64eb83403 Updated from global requirements
Change-Id: If4c756fc20ae43ecd5be187a630e5995b596ec4a
2017-03-04 01:43:26 +00:00
ricolin d907ccf34f Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I3d1f230ec6354b511a2c76f154cfd7cb536657a0
2017-03-02 16:36:44 +08:00
OpenStack Proposal Bot 9d829d3141 Updated from global requirements
Change-Id: I5753ab08da1c9b9074b813c801fdf4a72939f76f
2017-02-15 01:26:07 +00:00
OpenStack Proposal Bot 65dd7ae290 Updated from global requirements
Change-Id: I4e35087ca765f0aa182d15cbcfe531fb9f0d37c1
2017-02-10 09:39:49 +00:00
OpenStack Proposal Bot 902880dc80 Updated from global requirements
Change-Id: I4329503ba4d90f14ccdda72feaea544b1b615091
2017-01-26 12:49:58 +00:00
OpenStack Proposal Bot ed634d46ea Updated from global requirements
Change-Id: I75ebb975957ea8d6daad214028fe9b59f84df926
2017-01-16 20:15:22 +00:00
OpenStack Proposal Bot ebd6f07f1b Updated from global requirements
Change-Id: I4889547a7be14d1a0e14b88eaf02f9ea4fce480c
2016-12-22 19:01:04 +00:00
OpenStack Proposal Bot e976b143ed Updated from global requirements
Change-Id: Ie2c3c270ebb1809803ba904b913d72802c22ba34
2016-12-05 09:38:03 +00:00
OpenStack Proposal Bot 4267d2ca1f Updated from global requirements
Change-Id: If507f8d931cdeca71cf88f633f1f82a0b8445caf
2016-12-02 05:04:44 +00:00
OpenStack Proposal Bot 51447d07d3 Updated from global requirements
Change-Id: I9869251d5f49fbff5da082c197f3ed416feec3d3
2016-11-15 19:49:34 +00:00
Jenkins dcdfdf1bbd Merge "Remove mox3 in test-requirement.txt" 2016-11-14 14:31:09 +00:00