oslotest includes things like showing log messages/stdout on test errors,
which makes debugging much easier. Also moved mock to second group in imports,
as it's a 3rd party library.
Change-Id: I016ae0a376d42dec28085687ea7194df4cd44eda
Currently, if a single lookup call to the Ironic API fails, the entire
agent errors out and restarts. This allows the agent to retry for a set
amount of time before throwing an uncaught exception forcing a restart.
Change-Id: I39752fb3f42ad3e4f15a49194f1554e1d3463cf8
Closes-Bug: 1297019
I'm using a patched version of pecan until a new release
is cut with the fix to the test app thing that I submitted
(https://review.openstack.org/#/c/81328/).
There's a couple of changes outside of tests.api - app.py
changes are to fit in better with pecan (specifically my patch),
and the __init__.py change is because I noticed when testing
that there was no `commands` link in the response from /v1.
This commit:
- Removes all references to teeth-rest.
- Brings in encoding.py and errors.py from teeth-rest.
- Removes the "view" thing from the encoding module.
- Adds structlog as a dep. This was missing and overlooked
because teeth-rest was installing it in the environment.
- Plumbum is not on the openstack global requirements list, and removing
it as a requirement is a prerequisite to being accepted as an
Openstack project