Commit Graph

24 Commits

Author SHA1 Message Date
Riccardo Pittau 42c4cc5681 Fixes for tox 4
Change-Id: If8df3833e66f02b4fbb51cf8d19c26197bfe997e
2023-02-14 10:11:42 +01:00
Riccardo Pittau 682eb63985 Update testing to yoga
Update jobs and requirements to yoga
Also fix tests where needed

Change-Id: I5dbf28d0ac77d81cc8f79496777aa15be3c52dd0
2021-12-03 08:58:54 +01:00
Riccardo Pittau 6e03a55374 Enable check import order
Enable pep8 import order Using flake8-import-order.

Change-Id: I89e192d9c756156b4e86cbbf2399b9b23fb5edd5
2020-07-06 15:20:12 +02:00
Shivanand Tendulker a6d02fb6c2 Adds py3 to tox environment
Adds py3 and removes py27 from tox environment
Fixes testcases that were failing for py38 environment.

Depends-on: https://review.opendev.org/#/c/738168/
Change-Id: I1a5f88c06808449e906d9b8ad43d690136737800
2020-06-26 13:20:41 -04:00
Riccardo Pittau 64540ba316 Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks, so a few
fixes are required. W503 is disabled as it conflicts with W504
and the latter seems to be preferred nowadays.
Also excluding C901 and E731 that should be fixed in different
patches as they require code changes.

Change-Id: I8decccc4925f86e0b979b47e2920d6a782d991d7
2020-03-31 09:45:01 +02:00
Zuul 7e1484b867 Merge "Finish conversion to stestr" 2019-06-25 04:57:16 +00:00
Zuul 9a5f2bb01e Merge "Switch to the new tox constraints file usage and location" 2019-06-25 04:57:15 +00:00
Dirk Mueller ccf9a89ccd Switch to the new tox constraints file usage and location
The new name exported is TOX_CONSTRAINTS_FILE, as set by
https://review.opendev.org/#/c/657886/ and we should no
longer link to git.openstack.org directly but use the releases.o.org
redirect for determining the proper location of upper constraints.txt

Change-Id: I8181b94bdcbdc65127e356bf2617ba47b63bd390
2019-06-14 14:48:00 +02:00
Dirk Mueller df09ee5a56 Use six.moves for reloading a module
reload() is an undefined function in python 3.x. In order
to make the code python 3.x compatible we need to use a
python 3.x compatible way of reloading a module. Luckily this
project already depends on six so we can use six.moves
to make the transition easier.

Change-Id: I58a21e5ffe6a2f968f1d1171213f4c711b5f5e62
2019-06-14 14:45:34 +02:00
Dirk Mueller 9fd0156bbb Finish conversion to stestr
In I565cd2593982a1b5c8c43cf394301c56e24b9b29 a half conversion
was performed to switch to stestr, but the dependency information
was not actually updated. Since ostestr is just a wrapper around
stestr, we don't need testrepository anymore. Also since we're
now calling stestr directly we can stop depending on the ostestr
wrapper. Also move hacking dependency into the pep8 tox environment
as it isn't needed for tests

Change-Id: Ia60c018b8691fd175468bdad81e604cbbc0e1b74
2019-05-14 12:42:10 +02:00
ankit 6148f9fb3b Adding changes for tox failure
This patch resolves the issue of tox
failure.

Change-Id: I565cd2593982a1b5c8c43cf394301c56e24b9b29
Closes-Bug: 1828511
2019-05-10 06:47:49 +00:00
Debayan Ray 87a311cfa4 Update ChangeLog for proliantutils release 2.6.0
Removed 'cover' target from tox.ini as there exists a
separate coverage job in Zuul gates. Also added the new
authors. Changes in brief:

  - Add support to manage BIOS settings for Gen9 and Gen10
  - Redfish: Add 'delete\_raid\_configuration' API
  - Add support for retrieving system POST state
  - Add NMI (Non Maskable Interrupt) support for Gen9 and Gen10
  - Fixes `pysnmp_mibs` location issue from search path

Change-Id: I72eafd29e5bb5cda3f0ea2dc600e989724380327
2018-07-19 10:32:07 +00:00
Jenkins 7baf09af8d Merge "Add upper-constraints to testenv setup" 2017-06-16 05:59:00 +00:00
Debayan Ray cc28977eee Stop hosting coverage results in htmlcov dir
We now have a new Jenkins check job (code-coverage) running as
part of any proliantutils patch submitted upstream; and the dir
which is hosted as part of the coverage-job results is 'cover',
and not 'htmlcov' which we use to place the html output of the
code coverage results. As part of 'cover' dir we place the html
results in which the coverage takes into account the unit test
files also. Ideally code coverage should include only the
source files.

This patch addresses this concern by not using the htmlcov dir
any more and will use the cover dir only to host the actual
coverage results (i.e. devoid of unit test files).

Change-Id: I7cba8d4f0f2b9231b5f04b93b8a012889dd04c10
2017-04-10 03:22:02 +00:00
Debayan Ray 899acd4ab0 Add upper-constraints to testenv setup
This patch constrains versions using the given constraints
file[0] in the tox-testenv pip installl setup.

[0] https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt

Change-Id: I2c97cc3fdb2b466f69fe902cf64215dfe094ed19
2017-04-07 04:29:27 -04:00
Jenkins 6a7674ee02 Merge "snmp inspection for disk size" 2017-01-24 10:05:52 +00:00
Nisha Agarwal 59857805d4 snmp inspection for disk size
This patch gets the disk size if RIBCL/RIS
fails to get the same.

Change-Id: I22840bc04f387288672b787ee07cedb884bf5050
2017-01-24 06:19:14 +00:00
Debayan Ray 7e1fd5f783 Add py35 to tox environments
To run the unit tests locally added py35 option to tox option

Change-Id: I61ce61200c0f3c13b58fc35936bf7f43830f47a1
Closes-bug: #1641000
2016-11-10 23:54:25 -05:00
Debayan Ray 56bab01427 Adds test coverage in tox.ini
Coverage measurement will be helpful to gauge the effectiveness
of tests and maintain the quality of the code. Also changing
.gitignore to ignore the cover directory and .coverage
directories.

Change-Id: I184210af2d2e677b7cc2fe0c6561334ebc444fad
2016-03-27 22:34:12 -07:00
Debayan Ray a0b5470a52 Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of
calling testr through setup.py. This is inline with the all the
other OpenStack projects. It also removes requirements.txt from
tox.ini deps as that is redundant, as per:
http://lists.openstack.org/pipermail/openstack-dev/2015-July/069663.html

Change-Id: I8133d233f0fc0e1da2677d43d65056b9b070f867
2016-03-17 05:23:51 -07:00
Shivanand Tendulker b48d91c61c Fixes tox Warning issue
Change-Id: If4833d1b1528b8f877729071dc872739de075946
Closes-Bug: #1481165
2015-08-03 22:08:00 -07:00
Ramakrishnan G 34031ba276 Fix gate failures
This commit fixes the gate failures by following changes:
* Removes custom pypi mirror in tox.ini
* Changes oslo.utils to oslo_utils
* Changes oslo.concurrency to oslo_concurrency

Change-Id: Iaf3fa7a76aeb72323df40a7317c23c85cb5d920e
2015-06-09 23:01:39 -07:00
Ramakrishnan G 0a4f6d605e Python 3 compatibility
This commit introduces compatibility with python 3.

Closes-Bug: 1449772
Change-Id: I9d65b527fd317046c79310bc79d191de3e2111d5
2015-05-07 18:15:30 +00:00
Ramakrishnan G f1cf46f1a8 Add tox for proliantutils module
This commit adds tox support for proliantutils
module.
2015-02-03 03:14:24 -08:00