stages(kickstart): ensure no extra options under clearpart

Fix an oversight from https://github.com/osbuild/osbuild/pull/1426
This commit is contained in:
Michael Vogt 2023-11-09 12:12:17 +01:00 committed by Simon de Vlieger
parent 0529ae79d1
commit 2c41bcde68

View file

@ -178,6 +178,7 @@ def test_kickstart_valid(tmp_path, test_input, expected): # pylint: disable=unu
({"clearpart": {"list": ["\n%pre not allowed"]}}, "not allowed' does not match"),
({"clearpart": {"list": ["no,comma"]}}, "no,comma' does not match"),
({"clearpart": {"disklabel": "\n%pre not allowed"}}, "not allowed' does not match"),
({"clearpart": {"random": "option"}}, "is not valid "),
# schema ensures reboot has at least one option set
({"reboot": {}}, "{} is not valid under any of the given schemas"),
({"reboot": "random-string"}, "'random-string' is not valid "),