diff --git a/tests/test_terraform_github_deploy.py b/tests/test_terraform_github_deploy.py index 27265b8..a1366a2 100644 --- a/tests/test_terraform_github_deploy.py +++ b/tests/test_terraform_github_deploy.py @@ -11,7 +11,8 @@ def test_github_deploy_trust_uses_org_reusable_and_caller(): assert "repo:Sea-Haven-Industries/meal-order-manager:environment:dev" in text assert "repo:Sea-Haven-Industries/meal-order-manager:environment:prod" in text assert ( - "Sea-Haven-Industries/.github/.github/workflows/cd-hcp-fargate.yaml@*" in text + "Sea-Haven-Industries/.github/.github/workflows/cd-hcp-fargate.yaml@*" + in text ) assert "token.actions.githubusercontent.com:workflow_ref" in text assert ( @@ -23,3 +24,13 @@ def test_github_deploy_trust_uses_org_reusable_and_caller(): in text ) assert "cd-hcp-spa.yaml" not in text + assert "token.actions.githubusercontent.com:workflow_ref" in text + assert ( + "Sea-Haven-Industries/meal-order-manager/.github/workflows/deploy-api.yaml@refs/heads/main" + in text + ) + assert ( + "Sea-Haven-Industries/meal-order-manager/.github/workflows/deploy-api.yaml@refs/tags/v*" + in text + ) + assert "cd-hcp-spa.yaml" not in text