test: add bootupd.gen-metadata stage test
Since the stage depends on quite a specific tree state (ostree prepped tree with boot files), we can't really unit test it any simpler than generating a tree with and without running the stage and diffing the tree.
This commit is contained in:
parent
d75f43ff7b
commit
6e12f08a29
5 changed files with 2391 additions and 0 deletions
1139
test/data/stages/bootupd.gen-metadata/a.json
Normal file
1139
test/data/stages/bootupd.gen-metadata/a.json
Normal file
File diff suppressed because it is too large
Load diff
37
test/data/stages/bootupd.gen-metadata/a.mpp.yaml
Normal file
37
test/data/stages/bootupd.gen-metadata/a.mpp.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
version: '2'
|
||||
pipelines:
|
||||
- mpp-import-pipelines:
|
||||
path: ../manifests/fedora-vars.ipp.yaml
|
||||
- mpp-import-pipeline:
|
||||
path: ../manifests/fedora-build-v2.ipp.yaml
|
||||
id: build
|
||||
runner:
|
||||
mpp-format-string: org.osbuild.fedora{release}
|
||||
- name: tree
|
||||
build: name:build
|
||||
stages:
|
||||
- type: org.osbuild.rpm
|
||||
inputs:
|
||||
packages:
|
||||
type: org.osbuild.files
|
||||
origin: org.osbuild.source
|
||||
mpp-depsolve:
|
||||
architecture: $arch
|
||||
module-platform-id: $module_platform_id
|
||||
repos:
|
||||
mpp-eval: repos
|
||||
packages:
|
||||
- bootupd
|
||||
- kernel
|
||||
- rpm-ostree
|
||||
- selinux-policy-targeted
|
||||
- shim-x64
|
||||
options:
|
||||
dbpath: /usr/share/rpm
|
||||
ostree_booted: true
|
||||
gpgkeys:
|
||||
mpp-eval: gpgkeys
|
||||
exclude:
|
||||
docs: true
|
||||
- type: org.osbuild.ostree.preptree
|
||||
1142
test/data/stages/bootupd.gen-metadata/b.json
Normal file
1142
test/data/stages/bootupd.gen-metadata/b.json
Normal file
File diff suppressed because it is too large
Load diff
38
test/data/stages/bootupd.gen-metadata/b.mpp.yaml
Normal file
38
test/data/stages/bootupd.gen-metadata/b.mpp.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
version: '2'
|
||||
pipelines:
|
||||
- mpp-import-pipelines:
|
||||
path: ../manifests/fedora-vars.ipp.yaml
|
||||
- mpp-import-pipeline:
|
||||
path: ../manifests/fedora-build-v2.ipp.yaml
|
||||
id: build
|
||||
runner:
|
||||
mpp-format-string: org.osbuild.fedora{release}
|
||||
- name: tree
|
||||
build: name:build
|
||||
stages:
|
||||
- type: org.osbuild.rpm
|
||||
inputs:
|
||||
packages:
|
||||
type: org.osbuild.files
|
||||
origin: org.osbuild.source
|
||||
mpp-depsolve:
|
||||
architecture: $arch
|
||||
module-platform-id: $module_platform_id
|
||||
repos:
|
||||
mpp-eval: repos
|
||||
packages:
|
||||
- bootupd
|
||||
- kernel
|
||||
- rpm-ostree
|
||||
- selinux-policy-targeted
|
||||
- shim-x64
|
||||
options:
|
||||
dbpath: /usr/share/rpm
|
||||
ostree_booted: true
|
||||
gpgkeys:
|
||||
mpp-eval: gpgkeys
|
||||
exclude:
|
||||
docs: true
|
||||
- type: org.osbuild.ostree.preptree
|
||||
- type: org.osbuild.bootupd.gen-metadata
|
||||
35
test/data/stages/bootupd.gen-metadata/diff.json
Normal file
35
test/data/stages/bootupd.gen-metadata/diff.json
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"added_files": [
|
||||
"/usr/lib/bootupd",
|
||||
"/usr/lib/bootupd/updates",
|
||||
"/usr/lib/bootupd/updates/BIOS.json",
|
||||
"/usr/lib/bootupd/updates/EFI",
|
||||
"/usr/lib/bootupd/updates/EFI.json",
|
||||
"/usr/lib/bootupd/updates/EFI/BOOT",
|
||||
"/usr/lib/bootupd/updates/EFI/BOOT/BOOTX64.EFI",
|
||||
"/usr/lib/bootupd/updates/EFI/BOOT/fbx64.efi",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora/BOOTX64.CSV",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora/grubx64.efi",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora/mmx64.efi",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora/shim.efi",
|
||||
"/usr/lib/bootupd/updates/EFI/fedora/shimx64.efi"
|
||||
],
|
||||
"deleted_files": [
|
||||
"/usr/lib/ostree-boot/efi/EFI",
|
||||
"/usr/lib/ostree-boot/efi/EFI/BOOT",
|
||||
"/usr/lib/ostree-boot/efi/EFI/BOOT/BOOTX64.EFI",
|
||||
"/usr/lib/ostree-boot/efi/EFI/BOOT/fbx64.efi",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora/BOOTX64.CSV",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora/grubx64.efi",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora/mmx64.efi",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora/shim.efi",
|
||||
"/usr/lib/ostree-boot/efi/EFI/fedora/shimx64.efi",
|
||||
"/usr/lib/ostree-boot/grub2",
|
||||
"/usr/lib/ostree-boot/grub2/fonts",
|
||||
"/usr/lib/ostree-boot/grub2/fonts/unicode.pf2",
|
||||
"/usr/lib/ostree-boot/grub2/grubenv"
|
||||
],
|
||||
"differences": {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue