Skip to content

Commit

Permalink
[Terraform] remove auto_healing_policies from tests (#979)
Browse files Browse the repository at this point in the history
Merged PR #979.
  • Loading branch information
danawillow authored and modular-magician committed Dec 5, 2018
1 parent e180454 commit 3249d3d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 34 deletions.
2 changes: 1 addition & 1 deletion build/inspec
Submodule inspec updated 1 files
+15 −15 libraries/gcp_backend.rb
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ func TestAccDataSourceRegionInstanceGroup(t *testing.T) {

func testAccDataSourceRegionInstanceGroup_basic(instanceManagerName string) string {
return fmt.Sprintf(`
resource "google_compute_health_check" "autohealing" {
name = "%s"
check_interval_sec = 1
timeout_sec = 1
healthy_threshold = 2
unhealthy_threshold = 10
http_health_check {
request_path = "/"
port = "80"
}
}
resource "google_compute_target_pool" "foo" {
name = "%s"
}
Expand Down Expand Up @@ -75,15 +62,10 @@ resource "google_compute_region_instance_group_manager" "foo" {
port = 80
}
wait_for_instances = true
auto_healing_policies {
health_check = "${google_compute_health_check.autohealing.self_link}"
initial_delay_sec = 10
}
}
data "google_compute_region_instance_group" "data_source" {
self_link = "${google_compute_region_instance_group_manager.foo.instance_group}"
}
`, acctest.RandomWithPrefix("test-rigm-"), acctest.RandomWithPrefix("test-rigm-"), instanceManagerName)
`, acctest.RandomWithPrefix("test-rigm-"), instanceManagerName)
}
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,6 @@ resource "google_compute_instance_group_manager" "foobar" {
base_instance_name = "foobar"
zone = "us-central1-f"
target_size = 1
auto_healing_policies {
health_check = "${google_compute_http_health_check.default.self_link}"
initial_delay_sec = "10"
}
}

resource "google_compute_instance_template" "foobar" {
Expand Down Expand Up @@ -943,10 +939,6 @@ resource "google_compute_instance_group_manager" "foobar" {
base_instance_name = "foobar"
zone = "us-central1-f"
target_size = 1
auto_healing_policies {
health_check = "${google_compute_health_check.default.self_link}"
initial_delay_sec = "10"
}
}

resource "google_compute_instance_template" "foobar" {
Expand Down Expand Up @@ -1008,10 +1000,6 @@ resource "google_compute_instance_group_manager" "foobar" {
base_instance_name = "foobar"
zone = "us-central1-f"
target_size = 1
auto_healing_policies {
health_check = "${google_compute_health_check.default.self_link}"
initial_delay_sec = "10"
}
}

resource "google_compute_instance_template" "foobar" {
Expand Down

0 comments on commit 3249d3d

Please sign in to comment.