Skip to content

Commit

Permalink
Merge pull request #13270 from terraform-providers/t-clean-up-organiz…
Browse files Browse the repository at this point in the history
…ations-arn-tests

service/organizations: Update acceptance tests to use ARN testing check functions
  • Loading branch information
gdavison authored May 26, 2020
2 parents 8cb4cfc + eefe929 commit 3cfeb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_organizations_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func testAccAwsOrganizationsPolicy_basic(t *testing.T) {
Config: testAccAwsOrganizationsPolicyConfig_Required(rName, content1),
Check: resource.ComposeTestCheckFunc(
testAccCheckAwsOrganizationsPolicyExists(resourceName, &policy),
resource.TestMatchResourceAttr(resourceName, "arn", regexp.MustCompile(`^arn:[^:]+:organizations::[^:]+:policy/o-.+/service_control_policy/p-.+$`)),
testAccMatchResourceAttrGlobalARN(resourceName, "arn", "organizations", regexp.MustCompile("policy/o-.+/service_control_policy/p-.+$")),
resource.TestCheckResourceAttr(resourceName, "content", content1),
resource.TestCheckResourceAttr(resourceName, "description", ""),
resource.TestCheckResourceAttr(resourceName, "name", rName),
Expand Down

0 comments on commit 3cfeb07

Please sign in to comment.