lorax/tests/pylorax
Brian C. Lane 72bd52e061 lorax-composer: Check the queue and results at startup
If the system ran out of space, or was rebooted unexpectedly, the state
of the queue symlinks, or the results STATUS files may be inconsistent.
This checks them and:
 * Removes broken symlinks from queue/new and queue/run
 * Removes symlinks from run and sets the build to FAILED
 * Sets builds w/o a STATUS to FAILED
 * Sets builds with STATUS of RUNNING to FAILED
 * Creates missing queue/new symlinks to results with STATUS of WAITING

So, any builds that were running during the reboot will be FAILED, and
any that were waiting to be started will be started upon rebooting.

Resolves: rhbz#1657054
(cherry picked from commit f0bac40d7f)
2018-12-07 13:48:10 -08:00
..
blueprints Add 'example' to the example blueprint names 2018-08-21 14:02:30 -07:00
repos Add support for user defined package sources API 2018-06-11 16:54:59 -07:00
results Add group-based tests. 2018-07-12 17:31:56 -04:00
source Fix DNF related issues with source selection 2018-06-11 16:54:59 -07:00
test_buildstamp.py Fix mocking the built-in open function for Python2 2018-06-11 16:54:57 -07:00
test_compose.py Add tests for setting root password and ssh key with blueprints 2018-09-28 15:21:11 -07:00
test_crossdomain.py Fix some pylint warnings 2018-06-11 16:54:59 -07:00
test_projects.py Add a version glob test forprojects_depsolve_with_size 2018-10-01 11:09:20 -07:00
test_queue.py lorax-composer: Check the queue and results at startup 2018-12-07 13:48:10 -08:00
test_recipes.py Fix tests related to blueprint name changes 2018-08-21 15:08:58 -07:00
test_server.py Add an openstack image type 2018-12-07 13:59:45 -05:00
test_timestamp.py Add a test for the pylorax.api.timestamp functions 2018-08-07 10:51:06 -07:00
test_workspace.py Fix tests related to blueprint name changes 2018-08-21 15:08:58 -07:00
test_yumbase.py Fix handling bad source repos and add a test 2018-06-11 16:54:59 -07:00