terraform/builtin/providers/openstack/import_openstack_compute_se...

29 lines
627 B
Go

package openstack
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccComputeV2ServerGroup_importBasic(t *testing.T) {
resourceName := "openstack_compute_servergroup_v2.sg_1"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckComputeV2ServerGroupDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccComputeV2ServerGroup_basic,
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}