Commit Graph

35 Commits

Author SHA1 Message Date
Riccardo Pittau 6a2590ec6a Fixes for tox4
- use generic test template
- remove autospec in power test as we don't use actual libvirt
module to test. The libvirt-python module is fully mocked.

Change-Id: Ied36a8afb818422c643edca8a2feeec977b53551
2023-01-03 09:48:18 +01:00
Dmitry Tantsur 1c40f8ae57 Fix the CI
* Fix the default interfaces in the devstack plugin
* Do not default to netboot with a whole disk image
* Add missing stestr dependency, removed unused dependencies

Change-Id: I88fe1eb17acb27f18a3093367a29b5f5049d74af
2022-05-10 15:08:55 +02:00
Riccardo Pittau 24a6a7ccd7 Re-add coverage to test-requirements
It's in uppper-constraints so it should stay there.

Change-Id: I83560dd7ddc0947fff2e27230bc9f0de456373f3
2021-01-25 10:21:45 +01:00
Riccardo Pittau 4eaf2d663b Reconfigure tox.ini
Increase tox minversion to 3.9.0 to be compatible with inline
comments [1]

Move some test requirements to tox.ini

Remove lower-constraints environment from tox.ini

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-9-0-2019-04-17

Change-Id: Ida88627aace41c4f445a108d22e5eed12247a127
2021-01-22 11:13:17 +01:00
Riccardo Pittau a4d89d9d0d Set safe version of hacking
Versions of hacking from 3.1.0 until 4.0.0 NOT included are supposed
to require a safe version of flake8, so besides normale issues related
to minor version upgrades, we can safely use those versions.
Also forcing pycodestyle versions to be compatible with flake8 installed
by hacking.

Change-Id: Iffb6019b339ca5412bb6957274b7d12233bc7db7
2020-10-19 13:54:40 +00:00
Riccardo Pittau 118ac73ebc Use unittest.mock instead of mock
We support only Python 3.6 or higher so no need to use the
standalone mock anymore.

Change-Id: I2bd0582d40ea17e2299007ce99d62b38862944e5
2020-06-17 09:40:07 +02:00
Riccardo Pittau d034972dac Update Sphinx version
Also remove it from test-requirements and lower-constraints, it's
only needed for docs.

Change-Id: I4ad730dae6854ae62f78bf1cfb6ea2536869cef2
2020-06-09 10:35:19 +02:00
Riccardo Pittau 7f15b2a918 Update lower-constraints.txt
We need to list all dependencies in lower-constraints.
Also updating requirements.txt to reflect new minimum versions.

Change-Id: Id643629701d3749927c2915b9ea1bbf7170df32c
2020-05-13 18:04:07 +02:00
Riccardo Pittau 9511a048c9 Upgrade flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: I62321c13697db75c6cfc2176a9a89b6cb50413d6
2020-04-21 16:46:30 +02:00
Riccardo Pittau 40bed1ea88 Make flake8 tests more strict
Also increasing min version of flake8-import-order for some bug fixes.

Change-Id: I6cca85a87e2946998bb2e912aa44bd3d709562c4
2020-04-08 10:11:48 +02:00
Riccardo Pittau ec13cbad48 Bump hacking to 3.0.0
Change-Id: I6979eacbb9b4d062d7f0fb8228dbef6b97da416e
2020-03-31 10:15:18 +02:00
Iury Gregory Melo Ferreira 77de3d5bb9 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-staging-drivers is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: Iab168e51cdfed11a3982da717e6cb40dbcaabfd5
2019-11-27 18:57:55 +01:00
Riccardo Pittau 85e64777d8 Drop ostestr in favor of stestr
With this patch we drop ostestr to use stestr directly to avoid
current and future incompatibilities that can break the test
process, e.g. [1]

Also some minor changes:
- following recent changes to global requirements [2],
we update sphinx requirements locally
- removing py35 in favor of generic py3 test
- updating upper-constraints link to use opendev.org

[1] https://bugs.launchpad.net/os-testr/+bug/1827834
[2] If558f184c959e4b63b56dec3ca1571d1034cfe5c

Change-Id: I9328fa7e68e1e03a20182e728840075bea7c5ac6
2019-05-24 10:58:27 +02:00
Dmitry Tantsur e71e9a88da Do not use the official theme from oslosphinx
We are not an official project, let's not confuse people. Also
oslosphinx seems deprecated.

Change-Id: I42a61b04b5a03d948aa9dccaaaffbd8a7a9b0a10
2018-08-09 16:42:13 +02:00
OpenStack Proposal Bot c00826da8a Updated from global requirements
Change-Id: I786ec1b06bdf6b5fe870a795754b572ec9b52733
2018-03-15 07:01:20 +00:00
OpenStack Proposal Bot 41b437e505 Updated from global requirements
Change-Id: I653d619a3fb9950988a5a88e0acf4f04bb3d4c3b
2018-03-13 06:55:20 +00:00
OpenStack Proposal Bot df2c9cb2b0 Updated from global requirements
Change-Id: Ifdb7b248ecba3b771c1677c1efaf43b81456afb6
2018-03-10 13:15:46 +00:00
OpenStack Proposal Bot 501633611c Updated from global requirements
Change-Id: I2b7c737471582eca967b5f153a0d6ca9a3b92bbf
I55a3172bfe23573c1e2f449c5268b0bd2f8d2460
2018-01-17 20:35:48 +00:00
OpenStack Proposal Bot e1226bec6a Updated from global requirements
Change-Id: If15eff9be168c1cb0f897a6167c0929ecb72a09d
2018-01-16 04:08:34 +00:00
OpenStack Proposal Bot d88a17a3e3 Updated from global requirements
Change-Id: I6f14161452c648183abbb2f176f67e8184a7d2f0
2017-11-16 11:05:55 +00:00
Jenkins de2992c95b Merge "Add stestr-specific files" 2017-09-25 13:48:51 +00:00
OpenStack Proposal Bot 659b5c3df7 Updated from global requirements
Change-Id: I224debfa61403324e31f24aa77477c86d382ac96
2017-09-23 05:57:57 +00:00
Pavlo Shchelokovskyy b4a0a06b66 Add stestr-specific files
os-testr>=1.0 uses stestr as test runner instead of testrepository.

This patch adds appropriate config and git ignore options for stestr.

Change-Id: I3aefd97312bb9e5985e601dd192913247046d6e4
2017-09-22 11:45:29 +00:00
OpenStack Proposal Bot 2704492bc4 Updated from global requirements
Change-Id: If597f059dadd3b44ffcf33b3194dc793f0aa3027
2017-08-30 23:21:18 +00:00
OpenStack Proposal Bot 900bb09431 Updated from global requirements
Change-Id: I6386635f4167b3b9ed9a74b023428cb7fd55ff90
2017-06-30 12:15:44 +00:00
OpenStack Proposal Bot a65455b5df Updated from global requirements
Change-Id: I7618a60261a688ed2609b8b803c16e179da63da7
2017-06-02 21:56:27 +00:00
OpenStack Proposal Bot 407d20d6f4 Updated from global requirements
Change-Id: I8bc718dc7ecd577f251f959c16d02d8616cfadc4
2017-05-17 03:48:48 +00:00
OpenStack Proposal Bot d3a23f07ae Updated from global requirements
Change-Id: I06ff4fbe5f2b44e181321ee0ff68bd4d8bf57fe4
2017-03-20 13:20:56 +00:00
Pavlo Shchelokovskyy 92865503a7 Update style checkers
bring ironic_staging_drivers pep8 checks in line with main ironic:
- update hacking version to the one from g-r
- add import order checks, with the same style
- enable same additional checks from hacking

Only two small violations found, so better to update now while it's
easy.

Change-Id: I12459a1ffdb122f50ce25230e310412f18717ef5
2017-03-17 20:37:57 +00:00
OpenStack Proposal Bot 248b89e026 Updated from global requirements
Change-Id: Ib05c819d2bfb36eedbe9173c990c2ab54b49652d
2016-12-15 01:25:18 +00:00
Lucas Alvares Gomes 3ca96ed906 Mock the 'libvirt' import on tests
This patch is removing python-libvirt from test-requirements.txt and
mocking that library for the tests.

Closes-Bug: #1616906
Change-Id: Id067476c58bf9ddedd6cfc5fe80303f7d949cb9e
2016-08-26 15:52:00 +01:00
vsaienko 296a45c8af Introduce libvirt power/mgmt driver
Libvirt has its own API. It allows to connect to different hypervisors
like xen, vmware, virtualbox, qemu, full list can be found at
https://libvirt.org/drivers.html.
It supports different type of transports like ssh, tcp, unix sockets.
This patch introduces new type of power and management drivers,
which use libvirt-python library to connect to hypervisor.

Change-Id: I2df214aab95c2f5d2505f5ad4ef9f3a542e44c6a
Depends-On: I12211db38a3fdb3b2d733e5769f2c052c32c4a75
Closes-Bug: #1523880
2016-04-20 06:53:24 +00:00
Lucas Alvares Gomes 5ad7c7c925 Add Wake-On-Lan driver
This patch is importing the Wake-On-Lan (WOL) driver and its documentation
from ironic to ironic-staging-driver.

Since we can't have duplicated entry points in setuptools we had to
rename the driver names as following:

pxe_wol   -> pxe_wol_iscsi
agent_wol -> pxe_wol_agent
fake_wol  -> fake_wol_fake

This patch is using the "<boot>_<power>_<deploy>" template to name the
drivers consistently.

Change-Id: I2b051494fdba7bf6ca30d8f7bb406511bf7d4d76
2016-02-23 14:36:59 +00:00
Lucas Alvares Gomes ba17b7c6fe Add reno for release notes management
Change-Id: Ia09a993d6ca7fa073db77be12035ec49a71db597
2016-02-08 14:41:18 +00:00
Lucas Alvares Gomes a27e38e50c Skeleton initial commit
Change-Id: I6b2c34135c79931defaccc6480e382f54a95d9a6
2016-01-26 12:48:24 +00:00