Commit Graph

145 Commits

Author SHA1 Message Date
Takashi Kajinami 813f229a08 Bump hacking
hacking 3.0.x is too old.

Also fix failures detected by the new hacking version.

Change-Id: Ifccbbf2ff7b0824d2079937526d3eee1c536349b
2024-01-18 19:04:37 +09:00
Takashi Kajinami b08bc694dc Move ddt to test requirements
ddt is only used by test code so is not needed at runtime.

Change-Id: I885ec7fb9c76bc43c7f9eebcef349f660935a9cf
2023-12-26 18:05:21 +09:00
wangzihao f616f43ced Update doc8 version
The doc8 lib supports Py36 starting from version 0.8.1

Change-Id: Ie6d64485622381031130fa12f963eab5a6a9c555
2021-01-06 16:28:32 +08:00
Rabi Mishra 4370af1572 Align lower-constraints for new pip
New pip version is quite strict and does not allow conflicting
minimum version deps in lower-constraints.

Change-Id: Ie524c54e3b982bc6b0786c875d34d177444ec6fc
2020-12-09 10:04:52 +05:30
Emilien Macchi 17a491449f Fix lower-constraints errors
This patch changes the lower-constraint requirements to make them
py3.8 compatible. See https://bugs.launchpad.net/nova/+bug/1886298

Markupsafe==1.1.1
PyMySQL==0.8.0
PyYAML==3.13
cffi==1.14.0
greenlet==0.4.15
kombu==5.0.1
lxml==4.5.0
oslo.db==6.0.0
paramiko==2.7.1
psycopg2==2.8
sqlalchemy-migrate==0.13.0
tenacity==6.1.0

Also update the test-setup.sh to work with recent version of mysql.

Change-Id: Ibe60d1e536f0e887eceea32b7cb4eec6318e96af
Partial-Bug: #1886298
2020-09-10 14:19:03 -04:00
Ghanshyam Mann a61c4bbe29 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: I4586bde1bd9f33dcdd803900bc648720073bdb62
2020-05-12 19:24:16 -05:00
Sean McGinnis fd6cf83554
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: I8f764e9ba46a4e2055be61eb0fe97d155ab1c70e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-05 08:42:11 -05:00
Andreas Jaeger a27dc56f52 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Update local hacking checks for new flake8.

Ignore new warnings, they will be fixed in followup.

Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.

Add Pygments to lower-constraints to pass requirements-check.

Change-Id: I20da1309e4d65707130fe517f013d3ed625bf94c
2020-04-16 08:41:49 +02:00
gao.hanxiang 011fa22c42 Blacklist bandit 1.6.0 and cap Sphinx on Python2
There's a regression[0] in bandit 1.6.0 which causes bandit to stop
respecting excluded directories, and our tests throw a bunch of
violations. Blacklist this version, but allow newer versions as there is
already a pull request[1] to fix it, and I expect it will be included in
the next release.

Also fix the requirements job which was broken by
https://review.opendev.org/657890 adding a cap on Sphinx on Python 2.

[0] https://github.com/PyCQA/bandit/issues/488
[1] https://github.com/PyCQA/bandit/pull/489

Change-Id: Ieabcd4e8c5e5354125a63e89b9b60931c760858a
2019-05-14 16:50:24 -04:00
Rabi Mishra 87b4a92a62 Fix lower-constraints tox env to use proper constraints
- Bumps some of the lower constraints
- Fixes common/endpoint_utils.py to fallback to use auth_uri.

Change-Id: Ief0868d5feef3ee6b0689c6be27649ff009fbbcc
2019-04-10 09:11:56 +05:30
Zuul 53188f7e92 Merge "Clean up test requirements" 2018-08-03 07:43:35 +00:00
Pavlo Shchelokovskyy 51f566c56c Clean up test requirements
remove os-testr and testrepository in favor of stestr,
and remove qpid-python (does not seem to be imported anywhere).

Also adjust docs to describe running tests with stestr instead of
testrepository.

Change-Id: I12088ea2bf2475963db58d6e8e83fd6abe6f9b3f
2018-07-27 13:38:27 +00:00
Dao Cong Tien e8824a2c93 Adds doc8 check to pep8
This patch adds doc8 check for .rst files to pep8.
Files that fail doc8 check are also fixed.

Ignore D001 of doc8 check. This requires lot of changes and
should be done in a separated patch.

Change-Id: I7732abc55ec27026efbf56663ba02ff27e8ec847
2018-07-26 14:57:58 +07:00
Zane Bitter 170e47d072 Destroy mox forever
Change-Id: Ib983af3392760367c4ce6256456de70d1078fbba
2018-07-05 14:46:21 -04:00
ricolin e82bb7f330 Create doc/requirements.txt
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

Refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html

Change-Id: Ifdfdaacad8574fcfcac9c1b52b0bed6fed4f8411
2018-03-16 00:38:09 +08:00
OpenStack Proposal Bot ebf32764f6 Updated from global requirements
Change-Id: Ifc7d18e59788ce3c949a2292187292dde035979c
2018-03-15 06:56:59 +00:00
OpenStack Proposal Bot 1733058317 Updated from global requirements
Change-Id: I19eb6a9a21b6a1f9a3a6fd42bff3c9355c6b9bcc
2018-03-10 13:13:06 +00:00
OpenStack Proposal Bot fbbb8f0188 Updated from global requirements
Change-Id: Ibcc294bc9848d1c6cde5c232eaf315814675f492
2018-01-27 17:37:51 +00:00
ricolin aed1e6f368 Remove integration and configuration tests
This patch propose to use heat tempest plugin for Integration tests
(with no co-gating potential) and configuration tests.
Also we will remove test_autoscaling_lb from tempest plugin as well,
since it's no longer been used.
Remove senario base, since we now move all senario tests to plugin.

Change-Id: Ice6a0e1fe8ce2e1de5253c674d11949b0f8a6e31
2018-01-26 17:50:58 -05:00
ricolin ba86129965 Remove potential co-gating integration tests
This patch propose to use heat tempest plugin for potential
co-gating integration tests.
These tests are consider as potential co-gating. And we now
already maintain them in heat tempest plugin.

This also disables all except two of the gate/test jobs, to enable us to
land this series and stop the carnage. The jobs will be re-enabled once
all of the duplicated tests have been eliminated.

Change-Id: I55e204b72cd5a2876576852b10ad09f24d04beb4
2018-01-26 17:50:26 -05:00
ricolin d2bf5ecf6a Remove tests for Interop Tests for add-on trademark program
Remove tests which been planned to added to add-on trademark
program. We now maintain these tests in heat tempest plugin.

Change-Id: I458d39f988019c4f1d62c7e39a325a2082a98561
2018-01-19 13:36:49 -05:00
OpenStack Proposal Bot b9e397e5a3 Updated from global requirements
Change-Id: I58a11158b99467d46eb237c3bcf0178ed31eb9ad
2018-01-17 20:33:20 +00:00
OpenStack Proposal Bot 1ac846676a Updated from global requirements
Change-Id: I8e3e26ad738c78fee20dfe0625310d6039e38033
2018-01-16 04:06:43 +00:00
OpenStack Proposal Bot 73355e8f47 Updated from global requirements
Change-Id: Ie17c468e5e437bfdcdf5b44307666b9cb19c9228
2017-11-17 06:47:08 +00:00
OpenStack Proposal Bot 27765bd3b5 Updated from global requirements
Change-Id: Ib8cb68bc949d2397c9803acceeb3b02e63a56ae9
2017-11-16 11:06:40 +00:00
OpenStack Proposal Bot 18880ad21f Updated from global requirements
Change-Id: I7352331708d9f2c16921606df28f2fdb8bc895e7
2017-11-15 18:08:40 +00:00
OpenStack Proposal Bot eba0b5e4e5 Updated from global requirements
Change-Id: I242ed5dc0d6b3ed3ec9b2fe25de3c2020fbf60b8
2017-09-16 23:12:02 +00:00
OpenStack Proposal Bot f3ea69a223 Updated from global requirements
Change-Id: I3a8ea903808dcd060cd8906f20d678fe101ceadb
2017-09-13 12:50:26 +00:00
OpenStack Proposal Bot 668799d00c Updated from global requirements
Change-Id: Ie5ef787ceb4d3e46d993f8896c5f50f068cf13bf
2017-09-11 21:36:36 +00:00
OpenStack Proposal Bot aad6faff8a Updated from global requirements
Change-Id: Ia0a39d3e4f34c48d77f1a04d1f8f08e06ca01dbf
2017-08-22 00:36:15 +00:00
OpenStack Proposal Bot cc4fdcef05 Updated from global requirements
Change-Id: I510e1afabadd6b76dfc8985686ad21c8f45976fe
2017-07-28 12:48:50 +00:00
OpenStack Proposal Bot 1c43ad659c Updated from global requirements
Change-Id: I7b20c28f362ecf0ef7952195fd8a5ef1c8b39a37
2017-07-18 08:53:58 +00:00
OpenStack Proposal Bot f74c00b8cb Updated from global requirements
Change-Id: I9e4f044126c8dc0f2bef78451dbd7c09bd6a3bc4
2017-07-13 14:13:41 +00:00
rabi 00df019f9f switch from oslosphinx to openstackdocstheme
Change-Id: I042e255e544231741b7550fb92b46142ceb0e6cd
2017-07-11 12:27:56 +05:30
OpenStack Proposal Bot 84aca15d40 Updated from global requirements
Change-Id: I04b2c449e6035a42e60f5bcb815c0b0ce1bc129e
2017-06-27 17:42:46 +00:00
OpenStack Proposal Bot 92edc5cd88 Updated from global requirements
Change-Id: I5ef51b3d1a402c0bd88c72d5e155521dd9031ed8
2017-06-04 02:50:09 +00:00
OpenStack Proposal Bot 53aff6561a Updated from global requirements
Change-Id: I17be422ffa1d421b5fa3b834d11ead293a9d10c4
2017-05-17 03:47:50 +00:00
OpenStack Proposal Bot 5d5109e58f Updated from global requirements
Change-Id: I302a5493b37fce834d2fa9cdaa32f748f4ab81f8
2017-05-15 00:43:48 +00:00
OpenStack Proposal Bot b3a2cb14b3 Updated from global requirements
Change-Id: Ife99de54f043c166e7866b8adfc78ee6256dab38
2017-05-01 21:03:38 +00:00
Ihar Hrachyshka 3ae6afa449 Remove subunit-trace fork
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.

Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
2017-04-06 11:42:05 -07:00
OpenStack Proposal Bot 148e969f3d Updated from global requirements
Change-Id: I561a89be18c6973ce6a6d778cc0b6fad5518d2b2
2017-03-14 01:54:22 +00:00
OpenStack Proposal Bot fe4d6b0a76 Updated from global requirements
Change-Id: I1838bdd570144c0e8aeb0554868dd28c342e7f88
2017-03-02 17:42:22 +00:00
ricolin 42b5814864 Update test requirement
With pbr2 landed, we should update our test requirement to prevent
package conflict.
Closes-Bug: #1669276

Change-Id: I46a357b87e67ceffd3e15040349774280b8849fc
2017-03-02 14:37:54 +08:00
Zane Bitter 6555455cbc Revert "Using os-testr to get better report"
This reverts commit d7f2d4f23e.

ostestr spews what is IMHO an unmanageable amount of mostly worthless data when running tests - at least one line per test, of which there are 6351 at last count. There doesn't seem to be an option to quiet it down, so just revert it.

Change-Id: I7b12dc249e3e7041ab6f0ef36b3e5f0b082aeb7d
2017-02-20 20:51:24 +00:00
Aaron-DH d7f2d4f23e Using os-testr to get better report
As a wrapper of testr, os-testr uses subunit-trace
for output and builds some helpful extra
functionality around testr

Reference link:
http://docs.openstack.org/developer/os-testr/index.html

Change-Id: I5eb1ea062334c06f5e95ef54367e427b98a17bac
2017-02-17 13:17:21 +08:00
OpenStack Proposal Bot d42b0b898e Updated from global requirements
Change-Id: I9ab70d839089204af60d77a09142e11e7e47b382
2017-02-12 23:55:35 +00:00
OpenStack Proposal Bot 54f1304c55 Updated from global requirements
Change-Id: I500c7344e7c15fc20fd50ae4f660c7b031b1ec60
2017-01-20 13:30:45 +00:00
Steve Baker 172fe35ece Initial heat REST API tests with gabbi
Last summit we decided to add suite of gabbi tests
for REST API validation and then propose a subset of
these to tempest to be the defcore tests.

This adds the basic framework and few stack api tests
as a start.

Change-Id: I79a6fe971a97fdc4412616137ae963748cc349e5
2017-01-04 16:46:08 +05:30
OpenStack Proposal Bot a658a18efb Updated from global requirements
Change-Id: I0fcea912a9cdae46d497e13b3754a4cc3aa9b271
2016-12-23 03:28:26 +00:00
OpenStack Proposal Bot c2c55babc7 Updated from global requirements
Change-Id: Ie6b5835511ea5531e627e0e57d701d9fabd16be3
2016-12-16 09:00:52 +00:00