Skip to content

Commit

Permalink
Fix semgrep 'ci.caps2-in-const-name'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Sep 6, 2022
1 parent 287bc8a commit ef511c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/service/iam/policy_document_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestAccIAMPolicyDocumentDataSource_conditionWithBoolValue(t *testing.T) {
Config: testAccPolicyDocumentConfig_conditionWithBoolValue,
Check: resource.ComposeTestCheckFunc(
acctest.CheckResourceAttrEquivalentJSON("data.aws_iam_policy_document.test", "json",
testAccPolicyDocumentConfig_conditionWithBoolValue_expectedJson,
testAccPolicyDocumentConditionWithBoolValueExpectedJSON(),
),
),
},
Expand Down Expand Up @@ -1275,8 +1275,8 @@ EOF
}
`

const testAccPolicyDocumentConfig_conditionWithBoolValue_expectedJson = `
{
func testAccPolicyDocumentConditionWithBoolValueExpectedJSON() string {
return fmt.Sprintf(`{
"Version": "2012-10-17",
"Statement": [
{
Expand All @@ -1286,7 +1286,7 @@ const testAccPolicyDocumentConfig_conditionWithBoolValue_expectedJson = `
"ec2:CreateTags",
"ec2:DeleteTags"
],
"Resource": "arn:aws:ec2:*:*:vpc/*",
"Resource": "arn:%[1]s:ec2:*:*:vpc/*",
"Condition": {
"Null": {
"aws:ResourceTag/SpecialTag": "false"
Expand All @@ -1296,14 +1296,14 @@ const testAccPolicyDocumentConfig_conditionWithBoolValue_expectedJson = `
"123456"
],
"aws:PrincipalArn": [
"arn:aws:iam::*:role/AWSAFTExecution"
"arn:%[1]s:iam::*:role/AWSAFTExecution"
]
}
}
}
]
}`, acctest.Partition())
}
`

func testAccPolicyDocumentExpectedJSONStatementPrincipalIdentifiersStringAndSlice() string {
return fmt.Sprintf(`{
Expand Down

0 comments on commit ef511c5

Please sign in to comment.