You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/builtin/providers/google/import_compute_autoscaler_t...

29 lines
589 B

package google
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccAutoscaler_importBasic(t *testing.T) {
resourceName := "google_compute_autoscaler.foobar"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckAutoscalerDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccAutoscaler_basic,
},
resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}