34 lines
639 B
Go
34 lines
639 B
Go
package opc
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/acctest"
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccOPCRoute_importBasic(t *testing.T) {
|
|
resourceName := "opc_compute_route.test"
|
|
|
|
ri := acctest.RandInt()
|
|
config := testAccOPCRouteConfig_Basic(ri)
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() {
|
|
testAccPreCheck(t)
|
|
},
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testAccOPCCheckRouteDestroy,
|
|
Steps: []resource.TestStep{
|
|
{
|
|
Config: config,
|
|
},
|
|
{
|
|
ResourceName: resourceName,
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|