github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/openstack/import_openstack_lb_member_v1_test.go (about) 1 package openstack 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/resource" 7 ) 8 9 func TestAccOpenStackLBMemberV1_importBasic(t *testing.T) { 10 resourceName := "openstack_lb_member_v1.member_1" 11 12 resource.Test(t, resource.TestCase{ 13 PreCheck: func() { testAccPreCheck(t) }, 14 Providers: testAccProviders, 15 CheckDestroy: testAccCheckLBV1MemberDestroy, 16 Steps: []resource.TestStep{ 17 resource.TestStep{ 18 Config: testAccLBV1Member_basic, 19 }, 20 21 resource.TestStep{ 22 ResourceName: resourceName, 23 ImportState: true, 24 ImportStateVerify: true, 25 ImportStateVerifyIgnore: []string{"region"}, 26 }, 27 }, 28 }) 29 }