From d20f41bd75db9a2fc7e36e6b4fbfb3dd00fd358d Mon Sep 17 00:00:00 2001 From: Ryn Daniels Date: Mon, 2 Sep 2019 15:40:54 +0200 Subject: [PATCH] Acceptance test import refactor for simpledb domain --- aws/resource_aws_simpledb_domain_test.go | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/aws/resource_aws_simpledb_domain_test.go b/aws/resource_aws_simpledb_domain_test.go index 5a35eb116a8..039cff64354 100644 --- a/aws/resource_aws_simpledb_domain_test.go +++ b/aws/resource_aws_simpledb_domain_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform/terraform" ) -func TestAccAWSSimpleDBDomain_importBasic(t *testing.T) { +func TestAccAWSSimpleDBDomain_basic(t *testing.T) { resourceName := "aws_simpledb_domain.test_domain" resource.ParallelTest(t, resource.TestCase{ @@ -21,8 +21,10 @@ func TestAccAWSSimpleDBDomain_importBasic(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccAWSSimpleDBDomainConfig, + Check: resource.ComposeTestCheckFunc( + testAccCheckAWSSimpleDBDomainExists(resourceName), + ), }, - { ResourceName: resourceName, ImportState: true, @@ -32,22 +34,6 @@ func TestAccAWSSimpleDBDomain_importBasic(t *testing.T) { }) } -func TestAccAWSSimpleDBDomain_basic(t *testing.T) { - resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: testAccProviders, - CheckDestroy: testAccCheckAWSSimpleDBDomainDestroy, - Steps: []resource.TestStep{ - { - Config: testAccAWSSimpleDBDomainConfig, - Check: resource.ComposeTestCheckFunc( - testAccCheckAWSSimpleDBDomainExists("aws_simpledb_domain.test_domain"), - ), - }, - }, - }) -} - func testAccCheckAWSSimpleDBDomainDestroy(s *terraform.State) error { conn := testAccProvider.Meta().(*AWSClient).simpledbconn