A python library of common ironic utilities.
Go to file
John L. Villalovos 59e08fb16f Use six.wraps() for Metrics so decorated methods can be inspected
Previously it was using functools.wraps() to create the decorators.
The problem is that we can't use the
oslo_utils.reflection.get_signature() function to get the correct
signature.

Change it to use six.wraps() which will add the '__wrapped__'
attribute which will be used when calling get_signature() and return
the signature of the decorated function.

Added unit tests to show we are able to see the signature of a wrapped
function.

Closes-Bug: #1746730
Change-Id: I75428e948b64b3b6758d31678a80d158a11c6beb
(cherry picked from commit cdea1086d6)
2018-02-05 11:51:14 -08:00
doc/source Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
etc/rootwrap.d Fix retrieval of config-2 existing partition 2017-01-11 14:55:40 -08:00
ironic_lib Use six.wraps() for Metrics so decorated methods can be inspected 2018-02-05 11:51:14 -08:00
playbooks/legacy Use the tempest plugin from openstack/ironic-tempest-plugin 2017-12-14 10:29:33 -08:00
zuul.d Zuul: Remove project name 2018-01-27 11:56:18 -08:00
.gitignore Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
.gitreview Update .gitreview for stable/queens 2018-01-18 19:16:53 +00:00
.stestr.conf Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
CONTRIBUTING.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
LICENSE Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
MANIFEST.in Added project infrastructure needs. 2013-05-02 14:55:43 -04:00
README.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
TESTING.rst Add prefix "$" for command examples 2016-09-28 22:19:51 +09:00
requirements.txt Updated from global requirements 2018-01-16 12:29:38 +00:00
setup.cfg Correct url in setup.cfg for documentation path 2017-07-19 20:11:19 +00:00
setup.py Updated from global requirements 2017-03-02 11:45:33 +00:00
test-requirements.txt Updated from global requirements 2018-01-17 20:35:38 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/queens 2018-01-18 19:16:55 +00:00

README.rst

Team and repository tags

image

ironic_lib

Overview

A common library to be used exclusively by projects under the Ironic governance.

Running Tests

To run tests in virtualenvs (preferred):

$ sudo pip install tox
$ tox

To run tests in the current environment:

$ sudo pip install -r requirements.txt
$ nosetests