forked from bootc-dev/bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration.fmf
More file actions
248 lines (222 loc) · 6.66 KB
/
integration.fmf
File metadata and controls
248 lines (222 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# Common settings for all plans
provision:
how: virtual
image: $@{test_disk_image}
# bootc probes for SELinux mac_admin/install_t capability by attempting
# chcon with an intentionally invalid label (see lsm.rs test_install_t).
# This generates expected AVC denials that rhel-ci's injected AVC check
# would otherwise flag as test failures.
environment:
AVC_ERROR: +no_avc_check
prepare:
# Install image mode system on package mode system
# Do not run on image mode VM running on Github CI and Locally
# Run on package mode VM running on Packit and Gating
# order 9x means run it at the last job of prepare
- how: install
order: 97
package:
- podman
- skopeo
- jq
- bootc
- system-reinstall-bootc
- expect
- ansible-core
- zstd
# Required for test-32-install-to-filesystem-var-mount
- parted
- lvm2
- dosfstools
- e2fsprogs
when: running_env != image_mode
- how: shell
order: 98
script:
- mkdir -p bootc && cp /var/share/test-artifacts/*.src.rpm bootc
- cd bootc && rpm2cpio *.src.rpm | cpio -idmv && rm -f *-vendor.tar.zstd && zstd -d *.tar.zstd && tar -xvf *.tar -C . --strip-components=1 && ls -al
- pwd && ls -al && cd bootc/hack && ./provision-packit.sh
when: running_env != image_mode
# tmt-reboot and reboot do not work in this case
# reboot in ansible is the only way to reboot in tmt prepare
- how: ansible
order: 99
playbook:
- https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml
when: running_env != image_mode
execute:
how: tmt
# BEGIN GENERATED PLANS
/plan-01-readonly:
summary: Execute booted readonly/nondestructive tests
discover:
how: fmf
test:
- /tmt/tests/tests/test-01-readonly
extra-try_bind_storage: true
/plan-20-image-pushpull-upgrade:
summary: Execute local upgrade tests
discover:
how: fmf
test:
- /tmt/tests/tests/test-20-image-pushpull-upgrade
/plan-21-logically-bound-switch:
summary: Execute logically bound images tests for switching images
discover:
how: fmf
test:
- /tmt/tests/tests/test-21-logically-bound-switch
extra-fixme_skip_if_composefs: true
/plan-22-logically-bound-install:
summary: Execute logically bound images tests for installing image
discover:
how: fmf
test:
- /tmt/tests/tests/test-22-logically-bound-install
extra-fixme_skip_if_composefs: true
/plan-23-install-outside-container:
summary: Execute tests for installing outside of a container
discover:
how: fmf
test:
- /tmt/tests/tests/test-23-install-outside-container
/plan-23-usroverlay:
summary: Execute tests for bootc usrover
discover:
how: fmf
test:
- /tmt/tests/tests/test-23-usroverlay
/plan-24-image-upgrade-reboot:
summary: Execute local upgrade tests
discover:
how: fmf
test:
- /tmt/tests/tests/test-24-image-upgrade-reboot
extra-try_bind_storage: true
/plan-25-soft-reboot:
summary: Execute soft reboot test
discover:
how: fmf
test:
- /tmt/tests/tests/test-25-soft-reboot
/plan-26-download-only-upgrade:
summary: Execute download-only upgrade tests
discover:
how: fmf
test:
- /tmt/tests/tests/test-26-download-only-upgrade
/plan-27-custom-selinux-policy:
summary: Execute custom selinux policy test
discover:
how: fmf
test:
- /tmt/tests/tests/test-27-custom-selinux-policy
adjust:
- when: running_env != image_mode
enabled: false
because: these tests require features only available in image mode
extra-fixme_skip_if_composefs: true
/plan-28-factory-reset:
summary: Execute factory reset tests
discover:
how: fmf
test:
- /tmt/tests/tests/test-28-factory-reset
extra-fixme_skip_if_composefs: true
/plan-29-soft-reboot-selinux-policy:
summary: Test soft reboot with SELinux policy changes
discover:
how: fmf
test:
- /tmt/tests/tests/test-29-soft-reboot-selinux-policy
/plan-30-install-unified-flag:
summary: Test bootc install with experimental unified storage flag
discover:
how: fmf
test:
- /tmt/tests/tests/test-30-install-unified-flag
extra-fixme_skip_if_composefs: true
/plan-31-switch-mutate-in-place:
summary: switch --mutate-in-place
discover:
how: fmf
test:
- /tmt/tests/tests/test-31-switch-mutate-in-place
extra-fixme_skip_if_composefs: true
/plan-31-switch-to-unified:
summary: Onboard to unified storage, build derived image, and switch to it
discover:
how: fmf
test:
- /tmt/tests/tests/test-31-switch-to-unified
extra-fixme_skip_if_composefs: true
/plan-32-install-to-filesystem-var-mount:
summary: Test bootc install to-filesystem with separate /var mount
discover:
how: fmf
test:
- /tmt/tests/tests/test-32-install-to-filesystem-var-mount
/plan-33-bib-build:
summary: Test building a qcow2 disk image with bootc-image-builder
discover:
how: fmf
test:
- /tmt/tests/tests/test-33-bib-build
extra-fixme_skip_if_composefs: true
/plan-34-user-agent:
summary: Verify bootc sends correct User-Agent header to registries
discover:
how: fmf
test:
- /tmt/tests/tests/test-34-user-agent
/plan-35-composefs-gc:
summary: Test composefs garbage collection with same and different kernel+initrd
discover:
how: fmf
test:
- /tmt/tests/tests/test-35-composefs-gc
/plan-35-upgrade-preflight-disk-check:
summary: Verify pre-flight disk space check rejects images with inflated layer sizes
discover:
how: fmf
test:
- /tmt/tests/tests/test-35-upgrade-preflight-disk-check
/plan-36-rollback:
summary: Test bootc rollback functionality
discover:
how: fmf
test:
- /tmt/tests/tests/test-36-rollback
/plan-37-install-no-boot-dir:
summary: Test bootc install to-filesystem without /boot directory
discover:
how: fmf
test:
- /tmt/tests/tests/test-37-install-no-boot-dir
/plan-37-upgrade-check-status:
summary: Verify upgrade --check populates cached update in status
discover:
how: fmf
test:
- /tmt/tests/tests/test-37-upgrade-check-status
extra-fixme_skip_if_composefs: true
/plan-38-install-bootloader-none:
summary: Test bootc install with --bootloader=none
discover:
how: fmf
test:
- /tmt/tests/tests/test-38-install-bootloader-none
/plan-39-upgrade-tag:
summary: Test bootc upgrade --tag functionality with containers-storage
discover:
how: fmf
test:
- /tmt/tests/tests/test-39-upgrade-tag
/plan-40-install-karg-delete:
summary: Test bootc install --karg-delete
discover:
how: fmf
test:
- /tmt/tests/tests/test-40-install-karg-delete
extra-fixme_skip_if_composefs: true
# END GENERATED PLANS