From Fedora Project Wiki

(add code examples)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This tests whether an existing Fedora CoreOS instance running on `stable` or `testing` stream can switch to the `next` stream.  
|description=This tests whether an existing Fedora CoreOS instance running on '''stable''' or '''testing''' stream can switch to the '''next''' stream.  
|setup=
|setup=
# Have access to a (or install a new) FCOS instance running from the `stable` or `testing` stream (`stable` is preferred).
# Have access to a (or install a new) FCOS instance running from the '''stable''' or '''testing''' stream (stable is preferred).
|actions=
|actions=
# Follow [https://docs.fedoraproject.org/en-US/fedora-coreos/update-streams/ Update Streams] documentation and switch your system to the `next` stream.
<ol>
#* A package difference should be displayed during the switch operation for you to review.
<li> Verify that your FCOS system is running on '''stable''' or '''testing''' stream:
# Reboot
<pre>
$ sudo rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora:fedora/x86_64/coreos/stable
                  Version: 31.20200505.3.0 (2020-05-19T13:39:46Z)
                    Commit: 01f074cc6cd88d8d2b43f821da692f2367c101eb4377802cb35092bde0ef02f7
              GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
</pre>
The heavy dot ● shows the currently booted tree (if you see multiple deployments available). The current tree needs to show either `fedora/x86_64/coreos/stable` or `fedora/x86_64/coreos/testing`.
<li> Follow [https://docs.fedoraproject.org/en-US/fedora-coreos/update-streams/ Update Streams] documentation and switch your system to the `next` stream.
<ul><li> A package difference should be displayed during the switch operation for you to review.
</ul>
<li> Reboot
<li> Verify that your system is now running on the '''next''' stream:
<pre>
$ sudo rpm-ostree status
State: idle
Deployments:
● ostree://fedora:fedora/x86_64/coreos/next
                  Version: 32.20200517.1.0 (2020-05-19T09:23:58Z)
                    Commit: 7c23c4735fb3c541586f0a4d3ca956ef93ef7d76f00a19bccf51460bafa7ee97
              GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
</pre>
The current tree needs to show `fedora/x86_64/coreos/next`.
</ol>


|results=
|results=
# The system should successfully reboot and run on the `next` stream.
# The system successfully reboots and runs on the '''next''' stream.
#* '''FIXME:''' How to check that the `next` stream is active?
# The system is functional (you can connect the same way as before, your services are running as before).
# The linked documentation is clear, all steps are understandable, and nothing important is missing from it.
}}
}}


[[Category:CoreOS Test Cases]]
[[Category:CoreOS Test Cases]]

Revision as of 11:23, 3 June 2020

Description

This tests whether an existing Fedora CoreOS instance running on stable or testing stream can switch to the next stream.

Setup

  1. Have access to a (or install a new) FCOS instance running from the stable or testing stream (stable is preferred).

How to test

  1. Verify that your FCOS system is running on stable or testing stream:
    $ sudo rpm-ostree status
    State: idle
    AutomaticUpdates: disabled
    Deployments:
    ● ostree://fedora:fedora/x86_64/coreos/stable
                       Version: 31.20200505.3.0 (2020-05-19T13:39:46Z)
                        Commit: 01f074cc6cd88d8d2b43f821da692f2367c101eb4377802cb35092bde0ef02f7
                  GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
    

    The heavy dot ● shows the currently booted tree (if you see multiple deployments available). The current tree needs to show either fedora/x86_64/coreos/stable or fedora/x86_64/coreos/testing.

  2. Follow Update Streams documentation and switch your system to the next stream.
    • A package difference should be displayed during the switch operation for you to review.
  3. Reboot
  4. Verify that your system is now running on the next stream:
    $ sudo rpm-ostree status
    State: idle
    Deployments:
    ● ostree://fedora:fedora/x86_64/coreos/next
                       Version: 32.20200517.1.0 (2020-05-19T09:23:58Z)
                        Commit: 7c23c4735fb3c541586f0a4d3ca956ef93ef7d76f00a19bccf51460bafa7ee97
                  GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
    

    The current tree needs to show fedora/x86_64/coreos/next.

Expected Results

  1. The system successfully reboots and runs on the next stream.
  2. The system is functional (you can connect the same way as before, your services are running as before).
  3. The linked documentation is clear, all steps are understandable, and nothing important is missing from it.