File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
tests/integration/targets Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 72
72
description:
73
73
- Number of vcpus of the virtual machine
74
74
required: false
75
- type: int
75
+ type: float
76
76
tenant:
77
77
description:
78
78
- The tenant that the virtual machine will be assigned to
@@ -236,7 +236,7 @@ def main():
236
236
site = dict (required = False , type = "raw" ),
237
237
cluster = dict (required = False , type = "raw" ),
238
238
virtual_machine_role = dict (required = False , type = "raw" ),
239
- vcpus = dict (required = False , type = "int " ),
239
+ vcpus = dict (required = False , type = "float " ),
240
240
tenant = dict (required = False , type = "raw" ),
241
241
platform = dict (required = False , type = "raw" ),
242
242
primary_ip4 = dict (required = False , type = "raw" ),
Original file line number Diff line number Diff line change 49
49
data :
50
50
name : " Test VM One"
51
51
cluster : " Test Cluster"
52
- vcpus : 8
52
+ vcpus : 8.5
53
53
memory : 8
54
54
status : " Planned"
55
55
virtual_machine_role : " Test VM Role"
62
62
assert :
63
63
that :
64
64
- test_three is changed
65
- - test_three['diff']['after']['vcpus'] == 8
65
+ - test_three['diff']['after']['vcpus'] == 8.5
66
66
- test_three['diff']['after']['memory'] == 8
67
67
- test_three['diff']['after']['status'] == "planned"
68
68
- test_three['diff']['after']['role'] == 2
69
69
- test_three['diff']['after']['tags'][0] == 4
70
70
- test_three['virtual_machine']['name'] == "Test VM One"
71
71
- test_three['virtual_machine']['cluster'] == 1
72
- - test_three['virtual_machine']['vcpus'] == 8
72
+ - test_three['virtual_machine']['vcpus'] == 8.5
73
73
- test_three['virtual_machine']['memory'] == 8
74
74
- test_three['virtual_machine']['status'] == "planned"
75
75
- test_three['virtual_machine']['role'] == 2
91
91
- test_four is changed
92
92
- test_four['virtual_machine']['name'] == "Test VM One"
93
93
- test_four['virtual_machine']['cluster'] == 1
94
- - test_four['virtual_machine']['vcpus'] == "8.00 "
94
+ - test_four['virtual_machine']['vcpus'] == "8.50 "
95
95
- test_four['virtual_machine']['memory'] == 8
96
96
- test_four['virtual_machine']['status'] == "planned"
97
97
- test_four['virtual_machine']['role'] == 2
Original file line number Diff line number Diff line change 49
49
data :
50
50
name : " Test VM One"
51
51
cluster : " Test Cluster"
52
- vcpus : 8
52
+ vcpus : 8.5
53
53
memory : 8
54
54
status : " Planned"
55
55
virtual_machine_role : " Test VM Role"
62
62
assert :
63
63
that :
64
64
- test_three is changed
65
- - test_three['diff']['after']['vcpus'] == 8
65
+ - test_three['diff']['after']['vcpus'] == 8.5
66
66
- test_three['diff']['after']['memory'] == 8
67
67
- test_three['diff']['after']['status'] == "planned"
68
68
- test_three['diff']['after']['role'] == 2
91
91
- test_four is changed
92
92
- test_four['virtual_machine']['name'] == "Test VM One"
93
93
- test_four['virtual_machine']['cluster'] == 1
94
- - test_four['virtual_machine']['vcpus'] == "8.00"
94
+ - test_four['virtual_machine']['vcpus'] == 8.5
95
95
- test_four['virtual_machine']['memory'] == 8
96
96
- test_four['virtual_machine']['status'] == "planned"
97
97
- test_four['virtual_machine']['role'] == 2
You can’t perform that action at this time.
0 commit comments