diff --git a/templates/terraform/examples/bigquery_reservation_basic.tf.erb b/templates/terraform/examples/bigquery_reservation_basic.tf.erb index 2bb683049da8..f1c5754927ad 100644 --- a/templates/terraform/examples/bigquery_reservation_basic.tf.erb +++ b/templates/terraform/examples/bigquery_reservation_basic.tf.erb @@ -5,5 +5,5 @@ resource "google_bigquery_reservation" "<%= ctx[:primary_resource_id] %>" { // Set to 0 for testing purposes // In reality this would be larger than zero slot_capacity = 0 - ignore_idle_slots = true + ignore_idle_slots = false } \ No newline at end of file diff --git a/third_party/terraform/tests/resource_bigquery_reservation_test.go.erb b/third_party/terraform/tests/resource_bigquery_reservation_test.go.erb index f746dd346d2a..61bb078d077d 100644 --- a/third_party/terraform/tests/resource_bigquery_reservation_test.go.erb +++ b/third_party/terraform/tests/resource_bigquery_reservation_test.go.erb @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/terraform" ) -func TestAccBigqueryReservationReservation_bigqueryReservationUpdate(t *testing.T) { +func TestAccBigqueryReservationReservation_bigqueryReservation(t *testing.T) { t.Parallel() location := "asia-northeast1" @@ -33,33 +33,12 @@ func TestAccBigqueryReservationReservation_bigqueryReservationUpdate(t *testing. ImportState: true, ImportStateVerify: true, }, - { - Config: testAccBigqueryReservationReservation_bigqueryReservationUpdate(context), - }, - { - ResourceName: "google_bigquery_reservation.reservation", - ImportState: true, - ImportStateVerify: true, - }, }, }) } func testAccBigqueryReservationReservation_bigqueryReservationBasic(context map[string]interface{}) string { return Nprintf(` -resource "google_bigquery_reservation" "reservation" { - name = "reservation%{random_suffix}" - location = "%{location}" - // Set to 0 for testing purposes - // In reality this would be larger than zero - slot_capacity = 0 - ignore_idle_slots = true -} -`, context) -} - -func testAccBigqueryReservationReservation_bigqueryReservationUpdate(context map[string]interface{}) string { - return Nprintf(` resource "google_bigquery_reservation" "reservation" { name = "reservation%{random_suffix}" location = "%{location}"