Commit Graph

70 Commits

Author SHA1 Message Date
Sean McGinnis eed8074e64 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: If1de2f48da1fd6ed3f96c98b8dce9eace4f8095d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-17 17:22:58 +00:00
Ghanshyam Mann 8d1974efa5 Bump hacking min version to 3.0.1
hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.

bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.

The 2.6.0 version introduces some checks that cause failures
with the current code. hacking and flake8 cap could have solve
the pycodestyle compatible version but flake8-import-order which
does not cap the pycodestyle pulled its latest version and break
things.

Change-Id: I8996fec39e9b7c411b2708eb8baeb50aa2c28d42
2020-05-13 03:06:16 +00:00
Andreas Jaeger f27a334e21 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8, remove vi check, it's now in
hacking as H106.

The tempest plugin is used on older branches as well.
We really only need hacking on this repo anyways,
where we no longer support python 2, so here we
make the requirement specific to python 3.

Change-Id: I3f4216f66606fbc450a46c93de306399b7f3cd65
2020-04-04 10:33:23 +02:00
Stephen Finucane fc42cc6be7 Bump hacking to 1.1.0
hacking 1.0+ adds a couple of additional checks that are helpful as part
of the transition to Python 3. However, hacking 1.1.0 incorporated
flake8 2.6.x, which transitioned from pep8 to pycodestyle. Tempest
provides some hacking extensions and these use pep8 imports. As things
stand, projects that wish to use these hacking extensions must either
constrain themselves to the same older hacking versions or install pep8
manually. Neither of these approaches is particularly attractive so
instead transition to hacking 1.1.0 ourselves. This has the benefit of
giving us the additional checks for Python 3.

Change-Id: I09e3d2461366bb439bcb817149ce807a232acfbb
2018-07-18 10:42:38 +01:00
OpenStack Proposal Bot 24f82fe975 Updated from global requirements
Change-Id: I0b6d108af7379683b8a15fdfb9e5f03621828c0a
2018-01-17 05:52:56 +00:00
junboli 173b11cb50 Follow the new PTI for document build
For compliance with the Project Testing Interface as
described in [1]:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
For more detials information, please refer to [2]:
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I648a78396a2e27f1d7197e89cddba73f8aa858aa
2018-01-15 11:25:35 +08:00
OpenStack Proposal Bot 1b9e59b4a4 Updated from global requirements
Change-Id: I7a631b5918cb01dfa1aa351cac8e53115379fbe0
2017-09-14 00:10:19 +00:00
OpenStack Proposal Bot 05c86924cd Updated from global requirements
Change-Id: I19c957445ccdb7f260c99529cdc7ce32373d20f4
2017-08-18 11:44:10 +00:00
OpenStack Proposal Bot 368390be8f Updated from global requirements
Change-Id: I5e3a463ede2e678fbb784ad63ca469090e0d6180
2017-07-27 19:23:46 +00:00
OpenStack Proposal Bot 088fb83bf8 Updated from global requirements
Change-Id: I91499d0e2201a42f1dbd9316322fa8b1e00069a5
2017-07-06 05:04:51 +00:00
bhavani.cr 29b2230828 Switch from oslosphinx to openstackdocstheme
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow.
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I07652e3a086a650ab9f08f6da7ddf0e8145b2969
2017-07-04 11:01:33 +00:00
OpenStack Proposal Bot 09f926310b Updated from global requirements
Change-Id: Iafacd2ef6f5031c109ebf5e06f40fb9c4c05207b
2017-06-27 12:24:26 +00:00
OpenStack Proposal Bot 0e873a2d28 Updated from global requirements
Change-Id: I69c1c41e4f1762ee028402ffb241efc517601400
2017-06-04 01:19:44 +00:00
OpenStack Proposal Bot e7eaab4ee4 Updated from global requirements
Change-Id: I3f3d138d205d9fc2841c039b24e978c817b81d51
2017-05-18 12:56:52 +00:00
Masayuki Igawa d2a657de0e
Update document theme and section headers
This commit updates the document theme. It is clear, simple, up-to-date
and beautiful. And this commit also updates section headers to fix the
document index.

Change-Id: Ia1e8e16e5f5ddb06e4c4ccb4979b0750b88a4db4
2017-05-09 15:34:45 -04:00
OpenStack Proposal Bot 0b5a90e12a Updated from global requirements
Change-Id: If1dd2f2dc3b0fd44aff3587b958f2db2b0a04cf8
2017-03-08 17:20:35 +00:00
ricolin 1d0cc9c53f [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: I07b1fbf01f96c024b25178e42a4dd566b905c103
2017-03-02 19:48:18 +08:00
OpenStack Proposal Bot 13a7fec759 Updated from global requirements
Change-Id: I958576f5679ed176107d9cb9a4bf0dd1ff00b054
2017-03-01 04:17:53 +00:00
Masayuki Igawa 134d9f748b
Introduce flake8-import-order
This commit introduces flake8-import-order to check import orders
automatically. We shouldn't do it manually.

Depends-On: Ia2140f5566ce169b076ffa5c9ebfbdbfc41e5bed
Change-Id: Iff75ebec42b295870edd1c04001adfb17460a682
2017-02-13 17:16:18 +09:00
OpenStack Proposal Bot 313ee10990 Updated from global requirements
Change-Id: I9c83cfc7eb2f57bab20759a4c9808f19f60ad503
2016-11-25 03:36:43 +00:00
ghanshyam aeb7657eb0 Bump hacking version in test-requirements.txt
hacking version 0.12.0 has been released and tempest
pass all the rules with new version.

Change-Id: Ife52c4a0e758bde5b41d9fc4b219e9faef60ae18
2016-11-15 11:38:02 +09:00
OpenStack Proposal Bot 929fe95dad Updated from global requirements
Change-Id: Ie4f71910788d4107add63f5a8ed712df2987fdc2
2016-11-04 10:39:04 +00:00
Matt Riedemann cbbc48c15a Remove duplicate python-subunit from test-requirements.txt
python-subunit was in both requirements and test-requirements
which pip doesn't like.

Change-Id: I27ccd4cac4e708586d3279722710c867195c373c
2016-10-06 16:21:59 -04:00
OpenStack Proposal Bot d33ee0a74d Updated from global requirements
Change-Id: I33d204ffcdc9b5bb86acfd717ea99a99d1d64e21
2016-09-30 02:25:34 +00:00
OpenStack Proposal Bot ea099cce57 Updated from global requirements
Change-Id: I39b1e1a9362e51b17c99b6e38c0a3bafb72102bd
2016-09-27 22:40:44 +00:00
OpenStack Proposal Bot 00abfde60a Updated from global requirements
Change-Id: I675a6d1b4275b120c9f8dcbaf2ddc1f79b0d5f6b
2016-06-28 18:57:02 +00:00
Jenkins 9a62d0cc5e Merge "Test-requirements: Bump hacking to >=0.11" 2016-06-28 16:32:06 +00:00
Jordan Pittier b26035147d Test-requirements: Bump hacking to >=0.11
0.11 was released a couple of weeks ago and we pass all the newly
introduced rules.

Change-Id: Iea88f1d713d045a675df428324aecfe5e24ca279
2016-06-21 16:12:51 +00:00
OpenStack Proposal Bot 17b9346397 Updated from global requirements
Change-Id: I07f98a5444b19b7c62f04aa87c64b5b04f28273e
2016-05-30 17:51:22 +00:00
Jordan Pittier 0021c29a75 Replace Mox with Mock
According to [1] "New test cases should be implemented using Mock.
It is part of the Python standard library in Python 3 and as such
is the preferred method for OpenStack." So let's kill Mox in favor
of Mock.

[1] http://docs.openstack.org/infra/manual/developers.html#peer-review

Change-Id: I0db1cf3969a8d5ae90e1a13330799e69c7751207
2016-04-14 10:16:28 +02:00
OpenStack Proposal Bot 254a9a5aa5 Updated from global requirements
Change-Id: I282cfa9422e5364252f7b43d20dc650cb97a8cee
2016-04-08 23:57:22 +00:00
OpenStack Proposal Bot aa3cd71fe6 Updated from global requirements
Change-Id: I7615e95f59dc1cdd8a7200361d16e3bae93f631a
2016-02-26 21:47:33 +00:00
Andrea Frittoli (andreaf) 897ecfb602 Add reno to tempest
Tempest is going to be on pypi and expose a stable interface in
the tempest.lib namespace, so adding reno to it.

Partially-implements: bp tempest-lib-reintegration
Change-Id: Ice4c27f7bc6d0154cfced9789f3c82236106a9e3
2016-02-24 11:31:32 -05:00
OpenStack Proposal Bot 8b2c2c3a15 Updated from global requirements
Change-Id: Ibe809860c93cd98cb3694a2cca377945869a6f32
2016-01-22 04:10:15 +00:00
OpenStack Proposal Bot 3af6b7afe1 Updated from global requirements
Change-Id: I7545882d94b6a43b8a4dec4b9d757a4800831684
2015-11-20 05:00:17 +00:00
OpenStack Proposal Bot 5f40bcd3d1 Updated from global requirements
Change-Id: I25361c0acee423c4c8d23c00716384e0deed1a32
2015-08-04 14:27:00 +00:00
OpenStack Proposal Bot 6532c216a2 Updated from global requirements
Change-Id: I1b392af641be03091b4ac1298b5c85f34998e047
2015-07-29 06:15:35 +00:00
OpenStack Proposal Bot d928eb8fdc Updated from global requirements
Change-Id: I3fe1392b668e606c845f73c3edbcc230ab127a73
2015-07-23 12:54:19 +00:00
OpenStack Proposal Bot 5bad7816bb Updated from global requirements
Change-Id: I48b3e178bf6741231cb5fafd8579265a2c0d2739
2015-07-15 21:27:22 +00:00
OpenStack Proposal Bot 572b1d146d Updated from global requirements
Change-Id: I9425ef323dec64c0b49b387539003fc074219050
2015-07-12 15:23:09 +00:00
Matthew Treinish 7a51877e3c
Add basic external test plugin support to tempest
This commit starts the basic framework for using external plugins in
tempest. It adds a new singleton class to load the plugins once from
stevedore and also provides an interface for different steps in the
tempest execution to use plugins as well as in-tree code.

As part of this an ABC abstract class is created to simplify the
plugin side creation. Eventually the expectation is that this
abstract class will live in tempest-lib. But, for right now while
this feature is still experimental and under development this will
likely change frequently so it'll live in tempest for the time being.

Partially Implements bp external-plugin-interface

Change-Id: I8ebabdb4ce9f4d3b3aca375158835f907d5ca315
2015-07-07 11:34:13 -04:00
OpenStack Proposal Bot cfc3aff5de Updated from global requirements
Change-Id: I97e52fd9652df96de03d6d126026144731b87c70
2015-06-22 20:01:22 +00:00
OpenStack Proposal Bot ac095b44c6 Updated from global requirements
Change-Id: I1e5cac11417dc991d55cbfe2bd9d916392fe0062
2015-06-11 12:41:19 +00:00
OpenStack Proposal Bot 8fba8d3f46
Updated from global requirements
Change-Id: I9b8c81e622f1dacbc7005ba4f7a97c6500120565
2015-05-11 22:25:46 -04:00
OpenStack Proposal Bot d1a391a554 Updated from global requirements
Change-Id: Ib62d7ff4a2299315a917b28637f558064bf9eaa7
2015-03-23 08:46:15 -04:00
Joe Gordon 28788b4ec0 Move to hacking 0.10
Release notes:
http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html

Fix minor changes for new/improved rules.

Remove references to deleted rules. Skip new rule H105, enable in
subsequent patch.

Change-Id: Ibe07679034f575c403aced46c0221b96d299ea83
2015-02-25 12:42:37 -08:00
OpenStack Proposal Bot a5f9a741ba Updated from global requirements
Change-Id: I071152a16f9e42d2eaa9b6f2358e5344c9ad28e6
2014-11-18 11:37:43 +00:00
OpenStack Proposal Bot 9dd154e13c Updated from global requirements
Change-Id: Ie493cb22421af0498575c2c44deafc4e8a9ef56d
2014-09-29 21:05:32 +00:00
James E. Blair f14a524c4c Remove docutils pin
This was added to work around bug 1091333.  A new sphinx has been
released and so this is no longer necessary.

Change-Id: I6ea61a3cc441dd1ca2ced7e2fd837a55b917f76d
2014-07-08 16:46:23 -07:00
Matt Riedemann a0c76894d6 Require stevedore for check_uptodate.sh
The Oslo config generator imports the stevedore.named module but
stevedore isn't listed as a requirement for Tempest, so config
generation can fail with an ImportError.

Closes-Bug: #1333998

Change-Id: I47ecac0f5881aceb279391a981780a2dd72f0d2b
2014-06-24 13:56:57 -07:00