From Fedora Project Wiki

< User:Roshi‎ | QA/AtomicTests

Revision as of 22:42, 19 November 2014 by Roshi (talk | contribs) (Created page with "{{QA/Test_Case |description=This testcase ensures it's possible to upgrade an Atomic Host. {{Admon/note|Prerequisite|This testcase assumes you have already ran the [https://fe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This testcase ensures it's possible to upgrade an Atomic Host.

Note.png
Prerequisite
This testcase assumes you have already ran the boot test.

Setup

  1. Ensure you have a booted working Atomic Host

How to test

  1. 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
  1. 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
  1. Run the upgrade
rpm-ostree upgrade
  1. Reboot the Host
  2. After reboot - test docker
docker run -it --rm busybox true && echo "PASS"

Expected Results

  1. Upgrade succeeds
  2. docker outputs PASS when ran