Skip to content

Commit 42df7f1

Browse files
committed
tests: Add bootc end-to-end validation test
1 parent 28579c0 commit 42df7f1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/tests_bootc_e2e.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SPDX-License-Identifier: MIT
2+
---
3+
- name: Bootc end-to-end test
4+
hosts: all
5+
tags:
6+
- tests::bootc-e2e
7+
gather_facts: false # test that role works in this case
8+
tasks:
9+
- name: Bootc image build preparation
10+
when: ansible_connection == "buildah"
11+
block:
12+
- name: Run the role
13+
include_role:
14+
name: linux-system-roles.sudo
15+
vars:
16+
sudo_check_if_configured: false
17+
18+
- name: Create QEMU deployment
19+
delegate_to: localhost
20+
command: "{{ lsr_scriptdir }}/bootc-buildah-qcow.sh {{ ansible_host }}"
21+
changed_when: true
22+
23+
- name: Validation of deployed image
24+
when: ansible_connection != "buildah"
25+
block:
26+
- name: Check header for ansible_managed, fingerprint
27+
include_tasks: tasks/check_present_header.yml
28+
vars:
29+
__file: /etc/sudoers
30+
__fingerprint: system_role:sudo

0 commit comments

Comments
 (0)