53 Commits

Author SHA1 Message Date
Chuck Short
cce25ed22e 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.

Also adjust requirements to pass the gate.

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

Change-Id: I79b2220c20a04e2e33360bc330b5b4b4124caf71
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-14 07:49:50 -04:00
Harald Jensås
afa03647dd Cap hacking at 1.2.0
In commit 02ece7fc9f133d41972e977d900e2411166be550 hacking
was capped at version 1.1.0 to fix gate issue.

Change I6c76a43353b1beb572dbde78dba4b4a839d45ea7 fixes
the issues with new rules and new defaults in hacking 1.2.0.

Story: 2001985
Task: 22104
Change-Id: Ib912724e83090a72d5c97c6bb2cb41b935265fdb
2018-06-15 13:30:00 +02:00
ghanshyam
be3f7eec18 Gate fix: Cap hacking to avoid gate failure
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.

Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc

That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.

If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.

Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html

Change-Id: Icc8d1ac4e076e09922c418368df8300404030c3b
2018-05-09 02:45:02 +00:00
OpenStack Proposal Bot
46ec5a2118 Updated from global requirements
Change-Id: I45ab684a0f465d7f9c6c4e172af742a44318a19b
2018-03-15 07:00:30 +00:00
OpenStack Proposal Bot
dc254b5659 Updated from global requirements
Change-Id: Ibc1719a9e91c3f99b2394b0d8514ff5b346aa947
2018-01-29 00:09:48 +00:00
OpenStack Proposal Bot
3d3e533828 Updated from global requirements
Change-Id: Iab8f88000247b532d85f3f5b2101dcaa03eaf2c7
2018-01-17 20:35:29 +00:00
OpenStack Proposal Bot
ee7a761812 Updated from global requirements
Change-Id: I312c19b8306f542ff03a38e059030976d4017001
2018-01-16 12:29:24 +00:00
John L. Villalovos
2064742523 Update version of flake8-import-order package
Use latest version of flake8-import-order package, like we do in
openstack/ironic

Fix the issues detected by new version.

Change-Id: I3b016e35f98c8f88500824e612838f9923b4c3b9
2017-12-14 11:38:27 -08:00
John L. Villalovos
7dbb7c1721 flake8: Enable some off-by-default checks
Enable the following off-by-default checks:
    * [H204] Use assert(Not)Equal to check for equality.
    * [H205] Use assert(Greater|Less)(Equal) for comparison.

Increase the version of hacking in test-requirements so that can use new
off-by-default checks.

No changes to code were required.

Change-Id: I7fe394d99eee980e90768902b9fc264a8be3fe15
2017-10-16 14:25:15 -07:00
OpenStack Proposal Bot
bc87e6edb3 Updated from global requirements
Change-Id: I0e8d57b36ab2b5bb8ceddb3f8ce65c13a3b4bfaf
2017-10-05 18:51:25 +00:00
Pavlo Shchelokovskyy
7625ed68c8 Use ostestr unit test runner
This patch moves ironic-inspector to use 'stestr' test runner
via 'ostestr' wrapper.

Effective changes:

- unit tests are now being run in parallel by default
- 'py*' jobs are not running code coverage measurements,
  which is left for 'cover' job only
- 'cover' job now also produces html reports consumable by upstream CI,
  and fails under 90% of code coverage
- users can leverage all the ostestr/stestr features

Change-Id: I75f539457dbb1d811fdee69de52d1bcee4c6ebe6
Depends-On: Ica838db23b5714c2da1e4313e1a7ece0ca241d44
Closes-Bug: #1666232
2017-10-02 14:28:58 +00:00
OpenStack Proposal Bot
adffb3b124 Updated from global requirements
Change-Id: Ic500838a7cbdeeb5076e76a7176d4e2751664ede
2017-09-16 23:13:00 +00:00
OpenStack Proposal Bot
360b194fcf Updated from global requirements
Change-Id: I3aa3d3a94394575fdc75370e26f33181504023c8
2017-09-13 12:51:21 +00:00
OpenStack Proposal Bot
776e3455f7 Updated from global requirements
Change-Id: I33b3a93aa9c8f1b7e191ec050046788267f51980
2017-09-11 21:37:34 +00:00
OpenStack Proposal Bot
0ed098a36a Updated from global requirements
Change-Id: I8344e48c29504ec2bfea64c3a2084647fcfda20b
2017-08-18 11:30:59 +00:00
OpenStack Proposal Bot
b4391dec09 Updated from global requirements
Change-Id: If5f45c8838ec5b3b8c511a4c2be6c435ccc0c1fa
2017-07-29 21:44:37 +00:00
dparalen
aa5ad2ec16 switch from oslosphinx to openstackdocstheme
Change-Id: I78740d50bcc79137bb7a4172c2695cc670a595ce
Partial-Bug: 1702142
2017-07-10 16:21:56 +02:00
OpenStack Proposal Bot
7fa31ac6be Updated from global requirements
Change-Id: Iee8ab8c240d1acae50cb955d9ff98eb24eced54b
2017-06-30 12:15:39 +00:00
OpenStack Proposal Bot
3a3d344706 Updated from global requirements
Change-Id: If3a60fd614fe251f5395d84a7d8032c7bf81b00b
2017-06-02 21:56:21 +00:00
Jenkins
dacd376320 Merge "Bump pydot2 to pydot3" 2017-05-25 14:43:06 +00:00
dparalen
b1ce6f9ba3 Bump pydot2 to pydot3
pydot2 is incompatible with python3[1]. Bumping the pydot release (through
the test-requirements.txt) rather than pinning basepython to fix this.

Also updating the states.svg with the tox -egenstates result of running
pydot3

[1] https://github.com/erocarrera/pydot/issues/107

Change-Id: I9aa0e701af3915b39e1a5681c2105a6afb687dd2
Depends-On: I82e3651eefd3186c9e131b0db29a328967fb3161
2017-05-17 16:51:32 +02:00
OpenStack Proposal Bot
095cea52e2 Updated from global requirements
Change-Id: I2d65f56f2c5dbf6aaa719cf0651b5d87f374836a
2017-05-17 13:40:11 +00:00
OpenStack Proposal Bot
23bb748b18 Updated from global requirements
Change-Id: I330b1ba528bc7fda5d603a0af143dabe1c445605
2017-05-15 00:44:59 +00:00
John L. Villalovos
ea97d2b733 Use flake8-import-order
Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: I9ced9c297273db0eec6ab3995b663b1e8dffe87d
2017-02-16 10:11:06 -08:00
OpenStack Proposal Bot
5b54f66f7a Updated from global requirements
Change-Id: I04ed7b34c0df6c56ca0ca0f1c7c5f2b7cb741704
2017-02-14 05:51:51 +00:00
John L. Villalovos
ba9adaa2f5 Update to hacking 0.12.0 and use new checks
Use hacking 0.12.0

Use the new checks that are available:
    [H106] Don’t put vim configuration in source files.
    [H203] Use assertIs(Not)None to check for None.
    [H904] Delay string interpolations at logging calls.

Fix code so tests pass.

Change-Id: I7b1cd98aeb3bb8f4f01dd1d69d1afcd839749074
2016-11-09 05:37:10 -08:00
Jenkins
4910a25464 Merge "Bump hacking to 0.11.0 in test-requirements" 2016-11-07 13:00:39 +00:00
OpenStack Proposal Bot
c30b77f9dc Updated from global requirements
Change-Id: If39e55dde1ef8bd767370707c0ada3984dabf9aa
2016-11-06 01:59:26 +00:00
OpenStack Proposal Bot
739e9c289b Updated from global requirements
Change-Id: I21c90cf3ad7e791cf22ec0f8303e4254d4804115
2016-10-27 12:14:35 +00:00
Jay Faulkner
75ab592cd1 Bump hacking to 0.11.0 in test-requirements
Hacking's latest release is 0.11.0. Most other ironic projects are using
this release.

These updates are done project-by-project to avoid introducing
unexpected new hacking rules to projects. This version bump already
applies cleanly to ironic-inspector with no code style changes.

Change-Id: Iebb95fdb9147f1c52d795ce7978095f9873f931d
2016-10-19 04:18:18 -07:00
OpenStack Proposal Bot
09b3e94593 Updated from global requirements
Change-Id: I694e02dc739b77d60ff35ba76dfbf5e4a244ee0e
2016-10-04 13:54:19 +00:00
OpenStack Proposal Bot
cc931f51d6 Updated from global requirements
Change-Id: If111d00a7605909b574322d380bdb5deacd7b3c3
2016-09-27 10:00:19 +00:00
OpenStack Proposal Bot
7cbdd5dc8a Updated from global requirements
Change-Id: Ie2a8b4c3bcc1cd0225d8a01ad57e93c6e7f88233
2016-06-24 03:12:01 +00:00
OpenStack Proposal Bot
0662054183 Updated from global requirements
Change-Id: Id0b89350c08c016b273bdb7f697f167a58337f91
2016-06-21 17:59:48 +00:00
OpenStack Proposal Bot
6e39b637e8 Updated from global requirements
Change-Id: I74be32fcb5fb3ca7c70149b68dd6f6c02a08518a
2016-06-03 18:13:18 +00:00
OpenStack Proposal Bot
1369235bf9 Updated from global requirements
Change-Id: I0dd3331fd38d2fbd1a865e3899130fbd9dd578b7
2016-05-31 03:01:00 +00:00
OpenStack Proposal Bot
f66592b4f0 Updated from global requirements
Change-Id: I743db75923339185f3a7d2152dcbccf02c0e8071
2016-05-30 00:34:05 +00:00
OpenStack Proposal Bot
1d8cfe919a Updated from global requirements
Change-Id: I5434e11d9a9bd9b4caa5008603481a67135b6d1e
2016-05-26 16:58:50 +00:00
OpenStack Proposal Bot
2a12cff641 Updated from global requirements
Change-Id: If1d1f8058a180cb8d0661e9d4c174ebd1ef06fd7
2016-04-08 00:27:32 +00:00
Anton Arefiev
a5c8c2aeb1 Add db migrations tests
Tests for database migrations. There are "opportunistic" tests here,
supported backends are sqlite (used in test environment by default),
mysql and postgresql, which are required properly configured unit
test environment.

Change-Id: I660fad241c71f2e73b41f317d00adf97551579c6
2016-03-01 15:04:59 +02:00
OpenStack Proposal Bot
a94e0d2d7f Updated from global requirements
Change-Id: Icdd831a61abdaebaf0bf6d5a98fab2df195fff03
2016-01-19 13:47:50 +00:00
Serge Kovaleff
292e8c9cfd Generate Sphinx docs
Change-Id: I540b28d6173b30baf6ee2e6e14d8ba5ffb67b660
Closes-Bug: #1514803
2015-11-27 11:56:36 +02:00
Dmitry Tantsur
f5671a4376 Use Reno for release notes management
Shameless copy-paste from Ic700d719242b17532b0b43a68b7eff507cb3a43c
and Iaef8b78802c04ec8306dd6f1da02d6c6a50697d8 with minimal changes.

Change-Id: I604136b72e2cf6b2bbbc3f9dc46ea3b419e495df
2015-11-26 10:12:14 +01:00
Dmitry Tantsur
ad576bd806 Convert functional test to a framework and decouple from client
Using client library here is not convenient, as it does not have
new features we need to test. Also we should only test API itself.

Instead, we'll use new Base class and mocked_server context manager
to build a separate functional test for client.

Change-Id: I44250d3df0d202e5fe5f94e6ec553a1f86053637
2015-07-23 09:31:19 +02:00
OpenStack Proposal Bot
bf425215fd Updated from global requirements
Change-Id: Id2e0a196057c971975ecb5de62cc2e1e681cca63
2015-07-22 04:55:51 +00:00
OpenStack Proposal Bot
15cc2151a6 Updated from global requirements
Change-Id: I276f132efe83d549f1c52911b77ca7143b731a79
2015-07-17 16:13:18 +00:00
OpenStack Proposal Bot
743cf048b7 Updated from global requirements
Change-Id: Ife9dba34c89d01d160a118b47b1e1af57ab3a9cf
2015-07-12 15:18:23 +00:00
Dmitry Tantsur
def1f3700c Make functional test importable and stop depending on DIB code
With integration tests on the radar we no longer need to do
integration checking between ramdisk code and inspector here.

Also copy integration test script from functest to devstack.
Once we update the gate to use the new script, the whole functest
directory should be deleted.

Change-Id: Ic29e954fac1c535cb4f83d46ccea9ebfb80f840c
Closes-Bug: #1468748
2015-06-30 07:57:06 +00:00
OpenStack Proposal Bot
d8b60f8485 Updated from global requirements
Change-Id: If09189fc3b157665141b9e2cb5c556377c1ed3d3
2015-06-22 21:37:22 +00:00
Dmitry Tantsur
b2f9af4f53 Update from global requirements
Change-Id: I8a0d0e1fe01b7f9d9f2658738fb9a1af6359a5d2
2015-06-02 14:16:59 +02:00