Skip to content

Commit 23d8b16

Browse files
committed
tests: Update tests_all_options.yml to do bootc end-to-end validation
Move the generated file to /etc, as files in /tmp don't get included in a bootc deployment. See https://issues.redhat.com/browse/RHEL-78157
1 parent 2561992 commit 23d8b16

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/tests_all_options.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- ansible_facts['os_family'] == "RedHat"
5353
- not __ssh_is_ostree | bool
5454
changed_when: true
55+
when: not __bootc_validation | d(false)
5556

5657
- name: Make sure manual pages, gawk and bash are installed
5758
package:
@@ -94,13 +95,20 @@
9495
name: linux-system-roles.ssh
9596
vars:
9697
__ssh_supports_validate: false
97-
ssh_config_file: /tmp/ssh_config
98+
ssh_config_file: /etc/test_ssh_config
9899
ssh:
99100
"{{ ssh_c }}"
101+
when: not __bootc_validation | d(false)
102+
103+
- name: Create QEMU deployment during bootc end-to-end test
104+
delegate_to: localhost
105+
command: "{{ lsr_scriptdir }}/bootc-buildah-qcow.sh {{ ansible_host }}"
106+
changed_when: true
107+
when: ansible_connection == "buildah"
100108

101109
- name: Download the configuration file
102110
slurp:
103-
src: /tmp/ssh_config
111+
src: /etc/test_ssh_config
104112
register: config
105113

106114
- name: Verify the options are in the file

0 commit comments

Comments
 (0)