Skip to content

Commit f5d8e6f

Browse files
committed
tests: Update tests_zone to do bootc end-to-end validation
That test covers a lot of settings but only has one scenario, so it's fitting for end-to-end testing. See https://issues.redhat.com/browse/RHEL-78157
1 parent c490754 commit f5d8e6f

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

tests/tests_zone.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@
6060
state: enabled
6161
- service: http
6262
state: enabled
63+
when: not __bootc_validation | d(false)
6364

6465
- name: Fail if no changes are done
6566
fail:
6667
msg: "FAILED"
67-
when: not firewall_lib_result.changed
68+
when:
69+
- not __bootc_validation | d(false)
70+
- not firewall_lib_result.changed
6871

6972
# ENSURE STATE AGAIN
7073

@@ -97,11 +100,21 @@
97100
state: enabled
98101
- service: http
99102
state: enabled
103+
when: not __bootc_validation | d(false)
100104

101105
- name: Fail on newly changes
102106
fail:
103107
msg: "FAILED"
104-
when: firewall_lib_result.changed # noqa no-handler
108+
when:
109+
- not __bootc_validation | d(false)
110+
- firewall_lib_result.changed # noqa no-handler
111+
112+
- name: Create QEMU deployment during bootc end-to-end test
113+
delegate_to: localhost
114+
become: false
115+
command: "{{ lsr_scriptdir }}/bootc-buildah-qcow.sh {{ ansible_host }}"
116+
changed_when: true
117+
when: ansible_connection == "buildah"
105118

106119
# VERIFY
107120

@@ -153,6 +166,7 @@
153166
or "yes" not in result.stdout
154167
always:
155168
- name: Cleanup
169+
when: not __bootc_validation | d(false)
156170
tags:
157171
- tests::cleanup
158172
block:

0 commit comments

Comments
 (0)