summaryrefslogtreecommitdiff
path: root/test-requirements.txt
Commit message (Collapse)AuthorAgeFilesLines
* Bump min version of testtoolsRiccardo Pittau2022-10-131-1/+1
| | | | | | | | | | | | Any version of testtools lower than 2.5.0 fails if the attribute 'result_supports_subtests' is present on any test object because of old unittest support. See also https://github.com/testing-cabal/testtools/issues/235 and https://github.com/testing-cabal/testtools/pull/277/commits/38fc9a9e302f68d471d7b097c7327b4ff7348790 for more info. Change-Id: I23a1ca789f4ea4ffd981e1071f3c2c6c333ac330
* Update requirementsRiccardo Pittau2021-07-131-3/+3
| | | | | | | | | | | | | | | | | Update minimum required versions of python packages. The updates is based on crosscheck requirements from required packages: oslo-log 4.3.0 depends on oslo.context>=2.20.0 oslo-config 6.8.0 depends on rfc3986>=1.2.0 oslo-config 6.8.0 depends on requests>=2.18.0 oslo-log 4.3.0 depends on pbr>=3.1.1 oslo-log 4.3.0 depends on oslo.serialization>=2.25.0 oslo-policy 3.7.0 depends on oslo.context>=2.22.0 Also update minimum versions of ddt and stestr to avoid compatibility issues with recent Python versions (3.8 and higher). Change-Id: I34b558f4e7b93618130af1ba2250f6ab8575d4d6
* Fix lower-constraints with the new pip resolverIury Gregory Melo Ferreira2020-12-111-7/+2
| | | | | | | | * move pep8 dependencies from test-requirements to tox.ini, they're not needed there and are hard to constraint properly. * add oslo.cache to l-c to avoid bump of dependencies Change-Id: Ia5330f3d5778ee62811da081c28a16965e512b55
* Update test requirementsRiccardo Pittau2020-10-151-2/+2
| | | | | | And fix a little pep8 issue (missing blank line). Change-Id: I9d7809a5d1dc956d798c41af29054e5d9cd0b9cf
* Fix handling OctetString for pysnmpYushiro FURUKAWA2020-09-291-0/+1
| | | | | | | | | | | | | | | | | This commit fixes getting MAC address while inspection for iRMC driver. To remove ord() in retrieving MAC address, it can avoid the following exception: TypeError: ord() expected string of length 1, but int found Also, this commit sets the following type of mock for UT. So, I add 'pysnmp'[1] into test-requirements.txt and lower-constraints.txt. * pysnmp.proto.rfc1902.OctetString * pysnmp.proto.rfc1902.Integer32 [1] https://bit.ly/3bDeTCH Change-Id: I1e013a93854e01a7060e1fc48aac091e7e9b74cb
* Fix lower-constraints for Ubuntu FocalIury Gregory Melo Ferreira2020-09-111-2/+2
| | | | Change-Id: Id3cc2d1b619790813b94b0cfd52ff6590aff060c
* Fix hacking min version to 3.0.1zhangbailin2020-06-301-1/+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: Idb45c6b09980c6850b1acf05a03c9be59fb254bc
* Cap pycodestyle explicitly to be < 2.6.0Ghanshyam Mann2020-05-121-1/+1
| | | | | | | | | | | | | | | | | 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. Also remove the flake8 from test-requirements and let hacking handle the flake8 version otherwise ironic will still pull the latest flake8 which can break things in future. To make it work, we need to explicitly cap pycodestyle itself so that no other package pull the new checks in. Change-Id: Ia4b6f5aa8fe45d08a1563160e585947f35501ef2
* Merge "Temporary add per-file-ignores to flake8 tests"Zuul2020-05-081-0/+1
|\
| * Temporary add per-file-ignores to flake8 testsRiccardo Pittau2020-05-061-0/+1
| | | | | | | | | | | | | | | | This should help slowly enabling H210 test everywhere. Also fixing H210 enforced autospec in some places. Change-Id: Ibbc00b528265f8b86bc2fe45e078d56d36381c5d
* | Remove testscenarios, testrepository and Babel from test-requirementsDmitry Tantsur2020-05-051-3/+0
|/ | | | | | | | Neither of these are really used. They have likely been cargo-culted. Also removing mock from doc/requirements, not sure how it got there. Change-Id: I8d242d86af4c6ded215e0bc4cf61da346f21e46c
* Switch to unittest mockIury Gregory Melo Ferreira2020-04-301-1/+0
| | | | | | | Python3 have a standard library for mock in the unittest module, let's drop the mock requirement and switch tests to unittest mock. Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
* Upgrade flake8-import-order version to 0.17.1Riccardo Pittau2020-04-211-1/+1
| | | | | | | | Full py3 compatible version. Add all Python3 modules to stdlib list. Also includes fix to an enum34 dependency bug. Change-Id: I6163317368ed9281ad600f47aaa64cbcf44d9a13
* Fixes unusable Guru meditation reportKaifeng Wang2020-04-201-0/+1
| | | | | | | | | | | | | | GMR requires configuring a path for storing the report via [oslo_reports]log_dir, this is empty by default, and currently there is no means to specify this option, thus doesn't respond with SIGUSR2. Though gmr is optional, test requirement is still required so that we can generate proper configuration sample for it. Story: 2007570 Task: 39467 Change-Id: I0f03e9d01a3c4e42a4fc8bf2d8ceb2d1a587056c
* Bump hacking to 3.0.0Dmitry Tantsur2020-03-311-1/+1
| | | | | | | | | | | | | The new version enables a lot of standard flake8 checks. Some of them are temporary disabled to reduce the scope of this patch: * Complexity check requires a few functions to be rewritten (apparently, it was not enabled previously). * Indentation check failures are numerous and potentially contradictive. These checks will be enabled in follow-ups. W606 is removed from excludes since we no longer hit it. Change-Id: I1e5a6f8e5e90c55cfc6f740b26c30196512d3be3
* Support power state change callbacks to nova using ksa_adapterSurya Seetharaman2019-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add power state change callbacks of an instance to nova by performing API requests. Whenever there is a change in the power state of a physical instance (example a "power on" or "power off" IPMI command is issued or the periodic ``_sync_power_states`` task detects a change in power state) ironic will create and send a ``power-update`` external event to nova using which nova will update the power state of the instance in its database. By conveying the power state changes to nova, ironic becomes the source of truth thus preventing nova from forcing wrong power states on the instance during the nova-ironic periodic sync. It also adds the possibility of bringing up/down a physical instance through the ironic API even if it was put down/up through the nova API. Note that ironic only sends requests to nova if the target power state is either "power on" or "power off". Other error states will be ignored. In cases where the power state change is originally coming from nova, the event will still be created and sent to nova and on the nova side it will be a no-op with a debug log saying the node is already powering on/off. NOTE: Although an exclusive lock (task_manager.upgrade_lock() method) is used when calling the nova API to send events, there can still be a race condition if the nova-ironic power sync happens to happen a nano-second before the power state change event is received from ironic in which case the nova state will be forced on the node. Credit for introducing ksa adapter: Eric Fried <openstack@fried.cc> Depends-On: https://review.opendev.org/#/c/645611/ Part of blueprint nova-support-instance-power-update Story: 2004969 Task: 29424 Change-Id: I6d105524e1645d9a40dfeae2850c33cf2d110826
* Merge "Incorporate bandit support in CI"Zuul2019-06-191-0/+1
|\
| * Incorporate bandit support in CIKaifeng Wang2019-06-101-0/+1
| | | | | | | | | | | | Change-Id: I0ffe0c12e9e32f32d2b400b5756fc2148a2993a0 Story: 2005791 Task: 33518
* | Bump lower mock version to 3.0.0Ilya Etingof2019-06-041-1/+1
|/ | | | | | | | | | Previously used mock 2.0.0 has a nasty bug which prevents mocking `@staticmethod` callables [1][2]. 1. https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst#300 2. https://bugs.python.org/issue23078 Change-Id: I38d78cb8de92e9ecfc3dda5ffafcb4ffe175169e
* Fix lower-constraints jobKaifeng Wang2019-03-141-1/+1
| | | | | | | | | | | | | | | lower-constraints job is broken due to fail to install psycopg. Spotted log: http://logs.openstack.org/02/642402/6/check/openstack-tox-lower-constraints/ca317fe/job-output.txt.gz#_2019-03-14_01_51_01_006156 Add libpq-dev to the bindep and bump psycopg version to >= 2.7 as evidence shows it has a bug to support PostgreSQL >= 10.0 [1] [1] https://github.com/getredash/redash/pull/2111 Change-Id: I1d5f0dab41638be1df9d63ede267f5a6d9f8c566
* Fix stestr has no lower bound in test-requirementsNguyen Van Trung2018-06-181-1/+1
| | | | | | | | | | | This issue will occurs when they validate with test-requirements in constraints. issue logs: | ubuntu-xenial | Validating test-requirements.txt | ubuntu-xenial | Requirement for package stestr has no lower bound Change-Id: I61a25bc6ccbc97006443db8f9086bec41506e940
* Comply with PTI for Python testingPavlo Shchelokovskyy2018-06-071-1/+1
| | | | | | | | | Project Testing Interface for Python [0] suggests to use stestr as unit test runner uniformly across all OpenStack projects. [0] https://governance.openstack.org/tc/reference/pti/python.html Change-Id: I1c321500a2256b09cb6a58f6cd7070c9dc702555
* Check pep8 without ignoring D000Dao Cong Tien2018-05-241-0/+1
| | | | | | | | | | Currently, ironic ignores D000 check because of error: "D000 Cannot analyze code. Pygments package not found." Pygments is supported from: https://review.openstack.org/#/c/568729/ Change-Id: Ib942f47abf6facaf9967603914326aa3cb79bbd9
* Gate fix: Cap hacking to avoid gate failureghanshyam2018-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I688a5f322bba52ae3b9fa5ecab5bed4f58fec542
* Remove pycodestyle version pin. Add E402 and W503 to ignore.John L. Villalovos2018-04-101-1/+0
| | | | | | | | | | | | | | | | | | Rather than pinning pycodestyle, ignore the E402 and W503 error. Fix issue with E731 (Do not assign a lambda expression, use a def). W503 is something we will likely never enable as it is a personal style decision and can change depending on the code. There is no one right answer. Interestingly there is also a W504 which is the opposite check. E402 is one we should most likely fix. But it can be done in a follow patch or patches. List of various error codes: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes Change-Id: Ie2c31a8a3c75beeef22453cab5878cf0094bdf3f
* Pin pycodestyle to <=2.3.1Jim Rollenhagen2018-04-101-0/+1
| | | | | | | | | | | | | | 2.4.0 broke our pep8 tests pretty hard: http://logs.openstack.org/20/531320/14/check/openstack-tox-pep8/c9d9d10/job-output.txt.gz#_2018-04-10_15_43_40_014738 Pin pycodestyle until we have time to fix all of those. Note that this is in the global-requirements blacklist to allow projects to manage those versions on their own: https://github.com/openstack/requirements/blob/b94a4e8c8fadbdc4c5cac9c4da6755a3c06a7824/blacklist.txt#L13 Change-Id: I6b0d458c702684779eb21e7022dd0f3193ac72d2 Story: 2001819
* Follow the new PTI for document buildNguyen Hai2018-04-061-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | For compliance with the Project Testing Interface as described in: [1] https://governance.openstack.org/tc/reference/project-testing-interface.html [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html [doc/requirements.txt] & [test-requirements.txt] To support documentation generation in new PTI, project should have list python dependencies needed for documentation in doc/requirements.txt which are move from test-requirements.txt [doc/source/contributor/index.rst] & [setup.cfg] - Remove [pbr] section in setup.cfg [3], and unrelated lines in contributor/index.rst [3] http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html - Add sphinxcontrib.apidoc to replace pbr autodoc [tox.ini] --ignore D000: pep8 require sphinx (which move to doc/requirements.txt) to test doc/source files, however, docs already test the doc/source. Therefore we can ignore the D000 error code. Depends-On: https://review.openstack.org/#/c/559327/ Change-Id: Iee90f19a5e46978a97035eab7e4b1e0ec68b8684
* Updated from global requirementsOpenStack Proposal Bot2018-03-151-1/+1
| | | | Change-Id: I4c7930477e058a09ad90c8697b8f4b5e2c0447ad
* Updated from global requirementsOpenStack Proposal Bot2018-03-131-1/+1
| | | | Change-Id: Id95f7b7baa9099653da2c5414661995cc22eb13c
* Updated from global requirementsOpenStack Proposal Bot2018-03-101-1/+1
| | | | Change-Id: I76719f244c1a5cf34afa0f8c967df231fc72792f
* Updated from global requirementsOpenStack Proposal Bot2018-01-241-1/+1
| | | | Change-Id: I9c7368b19c3774746c9562d52876021baac2e880
* Updated from global requirementsOpenStack Proposal Bot2018-01-171-2/+2
| | | | Change-Id: I150316afff013a6c114992daf67cdc612f85251b
* Updated from global requirementsOpenStack Proposal Bot2017-11-161-1/+1
| | | | Change-Id: I2f86b636737ffce95f1f2e1e026e8834bd8e42b4
* Cleanup test-requirementsPavlo Shchelokovskyy2017-09-251-2/+0
| | | | | | | | | | | | - python-subunit is not used directly anywhere and it is dependency of both testrepository and os-testr (probably was used by some tox wrapper script before) - python-ironicclient is not used anywhere (probably should've been used by functional tests, but we still have none of those). Change-Id: I42aeb75dab18d90d60792f070599532fd3d9af10
* Updated from global requirementsOpenStack Proposal Bot2017-09-161-2/+2
| | | | Change-Id: I36ee4f2127fd7fef0d81e2efa69a717369472968
* Updated from global requirementsOpenStack Proposal Bot2017-09-131-2/+2
| | | | Change-Id: I062934f70d84ee50d90a0ec189487a0f2ecb29bc
* Updated from global requirementsOpenStack Proposal Bot2017-09-121-6/+6
| | | | Change-Id: Ic85c561d0998cc7c5027119236a2368acf1ed0fb
* flake8: Enable some off-by-default checksJohn L. Villalovos2017-09-071-2/+2
| | | | | | | | | | | | | | | | | | Update test-requirements.txt to use latest versions of: * flake8-import-order * hacking Enable the following off-by-default checks: * [H204] Use assert(Not)Equal to check for equality. * [H205] Use assert(Greater|Less)(Equal) for comparison. Fix code that failed H204 and H205. In this case the fix was to add: # noqa As we want to ensure that these particular tests are calling the desired comparison operators. Change-Id: If9cba62c832e301ac81320f9142e91319f0e40a9
* Updated from global requirementsOpenStack Proposal Bot2017-08-221-3/+3
| | | | Change-Id: I1c708b4dfeb1cf62635ea28386866e5e1fea3a42
* Updated from global requirementsOpenStack Proposal Bot2017-07-291-1/+1
| | | | Change-Id: I54fdba274c2fa5bfa76d87b4a478e8eb40e9d355
* Updated from global requirementsOpenStack Proposal Bot2017-07-141-1/+1
| | | | Change-Id: Ie86268aa40e0604c92d6997604ebf9d30e66a68d
* switch from oslosphinx to openstackdocsthemeSam Betts2017-07-041-1/+0
| | | | Change-Id: I2f1f8f76b6ec732a770707a259dc72a2f576e46c
* Updated from global requirementsOpenStack Proposal Bot2017-06-271-2/+2
| | | | Change-Id: I905b2d66634cb0474cd5f56ca427290c423cf8a9
* Updated from global requirementsOpenStack Proposal Bot2017-06-051-1/+1
| | | | Change-Id: I396af4a4620683a07121b908dbe645233cff8432
* Updated from global requirementsOpenStack Proposal Bot2017-05-181-1/+1
| | | | Change-Id: Iab43081437b0df77de7c284d3000476d068c0561
* Updated from global requirementsOpenStack Proposal Bot2017-05-161-1/+1
| | | | Change-Id: I661a08ce6d9cc94b9cd6905777b9dad1d92bd14c
* Updated from global requirementsOpenStack Proposal Bot2017-04-071-1/+1
| | | | Change-Id: I539741ad2499a62cb2baa00f654ed377bd1fe4e1
* Updated from global requirementsOpenStack Proposal Bot2017-03-231-1/+1
| | | | Change-Id: I244a1d6f66d61a8185ff930f0ccf73fdcaaf105a
* Update test requirementricolin2017-03-021-1/+1
| | | | | | | | | 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: I635dbf199bad59c72401a4de1de5200132746f6f
* Use flake8-import-orderJohn L. Villalovos2017-02-161-0/+1
| | | | | | | 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: I821fd7467f6c5cc1487149297f26e4ad539cf25d