github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/opc/import_ip_address_prefix_set_test.go (about) 1 package opc 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/acctest" 7 "github.com/hashicorp/terraform/helper/resource" 8 ) 9 10 func TestAccOPCIPAddressPrefixSet_importBasic(t *testing.T) { 11 resourceName := "opc_compute_ip_address_prefix_set.test" 12 13 ri := acctest.RandInt() 14 config := testAccIPAddressPrefixSetBasic(ri) 15 16 resource.Test(t, resource.TestCase{ 17 PreCheck: func() { 18 testAccPreCheck(t) 19 }, 20 Providers: testAccProviders, 21 CheckDestroy: testAccCheckIPAddressPrefixSetDestroy, 22 Steps: []resource.TestStep{ 23 { 24 Config: config, 25 }, 26 { 27 ResourceName: resourceName, 28 ImportState: true, 29 ImportStateVerify: true, 30 }, 31 }, 32 }) 33 }