diff --git a/test-cases/sdk-persistent-disk.yaml b/test-cases/sdk-persistent-disk.yaml new file mode 100644 index 0000000000000000000000000000000000000000..de2c1025e1137aba46271c27222288efdc6b7983 --- /dev/null +++ b/test-cases/sdk-persistent-disk.yaml @@ -0,0 +1,52 @@ +metadata: + name: sdk-persistent-disk + format: "Apertis Test Definition 1.0" + image-types: + basesdk: [ amd64 ] + sdk: [ amd64 ] + image-deployment: + - APT + type: compatibility + exec-type: manual + priority: critical + maintainer: "Apertis Project" + description: "Tests that persistent disk can be used when upgrading the SDK." + + pre-conditions: + - "Download the virtual machine image for the latest SDK release from:" + - "~https://images.apertis.org/" + - "Create the first virtual machine and name it old-sdk or old-basesdk" + - "Create the second virtual machine and name it new-sdk or new-basesdk" + - "Instructions on how to use VirtualBox and psdk for persistent disk:" + - "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace" + + expected: + - "psdk should indicate that 'This SDK is currently using the persistent disk' when attempting to confirm if the SDK is using the persistent disk" + - "'ade sysroot update' should indicate that the Installed version is already up-to-date." + +run: + steps: + - "The following steps are for the SDK virtual machine named with old:" + - "Power on the virtual machine, and run on a terminal:" + - $ ade sysroot install + - "Power off the virtual machine" + - "On VirtualBox add the persistent disk to the SDK virtual machine:" + - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk" + - "Power on the virtual machine" + - "Use psdk to initialize the empty disk and to configure the SDK to use it:" + - "~https://developer.apertis.org/latest/sdk-usage.html#preparing-the-persistent-disk-on-the-old-sdk" + - "The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use" + - "Run on a terminal:" + - $ ade sysroot update + - "Power off the virtual machine" + + - "The following steps are for the SDK virtual machine named with new" + - "On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:" + - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-new-sdk" + - "Power on the virtual machine" + - "Use psdk to configure the SDK to use the persistent disk:" + - "~https://developer.apertis.org/latest/sdk-usage.html#using-the-persistent-disk-on-the-new-sdk" + - "The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use" + - "Run on a terminal:" + - $ ade sysroot update + - "Power off the virtual machine"