diff --git a/builtin/providers/aws/import_aws_sns_topic_test.go b/builtin/providers/aws/import_aws_sns_topic_test.go index ae8bab8cf1..593610330d 100644 --- a/builtin/providers/aws/import_aws_sns_topic_test.go +++ b/builtin/providers/aws/import_aws_sns_topic_test.go @@ -3,11 +3,13 @@ package aws import ( "testing" + "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" ) func TestAccAWSSNSTopic_importBasic(t *testing.T) { resourceName := "aws_sns_topic.test_topic" + rName := acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -15,7 +17,7 @@ func TestAccAWSSNSTopic_importBasic(t *testing.T) { CheckDestroy: testAccCheckAWSSNSTopicDestroy, Steps: []resource.TestStep{ resource.TestStep{ - Config: testAccAWSSNSTopicConfig, + Config: testAccAWSSNSTopicConfig(rName), }, resource.TestStep{ diff --git a/builtin/providers/aws/resource_aws_s3_bucket_notification_test.go b/builtin/providers/aws/resource_aws_s3_bucket_notification_test.go index 7cde3f0f5b..8486046267 100644 --- a/builtin/providers/aws/resource_aws_s3_bucket_notification_test.go +++ b/builtin/providers/aws/resource_aws_s3_bucket_notification_test.go @@ -344,7 +344,7 @@ func testAccCheckAWSS3BucketLambdaFunctionConfiguration(n, i, t string, events [ func testAccAWSS3BucketConfigWithTopicNotification(randInt int) string { return fmt.Sprintf(` resource "aws_sns_topic" "topic" { - name = "terraform-test-topic" + name = "terraform-test-topic-%d" policy = <