Skip to content
Snippets Groups Projects
Commit 7850bc5b authored by Peter Senna Tschudin's avatar Peter Senna Tschudin
Browse files

Revert "Update the SDK persistent disk test cases"


This reverts commit ab727249 because the
automation script still needs to be adapted to run under the
restrictions faced by RBEI. The test case will be updated once the
automation is updated.

Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
parent aaf258d7
No related branches found
No related tags found
No related merge requests found
...@@ -15,53 +15,37 @@ metadata: ...@@ -15,53 +15,37 @@ metadata:
pre-conditions: pre-conditions:
- "Download the virtual machine image for the latest SDK release from:" - "Download the virtual machine image for the latest SDK release from:"
- "~https://images.apertis.org/" - "~https://images.apertis.org/"
- "Make a note of release version (e.g v2020dev0)" - "Make a note of release version e.g v2020dev0"
- "Create a virtual machine, and name it old-sdk or old-basesdk"
- "Create a Full Clone of the virtual machine and name the clone new-sdk or new-basesdk:"
- "~https://www.virtualbox.org/manual/ch01.html#clone"
- "Instructions on how to use the SDK persistent workspace on VirtualBox:" - "Instructions on how to use the SDK persistent workspace on VirtualBox:"
- "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace" - "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace"
- "Clone the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/infrastructure/apertis-tests.git
expected: expected:
- "1) Changes made in the /etc folder should get reflected in the new sdk." - "Changes made in the etc folder should get reflected in the new sdk"
notes:
- The psdk-test will ask for the Apertis image SSH password in order to
access the virtual machine during some stages.
- Sometimes the SSH connection might show the error "Connection reset by peer",
in such a case, please start again the test.
- The psdk-test starts and poweroff the virtual machine several times, if
something goes wrong during booting or turning off a VM, please manually
close and restart the virtual machine and continue executing the test.
run: run:
steps: steps:
- "Execute the psdk-test script from the apertis-tests repository, passing the - "The following steps are for the SDK virtual machine named with old:"
image release, the path to the Apertis SDK VDI image and with test type - "Power on the virtual machine, and open a terminal"
'etc', for example:" - "Create a file called 90proxy under /etc/apt/apt.conf.d and enter the IP of your OSD in the file"
- $ cd apertis-tests/psdk-test - "Acquire::http::Proxy \"http://10.168.128.45:3128\";
- $ ./psdk-test etc <image_release> <apertis_sdk_image>.vdi Acquire::https::Proxy \"http://10.168.128.45:3128\";"
- "The psdk-test command will open an interactive session that can be used - "Power off the virtual machine"
to execute the test through different stages. The prompt should look like:" - "On VirtualBox add the persistent disk to the SDK virtual machine:"
- $ psdk-test> - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk"
- "Execute the first stage of the test entering 'r':" - "Power on the virtual machine"
- $ psdk-test> r
- The stage1 command will setup the test environment (create and clone VMs)
and also will execute any necessary step for the initialization of the test.
After execution of stage1, there should be a virtual machine running
named Apertis_OldSDK, proceed to the next step.
- "Use psdk to initialize the empty disk and to configure the SDK to use it:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use." - "The psdk needs to include the configuration file on the persistent disk, to do that enter the following command on the terminal"
- "Continue executing the second stage of the test:" - " $ psdk -e /etc/apt/apt.conf.d/90proxy"
- $ psdk-test> r - "Power off the virtual machine"
- "After the execution of stage2, there should be a virtual machine running - "The following steps are for the SDK virtual machine named with new"
named Apertis_NewSDK, proceed to the next step." - "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:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use. - "Check that the 90proxy file is present under /etc/apt/apt.conf.d folder in the NEW SDK"
- "Execute the final stage:" - "Power off the virtual machine"
- $ psdk-test> r
- This will complete the execution of the test, please check that the expected
result is obtained.
...@@ -15,54 +15,35 @@ metadata: ...@@ -15,54 +15,35 @@ metadata:
pre-conditions: pre-conditions:
- "Download the virtual machine image for the latest SDK release from:" - "Download the virtual machine image for the latest SDK release from:"
- "~https://images.apertis.org/" - "~https://images.apertis.org/"
- "Make a note of release version (e.g v2020dev0)" - "Make a note of release version e.g v2020dev0"
- "Create a virtual machine, and name it old-sdk or old-basesdk"
- "Create a Full Clone of the virtual machine, and name the clone new-sdk or new-basesdk:"
- "~https://www.virtualbox.org/manual/ch01.html#clone"
- "Instructions on how to use the SDK persistent workspace on VirtualBox:" - "Instructions on how to use the SDK persistent workspace on VirtualBox:"
- "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace" - "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace"
- "Clone the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/infrastructure/apertis-tests.git
expected: expected:
- "1) Changes made in the /home/user folder should get reflected in the new - "Changes made in the /home/user folder should get reflected in the new sdk"
SDK." run:
notes:
- The psdk-test will ask for the Apertis image SSH password in order to
access the virtual machine during some stages.
- Sometimes the SSH connection might show the error "Connection reset by peer",
in such a case, please start again the test.
- The psdk-test starts and poweroff the virtual machine several times, if
something goes wrong during booting or turning off a VM, please manually
close and restart the virtual machine and continue executing the test.
run:
steps: steps:
- "Execute the psdk-test script from the apertis-tests repository, passing the - "The following steps are for the SDK virtual machine named with old"
image release, the path to the Apertis SDK VDI image and with test type - "Power on the virtual machine, and open a terminal"
'user', for example:" - "Create a file called test under /home/user folder and add some content in the same file"
- $ cd apertis-tests/psdk-test - "Power off the virtual machine"
- $ ./psdk-test user <image_release> <apertis_sdk_image>.vdi - "On VirtualBox add the persistent disk to the SDK virtual machine:"
- "The psdk-test command will open an interactive session that can be used - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk"
to execute the test through different stages. The prompt should look like:" - "Power on the virtual machine"
- $ psdk-test>
- "Execute the first stage of the test entering 'r':"
- $ psdk-test> r
- The stage1 command will setup the test environment (create and clone VMs)
and also will execute any necessary step for the initialization of the test.
After execution of stage1, there should be a virtual machine running
named Apertis_OldSDK, proceed to the next step.
- "Use psdk to initialize the empty disk and to configure the SDK to use it:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use." - "Power off the virtual machine"
- "Continue executing the second stage of the test:" - "The following steps are for the SDK virtual machine named with new"
- $ psdk-test> r - "On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:"
- "After the execution of stage2, there should be a virtual machine running - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-new-sdk"
named Apertis_NewSDK, proceed to the next step." - "Power on the virtual machine"
- "Use psdk to configure the SDK to use the persistent disk:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use. - "Check that the file called test is present in /home/user/test on the NEW SDK"
- "Execute the final stage:" - "Power off the virtual machine"
- $ psdk-test> r
- This will complete the execution of the test, please check that the expected
result is obtained.
...@@ -15,56 +15,40 @@ metadata: ...@@ -15,56 +15,40 @@ metadata:
pre-conditions: pre-conditions:
- "Download the virtual machine image for the latest SDK release from:" - "Download the virtual machine image for the latest SDK release from:"
- "~https://images.apertis.org/" - "~https://images.apertis.org/"
- "Make a note of release version (e.g v2020dev0)" - "Make a note of release version e.g v2020dev0"
- "Create a virtual machine, and name it old-sdk or old-basesdk"
- "Create a Full Clone of the virtual machine, and name the clone new-sdk or new-basesdk:"
- "~https://www.virtualbox.org/manual/ch01.html#clone"
- "Instructions on how to use the SDK persistent workspace on VirtualBox:" - "Instructions on how to use the SDK persistent workspace on VirtualBox:"
- "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace" - "~https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace"
- "Clone the apertis-tests repository:"
- $ git clone https://gitlab.apertis.org/infrastructure/apertis-tests.git
expected: expected:
- "1) When attempting to confirm if the SDK is using the persistent disk psdk - "When attempting to confirm if the SDK is using the persistent disk psdk should indicate that 'This SDK is currently using the persistent disk'"
should indicate that 'This SDK is currently using the persistent disk'." - "'ade sysroot update' should indicate that the installed version is already up-to-date."
- "2) 'ade sysroot update' should indicate that the installed version is
already up-to-date."
notes:
- The psdk-test will ask for the Apertis image SSH password in order to
access the virtual machine during some stages.
- Sometimes the SSH connection might show the error "Connection reset by peer",
in such a case, please start again the test.
- The psdk-test starts and poweroff the virtual machine several times, if
something goes wrong during booting or turning off a VM, please manually
close and restart the virtual machine and continue executing the test.
run: run:
steps: steps:
- "Execute the psdk-test script from the apertis-tests repository, passing the - "The following steps are for the SDK virtual machine named with old:"
image release, the path to the Apertis SDK VDI image and with test type - "Power on the virtual machine, and run on a terminal:"
'sysroot', for example:" - $ ade sysroot install --release <release version>
- $ cd apertis-tests/psdk-test - "Power off the virtual machine"
- $ ./psdk-test sysroot <image_release> <apertis_sdk_image>.vdi - "On VirtualBox add the persistent disk to the SDK virtual machine:"
- "The psdk-test command will open an interactive session that can be used - "~https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk"
to execute the test through different stages. The prompt should look like:" - "Power on the virtual machine"
- $ psdk-test>
- "Execute the first stage of the test entering 'r':"
- $ psdk-test> r
- The stage1 command will setup the test environment (create and clone VMs)
and also will execute any necessary step for the initialization of the test.
After execution of stage1, there should be a virtual machine running
named Apertis_OldSDK, proceed to the next step.
- "Use psdk to initialize the empty disk and to configure the SDK to use it:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use." - "Run on a terminal:"
- "Continue executing the second stage of the test:" - $ ade sysroot update --release <release version>
- $ psdk-test> r - "Power off the virtual machine"
- "After the execution of stage2, there should be a virtual machine running
named Apertis_NewSDK, proceed to the next step." - "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:" - "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 - "~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 - "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"
click on psdk icon again to confirm that the persistent disk is in use. - "Run on a terminal:"
- "Execute the final stage:" - $ ade sysroot update --release <release version>
- $ psdk-test> r - "Power off the virtual machine"
- This will complete the execution of the test, please check that the expected
result is obtained.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment