fix(ops): recognize repo-scoped CI containers in load guard [skip ci]
This commit is contained in:
@@ -93,6 +93,26 @@ def test_renders_ci_load_and_swap_without_authorizing_repair(tmp_path: Path) ->
|
||||
assert 'rule="stockplatform_headless_smoke"' in metrics
|
||||
|
||||
|
||||
def test_counts_modern_gitea_action_container_names(tmp_path: Path) -> None:
|
||||
exporter = load_exporter()
|
||||
docker_file = tmp_path / "docker.txt"
|
||||
docker_file.write_text(
|
||||
"\n".join(
|
||||
[
|
||||
"GITEA-ACTIONS-TASK-123",
|
||||
"awoooi-cd-5901-1-e2e-smoke",
|
||||
"awoooi-cd-5873-1-source-link-smoke",
|
||||
"awoooi-code-review-3323-1-ai-code-review",
|
||||
"gitea",
|
||||
"stockplatform-v2-api-1",
|
||||
]
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
assert exporter.active_gitea_action_containers(docker_file) == 4
|
||||
|
||||
|
||||
def test_remediation_defaults_to_dry_run(tmp_path: Path) -> None:
|
||||
ps_file = tmp_path / "ps.txt"
|
||||
ps_file.write_text(
|
||||
|
||||
Reference in New Issue
Block a user