From 60a856ae338d193c881f8bb642de3a50c6ef2f31 Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Wed, 4 Sep 2024 08:09:26 -0600 Subject: [PATCH] test: assert that schema is valid by default (#5657) --- tests/integration_tests/util.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration_tests/util.py b/tests/integration_tests/util.py index 4830cf958de..8da16cb7bec 100644 --- a/tests/integration_tests/util.py +++ b/tests/integration_tests/util.py @@ -266,6 +266,11 @@ def _verify_clean_boot( f"{traceback_count - expected_traceback_count} unexpected traceback(s)" " found in /var/log/cloud-init.log" ) + schema = instance.execute("cloud-init schema --system --annotate") + assert schema.ok, ( + f"Schema validation failed\nstdout:{schema.stdout}" + f"\nstderr:\n{schema.stderr}" + ) def verify_clean_log(log: str, ignore_deprecations: bool = True):