github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/builtin/providers/aws/import_aws_sfn_activity_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 TestAccAWSSfnActivity_importBasic(t *testing.T) {
    11  	resourceName := "aws_sfn_activity.foo"
    12  	rName := acctest.RandString(10)
    13  
    14  	resource.Test(t, resource.TestCase{
    15  		PreCheck:     func() { testAccPreCheck(t) },
    16  		Providers:    testAccProviders,
    17  		CheckDestroy: testAccCheckAWSSfnActivityDestroy,
    18  		Steps: []resource.TestStep{
    19  			{
    20  				Config: testAccAWSSfnActivityBasicConfig(rName),
    21  			},
    22  
    23  			{
    24  				ResourceName:      resourceName,
    25  				ImportState:       true,
    26  				ImportStateVerify: true,
    27  			},
    28  		},
    29  	})
    30  }