terraform/builtin/providers/scaleway/import_scaleway_server_test.go

29 lines
596 B
Go
Raw Normal View History

package scaleway
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccScalewayServer_importBasic(t *testing.T) {
resourceName := "scaleway_server.base"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckScalewayServerDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccCheckScalewayServerConfig,
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}