Skip to content

Commit 755a5b6

Browse files
committed
updated hardware and server tests
1 parent 1b820b0 commit 755a5b6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/CLI/modules/server_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_create_options(self):
317317
{'size': 'Dual Xeon Gold, 384GB Ram, 4x960GB SSD, RAID 10',
318318
'value': 'DGOLD_6140_384GB_4X960GB_SSD_SED_RAID_10'}],
319319
[{'operating_system': 'Ubuntu / 14.04-64',
320-
'value': 'UBUNTU_14_64'}],
320+
'value': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT'}],
321321
[{'port_speed': '10 Mbps Public & Private Network Uplinks',
322322
'value': '10'}],
323323
[{'extras': '1 IPv6 Address', 'value': '1_IPV6_ADDRESS'}]]
@@ -336,7 +336,7 @@ def test_create_server(self, order_mock):
336336
'--domain=example.com',
337337
'--datacenter=TEST00',
338338
'--port-speed=100',
339-
'--os=UBUNTU_12_64',
339+
'--os=OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT',
340340
'--no-public',
341341
'--key=10',
342342
])

tests/managers/hardware_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_get_create_options(self):
123123
expected = {
124124
'extras': [{'key': '1_IPV6_ADDRESS', 'name': '1 IPv6 Address'}],
125125
'locations': [{'key': 'wdc01', 'name': 'Washington 1'}],
126-
'operating_systems': [{'key': 'UBUNTU_14_64',
126+
'operating_systems': [{'key': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT',
127127
'name': 'Ubuntu / 14.04-64'}],
128128
'port_speeds': [{
129129
'key': '10',
@@ -180,7 +180,7 @@ def test_generate_create_dict_invalid_size(self):
180180
'hostname': 'unicorn',
181181
'domain': 'giggles.woo',
182182
'location': 'wdc01',
183-
'os': 'UBUNTU_14_64',
183+
'os': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT',
184184
'port_speed': 10,
185185
}
186186

@@ -194,7 +194,7 @@ def test_generate_create_dict(self):
194194
'hostname': 'unicorn',
195195
'domain': 'giggles.woo',
196196
'location': 'wdc01',
197-
'os': 'UBUNTU_14_64',
197+
'os': 'OS_UBUNTU_14_04_LTS_TRUSTY_TAHR_64_BIT',
198198
'port_speed': 10,
199199
'hourly': True,
200200
'extras': ['1_IPV6_ADDRESS'],
@@ -514,11 +514,11 @@ def test_get_bandwidth_price_mismatched(self):
514514
def test_get_os_price_mismatched(self):
515515
items = [
516516
{'itemCategory': {'categoryCode': 'os'},
517-
'softwareDescription': {'referenceCode': 'TEST_OS'},
517+
'keyName': 'OS_TEST',
518518
'prices': [{'id': 2, 'locationGroupId': 55, 'recurringFee': 99}]
519519
},
520520
{'itemCategory': {'categoryCode': 'os'},
521-
'softwareDescription': {'referenceCode': 'TEST_OS'},
521+
'keyName': 'OS_TEST',
522522
'prices': [{'id': 3, 'locationGroupId': None, 'recurringFee': 99}]
523523
},
524524
]
@@ -532,7 +532,7 @@ def test_get_os_price_mismatched(self):
532532
}
533533
}
534534
}
535-
result = managers.hardware._get_os_price_id(items, 'TEST_OS', location)
535+
result = managers.hardware._get_os_price_id(items, 'OS_TEST', location)
536536
self.assertEqual(3, result)
537537

538538
def test_get_default_price_id_item_not_first(self):

0 commit comments

Comments
 (0)