Skip to content

Commit

Permalink
Update codebase-pipelines/tests/unit.tftest.hcl
Browse files Browse the repository at this point in the history
Co-authored-by: John Stainsby <[email protected]>
  • Loading branch information
tony-griffin and JohnStainsby authored Jan 21, 2025
1 parent 2f40fb0 commit 6323922
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codebase-pipelines/tests/unit.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ run "test_iam_documents" {
error_message = "Unexpected actions"
}
}
assert {
condition = one(data.aws_iam_policy_document.deploy_ssm_access.statement[0].resources) == "arn:aws:ssm:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:parameter/codebuild/slack_*"
error_message = "Unexpected resources"
}

run "test_codebuild_deploy" {
command = plan
Expand Down

0 comments on commit 6323922

Please sign in to comment.