package google import ( "fmt" "testing" "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" ) func TestAccBigQueryTable_importBasic(t *testing.T) { resourceName := "google_bigquery_table.test" datasetID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) tableID := fmt.Sprintf("tf_test_%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckBigQueryTableDestroy, Steps: []resource.TestStep{ { Config: testAccBigQueryTable(datasetID, tableID), }, { ResourceName: resourceName, ImportState: true, ImportStateVerify: true, }, }, }) }