build: add hardened Compose contract

This commit is contained in:
BirSite Automation
2026-07-19 17:31:45 +00:00
parent f94407e587
commit aadf17dc13
2 changed files with 31 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class ComposeContract(unittest.TestCase):
if not COMPOSE_FILE.is_file():
raise AssertionError(f"RED: required Compose file is missing: {COMPOSE_FILE}")
rendered = run(
[COMPOSE_BIN, "compose", "-f", str(COMPOSE_FILE), "config", "--format", "json"]
[COMPOSE_BIN, "-f", str(COMPOSE_FILE), "config", "--format", "json"]
)
if rendered.returncode != 0:
raise AssertionError(f"Compose config rendering failed:\n{rendered.stderr}")