← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] ~hyask/auto-upgrade-testing-specifications:main into auto-upgrade-testing-specifications:main

 

Skia has proposed merging ~hyask/auto-upgrade-testing-specifications:main into auto-upgrade-testing-specifications:main.

Requested reviews:
  Canonical Platform QA Team (canonical-platform-qa)

For more details, see:
https://code.launchpad.net/~hyask/auto-upgrade-testing-specifications/+git/auto-upgrade-testing-specifications/+merge/455951
-- 
Your team Canonical Platform QA Team is requested to review the proposed merge of ~hyask/auto-upgrade-testing-specifications:main into auto-upgrade-testing-specifications:main.
diff --git a/profiles/ubuntu-jammy-lunar-basic-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-basic-amd64_qemu.yaml
new file mode 100644
index 0000000..c6edffe
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-basic-amd64_qemu.yaml
@@ -0,0 +1,19 @@
+---
+- testname: "jammy->lunar basic upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: ubuntu
+    image_name: jammy_lunar_basic_amd64.img
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/profiles/ubuntu-jammy-lunar-desktop-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-desktop-amd64_qemu.yaml
new file mode 100644
index 0000000..29b866b
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-desktop-amd64_qemu.yaml
@@ -0,0 +1,24 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: ubuntu
+    image_name: jammy_lunar_ubuntu_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ubuntu-desktop^' --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-ubuntu-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
+
+  run_system_tests: true
diff --git a/profiles/ubuntu-jammy-lunar-kubuntu-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-kubuntu-amd64_qemu.yaml
new file mode 100644
index 0000000..b8104fd
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-kubuntu-amd64_qemu.yaml
@@ -0,0 +1,22 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: kubuntu
+    image_name: jammy_lunar_kubuntu_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install kubuntu-desktop' -v --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-kubuntu-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/profiles/ubuntu-jammy-lunar-lubuntu-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-lubuntu-amd64_qemu.yaml
new file mode 100644
index 0000000..96f9828
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-lubuntu-amd64_qemu.yaml
@@ -0,0 +1,22 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: lubuntu
+    image_name: jammy_lunar_lubuntu_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ^lubuntu-desktop' -v --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-lubuntu-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/profiles/ubuntu-jammy-lunar-server-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-server-amd64_qemu.yaml
new file mode 100644
index 0000000..0edb5e5
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-server-amd64_qemu.yaml
@@ -0,0 +1,24 @@
+---
+- testname: "jammy->lunar server upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: ubuntu
+    image_name: jammy_lunar_ubuntu_server_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install server^' -v --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-ubuntu-server"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
+
+  run_system_tests: true
diff --git a/profiles/ubuntu-jammy-lunar-ubuntu-mate-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-ubuntu-mate-amd64_qemu.yaml
new file mode 100644
index 0000000..0f0ec94
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-ubuntu-mate-amd64_qemu.yaml
@@ -0,0 +1,22 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: ubuntu-mate
+    image_name: jammy_lunar_ubuntu_mate_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ubuntu-mate-desktop^' -v --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-ubuntu-mate-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/profiles/ubuntu-jammy-lunar-ubuntu-unity-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-ubuntu-unity-amd64_qemu.yaml
new file mode 100644
index 0000000..b8e6bd6
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-ubuntu-unity-amd64_qemu.yaml
@@ -0,0 +1,22 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: ubuntu-unity
+    image_name: jammy_lunar_ubuntu_unity_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ubuntu-unity-desktop' -v --timeout 14400" 
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-ubuntu-unity-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/profiles/ubuntu-jammy-lunar-xubuntu-amd64_qemu.yaml b/profiles/ubuntu-jammy-lunar-xubuntu-amd64_qemu.yaml
new file mode 100644
index 0000000..349d331
--- /dev/null
+++ b/profiles/ubuntu-jammy-lunar-xubuntu-amd64_qemu.yaml
@@ -0,0 +1,22 @@
+---
+- testname: "jammy->lunar desktop upgrade"
+  provisioning:
+    backend: qemu
+    arch: amd64
+    flavor: xubuntu
+    image_name: jammy_lunar_xubuntu_desktop_amd64.img
+    build_args:
+      - "--post-command 'sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xubuntu-desktop^' -v --timeout 14400"
+    releases:
+      - "jammy"
+      - "lunar"
+
+  script_location: file://../tests
+  pre_upgrade_scripts:
+    - "check-xubuntu-desktop"
+    - "enable-apport-noui"
+    - "force-prompt-normal"
+
+  post_upgrade_tests:
+    - "check-conffile-prompt"
+    - "check-var-crash-empty"
diff --git a/tests/force-prompt-normal b/tests/force-prompt-normal
new file mode 100755
index 0000000..6ad7b3e
--- /dev/null
+++ b/tests/force-prompt-normal
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+echo "Ensure we have 'update-manager-core'"
+apt-get -y install update-manager-core
+
+echo "Forcing Prompt=normal to avoid bumping to next LTS"
+sed -i 's/Prompt=lts/Prompt=normal/' /etc/update-manager/release-upgrades
+