Commit Graph

70 Commits (7416b91cf74776530eafc62cc9b83c49a8103748)

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>
3 years ago
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
3 years ago
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
3 years ago
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
5 years ago
OpenStack Proposal Bot 24f82fe975 Updated from global requirements
Change-Id: I0b6d108af7379683b8a15fdfb9e5f03621828c0a
5 years ago
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
5 years ago
OpenStack Proposal Bot 1b9e59b4a4 Updated from global requirements
Change-Id: I7a631b5918cb01dfa1aa351cac8e53115379fbe0
6 years ago
OpenStack Proposal Bot 05c86924cd Updated from global requirements
Change-Id: I19c957445ccdb7f260c99529cdc7ce32373d20f4
6 years ago
OpenStack Proposal Bot 368390be8f Updated from global requirements
Change-Id: I5e3a463ede2e678fbb784ad63ca469090e0d6180
6 years ago
OpenStack Proposal Bot 088fb83bf8 Updated from global requirements
Change-Id: I91499d0e2201a42f1dbd9316322fa8b1e00069a5
6 years ago
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
6 years ago
OpenStack Proposal Bot 09f926310b Updated from global requirements
Change-Id: Iafacd2ef6f5031c109ebf5e06f40fb9c4c05207b
6 years ago
OpenStack Proposal Bot 0e873a2d28 Updated from global requirements
Change-Id: I69c1c41e4f1762ee028402ffb241efc517601400
6 years ago
OpenStack Proposal Bot e7eaab4ee4 Updated from global requirements
Change-Id: I3f3d138d205d9fc2841c039b24e978c817b81d51
6 years ago
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
6 years ago
OpenStack Proposal Bot 0b5a90e12a Updated from global requirements
Change-Id: If1dd2f2dc3b0fd44aff3587b958f2db2b0a04cf8
6 years ago
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
6 years ago
OpenStack Proposal Bot 13a7fec759 Updated from global requirements
Change-Id: I958576f5679ed176107d9cb9a4bf0dd1ff00b054
6 years ago
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
6 years ago
OpenStack Proposal Bot 313ee10990 Updated from global requirements
Change-Id: I9c83cfc7eb2f57bab20759a4c9808f19f60ad503
7 years ago
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
7 years ago
OpenStack Proposal Bot 929fe95dad Updated from global requirements
Change-Id: Ie4f71910788d4107add63f5a8ed712df2987fdc2
7 years ago
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
7 years ago
OpenStack Proposal Bot d33ee0a74d Updated from global requirements
Change-Id: I33d204ffcdc9b5bb86acfd717ea99a99d1d64e21
7 years ago
OpenStack Proposal Bot ea099cce57 Updated from global requirements
Change-Id: I39b1e1a9362e51b17c99b6e38c0a3bafb72102bd
7 years ago
OpenStack Proposal Bot 00abfde60a Updated from global requirements
Change-Id: I675a6d1b4275b120c9f8dcbaf2ddc1f79b0d5f6b
7 years ago
Jenkins 9a62d0cc5e Merge "Test-requirements: Bump hacking to >=0.11" 7 years ago
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
7 years ago
OpenStack Proposal Bot 17b9346397 Updated from global requirements
Change-Id: I07f98a5444b19b7c62f04aa87c64b5b04f28273e
7 years ago
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
7 years ago
OpenStack Proposal Bot 254a9a5aa5 Updated from global requirements
Change-Id: I282cfa9422e5364252f7b43d20dc650cb97a8cee
7 years ago
OpenStack Proposal Bot aa3cd71fe6 Updated from global requirements
Change-Id: I7615e95f59dc1cdd8a7200361d16e3bae93f631a
7 years ago
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
7 years ago
OpenStack Proposal Bot 8b2c2c3a15 Updated from global requirements
Change-Id: Ibe809860c93cd98cb3694a2cca377945869a6f32
7 years ago
OpenStack Proposal Bot 3af6b7afe1 Updated from global requirements
Change-Id: I7545882d94b6a43b8a4dec4b9d757a4800831684
8 years ago
OpenStack Proposal Bot 5f40bcd3d1 Updated from global requirements
Change-Id: I25361c0acee423c4c8d23c00716384e0deed1a32
8 years ago
OpenStack Proposal Bot 6532c216a2 Updated from global requirements
Change-Id: I1b392af641be03091b4ac1298b5c85f34998e047
8 years ago
OpenStack Proposal Bot d928eb8fdc Updated from global requirements
Change-Id: I3fe1392b668e606c845f73c3edbcc230ab127a73
8 years ago
OpenStack Proposal Bot 5bad7816bb Updated from global requirements
Change-Id: I48b3e178bf6741231cb5fafd8579265a2c0d2739
8 years ago
OpenStack Proposal Bot 572b1d146d Updated from global requirements
Change-Id: I9425ef323dec64c0b49b387539003fc074219050
8 years ago
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
8 years ago
OpenStack Proposal Bot cfc3aff5de Updated from global requirements
Change-Id: I97e52fd9652df96de03d6d126026144731b87c70
8 years ago
OpenStack Proposal Bot ac095b44c6 Updated from global requirements
Change-Id: I1e5cac11417dc991d55cbfe2bd9d916392fe0062
8 years ago
OpenStack Proposal Bot 8fba8d3f46
Updated from global requirements
Change-Id: I9b8c81e622f1dacbc7005ba4f7a97c6500120565
8 years ago
OpenStack Proposal Bot d1a391a554 Updated from global requirements
Change-Id: Ib62d7ff4a2299315a917b28637f558064bf9eaa7
8 years ago
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
8 years ago
OpenStack Proposal Bot a5f9a741ba Updated from global requirements
Change-Id: I071152a16f9e42d2eaa9b6f2358e5344c9ad28e6
9 years ago
OpenStack Proposal Bot 9dd154e13c Updated from global requirements
Change-Id: Ie493cb22421af0498575c2c44deafc4e8a9ef56d
9 years ago
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
9 years ago
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
9 years ago