From 2c41bcde68d67435b29c480e097ad49d4fe461ba Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 9 Nov 2023 12:12:17 +0100 Subject: [PATCH] stages(kickstart): ensure no extra options under clearpart Fix an oversight from https://github.com/osbuild/osbuild/pull/1426 --- stages/test/test_kickstart.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stages/test/test_kickstart.py b/stages/test/test_kickstart.py index 45d8956e9..60c31fda6 100644 --- a/stages/test/test_kickstart.py +++ b/stages/test/test_kickstart.py @@ -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 "),