Dasharo Stability: Capsule Update
Test cases common documentation
Test setup
- Proceed with the Generic test setup: firmware.
- Proceed with the Generic test setup: OS installer.
- Proceed with the Generic test setup: OS installation.
- Proceed with the Generic test setup: OS boot from disk.
- Boot into Ubuntu and note down the original
- UUID (via
dmidecode
) - Serial number (also via
dmidecode
) - BGRT bootsplash logo hash (located in
/sys/firmware/acpi/bgrt
)
- UUID (via
CUP001.001 Capsule Update With Wrong Keys (UEFI Shell)
Test description
This test aims to verify that the Device Under Test (DUT) rejects flashing a capsule that is signed with an invalid certificate.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Ensure the DUT is connected and the UEFI shell is available.
- Proceed with the common test setup steps as described in the Test cases common documentation section.
Test steps
- Obtain and save the current BIOS version as
${original_bios_version}
. - Perform a capsule update using an invalid certificate file
- Reboot the system and select the UEFI Shell boot option.
- After the system boots, verify the BIOS version and save it as
${updated_bios_version}
. - Check that the BIOS version has not changed by verifying that
${original_bios_version}
is equal to${updated_bios_version}
. - Verify that there is a status note about a security violation.
Expected result
- The BIOS version should not change after attempting the capsule update.
- The status should contain a note indicating that the update was rejected due to the invalid certificate.
CUP002.001 Capsule Update With Wrong GUID (UEFI Shell)
Test description
This test aims to verify that the Device Under Test (DUT) rejects flashing a capsule with an invalid GUID.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Ensure the DUT is connected and the UEFI shell is available.
- Proceed with the common test setup steps as described in the Test cases common documentation section.
Test steps
- Obtain and save the BIOS version as
${original_bios_version}
. - Perform a capsule update using an invalid GUID file.
- Reboot the system and select the UEFI Shell boot option.
- After the system boots, verify and save the BIOS version as
${updated_bios_version}
. - Check that the BIOS version has not changed by verifying that
${original_bios_version}
is equal to${updated_bios_version}
. - Verify that the status contains a
Not Ready
indication.
Expected result
- The BIOS version should not change after attempting the capsule update.
- The status should contain a note indicating that the update was rejected due to the invalid GUID.
CUP130.001 Verifying BIOS Settings Persistence After Update - PART 1
Test description
This test aims to verify that BIOS settings persist after a Capsule Update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Ensure the DUT is connected and the UEFI shell is available.
- Proceed with the common test setup steps as described in the Test cases common documentation section.
Test steps
- Power on the DUT.
- Enter the Setup Menu.
- Navigate to Boot Maintenance Manager.
- Change the Auto Boot Time-out value to an arbitrary custom one, such as 32123
- Save the settings and reboot the system.
Expected result
- The custom Auto Boot Time-out value should remain set after the reboot.
CUP150.001 Capsule Update
Test description
This test verifies a successful capsule update and ensures the correct user experience (UX) during the update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo- Custom logo firmware image
Test setup
- Ensure the DUT is connected and the UEFI shell is available.
- Proceed with the common test setup steps as described in the Test cases common documentation section.
Test steps
- Obtain and save the BIOS version as
${original_bios_version}
. - Perform a capsule update using a valid capsule.
- Verify that the update screen looks as expected.
- After the system boots, select the UEFI shell boot option.
- Verify the BIOS version and save it as
${updated_bios_version}
. - Ensure that the BIOS version has changed.
- Verify that the status contains
CapsuleMax
and does not containCapsuleLast
.
Expected result
- The update screen should look exactly as presented in the Capsule Update documentation.
- The BIOS version should change after the update.
- The status should contain
CapsuleMax
and should not containCapsuleLast
.
CUP160.001 Verifying BIOS Settings Persistence After Update - PART 2
Test description
This test aims to verify the persistence of BIOS settings after a capsule update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo
Test setup
- Ensure the DUT is connected and the UEFI shell is available.
- Proceed with the common test setup steps as described in the Test cases common documentation section.
Test steps
- Power on the DUT.
- Enter the Setup Menu.
- Navigate to the "Boot Maintenance Manager" menu.
- Check the value of the "Auto Boot Time-out" option.
Expected result
- The "Auto Boot Time-out" option should retain the previously set value.
CUP170.001 Verifying UUID (Ubuntu)
Test description
This test checks if the UUID persists after a capsule update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Log in to Ubuntu.
- Check the UUID after the update.
Expected result
- The UUID should remain unchanged after the update.
CUP180.001 Verifying Serial Number (Ubuntu)
Test description
This test checks if the serial number persists after a capsule update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu
Test setup
- Proceed with the Test cases common documentation section.
Test steps
- Log in to Ubuntu.
- Check the serial number after the update.
Expected result
- The serial number should remain unchanged after the update.
CUP190.001 Verifying If Custom Logo Persists Across Updates (Ubuntu)
Test description
This test checks if the custom logo persists after a capsule update.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu- Custom logo firmware image
Test setup
- Ensure that the DUT is running the firmware with a custom logo.
- Proceed with the Test cases common documentation section.
Test steps
- Log in to Ubuntu.
- After the update, verify the custom logo's SHA-256 hash.
Expected result
- The custom logo should remain unchanged after the update.
CUP250.001 Capsule Update Progress Bar - Default Logo
Test description
This test verifies that the Capsule Update screen displays the correct user experience (UX) when using a default logo, including the progress bar.
Each step in this test case should be executed in accordance with the instructions given in our Capsule Update documentation.
Test configuration data
FIRMWARE
= Dasharo- Default logo firmware image
Test setup
- Ensure that the DUT is running the firmware with the default logo.
- Proceed with the Test cases common documentation section.
Test steps
- Perform a capsule update using a valid capsule.
- Verify that the update screen looks as expected.
Expected result
- The update screen should look exactly as presented in the Capsule Update documentation.