@@ -40,7 +40,6 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
40
40
"data.google_vmwareengine_private_cloud.ds" ,
41
41
"google_vmwareengine_private_cloud.vmw-engine-pc" ,
42
42
map [string ]struct {}{
43
- "type" : {},
44
43
"deletion_delay_hours" : {},
45
44
"send_deletion_delay_hours_if_zero" : {},
46
45
}),
@@ -52,7 +51,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
52
51
ResourceName : "google_vmwareengine_private_cloud.vmw-engine-pc" ,
53
52
ImportState : true ,
54
53
ImportStateVerify : true ,
55
- ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "type" , " deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
54
+ ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
56
55
},
57
56
58
57
{
@@ -62,7 +61,6 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
62
61
"data.google_vmwareengine_private_cloud.ds" ,
63
62
"google_vmwareengine_private_cloud.vmw-engine-pc" ,
64
63
map [string ]struct {}{
65
- "type" : {},
66
64
"deletion_delay_hours" : {},
67
65
"send_deletion_delay_hours_if_zero" : {},
68
66
}),
@@ -72,7 +70,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
72
70
ResourceName : "google_vmwareengine_private_cloud.vmw-engine-pc" ,
73
71
ImportState : true ,
74
72
ImportStateVerify : true ,
75
- ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "type" , " deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
73
+ ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
76
74
},
77
75
78
76
{
@@ -82,7 +80,6 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
82
80
"data.google_vmwareengine_private_cloud.ds" ,
83
81
"google_vmwareengine_private_cloud.vmw-engine-pc" ,
84
82
map [string ]struct {}{
85
- "type" : {},
86
83
"deletion_delay_hours" : {},
87
84
"send_deletion_delay_hours_if_zero" : {},
88
85
}),
@@ -92,7 +89,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
92
89
ResourceName : "google_vmwareengine_private_cloud.vmw-engine-pc" ,
93
90
ImportState : true ,
94
91
ImportStateVerify : true ,
95
- ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "type" , " deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
92
+ ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
96
93
},
97
94
98
95
{
@@ -112,7 +109,6 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
112
109
"data.google_vmwareengine_private_cloud.ds" ,
113
110
"google_vmwareengine_private_cloud.vmw-engine-pc" ,
114
111
map [string ]struct {}{
115
- "type" : {},
116
112
"deletion_delay_hours" : {},
117
113
"send_deletion_delay_hours_if_zero" : {},
118
114
}),
@@ -122,7 +118,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
122
118
ResourceName : "google_vmwareengine_private_cloud.vmw-engine-pc" ,
123
119
ImportState : true ,
124
120
ImportStateVerify : true ,
125
- ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "type" , " deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
121
+ ImportStateVerifyIgnore : []string {"location" , "name" , "update_time" , "deletion_delay_hours" , "send_deletion_delay_hours_if_zero" },
126
122
},
127
123
128
124
{
@@ -152,15 +148,15 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
152
148
}
153
149
154
150
func testVmwareenginePrivateCloudCreateConfig (context map [string ]interface {}) string {
155
- return testVmwareenginePrivateCloudConfig (context , "sample description" , "STANDARD " , 3 , 8 ) + testVmwareengineVcenterNSXCredentailsConfig (context )
151
+ return testVmwareenginePrivateCloudConfig (context , "sample description" , "TIME_LIMITED " , 1 , 0 ) + testVmwareengineVcenterNSXCredentailsConfig (context )
156
152
}
157
153
158
154
func testVmwareenginePrivateCloudUpdateNodeConfig (context map [string ]interface {}) string {
159
155
return testVmwareenginePrivateCloudConfig (context , "sample updated description" , "STANDARD" , 3 , 8 ) + testVmwareengineVcenterNSXCredentailsConfig (context )
160
156
}
161
157
162
158
func testVmwareenginePrivateCloudUpdateAutoscaleConfig (context map [string ]interface {}) string {
163
- return testVmwareenginePrivateCloudAutoscaleConfig (context , "sample updated description" , "STANDARD " , 3 , 8 ) + testVmwareengineVcenterNSXCredentailsConfig (context )
159
+ return testVmwareenginePrivateCloudAutoscaleConfig (context , "sample updated description" , "" , 3 , 8 ) + testVmwareengineVcenterNSXCredentailsConfig (context )
164
160
}
165
161
166
162
func testVmwareenginePrivateCloudDelayedDeleteConfig (context map [string ]interface {}) string {
@@ -209,20 +205,6 @@ resource "google_vmwareengine_private_cloud" "vmw-engine-pc" {
209
205
node_type_id = "standard-72"
210
206
node_count = "%{node_count}"
211
207
custom_core_count = 32
212
- }
213
- autoscaling_settings {
214
- autoscaling_policies {
215
- autoscale_policy_id = "autoscaling-policy"
216
- node_type_id = "standard-72"
217
- scale_out_size = 1
218
- storage_thresholds {
219
- scale_out = 60
220
- scale_in = 20
221
- }
222
- }
223
- min_cluster_node_count = 3
224
- max_cluster_node_count = 8
225
- cool_down_period = "1800s"
226
208
}
227
209
}
228
210
}
0 commit comments