github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/aws/import_aws_redshift_subnet_group_test.go (about) 1 package aws 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/acctest" 7 "github.com/hashicorp/terraform/helper/resource" 8 ) 9 10 func TestAccAWSRedshiftSubnetGroup_importBasic(t *testing.T) { 11 resourceName := "aws_redshift_subnet_group.foo" 12 rInt := acctest.RandInt() 13 14 resource.Test(t, resource.TestCase{ 15 PreCheck: func() { testAccPreCheck(t) }, 16 Providers: testAccProviders, 17 CheckDestroy: testAccCheckRedshiftSubnetGroupDestroy, 18 Steps: []resource.TestStep{ 19 resource.TestStep{ 20 Config: testAccRedshiftSubnetGroupConfig(rInt), 21 }, 22 23 resource.TestStep{ 24 ResourceName: resourceName, 25 ImportState: true, 26 ImportStateVerify: true, 27 ImportStateVerifyIgnore: []string{ 28 "description"}, 29 }, 30 }, 31 }) 32 }