@@ -10,38 +10,6 @@ import (
10
10
"google.golang.org/api/compute/v1"
11
11
)
12
12
13
- func TestAccComputeHttpHealthCheck_basic (t * testing.T ) {
14
- t .Parallel ()
15
-
16
- var healthCheck compute.HttpHealthCheck
17
-
18
- hhckName := fmt .Sprintf ("tf-test-%s" , acctest .RandString (10 ))
19
-
20
- resource .Test (t , resource.TestCase {
21
- PreCheck : func () { testAccPreCheck (t ) },
22
- Providers : testAccProviders ,
23
- CheckDestroy : testAccCheckComputeHttpHealthCheckDestroy ,
24
- Steps : []resource.TestStep {
25
- {
26
- Config : testAccComputeHttpHealthCheck_basic (hhckName ),
27
- Check : resource .ComposeTestCheckFunc (
28
- testAccCheckComputeHttpHealthCheckExists (
29
- "google_compute_http_health_check.foobar" , & healthCheck ),
30
- testAccCheckComputeHttpHealthCheckRequestPath (
31
- "/health_check" , & healthCheck ),
32
- testAccCheckComputeHttpHealthCheckThresholds (
33
- 3 , 3 , & healthCheck ),
34
- ),
35
- },
36
- {
37
- ResourceName : "google_compute_http_health_check.foobar" ,
38
- ImportState : true ,
39
- ImportStateVerify : true ,
40
- },
41
- },
42
- })
43
- }
44
-
45
13
func TestAccComputeHttpHealthCheck_update (t * testing.T ) {
46
14
t .Parallel ()
47
15
@@ -133,22 +101,6 @@ func testAccCheckComputeHttpHealthCheckThresholds(healthy, unhealthy int64, heal
133
101
}
134
102
}
135
103
136
- func testAccComputeHttpHealthCheck_basic (hhckName string ) string {
137
- return fmt .Sprintf (`
138
- resource "google_compute_http_health_check" "foobar" {
139
- name = "%s"
140
- check_interval_sec = 3
141
- description = "Resource created for Terraform acceptance testing"
142
- healthy_threshold = 3
143
- host = "foobar"
144
- port = "80"
145
- request_path = "/health_check"
146
- timeout_sec = 2
147
- unhealthy_threshold = 3
148
- }
149
- ` , hhckName )
150
- }
151
-
152
104
func testAccComputeHttpHealthCheck_update1 (hhckName string ) string {
153
105
return fmt .Sprintf (`
154
106
resource "google_compute_http_health_check" "foobar" {
0 commit comments