Skip to content

Commit d08b98b

Browse files
author
Hemant Adil
committed
Adding additional fields in test
1 parent 6e81f51 commit d08b98b

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

mmv1/third_party/tgc/tests/data/google_vmwareengine_private_cloud.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
[
32
{
43
"name": "//vmwareengine.googleapis.com/projects/{{.Provider.project}}/locations/us-central1-a/privateClouds/gg-asset-pc-00563-8560",
@@ -15,8 +14,35 @@
1514
"clusterId": "gg-asset-mgmt-cl-00563-8560",
1615
"nodeTypeConfigs": {
1716
"standard-72": {
17+
"nodeCount": 3,
18+
"customCoreCount": 36
19+
},
20+
"standard-128": {
1821
"nodeCount": 3
1922
}
23+
},
24+
"autoscalingSettings": {
25+
"autoscalingPolicies": {
26+
"autoscaling-policy": {
27+
"nodeTypeId": "standard-72",
28+
"scaleOutSize": 1,
29+
"cpuThresholds": {
30+
"scaleOut": 80,
31+
"scaleIn": 15
32+
},
33+
"consumedMemoryThresholds": {
34+
"scaleOut": 75,
35+
"scaleIn": 20
36+
},
37+
"storageThresholds": {
38+
"scaleOut": 80,
39+
"scaleIn": 20
40+
}
41+
}
42+
},
43+
"minClusterNodeCount": 3,
44+
"maxClusterNodeCount": 8,
45+
"coolDownPeriod": "1800s"
2046
}
2147
},
2248
"networkConfig": {
@@ -26,4 +52,4 @@
2652
}
2753
}
2854
}
29-
]
55+
]

mmv1/third_party/tgc/tests/data/google_vmwareengine_private_cloud.tf

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,33 @@ resource "google_vmwareengine_private_cloud" "main" {
1414
node_type_configs {
1515
node_type_id = "standard-72"
1616
node_count = 3
17+
custom_core_count = 36
18+
}
19+
node_type_configs {
20+
node_type_id = "standard-128"
21+
node_count = 3
22+
}
23+
autoscaling_settings {
24+
autoscaling_policies {
25+
autoscale_policy_id = "autoscaling-policy"
26+
node_type_id = "standard-72"
27+
scale_out_size = 1
28+
cpu_thresholds {
29+
scale_out = 80
30+
scale_in = 15
31+
}
32+
consumed_memory_thresholds {
33+
scale_out = 75
34+
scale_in = 20
35+
}
36+
storage_thresholds {
37+
scale_out = 80
38+
scale_in = 20
39+
}
40+
}
41+
min_cluster_node_count = 3
42+
max_cluster_node_count = 8
43+
cool_down_period = "1800s"
1744
}
1845
}
19-
}
46+
}

0 commit comments

Comments
 (0)