github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/google/import_google_project_test.go (about) 1 package google 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/hashicorp/terraform/helper/resource" 8 ) 9 10 func TestAccGoogleProject_importBasic(t *testing.T) { 11 resourceName := "google_project.acceptance" 12 conf := fmt.Sprintf(testAccGoogleProject_basic, projectId) 13 14 resource.Test(t, resource.TestCase{ 15 PreCheck: func() { testAccPreCheck(t) }, 16 Providers: testAccProviders, 17 Steps: []resource.TestStep{ 18 resource.TestStep{ 19 Config: conf, 20 }, 21 22 resource.TestStep{ 23 ResourceName: resourceName, 24 ImportState: true, 25 ImportStateVerify: true, 26 }, 27 }, 28 }) 29 }