Files
mostovik-backend/tests/test_deployment_boundaries.py
Aleksandr Meshchryakov fe1e5f79bd
All checks were successful
CI/CD Pipeline / Quality Gate (pull_request) Successful in 49s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (pull_request) Successful in 1s
CI/CD Pipeline / Quality Gate (push) Successful in 49s
CI/CD Pipeline / Build and Push Images (push) Successful in 0s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 1s
fix: exclude infrastructure probes from API throttling
2026-09-16 09:39:56 +02:00

27 lines
910 B
Python

from pathlib import Path
import yaml
WORKFLOWS = Path(__file__).resolve().parents[1] / ".gitea" / "workflows"
def test_workflows_do_not_deploy_to_center():
assert not (WORKFLOWS / "deploy-customer-main.yml").exists()
for path in WORKFLOWS.glob("*.y*ml"):
workflow = yaml.safe_load(path.read_text())
assert "deploy_customer_main" not in workflow["jobs"]
content = path.read_text()
for forbidden in ("CUSTOMER_DEPLOY_", "10.0.10.174", "/ecos/release-service"):
assert forbidden not in content, (path.name, forbidden)
def test_ci_does_not_prune_shared_runner_resources():
for path in WORKFLOWS.glob("*.y*ml"):
content = path.read_text()
for command in (
"docker system prune",
"docker builder prune",
"docker buildx prune",
):
assert command not in content, (path.name, command)