Skip to content

Commit

Permalink
test: assert that schema is valid by default (#5657)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Sep 4, 2024
1 parent 5a74d19 commit 60a856a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration_tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 60a856a

Please sign in to comment.