@@ -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