From Fedora Project Wiki

(add description section for encryption too)
(revise for dnf system-upgrade instead of fedup (don't worry, fedup version was moved to Template:Testcase upgrade fedup and fedup test cases preserved))
Line 2: Line 2:
<onlyinclude>{{Template:Associated_release_criterion|Beta|upgrade-requirements}}
<onlyinclude>{{Template:Associated_release_criterion|Beta|upgrade-requirements}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests upgrading from {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}}} to {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}|next}}{{#if:{{{2|}}}|<nowiki> </nowiki>with the {{{2}}} package set{{#ifeq:{{{3|}}}|live|<nowiki> </nowiki>or live image|}}|}}{{#ifeq:{{{4|}}}|encrypt|<nowiki> </nowiki>with disk encryption enabled|}} using the [https://github.com/wgwoods/fedup Fedup] CLI.
|description=This test case tests upgrading from {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}}} to {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}|next}}{{#if:{{{2|}}}|<nowiki> </nowiki>with the {{{2}}} package set{{#ifeq:{{{3|}}}|live|<nowiki> </nowiki>or live image|}}|}}{{#ifeq:{{{4|}}}|encrypt|<nowiki> </nowiki>with disk encryption enabled|}} using the [https://github.com/rpm-software-management/dnf-plugin-system-upgrade dnf-plugin-system-upgrade] CLI.
|actions=
|actions=
# Perform an installation of {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}}} with default partitioning (no less than 500MB for {{filename|/boot}}){{#ifeq:{{{4|}}}|encrypt|<nowiki> </nowiki>with encryption enabled on the '''INSTALLATION DESTINATION''' page|}}{{#if:{{{2|}}}|, selecting the {{{2}}} package set{{#ifeq:{{{3|}}}|live|<nowiki> </nowiki>or using the {{{2}}} live image|}}|}}.
# Perform an installation of {{FedoraVersion|{{#if:{{{1|}}}|{{{1}}}|long}}}} with default partitioning (no less than 500MB for {{filename|/boot}}){{#ifeq:{{{4|}}}|encrypt|<nowiki> </nowiki>with encryption enabled on the '''INSTALLATION DESTINATION''' page|}}{{#if:{{{2|}}}|, selecting the {{{2}}} package set{{#ifeq:{{{3|}}}|live|<nowiki> </nowiki>or using the {{{2}}} live image|}}|}}.
{{fedup_upgrade_procedure}}
{{dnf_upgrade_procedure}}
|results=
|results=
{{fedup_upgrade_results}}{{#ifeq:{{{4|}}}|encrypt|
{{dnf_upgrade_results}}{{#ifeq:{{{4|}}}|encrypt|
# Accessing the encrypted storage volume(s) should work normally after the upgrade|}}
# Accessing the encrypted storage volume(s) should work normally after the upgrade|}}
}}{{#ifeq:{{{4|}}}|encrypt|
}}{{#ifeq:{{{4|}}}|encrypt|
{{admon/important|Failures not related to encryption|If you encounter an issue that does not seem related to encryption, perform the test case that corresponds to this one without encryption, and verify the problem occurs in that case too. If so, consider it a failure of that test case, not this one.}}|}}
{{admon/important|Failures not related to encryption|If you encounter an issue that does not seem related to encryption, perform the test case that corresponds to this one without encryption, and verify the problem occurs in that case too. If so, consider it a failure of that test case, not this one.}}|}}
<includeonly>[[Category:Upgrade_system]]
<includeonly>[[Category:Upgrade_system]]
[[Category:Package_fedup_test_cases]]</includeonly></onlyinclude>
[[Category:Package_dnf-plugin-system-upgrade_test_cases]]</includeonly></onlyinclude>

Revision as of 01:39, 3 September 2015

Template documentation [edit]

This documentation is transcluded from Template:Testcase upgrade/doc. It will not be transcluded on pages that use this template.

This template is used to produce multiple upgrade test cases for release validation testing, found at Template:Installation_test_matrix#Upgrade.

Various bits of the content are conditionalized, based on template parameters, to let you produce the test cases that cover upgrading from different configurations.

If the first parameter is set, you'll get a test case for that flavor - e.g. {{Testcase upgrade|server}} to get a test case for upgrading the Server flavor.

If the second parameter is set, you'll get a test case for that package set - e.g. {{Testcase upgrade||minimal}} to get a test case for upgrading the minimal package set.

You should only ever set either the first or the second parameter, don't set both together.

If the third parameter is set to live, the test case will mention a live image; it's only intended to be used with the second parameter set (i.e. a package set - not flavor - test case). e.g. {{Testcase upgrade||KDE|live}} to get a test case which covers upgrading a KDE install either via network install or live image.

If the fourth parameter is set to encrypt, the test case will be for upgrading an encrypted system; e.g. {{Testcase upgrade|workstation|||encrypt}} to get a test case which covers upgrading an encrypted Workstation install.

The fifth parameter can be used to specify the release the test case tests upgrading from. Its value is passed to Template:FedoraVersion as its second parameter, for the two places where that template is used to specify the source release. If not set, the source release will be the current stable release. For e.g. {{Testcase upgrade|||||previous}} will produce a test case for upgrading from the previous stable release. The FedoraVersion documentation explains the values that can be used.

If the sixth parameter is set, the test case will give instructions for upgrading graphically using GNOME Software, and be in the gnome-software package test case category. If it is not set, the test case will give instructions for upgrading using the dnf system-upgrade plugin, and be in the dnf-plugin-system-upgrade package test case category.
Note.png
Associated release criterion
This test case is associated with the Fedora_41_Beta_Release_Criteria#upgrade-requirements release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.

Description

This test case tests upgrading from Fedora 40 to Fedora 41 using the dnf-plugin-system-upgrade CLI.


How to test

  1. Perform an installation of Fedora 40 with default partitioning (no less than 500MB for /boot).
  1. Install the latest stable version of Package-x-generic-16.pngdnf-plugin-system-upgrade package:
    sudo dnf install --best --refresh dnf-plugin-system-upgrade
  2. Download the updates:
    sudo dnf system-upgrade download --refresh --releasever=41
    • You can change 41 to test upgrading to a different Fedora release, of course.
    • If you need to use a local mirror to test a brand new change, you can enable it as normal, i.e. by adding --enablerepo=<name> option to the command line.
  3. To aid debugging, run this command to enable a root shell on VT9 during the upgrade boot:
    sudo systemctl add-wants system-update.target debug-shell.service

    If anything goes wrong during upgrade, you can live switch to VT9 and inspect current system state, logs, etc.

  4. If downloading has completed without error, run:
    sudo dnf system-upgrade reboot
  5. Once the system reboots, the system should boot into the upgrade process and a graphical progress screen should be displayed
    • Pressing Esc should switch from the graphical progress screen to the text progress information display
  6. Once the upgrade process has completed, the system should reboot and an option to boot the new release should be on the grub menu
  7. Log in to the upgraded system and test basic system applications (a terminal, file browser, or other, depending on the system flavor)

Expected Results

  1. dnf system-upgrade should run to completion, without error
  2. The upgrade process should complete and reboot without user assistance
  3. The system should be upgraded to the new release without error
  4. The upgraded system should meet all relevant Fedora Release Criteria