test: remove persistent log checking on minimal raw test

Persistent log is not related with minimal raw image itself and
it is not stable. After discuss with team, remove this test
This commit is contained in:
Xiaofeng Wang 2023-12-06 09:31:04 +08:00 committed by Achilleas Koutsou
parent bfad6d50e1
commit 15a94899a8

View file

@ -58,18 +58,6 @@
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
- name: enable persistent logging for the systemd journal
file:
path: /var/log/journal
state: directory
become: yes
when: ansible_facts['distribution'] == 'RedHat' or ansible_facts['distribution'] == 'CentOS'
- name: enable persistent logging on RHEL 9 and CS9 only
command: journalctl --flush
become: yes
when: ansible_facts['distribution_version'] == "9.4" or ansible_facts['distribution_version'] == "9"
- name: add RHEL 9.4 BaseOS repository
yum_repository:
name: baseos
@ -206,26 +194,6 @@
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
# case: check persistent log in Edge system
- name: check journald has persistent logging
block:
- name: list boots
shell: journalctl --list-boots -q
register: result_list_boots
- assert:
that:
- result_list_boots.stdout_lines | length > 1
fail_msg: "journald hasn't persistent logging"
success_msg: "journald has persistent logging"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
- assert:
that:
- failed_counter == "0"