130 Commits

Author SHA1 Message Date
Slawek Kaplonski
e789f92eb9 cap bandit in test-requirements.txt
bandit is a linter and is listed in the "blacklist" from the
requirements repo, so it does not appear in the constraints lists.
Project teams are expected to manage the verions(s) allowed on their
own, to allow different teams to roll ahead to new versions as they can
rather than having the entire community do it in lock-step. This change
caps the version of bandit to the one available during the rocky
development cycle to avoid introducing the new rules from newer releases
into a stable branch.

Change-Id: Ia59de069b29f584cce21163a77812ec0ed243e65
2018-08-17 17:14:21 +02:00
IWAMOTO Toshihiro
0f180d8e2e Adopt hacking 1.1.0
This incorporates flake8 2.6.x and pycodestyle will be used
instead of older pep8.  This ensures future python3 compatibility
and a bit better code styling.

Change-Id: Ia7c7c5a44727f615a151e1e68dd94c7ed42f974f
2018-07-05 11:31:40 +09:00
Slawek Kaplonski
ec537c49e9 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: If3383707c9baf69e03bcccc50970da748a834141
2018-06-02 13:03:33 +02:00
Boden R
e34104e74c fix tox release note generation
The reno package must now be specified in the test-requirements.txt,
otherwise reno is not installed and the tox venv target can't be used
to generate a release note.

[1] https://docs.openstack.org/reno/latest/user/usage.html

Change-Id: I2d246fc51498912be62e203cb8e457e9a7a0df22
2018-04-12 09:39:20 -06:00
Nguyen Hai
0556a2ab73 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]' as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: Id3d7065028b4c0831e6b5c2363b19626734817a3
2018-03-24 13:23:33 +09:00
OpenStack Proposal Bot
9da92dbc52 Updated from global requirements
Change-Id: Iebf183c2196e35ed4296bdc629e080af225538e3
2018-03-13 07:06:06 +00:00
OpenStack Proposal Bot
6c50a12c3c Updated from global requirements
Change-Id: I5a68d0b181e59ecd5d8c0d1876fc962027922152
2018-03-10 13:27:26 +00:00
OpenStack Proposal Bot
b8b043ada5 Updated from global requirements
Change-Id: I40151d3a87f40249b4393937631531bcec6d14eb
2018-02-01 07:17:59 +00:00
OpenStack Proposal Bot
054aa3a29b Updated from global requirements
Change-Id: I00aa2d6160206ac6ee8dc85be152b35034d08e60
2018-01-16 12:37:23 +00:00
Chandan Kumar
813295f8cf Remove the bundled intree neutron tempest plugin
The plugin has been split into its own repository[1] in accordance with
Queens Goal "Split Tempest Plugins into Separate Repos/Projects[2]".
This patch removes the local copy as well as the setuptools entry point.
We can also now remove the autodoc_tree_excludes pbr option since
there's no more plugin to exclude and it defaults to [setup.py].

The patch leaves still in-tree base classes and constants in order to
avoid breakage of projects depending on such code. In the future, we
will deprecate those and gradually move affected subprojects to the new
repo.

List of affected repositories:
 - neutron-vpnaas
 - openstack-ansible-os_neutron
 - tripleo-quickstart-extras
 - networking-midonet
 - networking-l2gw
 - neutron-dynamic-routing
 - networking-vsphere
 - networking-plumgrid
 - networking-zvm

[1] http://git.openstack.org/cgit/openstack/neutron-tempest-plugin
[2] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html

Depends-On: I371aa4d5f043f695df04b98b0f485c8f0548f2b3

Change-Id: Ia21aad29d0bbf779583964db6f1665c9b3b83161
2017-11-22 12:54:33 -08:00
OpenStack Proposal Bot
f442554bbb Updated from global requirements
Change-Id: Ib0ef9ca79e46da042ccf8a8b3a4b33d15d4805de
2017-11-16 11:13:55 +00:00
OpenStack Proposal Bot
d09f2438e8 Updated from global requirements
Change-Id: I2250ce4f1aab3421452aace50b61ef0f245f4b5c
2017-09-13 12:55:07 +00:00
Ihar Hrachyshka
3e341a9941 Fix post gate hook to accommodate for new os-testr
New os-testr uses stestr under the hood, which creates .stestr but not
.testrepository directory in the current dir. Other than that, it
doesn't seem like there is any difference in the format or names of
files generated in the directory.

Change-Id: I82d52bf0ad885bd36d2f0782a7c86ac61df532f2
Closes-Bug: #1716746
2017-09-12 14:20:12 -06:00
OpenStack Proposal Bot
2ab7c23b45 Updated from global requirements
Change-Id: I7fe9d059016edbb26a8fb6f27a1a6e8b41494edd
2017-08-23 23:28:50 +00:00
OpenStack Proposal Bot
0adb29f0f0 Updated from global requirements
Change-Id: Ie8727686892488a9bc603b039d34d763b5be7b5c
2017-08-03 00:34:17 +00:00
Armando Migliaccio
bd4c2c9760 Add bandit target to tox
Change-Id: I3ca2f77e026167bf6828072ccd02872e7c504c1c
2017-07-28 17:49:28 -07:00
OpenStack Proposal Bot
016e9a2bf8 Updated from global requirements
Change-Id: Ia3d2664396defe1646828baf89c66a01aa0f1b37
2017-07-28 01:15:52 +00:00
jeremy.zhang
3e4cb0817d Replace test.attr() with decorators.attr()
Function 'tempest.test.attr()' has been moved to'tempest.lib.decorators.attr()'
in Pike and will be removed in a future version [1]. This patch is to replace
'tempest.test.attr()' with 'tempest.lib.decorators.attr()'.

[1] Iaafbb112b6eee458089cc49918359a8a8d0485e2

Depends-On: I50b823b049d0e391ac517f7ec72380a12fa81176
Change-Id: I1e511166a114a79504404c88579f6cb0c4caaebe
2017-07-13 03:31:15 +00:00
Jenkins
3a894d0b9e Merge "Updated from global requirements" 2017-07-06 02:07:50 +00:00
OpenStack Proposal Bot
7108948823 Updated from global requirements
Change-Id: Ia2976638308a98fdf42218034aab296b9a0a98a3
2017-07-05 13:15:02 +00:00
Akihiro Motoki
f64110f652 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: Ib51bd97dc4394ef2b46d4dbb7fb36a9aa9f8fe3d
2017-07-05 03:15:27 +00:00
OpenStack Proposal Bot
8856a761a2 Updated from global requirements
Change-Id: I218dbc85d829e96fb94cf840c910980c764ed454
2017-06-20 11:47:04 +00:00
Akihiro Motoki
2a1b0b0523 docs: switch to openstackdocstheme
The docs reorganization proposed in the docs-specs [1],
we will migrate our sphinx theme to openstackdocsthems.
This commit switches our docs theme to it,

Also ajust title levels. openstackdocstheme assume one title (first
level) per page.  Second or later first-level titles are not shown.
This changes title levels to match openstackdocsthem requirements.

Note that oslosphinx is used by releasenotes build,
so it is not dropped from test-requirements.txt.

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

Change-Id: I72d55c26401ae9bfd06626d1b1584a368bbd9f86
2017-06-16 08:20:54 +09:00
OpenStack Proposal Bot
8d9fcb2d30 Updated from global requirements
Change-Id: Ie8979725f50c7d6fd8d1101bc344c7b46bfe029b
2017-06-08 06:03:54 +00:00
OpenStack Proposal Bot
7c33804ef2 Updated from global requirements
Change-Id: Ia887d89a60a96ede04460dc06135c9c016b232d8
2017-05-17 03:51:56 +00:00
OpenStack Proposal Bot
a3c84de5d8 Updated from global requirements
Change-Id: I6af8fc82ff7dce731f7f7baae88160af31a214ad
2017-03-04 11:19:58 +00:00
ricolin
c3dda72181 [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: Ie0a2cef329e2820ffe60c512a4870c0c3053574a
2017-03-02 17:52:11 +00:00
Victor Morales
a14439549f Add bashate support
Bashate is a style checker program for bash scripts.  This addition
improves the quality of the current bash scripts and ensures that
any future change will follow the same standards.

Change-Id: Ia346f77632d4ac7beb288fa3aacea221d7969c87
2017-02-25 06:29:55 +00:00
OpenStack Proposal Bot
72e9f60ca6 Updated from global requirements
Change-Id: I847eb889cae34b49130cdb2d5b1b50faf773b460
2017-02-13 15:15:21 +00:00
OpenStack Proposal Bot
8754b9c2a1 Updated from global requirements
Change-Id: Ib2c3bd4ef0d953b35e7472ef053f7004afa2cdb5
2016-12-28 09:11:12 +00:00
Ihar Hrachyshka
605df9cb94 Moving pyroute and oslo.privsep deps into requirements.txt
It is true that the code using the modules is still utilized in tests
only; but it's also true that those deps are now needed for example for
oslo-config-generator to work, so in the end, it's not only about tests.

Change-Id: I9e27aca32be03130057e00c727d29cb26532e860
Related-Bug: #1492714
2016-12-17 07:39:59 +00:00
Omer Anson
9183da7c96 Adopt privsep and read routing table with pyroute2
Make use of oslo.privsep to support namespaces. This includes all
relevant code necessary for oslo.privsep to work.

Change ip_lib's get_routing_table method to use pyroute2, rather than
parsing the output of 'ip route'.

Change-Id: I89bfa3dbf1776da973cfca389b2841019a520f75
Partial-Bug: 1492714
Co-Authored-By: Angus Lees <gus@inodes.org>
2016-12-21 17:52:58 +02:00
OpenStack Proposal Bot
427a960d68 Updated from global requirements
Change-Id: Ie4e90456ba686a8e7a74625df659bef100c7031c
2016-11-22 13:56:13 +00:00
Ihar Hrachyshka
4e25ba840a Switch to new hacking 0.12
The release includes its own check for delayed string interpolation for
log messages, so we can now remove our own check for the same thing. The
check is off-by-default, so we need to explicitly enable it. Sadly,
select= directive in tox.ini is broken [1] so we need to enable the
check with flake8 argument instead.

[1] https://github.com/PyCQA/pycodestyle/issues/390

Change-Id: Idc6b8e5b1cb594e130d4cc0cbcfffd362f9ab86a
2016-11-08 03:36:00 +00:00
OpenStack Proposal Bot
ac2b7b0592 Updated from global requirements
Change-Id: I24f6b2ef22df782b24741020c77ee416f4b591f7
2016-11-04 14:10:47 +00:00
OpenStack Proposal Bot
a44543ff68 Updated from global requirements
Change-Id: Ib28315e083cb7c96f78c4423246b59dae4b3d456
2016-10-22 01:22:09 +00:00
OpenStack Proposal Bot
f1099f1212 Updated from global requirements
Change-Id: I46f0ff10c62040a705d984940f839de1c8954bdd
2016-10-07 19:40:57 +00:00
OpenStack Proposal Bot
ddc2367a94 Updated from global requirements
Change-Id: I61477af8822a0f623b7bebef6b53f8e833b6293a
2016-09-27 22:34:47 +00:00
Henry Gessau
e17d8eca22 Remove requests-mock from test-requirements
It should have been removed when vpnaas was decomposed.

Change-Id: I24efaa5e775bcb25ca6f9a2abc5b602ceaaa09b4
2016-09-26 00:31:59 -04:00
OpenStack Proposal Bot
114dc49510 Updated from global requirements
Change-Id: I804fe75a8b54152ec206344c420b69dc2b1a6a46
2016-09-01 04:58:44 +00:00
Ken'ichi Ohmichi
54b2efe29d Use tempest.lib tenants_client
Tempest 12.1.0 has been released for new library interfaces.
These interfaces are stable[1] and we need to switch using them
instead of current using unstable interfaces.
This will be helpful to avoid breaking gate jobs.

[1]: https://github.com/openstack/tempest/blob/master/doc/source/library.rst#stability

Change-Id: I74a5d5ed43f758b88a22ded293d85d046005d41f
2016-07-01 15:57:03 -07:00
OpenStack Proposal Bot
6914c7751a Updated from global requirements
Change-Id: I0990756b0d133e51cbde1f85cab8c8d3891b72a3
2016-06-24 17:07:49 +00:00
OpenStack Proposal Bot
2dd7344869 Updated from global requirements
Change-Id: I037bfe39806b22e8ecc79552547a254e401dd719
2016-06-22 19:59:09 +00:00
OpenStack Proposal Bot
4874af3904 Updated from global requirements
Change-Id: I3923798bea15fbd75138482af3bbe094079d4349
2016-06-13 21:52:14 +00:00
Miguel Angel Ajo
40e10a3150 Add sanity check for idempotent id's in tempest tests
Idempotent id's for tempest tests must be unique, as it's used to trace
tests even in the event of refactors [1].

This patch adds a new check using check-uuid tool from tempest to
validate id uniqueness. This adds a new test-only dependency to pull in
tempest from PyPI to make pep8 tox target work.

Also, the duplicate idempotent id's in our tests have been fixed.

[1]
http://docs.openstack.org/developer/tempest/HACKING.html#test-identification-with-idempotent-id

Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: Ie92e4576d9ce6c26f19bdd668426c71a62409e7a
2016-06-08 23:51:15 +02:00
OpenStack Proposal Bot
93eeaf669b Updated from global requirements
Change-Id: I0a80cee947037f511f19ac648c6e26cee2128743
2016-06-02 04:06:04 +00:00
Jenkins
e0c2122222 Merge "Use unittest2 uniformly across Neutron" 2016-06-01 16:18:53 +00:00
OpenStack Proposal Bot
5fc3fbe7ae Updated from global requirements
Change-Id: I210a60dbd4f1eaf339858188e46a2bb2c24f0730
2016-05-31 18:53:18 +00:00
OpenStack Proposal Bot
2592b39df1 Updated from global requirements
Change-Id: I23b9bcbc2d94e8b03ba5fca885ebd94ca51c295b
2016-05-28 00:36:03 +00:00
Martin Hickey
afaad48aa3 Use unittest2 uniformly across Neutron
unittest2 contains bug fixes to unittest for all versions of Python<3.5.
Move unittest references to unittest2.

Bumped hacking requirement to reflect the version in
openstack/requirements that is the minimal version that supports
off_by_default checks.

Change-Id: I2d26534230ffe5d01aa0aab6ec902f81cfba774d
Depends-On: I883223962426ed8e9cdf4e304dfed17ef0946c8a
2016-05-23 13:13:17 +00:00