distro/rhel85: add test for simplified installer
Add a comprehensive test suite for the simplified installer, based on the existing OSTree tests.
This commit is contained in:
parent
4e80c1bc82
commit
608d3b3517
3 changed files with 631 additions and 0 deletions
|
|
@ -98,6 +98,16 @@
|
|||
device_name: /dev/vda3
|
||||
when: result_uefi.stat.exists
|
||||
|
||||
# for edge-simplified-installer and edge-raw-image, /sysroot is mounted at /dev/vda4, need to set device_name to /dev/vda4
|
||||
- name: check if it is simplified-installer or raw-image
|
||||
command: df -h
|
||||
register: result_df
|
||||
|
||||
- set_fact:
|
||||
device_name: /dev/vda4
|
||||
vda4_detected: yes
|
||||
when: "'/dev/vda4' in result_df.stdout"
|
||||
|
||||
# case: check /sysroot moutn point
|
||||
- name: check /sysroot mount point
|
||||
command: findmnt -r -o SOURCE -n /sysroot
|
||||
|
|
@ -393,6 +403,17 @@
|
|||
- "'greenboot MotD Generator' in result_greenboot_log.stdout"
|
||||
fail_msg: "Some errors happened in service boot"
|
||||
success_msg: "All greenboot services booted success"
|
||||
when: vda4_detected is not defined
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'Script \\'00_required_scripts_start.sh\\' SUCCESS' in result_greenboot_log.stdout"
|
||||
- "'Script \\'00_wanted_scripts_start.sh\\' SUCCESS' in result_greenboot_log.stdout"
|
||||
- "'Boot Status is GREEN - Health Check SUCCESS' in result_greenboot_log.stdout"
|
||||
fail_msg: "Some errors happened in service boot"
|
||||
success_msg: "All greenboot services booted success"
|
||||
when: vda4_detected is defined
|
||||
|
||||
always:
|
||||
- set_fact:
|
||||
total_counter: "{{ total_counter | int + 1 }}"
|
||||
|
|
@ -498,6 +519,18 @@
|
|||
- "'greenboot MotD Generator' in result_greenboot_log.stdout"
|
||||
fail_msg: "Fallback log not found"
|
||||
success_msg: "Found fallback log"
|
||||
when: vda4_detected is not defined
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'FALLBACK BOOT DETECTED! Default rpm-ostree deployment has been rolled back' in result_greenboot_log.stdout"
|
||||
- "'Script \\'00_required_scripts_start.sh\\' SUCCESS' in result_greenboot_log.stdout"
|
||||
- "'Script \\'00_wanted_scripts_start.sh\\' SUCCESS' in result_greenboot_log.stdout"
|
||||
- "'Boot Status is GREEN - Health Check SUCCESS' in result_greenboot_log.stdout"
|
||||
fail_msg: "Some errors happened in service boot"
|
||||
success_msg: "All greenboot services booted success"
|
||||
when: vda4_detected is defined
|
||||
|
||||
always:
|
||||
- set_fact:
|
||||
total_counter: "{{ total_counter | int + 1 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue