From Fedora Project Wiki

(Created page with " = Description = A validation test case for upgrading an rpm-ostree based IoT installation from the previous compose to the latest. This testcase can be run on either an image or installation, on hardware or in virtualization. = Setup = = How to test = Run the command: rpm-ostree upgrade Once completed, reboot the system: ... systemctl reboot Once rebooted, check to make sure the system is now running the new deployment rpm-ostree status = Results= 1. System...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:


= Description =
= Description =
A validation test case for upgrading an rpm-ostree based IoT installation from the previous compose to the latest. This testcase can be run on either an image or installation, on hardware or in virtualization.
A validation test case for upgrading an rpm-ostree based IoT installation from a previous compose to the latest. This testcase can be run on either an image or installation, on hardware or in virtualization.
 
= Setup =
= Setup =
Download and boot/install an IoT compose that is the not the current one. IoT images can be found [https://kojipkgs.fedoraproject.org/compose/iot/ here]. You can run the following command to ensure the Fedora IoT deployment that you have booted/installed is the not the current compose:
rpm-ostree status


Optional: check to see which packages will be upgraded without upgrading by running the following and looking under "Upgraded":
rpm-ostree upgrade --preview


= How to test =


Prepare a new ostree deployment with upgraded packages and reboot into it:
rpm-ostree upgrade --reboot


= How to test =
Once the system is rebooted, log in and check to make sure you're running the new deployment:
Run the command:
rpm-ostree upgrade
 
Once completed, reboot the system:
...
systemctl reboot
Once rebooted, check to make sure the system is now running the new deployment
  rpm-ostree status
  rpm-ostree status


= Results=
= Results=
1. System is upgraded, reboots into the new deployment.
1. System is upgraded and reboots into the new deployment by default, with the previous deployment still listed in 'rpm-ostree status'.




[[Category:IoT_Acceptance_Test_Cases]]
[[Category:IoT_Acceptance_Test_Cases]]

Latest revision as of 22:51, 12 September 2023

Description

A validation test case for upgrading an rpm-ostree based IoT installation from a previous compose to the latest. This testcase can be run on either an image or installation, on hardware or in virtualization.

Setup

Download and boot/install an IoT compose that is the not the current one. IoT images can be found here. You can run the following command to ensure the Fedora IoT deployment that you have booted/installed is the not the current compose:

rpm-ostree status

Optional: check to see which packages will be upgraded without upgrading by running the following and looking under "Upgraded":

rpm-ostree upgrade --preview

How to test

Prepare a new ostree deployment with upgraded packages and reboot into it:

rpm-ostree upgrade --reboot

Once the system is rebooted, log in and check to make sure you're running the new deployment:

rpm-ostree status

Results

1. System is upgraded and reboots into the new deployment by default, with the previous deployment still listed in 'rpm-ostree status'.