Skip to content
Snippets Groups Projects

Add manual test case for AUM rollback

Merged Walter Lozano requested to merge wip/wlozano/aum-rollback-manual into apertis/v2025pre
+ 51
0
metadata:
name: aum-rollback-bootcount
format: "Apertis Test Definition 1.0"
image-types:
fixedfunction: [ armhf, arm64, amd64 ]
image-deployment:
- OSTree
group: "aum-offline-upgrade"
type: functional
exec-type: manual
priority: critical
maintainer: "Apertis Project"
description: "Apertis update manager: Rollback bootcount
This test ensures that the update manager is able to rollback to an old deployment in case of bootcount exceeded."
expected:
- "If the test succeeds you will see a log entry"
- |
>Warning: Bootlimit (3) exceeded. Using altbootcmd.
...
Found /extlinux/extlinux-rollback.conf
Retrieving file: /extlinux/extlinux-rollback.conf
notes:
- "The automated uses internet"
- "The test will prepare the system to perform an OTA update"
- "It requires five phases, which require a manual reboot to complete"
- "Phase 1 is to prepare the system with a version that can be updated"
- "Phase 2 aims to clean the old deployment to allow the update"
- "Phase 3 performs the OTA update"
- "Phase 4 is to simulate a boot failure three times to exceed the bootcount"
- "Phase 5 is to check that the system rollback to the previous state"
install:
git-repos:
- url: https://gitlab.apertis.org/tests/aum-offline-upgrade.git
branch: apertis/v2025pre
run:
steps:
- "# For Phase 1-3, perform the following actions,
repeat them 3 times to move to the next phase"
- "Enter test directory:"
- $ cd aum-offline-upgrade
- "Execute the following command:"
- $ common/run-test-in-systemd --timeout=1200 --name=rollback-bootcount env DEBUG=2 RELEASE=$RELEASE ARCH=$ARCH BASEURL=$BASEURL IMGPATH=$IMGPATH IMGDATE=$IMGDATE IMGTYPE=$IMGTYPE IMGNAME=$IMGNAME BOARD=$BOARD ./run-test-ota-auto.sh
- "Reboot the system"
- "For Phase 4, power cycle the board just after starting the kernel,
repeat it for three times to increase bootcount beyond the limit"
- "Check that bootlimit has been exceeded, by looking at logs"
- "Check that after booting the original deployment has been used"
\ No newline at end of file
Loading