From 22f8863fdcff8b09f6fea7078fd85f05b5ab686a Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Wed, 7 Oct 2020 14:57:25 -0700 Subject: [PATCH] Enables Organizations policy import AWS-managed acceptance test --- aws/resource_aws_organizations_policy_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aws/resource_aws_organizations_policy_test.go b/aws/resource_aws_organizations_policy_test.go index 8cba21a4331..cf024d20746 100644 --- a/aws/resource_aws_organizations_policy_test.go +++ b/aws/resource_aws_organizations_policy_test.go @@ -378,7 +378,6 @@ func testAccAwsOrganizationsPolicy_ImportAwsManagedPolicy(t *testing.T) { resourceID := "p-FullAWSAccess" - t.Skip("This test requires SDK 2.0.4 or higher for `ExpectError` with `ImportState`") resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t); testAccOrganizationsAccountPreCheck(t) }, Providers: testAccProviders, @@ -392,7 +391,7 @@ func testAccAwsOrganizationsPolicy_ImportAwsManagedPolicy(t *testing.T) { ResourceName: resourceName, ImportStateId: resourceID, ImportState: true, - ExpectError: regexp.MustCompile(fmt.Sprintf("AWS-managed Organizations policy (%s) cannot be imported.", resourceID)), + ExpectError: regexp.MustCompile(regexp.QuoteMeta(fmt.Sprintf("AWS-managed Organizations policy (%s) cannot be imported.", resourceID))), }, }, })