mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-06 02:02:43 +00:00
Remove auto_healing_policies from tests (#2557)
<!-- This change is generated by MagicModules. --> /cc @danawillow
This commit is contained in:
parent
c2a3160903
commit
5492b0100e
|
@ -28,19 +28,6 @@ func TestAccDataSourceRegionInstanceGroup(t *testing.T) {
|
||||||
|
|
||||||
func testAccDataSourceRegionInstanceGroup_basic(instanceManagerName string) string {
|
func testAccDataSourceRegionInstanceGroup_basic(instanceManagerName string) string {
|
||||||
return fmt.Sprintf(`
|
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" {
|
resource "google_compute_target_pool" "foo" {
|
||||||
name = "%s"
|
name = "%s"
|
||||||
}
|
}
|
||||||
|
@ -75,15 +62,10 @@ resource "google_compute_region_instance_group_manager" "foo" {
|
||||||
port = 80
|
port = 80
|
||||||
}
|
}
|
||||||
wait_for_instances = true
|
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" {
|
data "google_compute_region_instance_group" "data_source" {
|
||||||
self_link = "${google_compute_region_instance_group_manager.foo.instance_group}"
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -672,10 +672,6 @@ resource "google_compute_instance_group_manager" "foobar" {
|
||||||
base_instance_name = "foobar"
|
base_instance_name = "foobar"
|
||||||
zone = "us-central1-f"
|
zone = "us-central1-f"
|
||||||
target_size = 1
|
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" {
|
resource "google_compute_instance_template" "foobar" {
|
||||||
|
@ -888,10 +884,6 @@ resource "google_compute_instance_group_manager" "foobar" {
|
||||||
base_instance_name = "foobar"
|
base_instance_name = "foobar"
|
||||||
zone = "us-central1-f"
|
zone = "us-central1-f"
|
||||||
target_size = 1
|
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" {
|
resource "google_compute_instance_template" "foobar" {
|
||||||
|
@ -946,10 +938,6 @@ resource "google_compute_instance_group_manager" "foobar" {
|
||||||
base_instance_name = "foobar"
|
base_instance_name = "foobar"
|
||||||
zone = "us-central1-f"
|
zone = "us-central1-f"
|
||||||
target_size = 1
|
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" {
|
resource "google_compute_instance_template" "foobar" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user