From Fedora Project Wiki
< User:Roshi | QA/AtomicTests
Description
This testcase ensures it's possible to upgrade an Atomic Host.
Setup
- Ensure you have a booted working Atomic Host
How to test
- Check what commit your host is currently at
# rpm-ostree status TIMESTAMP (UTC) ID OSNAME REFSPEC * 2014-11-12 22:28:04 1877f1fa64 fedora-atomic-host fedora-atomic:fedora-atomic/f21/x86_64/docker-host # # ostree admin status * fedora-atomic-host 1877f1fa64be8bec8adcd43de6bd4b5c39849ec7842c07a6d4c2c2033651cd84.0 origin refspec: fedora-atomic:fedora-atomic/f21/x86_64/docker-host
- Save hash to a file (to refer to in the User:Roshi/QA/AtomicTests/Atomic_Rollback testcase)
# cat /ostree/repo/refs/heads/ostree/0/1/0 1877f1fa64be8bec8adcd43de6bd4b5c39849ec7842c07a6d4c2c2033651cd84 # # cat /ostree/repo/refs/heads/ostree/0/1/0 > /etc/file1
- Run the upgrade
rpm-ostree upgrade
- Reboot the Host
- After reboot - test docker
docker run -it --rm busybox true && echo "PASS"
Expected Results
- Upgrade succeeds
- docker outputs PASS when ran