Skip to content

Commit d43ee73

Browse files
achilleas-kmvo5
authored andcommitted
test: add manifest test for partition table type
1 parent 7786514 commit d43ee73

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/test_manifest.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,28 @@ def test_manifest_disk_customization_lvm(tmp_path, build_container):
631631
assert st["devices"]["rootlv"]["type"] == "org.osbuild.lvm2.lv"
632632

633633

634+
def test_manifest_disk_customization_dos(tmp_path, build_container):
635+
container_ref = "quay.io/centos-bootc/centos-bootc:stream9"
636+
testutil.pull_container(container_ref)
637+
638+
config = textwrap.dedent("""\
639+
[customizations.disk]
640+
type = "dos"
641+
""")
642+
config_path = tmp_path / "config.toml"
643+
config_path.write_text(config)
644+
645+
testutil.pull_container(container_ref)
646+
output = subprocess.check_output([
647+
*testutil.podman_run_common,
648+
"-v", f"{config_path}:/config.toml:ro",
649+
build_container,
650+
"manifest", f"{container_ref}",
651+
])
652+
st = find_sfdisk_stage_from(output)
653+
assert st["label"] == "dos"
654+
655+
634656
def test_manifest_disk_customization_btrfs(tmp_path, build_container):
635657
container_ref = "quay.io/centos-bootc/centos-bootc:stream9"
636658

0 commit comments

Comments
 (0)