From 8bad05af9ffa872d91fdbbd3867198e173296e29 Mon Sep 17 00:00:00 2001 From: Ryn Daniels Date: Mon, 2 Sep 2019 15:25:40 +0200 Subject: [PATCH] Acceptance test import refactor for SQS queue policy --- aws/resource_aws_sqs_queue_policy_test.go | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/aws/resource_aws_sqs_queue_policy_test.go b/aws/resource_aws_sqs_queue_policy_test.go index 7dfb9129627..f589d0c121c 100644 --- a/aws/resource_aws_sqs_queue_policy_test.go +++ b/aws/resource_aws_sqs_queue_policy_test.go @@ -11,8 +11,9 @@ import ( func TestAccAWSSQSQueuePolicy_basic(t *testing.T) { var queueAttributes map[string]*string - + resourceName := "aws_sqs_queue_policy.test" queueName := fmt.Sprintf("sqs-queue-%s", acctest.RandString(5)) + resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -27,23 +28,6 @@ func TestAccAWSSQSQueuePolicy_basic(t *testing.T) { regexp.MustCompile("^{\"Version\":\"2012-10-17\".+")), ), }, - }, - }) -} - -func TestAccAWSSQSQueuePolicy_import(t *testing.T) { - queueName := fmt.Sprintf("sqs-queue-%s", acctest.RandString(5)) - resourceName := "aws_sqs_queue_policy.test" - - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: testAccProviders, - CheckDestroy: testAccCheckAWSSQSQueueDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAWSSQSPolicyConfig_basic(queueName), - }, - { ResourceName: resourceName, ImportState: true,