stages: extend test_bootc_install_to_fs test for new options

The org.osbuild.bootc.install_to_fs stage got a few new
options in PR#2152. Add them to our tests too.
This commit is contained in:
Michael Vogt 2025-08-18 15:53:08 +02:00 committed by Achilleas Koutsou
parent 564d5dcf6f
commit 16f40b01d3

View file

@ -51,14 +51,29 @@ FAKE_INPUTS = {
({"kernel-args": []}, []),
({"kernel-args": ["console=ttyS0"]}, ["--karg", "console=ttyS0"]),
({"kernel-args": ["arg1", "arg2"]}, ["--karg", "arg1", "--karg", "arg2"]),
# stateroot
({"stateroot": ""}, []),
({"stateroot": "default1"}, ["--stateroot", "default1"]),
# root-mount-spec
({"root-mount-spec": ""}, ["--root-mount-spec="]),
({"root-mount-spec": "subvol@root"}, ["--root-mount-spec", "subvol@root"]),
# boot-mount-spec
({"boot-mount-spec": ""}, ["--boot-mount-spec="]),
({"boot-mount-spec": "/dev/sda1"}, ["--boot-mount-spec", "/dev/sda1"]),
# all
({"root-ssh-authorized-keys": ["key1", "key2"],
"kernel-args": ["arg1", "arg2"],
"target-imgref": "quay.io/img/ref",
"stateroot": "/some/stateroot",
"root-mount-spec": "root-mount-spec",
"boot-mount-spec": "boot-mount-spec",
},
["--root-ssh-authorized-keys", "/tmp/fake-named-tmpfile-name",
"--karg", "arg1", "--karg", "arg2",
"--target-imgref", "quay.io/img/ref",
"--stateroot", "/some/stateroot",
"--root-mount-spec", "root-mount-spec",
"--boot-mount-spec", "boot-mount-spec",
],
),
])