ostree/tests/installed
Colin Walters eb506c759c Add concept of "staged" deployment
Add API to write a deployment state to `/run/ostree/staged-deployment`,
along with a systemd service which runs at shutdown time.

This is a big change to the ostree model for hosts,
but it closes a longstanding set of bugs; many, many people have
hit the "losing changes in /etc" problem.  It also avoids
the other problem of racing with programs that modify `/etc`
such as LVM backups:
https://bugzilla.redhat.com/show_bug.cgi?id=1365297

We need this in particular to go to a full-on model for
automatically updated host systems where (like a dual-partition model)
everything is fully prepared and the reboot can be taken
asynchronously.

Closes: https://github.com/ostreedev/ostree/issues/545

Closes: #1503
Approved by: jlebon
2018-04-12 14:55:12 +00:00
..
destructive Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
nondestructive tests: Merge installed/ and fedora-str/ directories 2018-04-05 20:59:23 +00:00
tasks Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
README.md tests: Merge installed/ and fedora-str/ directories 2018-04-05 20:59:23 +00:00
destructive.yml Add concept of "staged" deployment 2018-04-12 14:55:12 +00:00
execute_batch.yml tests: Merge installed/ and fedora-str/ directories 2018-04-05 20:59:23 +00:00
libinsttest.sh tests: Merge installed/ and fedora-str/ directories 2018-04-05 20:59:23 +00:00
libtest-core.sh tests/installed: New installed, privileged tests using Fedora AH 2017-04-25 15:15:06 +00:00
nondestructive.yml tests/installed: Move tasks into tasks/ directory 2018-04-11 19:11:07 +00:00
playbook-run.sh tests/installed: Move auto-build logic to playbook-run.sh 2018-04-11 19:11:07 +00:00
provision.sh tests: Merge installed/ and fedora-str/ directories 2018-04-05 20:59:23 +00:00
run.sh tests/installed: Move auto-build logic to playbook-run.sh 2018-04-11 19:11:07 +00:00

README.md

This directory holds tests that use the Fedora Standard Test Interface.

The high level structure is that we take a qcow2 file, inject built RPMs into it, and then use Ansible to run tests.

See .papr.yml for canonical usage.

For local development, you should cache the qcow2 somewhere stable (outside of this git repo). Also note that ../ci/build-rpms.sh does not pick up uncommitted changes! Stated more strongly, you currently need to run build-rpms.sh after every change.

To run just a specific test, use e.g.: env TEST_SUBJECTS=/path/to/qcow2 ./playbook-run.sh -e tests=.*pull nondestructive.yml