Skip to content

Commit 5ed1e08

Browse files
author
Nathan Beittenmiller
committed
Forgot to commit unit test updates
1 parent dbb70b7 commit 5ed1e08

File tree

1 file changed

+6
-50
lines changed

1 file changed

+6
-50
lines changed

SoftLayer/tests/managers/hardware_tests.py

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,15 @@ def test_generate_create_dict_with_all_bare_metal_options(self):
155155
{'name': 'Bare Metal Instance', 'id': package_id}]
156156

157157
args = {
158-
'server_core': 100,
158+
'server': 100,
159159
'hourly': False,
160160
'hostname': 'unicorn',
161161
'domain': 'giggles.woo',
162-
'disk0': 500,
162+
'disks': [500],
163163
'location': 'Wyrmshire',
164164
'os': 200,
165-
'image_id': None,
166-
'pri_ip_addresses': 300,
167-
'bandwidth': 400,
168-
'userdata': None,
169-
'monitoring': 500,
170165
'port_speed': 600,
171-
'vulnerability_scanner': 700,
172-
'response': 800,
173-
'vpn_management': 900,
174-
'remote_management': 1000,
175-
'notification': 1100,
176166
'bare_metal': True,
177-
'database': 1200,
178167
}
179168

180169
assert_data = {
@@ -186,18 +175,10 @@ def test_generate_create_dict_with_all_bare_metal_options(self):
186175
'location': args['location'],
187176
'packageId': package_id,
188177
'prices': [
189-
{'id': args['server_core']},
190-
{'id': args['disk0']},
178+
{'id': args['server']},
179+
{'id': args['disks'][0]},
191180
{'id': args['os']},
192-
{'id': args['pri_ip_addresses']},
193-
{'id': args['bandwidth']},
194-
{'id': args['monitoring']},
195181
{'id': args['port_speed']},
196-
{'id': args['vulnerability_scanner']},
197-
{'id': args['response']},
198-
{'id': args['vpn_management']},
199-
{'id': args['remote_management']},
200-
{'id': args['notification']},
201182
],
202183
}
203184

@@ -210,28 +191,14 @@ def test_generate_create_dict_with_all_dedicated_server_options(self):
210191
'server': 100,
211192
'hostname': 'unicorn',
212193
'domain': 'giggles.woo',
213-
'disk0': 500,
194+
'disks': [500],
214195
'location': 'Wyrmshire',
215196
'os': 200,
216-
'image_id': None,
217-
'pri_ip_addresses': 300,
218-
'bandwidth': 400,
219-
'userdata': None,
220-
'monitoring': 500,
221197
'port_speed': 600,
222-
'vulnerability_scanner': 700,
223-
'response': 800,
224-
'vpn_management': 900,
225-
'remote_management': 1000,
226-
'notification': 1100,
227198
'bare_metal': False,
228-
'database': 1200,
229199
'package_id': 13,
230-
'firewall': 1300,
231200
'ram': 1400,
232201
'disk_controller': 1500,
233-
'lockbox': 1600,
234-
'nas': 9999,
235202
}
236203

237204
assert_data = {
@@ -244,22 +211,11 @@ def test_generate_create_dict_with_all_dedicated_server_options(self):
244211
'packageId': 13,
245212
'prices': [
246213
{'id': args['server']},
247-
{'id': args['disk0']},
214+
{'id': args['disks'][0]},
248215
{'id': args['os']},
249-
{'id': args['pri_ip_addresses']},
250-
{'id': args['bandwidth']},
251-
{'id': args['monitoring']},
252216
{'id': args['port_speed']},
253-
{'id': args['vulnerability_scanner']},
254-
{'id': args['response']},
255-
{'id': args['vpn_management']},
256-
{'id': args['remote_management']},
257-
{'id': args['notification']},
258-
{'id': args['firewall']},
259217
{'id': args['ram']},
260218
{'id': args['disk_controller']},
261-
{'id': args['lockbox']},
262-
{'id': args['nas']},
263219
],
264220
}
265221

0 commit comments

Comments
 (0)