This commit is contained in:
@@ -2,9 +2,21 @@ import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).parents[1]
|
||||
|
||||
|
||||
def test_artifact_validator():
|
||||
result = subprocess.run(["python3", "scripts/validate_artifacts.py"], cwd=ROOT, capture_output=True, text=True)
|
||||
result = subprocess.run(
|
||||
["python3", "scripts/validate_artifacts.py"],
|
||||
cwd=ROOT,
|
||||
capture_output=True,
|
||||
check=False,
|
||||
text=True,
|
||||
)
|
||||
assert result.returncode == 0, result.stdout + result.stderr
|
||||
|
||||
|
||||
def test_no_secret_values():
|
||||
assert "replace-with-project-id" in (ROOT / "terraform/terraform.tfvars.example").read_text()
|
||||
assert (
|
||||
"replace-with-project-id"
|
||||
in (ROOT / "terraform/terraform.tfvars.example").read_text()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user