Skip to content

Commit

Permalink
Merge pull request #9958 from terraform-providers/rfd-at002-sqs
Browse files Browse the repository at this point in the history
Acceptance test import refactor for SQS queue policy
  • Loading branch information
ryndaniels authored Sep 5, 2019
2 parents 6dff067 + 8bad05a commit 8b3ae87
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions aws/resource_aws_sqs_queue_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 8b3ae87

Please sign in to comment.