30 lines
710 B
Go
30 lines
710 B
Go
![]() |
package openstack
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/hashicorp/terraform/helper/resource"
|
||
|
)
|
||
|
|
||
|
func TestAccOpenStackNetworkingFloatingIPV2_importBasic(t *testing.T) {
|
||
|
resourceName := "openstack_networking_floatingip_v2.foo"
|
||
|
|
||
|
resource.Test(t, resource.TestCase{
|
||
|
PreCheck: func() { testAccPreCheck(t) },
|
||
|
Providers: testAccProviders,
|
||
|
CheckDestroy: testAccCheckNetworkingV2FloatingIPDestroy,
|
||
|
Steps: []resource.TestStep{
|
||
|
resource.TestStep{
|
||
|
Config: testAccNetworkingV2FloatingIP_basic,
|
||
|
},
|
||
|
|
||
|
resource.TestStep{
|
||
|
ResourceName: resourceName,
|
||
|
ImportState: true,
|
||
|
ImportStateVerify: true,
|
||
|
ImportStateVerifyIgnore: []string{"region"},
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
}
|