Commit Graph

102 Commits

Author SHA1 Message Date
Takashi Kajinami 2d93d2e1ed Bump hacking
hacking 3.0.x is too old.

This also pulls the hacking options from neutron.

Change-Id: Ic1a428a05131f98d5a9050b83613c5478904f202
2024-01-30 18:09:53 +09:00
Sean McGinnis 4669bcc628
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: I12e1a2a4a22116cabd09a3b808f871d98e4bd1f2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-01 07:57:23 -05:00
Ghanshyam Mann 6d9d2e6291 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: I5486638526b26ce0710c7b1926e408dd70057a66
2020-05-12 19:48:32 -05:00
Akihiro Motoki e2ee92e2e1 Blacklist bandit 1.6.0 due to directory exclusion bug
Bandit 1.6.0 introduces a regression[0] with the -x option,
a fix is expected to be included in 1.6.1 soon.

This commit also aligns Sphinx requirement with the requirements
project [2]. This is required to pass requirements-check.
The lower bound for sphinx was missing and requirements-check
now requires it, so the lower bound sphinx >=1.6.2 was added.

[0] https://github.com/PyCQA/bandit/issues/488
[1] https://github.com/PyCQA/bandit/pull/489
[2] https://review.opendev.org/#/c/657890/

Change-Id: I937cfa722f5234ca4d5506047001d9cb07728cd8
2019-05-28 16:15:14 +09:00
Akihiro Motoki f99c63f98a Update hacking version to 1.1
Older hacking depends on pep8, but pep8 module is replaced by
pycodestyle. This can be resolved by updating hackinng version.

This commit also fixes E117 (over-indented) and
W605 (invalid escape sequence) warnings.

pep8 is dropped from lower-constraints.txt as it is no longer used.

Change-Id: I3a8e3b0dedf9422e4db02b525b333d12ce012a95
2019-01-31 10:45:24 +09:00
Vu Cong Tuan 259c386d42
Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

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

Change-Id: Ib58745d5c0d98fb79eb3cf7278c2cbfb5160efcd
2018-09-06 01:09:28 +02:00
Yushiro FURUKAWA bca82e2fba Fix broken unittests
_clean() method is renamed to clean() in osprofiler 2.3.0.
It was suggested in a past neutronclient review.

Closes-Bug: #1783789
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Depends-On: https://review.openstack.org/#/c/592018/
Change-Id: Ic8e03db85dc08cfdcac5507e99ecdf7eac8eb972
2018-08-15 22:01:17 +09:00
jessegler 834ad176ea Add bandit to pep8 gate
Neutron uses bandit to detect security issues. This patch adds bandit
to the pep8 gate to automatically lint for security issues in
python-neutronclient.

Change-Id: Ifd8caf65cc89e7d6d6ebc8f58539741cfbab839b
2018-06-13 15:05:52 -05:00
Nguyen Hai 1dcd1f83d2 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

Depends-On: https://review.openstack.org/#/c/559315/
Depends-On: https://review.openstack.org/#/c/559332/

Change-Id: Icbdc67dab1853162b1a877891195cc26b4873cb0
2018-04-06 14:29:05 +00:00
Hongbin Lu ac24ab19c3 Remove mox3 from test-requirements.txt
Change-Id: I9719d9b308811e7bf218af2f7da949b6c0509fc1
Closes-Bug: #1753504
2018-03-26 13:57:37 +00:00
OpenStack Proposal Bot 05fbf570ed Updated from global requirements
Change-Id: Ie636b2253cd263e9f958af430e93fc1eb5efbc23
2018-03-23 01:49:46 +00:00
OpenStack Proposal Bot bccf489605 Updated from global requirements
Change-Id: Ib897d23991b49d7efe68876f51b095c36fb91958
2018-03-15 08:00:48 +00:00
OpenStack Proposal Bot e1729c5a57 Updated from global requirements
Change-Id: I2db9e43b98a209d654c1749576235bd8260c0fc5
2018-03-10 13:49:08 +00:00
OpenStack Proposal Bot 5d9dd45de1 Updated from global requirements
Change-Id: I1add04870af21a1e453fed7b6a2a34e70a646ad8
2018-01-24 01:30:51 +00:00
OpenStack Proposal Bot 9e05c1bab5 Updated from global requirements
Change-Id: Ic8c98ad03917ed628453c28200defed000592045
2018-01-18 03:29:56 +00:00
OpenStack Proposal Bot cf76e3eadb Updated from global requirements
Change-Id: Ibfc6c074416de0dab68b37623d64b7e737849431
2018-01-16 04:31:30 +00:00
OpenStack Proposal Bot 9a7050b2db Updated from global requirements
Change-Id: I2f5dbe4729c8b2d3664224c7b61d6d21323a2415
2017-12-19 01:44:22 +00:00
OpenStack Proposal Bot 10d55c3a0f Updated from global requirements
Change-Id: I036c81a2cc84e615d8dd7936ceee60812260abba
2017-09-21 03:49:49 +00:00
OpenStack Proposal Bot a01ebe1e54 Updated from global requirements
Change-Id: Iea16b097e17dfe3244f6e99abfdf8d6a7a1e6179
2017-08-18 11:41:54 +00:00
OpenStack Proposal Bot f9bac29542 Updated from global requirements
Change-Id: Iaec435d5f56b48469fff6d53247e9bbf7feb21c3
2017-07-29 02:41:41 +00:00
OpenStack Proposal Bot dbf952e326 Updated from global requirements
Change-Id: Idcc7808ae5af7fc42dafc0fc04c3ca1d69239288
2017-07-13 14:24:21 +00:00
Cao Xuan Hoang f4c0468b36 Use flake8-import-order plugin
In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.

Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.

Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file
exists and causes hacking rule unit tests.

Change-Id: I61e683ab0119e4ae90b7107f0690528d789e3875
2017-07-06 16:47:49 +07:00
OpenStack Proposal Bot cee7b2d4fb Updated from global requirements
Change-Id: Ib08574e2413af218f70af0e56b08286256ccb79b
2017-06-27 12:22:04 +00:00
Akihiro Motoki 06ba42ce53 switch to openstackdocstheme
Change-Id: Ic8f9b6821da7958a895dad6053d2cd1b6761a405
2017-06-18 03:11:30 +09:00
OpenStack Proposal Bot 41961a25fd Updated from global requirements
Change-Id: I7eeae5666364dd24282036c0f1b981198e645d8b
2017-06-02 22:07:10 +00:00
OpenStack Proposal Bot d6327431ad Updated from global requirements
Change-Id: I42d4fb6f4fc127a327ab5d543d03c354bbed33e5
2017-05-18 12:54:54 +00:00
OpenStack Proposal Bot 030b8ad4a7 Updated from global requirements
Change-Id: I37500788354e3d7a46002177012c592ff0e7e8da
2017-05-16 00:20:25 +00:00
OpenStack Proposal Bot ef69c7260d Updated from global requirements
Change-Id: I46cbb16bda94a9501a65231a3a16f6885c5c8453
2017-05-04 13:30:53 +00:00
OpenStack Proposal Bot 4c9d42f60f Updated from global requirements
Change-Id: If404f874168f825fe70a2d253d26c3400183536b
2017-03-06 01:18:40 +00:00
ricolin a5fe2b17f4 [Fix gate]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: Ifc984fa1c425999fabc3a62b6f6f3f29fa1100af
2017-03-02 17:33:11 +08:00
Jenkins be6a1e1427 Merge "Add profiling support to neutronclient" 2017-02-24 16:09:54 +00:00
Dina Belova badfc96046 Add profiling support to neutronclient
To be able to create profiling traces for Neutron, client should be
able to send special HTTP header that contains trace info.
This patch is also important to be able to make cross project
traces. (Typical case nova calls neutron via python client, if
profiler is initialized in nova, neutron client will add extra
header, that will be parsed by special osprofiler middleware in neutron
api.)

Closes-Bug: #1335640

Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com>
Change-Id: Ic11796889075b2a0e589b70398fc4d4ed6f3ef7c
2017-02-23 10:21:31 -05:00
OpenStack Proposal Bot 1ede4306cf Updated from global requirements
Change-Id: I17e20f6dc80036a9a00ff0d9111abffa7a20bc8f
2017-02-10 05:59:12 +00:00
OpenStack Proposal Bot 9a40331059 Updated from global requirements
Change-Id: I63fb5e5486670bc369abc5339a2da8e65ba2ec6f
2017-01-24 22:33:31 +00:00
OpenStack Proposal Bot 19546d0c6d Updated from global requirements
Change-Id: I47bedcde68a0aaebf973f2207f9855d29922bc13
2016-12-23 22:18:02 +00:00
OpenStack Proposal Bot e91c82e4dc Updated from global requirements
Change-Id: I2ea110e8810899c46b4e768deb521df36d404692
2016-10-22 01:27:17 +00:00
OpenStack Proposal Bot dfe6714357 Updated from global requirements
Change-Id: I7c7a77b9e7935d89782ea23d3bbe54dc30afc0ac
2016-10-19 17:45:52 +00:00
OpenStack Proposal Bot c14022e66d Updated from global requirements
Change-Id: Idda966e85eb7dedf950c4d398b3247ddee10d1ac
2016-10-10 12:38:58 +00:00
Swapnil Kulkarni (coolsvap) 45d18eb380 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I2d0386cd181afce62bbba810f420f4fdb83d16fa
2016-07-22 04:07:33 +00:00
Jenkins 06ada316a0 Merge "Base OSC plugin support" 2016-07-09 01:03:29 +00:00
Richard Theis d63a92a55f Base OSC plugin support
Enable neutronclient OSC plugin support.
This patch set does the following:

 - Establishes OSC plugin structure for commands and unit tests
 - Creates the OSC plugin
 - Adds OSC to test-requirements.txt

Co-Authored-By: Akihiro Motoki <motoki@da.jp.nec.com>
Change-Id: I9a20bc7a3d8aa7b631fb0fd534fc5705c23326ce
Related-Bug: #1521291
2016-07-08 21:54:29 +00:00
OpenStack Proposal Bot 1d7c9926b8 Updated from global requirements
Change-Id: Ia7b03a36b1ad078b4d48d32121ee9225f8cc3fde
2016-07-08 17:34:16 +00:00
OpenStack Proposal Bot f3bea7e83a Updated from global requirements
Change-Id: Id5266aa1ab577adbccde9be2725cafb1e7f48ae7
2016-06-24 03:17:32 +00:00
Jenkins 36c06c2a52 Merge "Update tempest_lib to tempest.lib" 2016-06-11 04:52:12 +00:00
OpenStack Proposal Bot 6d5356a375 Updated from global requirements
Change-Id: I94641c2e8629df1225e37e53c22c3d80295c9f60
2016-06-02 21:11:39 +00:00
ZhaoBo 954375b227 Update tempest_lib to tempest.lib
http://specs.openstack.org/openstack/qa-specs/specs/tempest/reintegrate-tempest-lib.html
The tempest-lib project is going to live in the tempest repo.

Now tempest.lib had been created, so this patch update them in
neutronclient.

Change-Id: I25c2309f84a2f06ba0882682d63d2a8be347ae07
Closes-bug: #1583562
2016-05-20 09:14:46 +08:00
OpenStack Proposal Bot feba9bb2c9 Updated from global requirements
Change-Id: I00f8c716e6ea6399066a87d149c6eed298859c1f
2016-04-20 05:19:35 +00:00
OpenStack Proposal Bot 726293ddbe Updated from global requirements
Change-Id: I602360343feb37f17961f555a288fd6a92c90f37
2016-04-07 15:28:23 +00:00
Haim Daniel b667b32af4 add rbac support for qos-policies
APIImpact
Partial-implements: rfe role-based access control for qos policies
Related Blueprint: rbac-qos

Related-bug: #1512587
Depends-On: I1c59073daa181005a3e878bc2fe033a0709fbf31
Change-Id: If11a10da617e279b19c17d995b7ab89be8cd9427
2016-02-29 06:27:11 +00:00
OpenStack Proposal Bot 6810d96ea1 Updated from global requirements
Change-Id: I4fe34e07dcb5ffd16f849e95483d5b4aaaf5102c
2016-02-11 07:44:36 +00:00