lorax/tests/pylorax
Brian C. Lane 574360f7d0 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#1647985
(cherry picked from commit 4dd9004d13)
2018-12-06 15:26:40 -08:00
..
blueprints tests: Fix tests so they run on Fedora 28 2018-10-05 09:09:10 -07:00
repos Update the projects tests to use DNF Repo object 2018-10-29 14:27:23 -07:00
results Add group-based tests. 2018-07-18 15:38:40 -07:00
source Fix DNF related issues with source selection 2018-06-04 15:45:36 -07:00
templates Add tests for ltmpl.py 2018-10-29 14:49:49 -07:00
test_buildstamp.py Fixing bug where test did not try to import pylorax.version to check for version but automatically just checked for 'devel' causing test to fail when it should not have 2018-06-22 09:14:04 -07:00
test_compose.py Write a rootpw line if no root customizations in the blueprint 2018-10-05 09:09:10 -07:00
test_crossdomain.py Use 2to3 to convert the python2 lorax-composer code to python3 2018-05-14 13:00:14 -07:00
test_dnfbase.py Update the tests for new make_dnf_dir arguments. 2018-10-10 14:25:38 -07:00
test_ltmpl.py Add tests for ltmpl.py 2018-10-29 14:49:49 -07:00
test_projects.py Fix singlerepo test for f29 2018-10-29 14:48:40 -07:00
test_queue.py lorax-composer: Check the queue and results at startup 2018-12-06 15:26:40 -08:00
test_recipes.py Fix tests related to blueprint name changes 2018-08-23 13:32:26 -07:00
test_server.py Update the tests for new make_dnf_dir arguments. 2018-10-10 14:25:38 -07:00
test_timestamp.py Add a test for the pylorax.api.timestamp functions 2018-08-07 09:22:18 -07:00
test_workspace.py Fix tests related to blueprint name changes 2018-08-23 13:32:26 -07:00