fix(ci): isolate runtime image controller tests
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m38s
CD Pipeline / build-and-deploy (push) Successful in 13m44s
CD Pipeline / post-deploy-checks (push) Successful in 2m7s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m38s
CD Pipeline / build-and-deploy (push) Successful in 13m44s
CD Pipeline / post-deploy-checks (push) Successful in 2m7s
This commit is contained in:
@@ -1149,6 +1149,21 @@ def test_b5_full_profile_uses_outer_docker_for_db_without_inner_socket_mount() -
|
||||
)
|
||||
|
||||
|
||||
def test_runtime_image_mirror_sources_stay_on_controlled_runtime_profile() -> None:
|
||||
text = _workflow_text()
|
||||
expected_sources = [
|
||||
"config/security/runtime-image-mirror-policy.json)",
|
||||
"config/security/runtime-image-mirror-staging-policy.json)",
|
||||
"scripts/security/runtime_image_mirror_controller.py)",
|
||||
"scripts/security/tests/test_runtime_image_mirror_controller.py)",
|
||||
]
|
||||
for source in expected_sources:
|
||||
assert source in text
|
||||
|
||||
assert "../../scripts/security/runtime_image_mirror_controller.py" in text
|
||||
assert "../../scripts/security/tests/test_runtime_image_mirror_controller.py" in text
|
||||
|
||||
|
||||
def test_controlled_runtime_pytest_paths_exist() -> None:
|
||||
text = _workflow_text()
|
||||
block = text.split("PYTHONFAULTHANDLER=1 python3.11 -m pytest", 1)[1]
|
||||
|
||||
Reference in New Issue
Block a user