github.com/dougneal/terraform@v0.6.15-0.20170330092735-b6a3840768a4/builtin/providers/aws/import_aws_customer_gateway_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 TestAccAWSCustomerGateway_importBasic(t *testing.T) {
    11  	resourceName := "aws_customer_gateway.foo"
    12  	randInt := acctest.RandInt()
    13  	resource.Test(t, resource.TestCase{
    14  		PreCheck:     func() { testAccPreCheck(t) },
    15  		Providers:    testAccProviders,
    16  		CheckDestroy: testAccCheckCustomerGatewayDestroy,
    17  		Steps: []resource.TestStep{
    18  			resource.TestStep{
    19  				Config: testAccCustomerGatewayConfig(randInt),
    20  			},
    21  
    22  			resource.TestStep{
    23  				ResourceName:      resourceName,
    24  				ImportState:       true,
    25  				ImportStateVerify: true,
    26  			},
    27  		},
    28  	})
    29  }