15 Commits

Author SHA1 Message Date
Ben Nemec
c2972eb22d Add success test case
Most of the test cases ended in an error condition. This adds one
that does not.
2018-09-13 20:00:47 +00:00
Ben Nemec
3d2a3bc23f Handle exceptions from checks
The original check code in Nova behaves this way, so for consistency
do it here too.
2018-09-13 17:24:57 +00:00
Ben Nemec
d3877b9087 Propagate return code
Previously the results were only being printed, but the return code
for the checks wasn't propagated up.
2018-09-13 17:19:36 +00:00
Ben Nemec
8d76949735 Add more unit tests
This gets the coverage of the upgradecheck module to 98%.
2018-09-13 17:04:50 +00:00
Ben Nemec
1f5d31a272 Test _get_details 2018-09-13 16:36:20 +00:00
Ben Nemec
18b94499d8 Get coverage job working
Add a simple test that imports the module so there is coverage data
available and fix the coverage config so it is looking at the
correct locations.
2018-09-13 16:17:56 +00:00
Ben Nemec
4f9e87ad24 Remove history file from docs
We keep track of this via release notes and there is no changelog
file so this breaks the doc build.
2018-09-13 15:56:12 +00:00
Ben Nemec
574fd4d3ef Migrate to stestr 2018-09-13 15:50:37 +00:00
Ben Nemec
db30bd3082 Add docstring to main() 2018-09-12 22:48:46 +00:00
Ben Nemec
a2b7d05255 Fix pep8 failures 2018-09-12 22:46:06 +00:00
Ben Nemec
95685f540b Proper requirements specification
Adds lower constraints to all requirements.
2018-09-12 22:39:56 +00:00
Ben Nemec
29c724b80c Add _i18n module
This was missed in the previous commit
2018-09-12 22:39:07 +00:00
Ben Nemec
1f333e1aea Add i18n support
There are translatable strings in this library and we need to
support that properly. Replace the stub _() with a proper
implementation based on oslo.i18n.
2018-09-12 22:28:44 +00:00
Ben Nemec
302c40a857 Initial implementation 2018-09-12 18:20:50 +00:00
Ben Nemec
d671294399 Initial commit 2018-09-12 17:35:58 +00:00