- 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
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
As recommended, since version 3.2.0 tox switches pip invocations
to use the module -m pip instead of direct invocation.
We set min version to 3.2.1 [1] to also fix the behavior of
--parallel--safe-build
[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-2-1-2018-08-10
Change-Id: I766ef1cf1e5ede30d96a68f7cb8402bef63e99f1
- Created doc/requirements.txt with requirements for docs,pdfs and
release notes.
- Updated tox.ini for docs build and added pdf-docs build.
- Updated do/source/conf.py with necessary changes to build pdf.
- Added sphinxcontrib-svg2pdfconverter to l-c
Change-Id: I98ade2140063aa3e33ca6287da2f0052fd4c5175
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].
[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict
Change-Id: I6dfb295c9e18ac3ec0d79b186ab4cbe5cecd00bf
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
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I6b089c76f6a7aae9e4ad10e4429227523d47ddb9
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I4b1ca0a1f067895640f0a71d6dd392d33e3def4e
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Curly quotes usually input from Chinese input method.
When read from english context, it makes some confusion.
Change-Id: I3e99e14394469b1c16afe943dc69df5631f73186
Reuse `setenv` settings from parent `testenv` env
This is a followup to I3aefd97312bb9e5985e601dd192913247046d6e4
Change-Id: I4960a737a68ee146447cb6e4a5c6fe5b36a6dfc1
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
Specify 'ironic_staging_drivers' as the name of the application for
the flake8-import-order plugin. That way it knows that imports of
ironic_staging_drivers should come after external libraries.
Change-Id: I7e8046baea6de65f9473f34fb84837380a41699a
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
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from ubuntu Trusty to Xenial, where only python 3.5 is
available. There's no need to continue to keep it.
Change-Id: Iad33f7e1781432e17104d165aba377b7a6a40b1c
currently tox env for code coverage does not measure anything
as it tries to measure the coverage of 'ironic-staging-drivers' package,
while the actual package name is 'ironic_staging_drivers'.
This patch:
- erases current coverage data first
- fixes project name expected by 'coverage'
- adds coverage reporting in the end of 'tox -ecover' run
- omits tests file from both coverage and report
- adds 'cover' to .gitignore (auto-generated as part of coverage report)
Change-Id: I0044e3dd399934be706a06fd921972632efcceea
Ubuntu Xenial comes with Python 3.5 out-of-the-box,
and both ironic and ironic-staging-drivers are already gating against
py35 unit tests.
Change-Id: Ie1728d90b9eada194ae65aca15be5238edfa4ebc
Remove old and unused constraints environments from tox.ini. Those
have never been used.
Note that the repo has in the past not used constraints in OpenStack
CI, this change keeps the status quo.
For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html
Change-Id: Idb24ac27d5653b5f0c7a5f618b475c9e278fcc8a
This patch is adding an "extra-requirements.txt" file that points to the
Ironic's git repository which will be installed in the virtual
environment where the unittests will run.
Change-Id: I42ccbfde8f3381b9d77f85b3f676c0b455c62851