build: add hardened Compose contract
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user