Skip to content

Commit

Permalink
add nested false field to test
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Oct 25, 2019
1 parent 0beac2d commit ecffbbf
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func TestAccComputeInstanceFromTemplate_basic(t *testing.T) {
// Check that fields were set based on the template
resource.TestCheckResourceAttr(resourceName, "machine_type", "n1-standard-1"),
resource.TestCheckResourceAttr(resourceName, "attached_disk.#", "1"),
resource.TestCheckResourceAttr(resourceName, "scheduling.0.automatic_restart", "false"),
),
},
},
Expand Down Expand Up @@ -255,6 +256,10 @@ resource "google_compute_instance_template" "foobar" {
foo = "bar"
}
scheduling {
automatic_restart = true
}
can_ip_forward = true
}
Expand All @@ -269,6 +274,9 @@ resource "google_compute_instance_from_template" "foobar" {
labels = {
my_key = "my_value"
}
scheduling {
automatic_restart = false
}
}
`, template, template, instance)
}
Expand Down

0 comments on commit ecffbbf

Please sign in to comment.