From 5b2800224e6635d65e91c1dd160dcd81eaf9e891 Mon Sep 17 00:00:00 2001 From: Tony Griffin Date: Tue, 21 Jan 2025 15:30:19 +0000 Subject: [PATCH] Fix test indentation --- codebase-pipelines/tests/unit.tftest.hcl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codebase-pipelines/tests/unit.tftest.hcl b/codebase-pipelines/tests/unit.tftest.hcl index 6716fcce..46541d8b 100644 --- a/codebase-pipelines/tests/unit.tftest.hcl +++ b/codebase-pipelines/tests/unit.tftest.hcl @@ -777,11 +777,13 @@ 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_*" + 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