Some checks are pending
CI / lint-and-test (push) Waiting to run
Retains immutable Artifact Registry image digests and makes GCP readiness workflows fail after uploading evidence when readiness checks fail.
14 lines
621 B
Python
14 lines
621 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_gcp_readiness_workflow_uses_uploadable_artifact_dir() -> None:
|
|
workflow = Path(".github/workflows/gcp-readiness.yml").read_text()
|
|
|
|
assert "service_account:" in workflow
|
|
assert "READINESS_SERVICE_ACCOUNT:" in workflow
|
|
assert "READINESS_ARTIFACT_DIR: gcp-readiness-artifacts" in workflow
|
|
assert 'mkdir -p "${READINESS_ARTIFACT_DIR}"' in workflow
|
|
assert "path: ${{ env.READINESS_ARTIFACT_DIR }}/" in workflow
|
|
assert "Enforce readiness result" in workflow
|
|
assert "GCP readiness checker failed" in workflow
|
|
assert "path: .gcp-readiness/" not in workflow
|