From Fedora Project Wiki

Description

Test whether the desktop correctly downloads and presents package updates for installation.

Setup

  • Ensure that it is after 06:00 AM on the machine that you want to test on (and before midnight).

How to test

  1. Ensure that there are package updates available to install. To do this, you can open the Software app and check whether there are "System Updates" listed in the Updates view. Alternatively, run sudo dnf check-update --refresh and see if any packages are listed.
  2. Open a Terminal and enter the test commands (see below) in sequence.
    gnome-software --quit
    TIMESTAMP=$(date '+%s' --date='08:00 15 days ago')
    gsettings set org.gnome.software check-timestamp $TIMESTAMP
    gsettings set org.gnome.software install-timestamp $TIMESTAMP
    gsettings set org.gnome.software update-notification-timestamp $TIMESTAMP
    gsettings set org.gnome.software packagekit-historical-updates-timestamp $TIMESTAMP
    gnome-software   # alternatively 'gnome-software --verbose'
    
  3. Wait one minute. After exactly one minute, a new check for updates should be triggered, and updates should start to be downloaded. If you want to know when exactly, you can run gnome-software --verbose in the previous step, or watch output of journalctl -f -u dnf5daemon-server.service (only shows output in case updates weren't downloaded already).
  4. Once the download of updates has completed:
    • A new popup should appear, notifying you of updates that are ready to be installed.
    • Open the Updates view in the Software app. You should see the prepared updates.
    • Open the system menu and select to power off the device. The confirmation dialog should include an "install pending software updates" checkbox.

Expected Results

  • One minute after running gnome-software, it should download any pending updates and display a notification.



Notes on Expected Behavior

  • Software updates are automatically downloaded when any of the software updates are critical, *or* when the updates are not critical and it is 2 weeks since updates were last installed
  • This test only concerns the notifications for updates which must be installed during a reboot (packages, OSTree updates, Firmware updates). Flatpak updates are expected to be automatically installed on a daily basis. The "updates installed" notifications that this generates are not covered by this test case.
  • The expected behaviour assumes that "automatic updates" are turned on (this is the default setting). If "automatic updates" are turned off, a different notification should be displayed to inform you that updates are available to download.