github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/aws/import_aws_route53_delegation_set_test.go (about)

     1  package aws
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/terraform/helper/resource"
     7  )
     8  
     9  func TestAccAWSRoute53DelegationSet_importBasic(t *testing.T) {
    10  	resourceName := "aws_route53_delegation_set.test"
    11  
    12  	resource.Test(t, resource.TestCase{
    13  		PreCheck:  func() { testAccPreCheck(t) },
    14  		Providers: testAccProviders,
    15  		Steps: []resource.TestStep{
    16  			resource.TestStep{
    17  				Config: testAccRoute53DelegationSetConfig,
    18  			},
    19  
    20  			resource.TestStep{
    21  				ResourceName:            resourceName,
    22  				ImportState:             true,
    23  				ImportStateVerify:       true,
    24  				ImportStateVerifyIgnore: []string{"reference_name"},
    25  			},
    26  		},
    27  	})
    28  }