From 60dc44be13c28a82ea9f075591c0d321d0e9c3d3 Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Tue, 3 Sep 2024 14:42:40 -0600 Subject: [PATCH] test: assert that schema is valid by default --- 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):