Skip to content

Commit 4733ce2

Browse files
committed
* Tune VDC configuration to avoid test errors TestAccVcdStandaloneVmWithVmSizing, TestAccVcdVAppVm_4types_sizing_max, TestAccVcdVAppVm_4types_sizing_cpu_only, TestAccVcdVAppVmWithVmSizing
* Tune boot retry delay settings in vcd_vapp_vm test TestAccVcdVAppVmBootOptions Signed-off-by: Dainius Serplis <dserplis@vmware.com>
1 parent 3d91907 commit 4733ce2

4 files changed

+84
-82
lines changed

vcd/resource_vcd_standalone_vm_with_vm_sizing_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestAccVcdStandaloneVmWithVmSizing(t *testing.T) {
4242
"ProviderVdc": testConfig.VCD.NsxtProviderVdc.Name,
4343
"NetworkPool": testConfig.VCD.NsxtProviderVdc.NetworkPool,
4444
"Allocated": "10240",
45-
"Reserved": "0",
45+
"Reserved": "10240",
4646
"Limit": "10240",
4747
"ProviderVdcStorageProfile": testConfig.VCD.NsxtProviderVdc.StorageProfile,
4848
"FuncName": t.Name(),
@@ -287,15 +287,15 @@ resource "vcd_org_vdc" "{{.VdcName}}" {
287287
allocation_model = "{{.AllocationModel}}"
288288
network_pool_name = "{{.NetworkPool}}"
289289
provider_vdc_name = "{{.ProviderVdc}}"
290+
memory_guaranteed = 1
291+
cpu_guaranteed = 1
290292
291293
compute_capacity {
292294
cpu {
293-
allocated = "{{.Allocated}}"
294295
limit = "{{.Limit}}"
295296
}
296297
297298
memory {
298-
allocated = "{{.Allocated}}"
299299
limit = "{{.Limit}}"
300300
}
301301
}

vcd/resource_vcd_vapp_vm_4types_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1497,15 +1497,15 @@ resource "vcd_org_vdc" "sizing-policy" {
14971497
allocation_model = "{{.AllocationModel}}"
14981498
network_pool_name = "{{.NetworkPool}}"
14991499
provider_vdc_name = "{{.ProviderVdc}}"
1500+
memory_guaranteed = 1
1501+
cpu_guaranteed = 1
15001502
15011503
compute_capacity {
15021504
cpu {
1503-
allocated = "{{.Allocated}}"
15041505
limit = "{{.Limit}}"
15051506
}
15061507
15071508
memory {
1508-
allocated = "{{.Allocated}}"
15091509
limit = "{{.Limit}}"
15101510
}
15111511
}
@@ -1739,7 +1739,7 @@ func TestAccVcdVAppVm_4types_sizing_max(t *testing.T) {
17391739

17401740
"AllocationModel": "Flex",
17411741
"Allocated": "40000",
1742-
"Reserved": "0",
1742+
"Reserved": "40000",
17431743
"Limit": "40000",
17441744
"ProviderVdcStorageProfile": testConfig.VCD.ProviderVdc.StorageProfile,
17451745
"FuncName": t.Name(),
@@ -2053,7 +2053,7 @@ func TestAccVcdVAppVm_4types_sizing_cpu_only(t *testing.T) {
20532053

20542054
"AllocationModel": "Flex",
20552055
"Allocated": "30000",
2056-
"Reserved": "0",
2056+
"Reserved": "30000",
20572057
"Limit": "32000",
20582058
"ProviderVdcStorageProfile": testConfig.VCD.ProviderVdc.StorageProfile,
20592059
"FuncName": t.Name(),

0 commit comments

Comments
 (0)