Commit Graph

11 Commits

Author SHA1 Message Date
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
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
Debayan Ray 5618c0738f [Fix gate] Update pbr requirement
Explicit version dependency of pbr is added in requirements.txt.
Also, 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. Minor flake8 issue resolved in
``proliantutils/hpssa/objects.py``.

Change-Id: I5c019ce41606b73fe12d56b871f76ef17224d4fc
Partial-Bug: #1668848
2017-03-03 00:18:17 -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
Debayan Ray 57a40be4a1 Providing logging infrastructure in proliantutils
Providing the basic logging infrastructure in proliantutils.
It adds a new module log.py which encapsulates the registry of
loggers(per module) of proliantutils. NullHandler is set at the
top level logger. Added ddt(data driven tests) dependency to
test requirements to facilitate multiplication of test cases
with different data samples.

Change-Id: I2d0f24ae40bd1b71b883e4e5d4dff6409939afc0
Implements: blueprint enable-logging
2015-09-01 23:19:50 -07:00
Ramakrishnan G ac01ccb3f5 ILO: Add unit tests for ris.RISOperations._rest_op
This commit adds the unit test cases for the main
method ris.RISOperations._rest_op which handles the
REST interactions with the iLO.

Change-Id: I1dea76aaed8a7f92c2ccc6b91ea7cb8fc03a9969
2015-03-20 06:53:36 +00:00
Ramakrishnan G c7a32b7b99 Add hacking and fix pep8 issues
Adds hacking to test-requirements and fixes
pep8 issues thrown after adding hacking.

Change-Id: I155250c4a819d17a3ad566194c58861cadbe3b18
2015-02-04 00:54:08 -08: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