github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/builtin/providers/azurerm/import_arm_loadbalancer_test.go (about) 1 package azurerm 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/acctest" 7 "github.com/hashicorp/terraform/helper/resource" 8 ) 9 10 func TestAccAzureRMLoadBalancer_importBasic(t *testing.T) { 11 resourceName := "azurerm_lb.test" 12 13 resource.Test(t, resource.TestCase{ 14 PreCheck: func() { testAccPreCheck(t) }, 15 Providers: testAccProviders, 16 CheckDestroy: testCheckAzureRMLoadBalancerDestroy, 17 Steps: []resource.TestStep{ 18 resource.TestStep{ 19 Config: testAccAzureRMLoadBalancer_basic(acctest.RandInt()), 20 }, 21 22 resource.TestStep{ 23 ResourceName: resourceName, 24 ImportState: true, 25 ImportStateVerify: true, 26 }, 27 }, 28 }) 29 }