23 lines
504 B
Python
23 lines
504 B
Python
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,
|
|
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()
|
|
)
|