A python library of common ironic utilities.
Go to file
John L. Villalovos 61a0c2582b Prevent tests from using utils.execute()
This change introduces a new base test class that mocks out
utils.execute() and similar functions and forces an exception if it
gets called. If utils.execute() is mocked by the test case then it
will work. What this does is prevent un-mocked access to
utils.execute() / processutils.execute() and similar subprocess
library functions.

Inspired by Julian Edwards' patch to ironic-python-agent

Change-Id: Ie5bda8f4c65cf4dfb40b91c11b61485c954addde
2017-05-17 09:21:26 -07:00
doc/source Use 'code-block' for pieces of code 2016-10-06 15:35:57 +09:00
etc/rootwrap.d Fix retrieval of config-2 existing partition 2017-01-11 14:55:40 -08:00
ironic_lib Prevent tests from using utils.execute() 2017-05-17 09:21:26 -07:00
tools Sync tools/tox_install.sh 2016-08-30 20:02:49 +02:00
.gitignore Add .eggs to the .gitignore file 2017-03-09 11:30:11 +00:00
.gitreview Add .gitreview 2015-03-27 10:01:11 +01:00
.testr.conf Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
CONTRIBUTING.rst Update link for where to report bugs 2015-09-30 13:53:11 -07: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 Show team and repo badges on README 2016-11-25 13:37:23 +01:00
TESTING.rst Add prefix "$" for command examples 2016-09-28 22:19:51 +09:00
requirements.txt Updated from global requirements 2017-04-12 04:12:34 +00:00
setup.cfg Python 3.5 is added 2017-03-09 11:03:58 +05:30
setup.py Updated from global requirements 2017-03-02 11:45:33 +00:00
test-requirements.txt Updated from global requirements 2017-03-02 23:55:32 +00:00
tox.ini Revert "Update UPPER_CONSTRAINTS_FILE for stable/ocata" 2017-03-28 09:24:07 -04: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