Skip to content

Commit

Permalink
Merge pull request hashicorp#9959 from terraform-providers/rfd-at002-…
Browse files Browse the repository at this point in the history
…simpledb

Acceptance test import refactor for simpledb domain
  • Loading branch information
ryndaniels authored Sep 5, 2019
2 parents 8b3ae87 + d20f41b commit 22f3afb
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions aws/resource_aws_simpledb_domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -21,8 +21,10 @@ func TestAccAWSSimpleDBDomain_importBasic(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccAWSSimpleDBDomainConfig,
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSSimpleDBDomainExists(resourceName),
),
},

{
ResourceName: resourceName,
ImportState: true,
Expand All @@ -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

Expand Down

0 comments on commit 22f3afb

Please sign in to comment.