You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2013/11/10 18:04:31 UTC

[1/3] JCLOUDS-213: Fixing SoftLayer support

Updated Branches:
  refs/heads/1.6.x 029831879 -> f27845035


http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/resources/get_reduced_active_packages.json
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/resources/get_reduced_active_packages.json b/providers/softlayer/src/test/resources/get_reduced_active_packages.json
new file mode 100644
index 0000000..528a227
--- /dev/null
+++ b/providers/softlayer/src/test/resources/get_reduced_active_packages.json
@@ -0,0 +1,10 @@
+[
+    {
+        "id": 13, 
+        "name": "Dual Xeon (Dual Core) Woodcrest/Cloverton"
+    }, 
+    {
+        "id": 15, 
+        "name": "Single Xeon (Dual Core) Woodcrest/Cloverton"
+    }
+]
\ No newline at end of file


[2/3] JCLOUDS-213: Fixing SoftLayer support

Posted by an...@apache.org.
http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/resources/get_active_packages.json
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/resources/get_active_packages.json b/providers/softlayer/src/test/resources/get_active_packages.json
new file mode 100644
index 0000000..83d3493
--- /dev/null
+++ b/providers/softlayer/src/test/resources/get_active_packages.json
@@ -0,0 +1,38287 @@
+[
+    {
+        "activeRamItems": [
+            {
+                "capacity": "4", 
+                "description": "4 GB FB-DIMM Registered 533/667", 
+                "id": 254, 
+                "prices": [
+                    {
+                        "categories": [
+                            {
+                                "categoryCode": "ram", 
+                                "id": 3, 
+                                "name": "Ram", 
+                                "quantityLimit": 0
+                            }
+                        ], 
+                        "currentPriceFlag": null, 
+                        "id": 1023, 
+                        "item": null, 
+                        "itemId": 254, 
+                        "laborFee": "0", 
+                        "onSaleFlag": null, 
+                        "oneTimeFee": "0", 
+                        "quantity": null, 
+                        "recurringFee": "0", 
+                        "setupFee": "0", 
+                        "sort": 0
+                    }
+                ], 
+                "softwareDescriptionId": null, 
+                "units": "GB", 
+                "upgradeItemId": null
+            }
+        ], 
+        "description": "<div class=\"PageTopicSubHead\">Dual Processor Multi-core Servers</div>", 
+        "firstOrderStepId": 1, 
+        "id": 13, 
+        "itemPrices": [
+            {
+                "categories": [
+                    {
+                        "categoryCode": "database", 
+                        "id": 17, 
+                        "name": "Database Software", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": "0", 
+                "id": 29, 
+                "item": {
+                    "description": "MySQL 5.0 for Windows", 
+                    "id": 23, 
+                    "softwareDescriptionId": 13, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 23, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "public_port", 
+                        "id": 8, 
+                        "name": "Public Network Port", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": "0", 
+                "id": 31, 
+                "item": {
+                    "capacity": "10", 
+                    "description": "10 Mbps public uplink", 
+                    "id": 25, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 25, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "bandwidth", 
+                        "id": 10, 
+                        "name": "Public Bandwidth", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 36, 
+                "item": {
+                    "description": "Unlimited Bandwidth (10 Mbps Uplink)", 
+                    "id": 30, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 30, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "100", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "bandwidth", 
+                        "id": 10, 
+                        "name": "Public Bandwidth", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 130, 
+                "item": {
+                    "capacity": "8000", 
+                    "description": "8000 GB Bandwidth", 
+                    "id": 101, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": 102
+                }, 
+                "itemId": 101, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "150", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 295, 
+                "item": {
+                    "description": "4 x 750GB SATA II", 
+                    "id": 203, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 203, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "200", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 296, 
+                "item": {
+                    "description": "3 x 150GB SATA Raptor 10k", 
+                    "id": 204, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 204, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "90", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 328, 
+                "item": {
+                    "description": "2 x 73GB 15k RPM SA-SCSI", 
+                    "id": 235, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 235, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "100", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 330, 
+                "item": {
+                    "description": "4 x 73GB 15k RPM SA-SCSI", 
+                    "id": 237, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 237, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "200", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 334, 
+                "item": {
+                    "capacity": "10", 
+                    "description": "4 x 73GB 15k RPM SA-SCSI RAID 10", 
+                    "id": 241, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 241, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "250", 
+                "setupFee": "0", 
+                "sort": 6
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "intrusion_protection", 
+                        "id": 29, 
+                        "name": "Intrusion Detection & Protection", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 413, 
+                "item": {
+                    "description": "McAfee Host Intrusion Protection w/Reporting", 
+                    "id": 302, 
+                    "softwareDescriptionId": 916, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 302, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "30", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "second_processor", 
+                        "id": 2, 
+                        "name": "Second Processor", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 460, 
+                "item": {
+                    "description": "Dual Core Xeon 5160 - 3.00GHz  (Woodcrest) - 2 x 4MB cache", 
+                    "id": 337, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 337, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 564, 
+                "item": {
+                    "description": "3 x 300GB 15k RPM SA-SCSI", 
+                    "id": 344, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 344, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "375", 
+                "setupFee": "0", 
+                "sort": 9
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk17", 
+                        "id": 103, 
+                        "name": "Eighteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk7", 
+                        "id": 39, 
+                        "name": "Eighth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk10", 
+                        "id": 42, 
+                        "name": "Eleventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk14", 
+                        "id": 100, 
+                        "name": "Fifteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk4", 
+                        "id": 36, 
+                        "name": "Fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk13", 
+                        "id": 99, 
+                        "name": "Fourteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk3", 
+                        "id": 7, 
+                        "name": "Fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk18", 
+                        "id": 104, 
+                        "name": "Nineteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk8", 
+                        "id": 40, 
+                        "name": "Ninth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk16", 
+                        "id": 102, 
+                        "name": "Seventeenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk6", 
+                        "id": 38, 
+                        "name": "Seventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk15", 
+                        "id": 101, 
+                        "name": "Sixteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk5", 
+                        "id": 37, 
+                        "name": "Sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk9", 
+                        "id": 41, 
+                        "name": "Tenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk2", 
+                        "id": 6, 
+                        "name": "Third Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk12", 
+                        "id": 98, 
+                        "name": "Thirteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk29", 
+                        "id": 131, 
+                        "name": "Thirtieth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk34", 
+                        "id": 136, 
+                        "name": "Thirty-fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk30", 
+                        "id": 132, 
+                        "name": "Thirty-first Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk33", 
+                        "id": 135, 
+                        "name": "Thirty-fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk31", 
+                        "id": 133, 
+                        "name": "Thirty-second Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk35", 
+                        "id": 137, 
+                        "name": "Thirty-sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk32", 
+                        "id": 134, 
+                        "name": "Thirty-third Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk11", 
+                        "id": 43, 
+                        "name": "Twelfth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk19", 
+                        "id": 105, 
+                        "name": "Twentieth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk27", 
+                        "id": 129, 
+                        "name": "Twenty-eighth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk24", 
+                        "id": 126, 
+                        "name": "Twenty-fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk20", 
+                        "id": 106, 
+                        "name": "Twenty-first Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk23", 
+                        "id": 109, 
+                        "name": "Twenty-fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk28", 
+                        "id": 130, 
+                        "name": "Twenty-nineth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk21", 
+                        "id": 107, 
+                        "name": "Twenty-second Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk26", 
+                        "id": 128, 
+                        "name": "Twenty-seventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk25", 
+                        "id": 127, 
+                        "name": "Twenty-sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk22", 
+                        "id": 108, 
+                        "name": "Twenty-third Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 818, 
+                "item": {
+                    "capacity": "150", 
+                    "description": "150GB SATA Raptor 10k", 
+                    "id": 59, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 59, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "30", 
+                "setupFee": "0", 
+                "sort": 3
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk17", 
+                        "id": 103, 
+                        "name": "Eighteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk7", 
+                        "id": 39, 
+                        "name": "Eighth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk10", 
+                        "id": 42, 
+                        "name": "Eleventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk14", 
+                        "id": 100, 
+                        "name": "Fifteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk4", 
+                        "id": 36, 
+                        "name": "Fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk13", 
+                        "id": 99, 
+                        "name": "Fourteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk3", 
+                        "id": 7, 
+                        "name": "Fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk18", 
+                        "id": 104, 
+                        "name": "Nineteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk8", 
+                        "id": 40, 
+                        "name": "Ninth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk16", 
+                        "id": 102, 
+                        "name": "Seventeenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk6", 
+                        "id": 38, 
+                        "name": "Seventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk15", 
+                        "id": 101, 
+                        "name": "Sixteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk5", 
+                        "id": 37, 
+                        "name": "Sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk9", 
+                        "id": 41, 
+                        "name": "Tenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk2", 
+                        "id": 6, 
+                        "name": "Third Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk12", 
+                        "id": 98, 
+                        "name": "Thirteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk29", 
+                        "id": 131, 
+                        "name": "Thirtieth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk34", 
+                        "id": 136, 
+                        "name": "Thirty-fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk30", 
+                        "id": 132, 
+                        "name": "Thirty-first Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk33", 
+                        "id": 135, 
+                        "name": "Thirty-fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk31", 
+                        "id": 133, 
+                        "name": "Thirty-second Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk35", 
+                        "id": 137, 
+                        "name": "Thirty-sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk32", 
+                        "id": 134, 
+                        "name": "Thirty-third Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk11", 
+                        "id": 43, 
+                        "name": "Twelfth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk19", 
+                        "id": 105, 
+                        "name": "Twentieth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk27", 
+                        "id": 129, 
+                        "name": "Twenty-eighth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk24", 
+                        "id": 126, 
+                        "name": "Twenty-fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk20", 
+                        "id": 106, 
+                        "name": "Twenty-first Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk23", 
+                        "id": 109, 
+                        "name": "Twenty-fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk28", 
+                        "id": 130, 
+                        "name": "Twenty-nineth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk21", 
+                        "id": 107, 
+                        "name": "Twenty-second Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk26", 
+                        "id": 128, 
+                        "name": "Twenty-seventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk25", 
+                        "id": 127, 
+                        "name": "Twenty-sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk22", 
+                        "id": 108, 
+                        "name": "Twenty-third Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 827, 
+                "item": {
+                    "capacity": "147", 
+                    "description": "147GB SA-SCSI 15K RPM", 
+                    "id": 269, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 269, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "75", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_controller", 
+                        "id": 11, 
+                        "name": "Disk Controller", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 877, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "RAID 0", 
+                    "id": 488, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 488, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "50", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_controller", 
+                        "id": 11, 
+                        "name": "Disk Controller", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 878, 
+                "item": {
+                    "capacity": "1", 
+                    "description": "RAID 1", 
+                    "id": 489, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 489, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "50", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "evault", 
+                        "id": 52, 
+                        "name": "EVault", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1045, 
+                "item": {
+                    "capacity": "20", 
+                    "description": "20GB EVault Disk to Disk Enterprise Backup", 
+                    "id": 558, 
+                    "softwareDescriptionId": 159, 
+                    "units": "GIGABYTE", 
+                    "upgradeItemId": 739
+                }, 
+                "itemId": 558, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "20", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "accountRestrictions": [], 
+                "categories": [
+                    {
+                        "categoryCode": "server", 
+                        "id": 1, 
+                        "name": "Server", 
+                        "quantityLimit": 20
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1137, 
+                "item": {
+                    "description": "Dual Processor Quad Core Xeon 5450 - 3.00GHz (Harpertown) - 2 x 12MB cache", 
+                    "hardwareGenericComponentModel": {
+                        "capacity": "3", 
+                        "description": "XEON-5450-Quadcore-Harpertown", 
+                        "hardwareComponentModels": [
+                            {
+                                "capacity": "3", 
+                                "description": "3GHz:1333FSB", 
+                                "hardwareGenericComponentModel": null, 
+                                "hardwareGenericComponentModelId": 256, 
+                                "id": 241, 
+                                "manufacturer": "Intel", 
+                                "name": "Xeon-Harpertown", 
+                                "version": "5450-Quadcore"
+                            }
+                        ], 
+                        "hardwareComponentType": {
+                            "id": 2, 
+                            "type": "Processor", 
+                            "typeParentId": 3
+                        }, 
+                        "hardwareComponentTypeId": 2, 
+                        "id": 256, 
+                        "units": "GHz", 
+                        "upgradePriority": 314
+                    }, 
+                    "id": 603, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 603, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "499", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1213, 
+                "item": {
+                    "description": "FreeBSD 7 Latest (32 bit)", 
+                    "id": 638, 
+                    "softwareDescriptionId": 666, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 638, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk0", 
+                        "id": 4, 
+                        "name": "First Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1265, 
+                "item": {
+                    "capacity": "400", 
+                    "description": "400GB SA-SCSI 10K RPM", 
+                    "id": 537, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 537, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "100", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk1", 
+                        "id": 5, 
+                        "name": "Second Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1275, 
+                "item": {
+                    "capacity": "74", 
+                    "description": "74GB SATA Raptor 10k", 
+                    "id": 472, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 472, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "20", 
+                "setupFee": "0", 
+                "sort": 3
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk0", 
+                        "id": 4, 
+                        "name": "First Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1276, 
+                "item": {
+                    "capacity": "750", 
+                    "description": "750GB SATA II", 
+                    "id": 190, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 190, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "40", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1289, 
+                "item": {
+                    "description": "Ubuntu Linux 8.04 LTS Hardy Heron (32 bit)", 
+                    "id": 655, 
+                    "softwareDescriptionId": 643, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 655, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 8
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk0", 
+                        "id": 4, 
+                        "name": "First Hard Drive", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1402, 
+                "item": {
+                    "capacity": "300", 
+                    "description": "300GB SATA Raptor 10k", 
+                    "id": 737, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 737, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "40", 
+                "setupFee": "0", 
+                "sort": 3
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "virtuozzo", 
+                        "id": 68, 
+                        "name": "Parallels Virtuozzo", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": ".3", 
+                "id": 1410, 
+                "item": {
+                    "capacity": "50", 
+                    "description": "Virtuozzo Containers 4 for Linux - 50 VPS", 
+                    "id": 743, 
+                    "softwareDescriptionId": 321, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 743, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "150", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 1861, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Windows Server 2008 R2 Enterprise Edition (64bit)", 
+                    "id": 978, 
+                    "softwareDescriptionId": 477, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 978, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "100", 
+                "setupFee": "0", 
+                "sort": 15
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 2012, 
+                "item": {
+                    "description": "FreeBSD 8 Latest (64 bit)", 
+                    "id": 1065, 
+                    "softwareDescriptionId": 1019, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 1065, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "evault", 
+                        "id": 52, 
+                        "name": "EVault", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 2028, 
+                "item": {
+                    "capacity": "60", 
+                    "description": "60GB EVault Disk to Disk Enterprise Backup", 
+                    "id": 1076, 
+                    "softwareDescriptionId": 159, 
+                    "units": "GIGABYTE", 
+                    "upgradeItemId": 560
+                }, 
+                "itemId": 1076, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "60", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "monitoring_package", 
+                        "id": 122, 
+                        "name": "Advanced Monitoring", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": "0", 
+                "id": 2302, 
+                "item": {
+                    "capacity": "1", 
+                    "description": "Monitoring Package - Basic", 
+                    "id": 1248, 
+                    "longDescription": "Hardware and OS", 
+                    "softwareDescriptionId": 727, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 1248, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 13800, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Red Hat Enterprise Linux - 6 (64 bit)", 
+                    "id": 3841, 
+                    "softwareDescriptionId": 1134, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 3841, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 10
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 14048, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "VMware ESX 4.1", 
+                    "id": 3969, 
+                    "softwareDescriptionId": 800, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 3969, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 20
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17125, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "CloudLinux 6 (32 bit)", 
+                    "id": 4094, 
+                    "softwareDescriptionId": 1172, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4094, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "12", 
+                "setupFee": "0", 
+                "sort": 1
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17250, 
+                "item": {
+                    "description": "FreeBSD 9 Latest (64 bit)", 
+                    "id": 4138, 
+                    "softwareDescriptionId": 1131, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4138, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "database", 
+                        "id": 17, 
+                        "name": "Database Software", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17272, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Microsoft SQL Server 2012 Web Edition", 
+                    "id": 4147, 
+                    "softwareDescriptionId": 1004, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4147, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "15", 
+                "setupFee": "0", 
+                "sort": 99
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "database", 
+                        "id": 17, 
+                        "name": "Database Software", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17277, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Microsoft SQL Server 2012 Web Edition", 
+                    "id": 4147, 
+                    "softwareDescriptionId": 1004, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4147, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "60", 
+                "setupFee": "0", 
+                "sort": 99
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "database", 
+                        "id": 17, 
+                        "name": "Database Software", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17285, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Microsoft SQL Server 2012 Web Edition", 
+                    "id": 4147, 
+                    "softwareDescriptionId": 1004, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4147, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "120", 
+                "setupFee": "0", 
+                "sort": 99
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "database", 
+                        "id": 17, 
+                        "name": "Database Software", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17323, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Microsoft SQL Server 2012 Enterprise Edition", 
+                    "id": 4149, 
+                    "softwareDescriptionId": 1001, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4149, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "14724.8", 
+                "setupFee": "0", 
+                "sort": 99
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "cdp_backup", 
+                        "id": 329, 
+                        "name": "CDP Addon", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17385, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Idera Disk Agent 1 Pack", 
+                    "id": 4153, 
+                    "softwareDescriptionId": 1015, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4153, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "5", 
+                "setupFee": "0", 
+                "sort": 1
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 17430, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Ubuntu Linux 12.04 LTS Precise Pangolin (64 bit)", 
+                    "id": 4166, 
+                    "softwareDescriptionId": 1165, 
+                    "units": "N/A", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4166, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 9
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 21146, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Red Hat Enterprise Linux - 6.2 (64 bit) version-locked", 
+                    "id": 4265, 
+                    "softwareDescriptionId": 947, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4265, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 10
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "bandwidth", 
+                        "id": 10, 
+                        "name": "Public Bandwidth", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 21277, 
+                "item": {
+                    "capacity": "110000", 
+                    "description": "110000 GB Bandwidth", 
+                    "id": 4299, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4299, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "2750", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 21365, 
+                "item": {
+                    "capacity": "1", 
+                    "description": "Parallels Cloud Server 6.0 Service Provider Edition - 1 VM", 
+                    "id": 4303, 
+                    "softwareDescriptionId": 1105, 
+                    "units": "VM", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4303, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "5", 
+                "setupFee": "0", 
+                "sort": 37
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 21377, 
+                "item": {
+                    "capacity": "15", 
+                    "description": "Parallels Cloud Server 6.0 Service Provider Edition - 15 VMs", 
+                    "id": 4306, 
+                    "softwareDescriptionId": 1111, 
+                    "units": "VM", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4306, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "75", 
+                "setupFee": "0", 
+                "sort": 37
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "port_speed", 
+                        "id": 26, 
+                        "name": "Uplink Port Speeds", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": ".03", 
+                "id": 21513, 
+                "item": {
+                    "capacity": "100", 
+                    "description": "100 Mbps Dual Public & Private Networks (up to 200 Mbps)", 
+                    "id": 4336, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": 1284
+                }, 
+                "itemId": 4336, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "20", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 21794, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Red Hat Enterprise Linux - 5.8 (64 bit) - version-locked", 
+                    "id": 4380, 
+                    "softwareDescriptionId": 998, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4380, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 10
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 22243, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "Debian GNU/Linux 7.0 Wheezy/Stable (64 bit)", 
+                    "id": 4405, 
+                    "softwareDescriptionId": 1104, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4405, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 6
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 22330, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "CentOS 5.6 (32 bit) - version-locked", 
+                    "id": 4432, 
+                    "softwareDescriptionId": 847, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 4432, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "os", 
+                        "id": 12, 
+                        "name": "Operating System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 39, 
+                "item": {
+                    "description": "Red Hat Enterprise Linux - ES 4 (32 bit)", 
+                    "id": 33, 
+                    "softwareDescriptionId": 442, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 33, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 10
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "nas", 
+                        "id": 15, 
+                        "name": "Network Attached Storage", 
+                        "quantityLimit": 10
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": ".08", 
+                "id": 48, 
+                "item": {
+                    "capacity": "80", 
+                    "description": "80 GB NAS", 
+                    "id": 42, 
+                    "softwareDescriptionId": null, 
+                    "units": "GIGABYTE", 
+                    "upgradeItemId": 43
+                }, 
+                "itemId": 42, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "40", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 70, 
+                "item": {
+                    "capacity": "0", 
+                    "description": "4 x 150GB SATA Raptor 10k RAID 0", 
+                    "id": 64, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 64, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "160", 
+                "setupFee": "0", 
+                "sort": 8
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "bandwidth", 
+                        "id": 10, 
+                        "name": "Public Bandwidth", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 125, 
+                "item": {
+                    "description": "Unlimited Bandwidth (100 Mbps Uplink)", 
+                    "id": 97, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 97, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "2000", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 164, 
+                "item": {
+                    "capacity": "5", 
+                    "description": "3 x 150GB SATA Raptor 10k RAID 5", 
+                    "id": 115, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 115, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "130", 
+                "setupFee": "0", 
+                "sort": 8
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "bandwidth", 
+                        "id": 10, 
+                        "name": "Public Bandwidth", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 248, 
+                "item": {
+                    "capacity": "5000", 
+                    "description": "5000 GB Bandwidth", 
+                    "id": 173, 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": 100
+                }, 
+                "itemId": 173, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 293, 
+                "item": {
+                    "description": "3 x 750GB SATA II", 
+                    "id": 201, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 201, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "150", 
+                "setupFee": "0", 
+                "sort": 5
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system", 
+                        "id": 19, 
+                        "name": "Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 297, 
+                "item": {
+                    "description": "4 x 150GB SATA Raptor 10k", 
+                    "id": 205, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 205, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "120", 
+                "setupFee": "0", 
+                "sort": 7
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 324, 
+                "item": {
+                    "capacity": "1", 
+                    "description": "2 x 73GB 10k RPM SA-SCSI RAID 1", 
+                    "id": 231, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 231, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "110", 
+                "setupFee": "0", 
+                "sort": 2
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 325, 
+                "item": {
+                    "capacity": "5", 
+                    "description": "3 x 73GB 10k RPM SA-SCSI RAID 5", 
+                    "id": 232, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 232, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "140", 
+                "setupFee": "0", 
+                "sort": 2
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "second_processor", 
+                        "id": 2, 
+                        "name": "Second Processor", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 355, 
+                "item": {
+                    "description": "Dual Core Xeon 5050 - 3.00GHz  (Dempsey) - 4 x 2MB cache - HT", 
+                    "id": 260, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 260, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 370, 
+                "item": {
+                    "capacity": "1", 
+                    "description": "2 x 147GB 15k RPM SA-SCSI RAID 1", 
+                    "id": 275, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 275, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "250", 
+                "setupFee": "0", 
+                "sort": 8
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk_system_scsi", 
+                        "id": 27, 
+                        "name": "SCSI Disk System", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 372, 
+                "item": {
+                    "capacity": "10", 
+                    "description": "4 x 147GB 15k RPM SA-SCSI RAID 10", 
+                    "id": 277, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 277, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "450", 
+                "setupFee": "0", 
+                "sort": 8
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "av_spyware_protection", 
+                        "id": 28, 
+                        "name": "Anti-Virus & Spyware Protection", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 414, 
+                "item": {
+                    "description": "McAfee Total Protection - Windows", 
+                    "id": 303, 
+                    "softwareDescriptionId": 821, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 303, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "5", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "vulnerability_scanner", 
+                        "id": 32, 
+                        "name": "Vulnerability Assessments & Management", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "hourlyRecurringFee": "0", 
+                "id": 418, 
+                "item": {
+                    "description": "Nessus Vulnerability Assessment & Reporting", 
+                    "id": 307, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 307, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "second_processor", 
+                        "id": 2, 
+                        "name": "Second Processor", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 491, 
+                "item": {
+                    "description": "Quad Core Xeon 5310 - 1.60GHz  (Clovertown) - 1 x 8MB cache", 
+                    "id": 358, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 358, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "0", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "ram", 
+                        "id": 3, 
+                        "name": "Ram", 
+                        "quantityLimit": 0
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 702, 
+                "item": {
+                    "capacity": "6", 
+                    "description": "6 GB FB-DIMM Registered 533/667", 
+                    "id": 255, 
+                    "prices": [
+                        null
+                    ], 
+                    "softwareDescriptionId": null, 
+                    "units": "GB", 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 255, 
+                "laborFee": "0", 
+                "onSaleFlag": null, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "30", 
+                "setupFee": "0", 
+                "sort": 0
+            }, 
+            {
+                "accountRestrictions": [], 
+                "categories": [
+                    {
+                        "categoryCode": "server", 
+                        "id": 1, 
+                        "name": "Server", 
+                        "quantityLimit": 20
+                    }
+                ], 
+                "currentPriceFlag": null, 
+                "id": 723, 
+                "item": {
+                    "description": "Dual Processor Quad Core Xeon 5310 - 1.60GHz  (Clovertown) - 2 x 8MB cache", 
+                    "hardwareGenericComponentModel": {
+                        "capacity": "1.6", 
+                        "description": "XEON-5310-QuadCore-Clovertown", 
+                        "hardwareComponentModels": [
+                            {
+                                "capacity": "1.6", 
+                                "description": "1.6GHz:1333FSB", 
+                                "hardwareGenericComponentModel": null, 
+                                "hardwareGenericComponentModelId": 170, 
+                                "id": 131, 
+                                "manufacturer": "Intel", 
+                                "name": "Xeon-Clovertown", 
+                                "version": "5310-QuadCore"
+                            }, 
+                            {
+                                "capacity": "1.6", 
+                                "description": "1.6GHz:1333FSB", 
+                                "hardwareGenericComponentModel": null, 
+                                "hardwareGenericComponentModelId": 170, 
+                                "id": 151, 
+                                "manufacturer": "Intel", 
+                                "name": "Xeon-Clovertown", 
+                                "version": "5310L-QuadCore"
+                            }
+                        ], 
+                        "hardwareComponentType": {
+                            "id": 2, 
+                            "type": "Processor", 
+                            "typeParentId": 3
+                        }, 
+                        "hardwareComponentTypeId": 2, 
+                        "id": 170, 
+                        "units": "GHz", 
+                        "upgradePriority": 304
+                    }, 
+                    "id": 357, 
+                    "softwareDescriptionId": null, 
+                    "upgradeItemId": null
+                }, 
+                "itemId": 357, 
+                "laborFee": "0", 
+                "onSaleFlag": false, 
+                "oneTimeFee": "0", 
+                "quantity": null, 
+                "recurringFee": "259", 
+                "setupFee": "0", 
+                "sort": 2
+            }, 
+            {
+                "categories": [
+                    {
+                        "categoryCode": "disk17", 
+                        "id": 103, 
+                        "name": "Eighteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk7", 
+                        "id": 39, 
+                        "name": "Eighth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk10", 
+                        "id": 42, 
+                        "name": "Eleventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk14", 
+                        "id": 100, 
+                        "name": "Fifteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk4", 
+                        "id": 36, 
+                        "name": "Fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk13", 
+                        "id": 99, 
+                        "name": "Fourteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk3", 
+                        "id": 7, 
+                        "name": "Fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk18", 
+                        "id": 104, 
+                        "name": "Nineteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk8", 
+                        "id": 40, 
+                        "name": "Ninth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk16", 
+                        "id": 102, 
+                        "name": "Seventeenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk6", 
+                        "id": 38, 
+                        "name": "Seventh Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk15", 
+                        "id": 101, 
+                        "name": "Sixteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk5", 
+                        "id": 37, 
+                        "name": "Sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk9", 
+                        "id": 41, 
+                        "name": "Tenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk2", 
+                        "id": 6, 
+                        "name": "Third Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk12", 
+                        "id": 98, 
+                        "name": "Thirteenth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk29", 
+                        "id": 131, 
+                        "name": "Thirtieth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk34", 
+                        "id": 136, 
+                        "name": "Thirty-fifth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk30", 
+                        "id": 132, 
+                        "name": "Thirty-first Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk33", 
+                        "id": 135, 
+                        "name": "Thirty-fourth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk31", 
+                        "id": 133, 
+                        "name": "Thirty-second Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+                    {
+                        "categoryCode": "disk35", 
+                        "id": 137, 
+                        "name": "Thirty-sixth Hard Drive", 
+                        "quantityLimit": 0
+                    }, 
+    

<TRUNCATED>

[3/3] git commit: JCLOUDS-213: Fixing SoftLayer support

Posted by an...@apache.org.
JCLOUDS-213: Fixing SoftLayer support


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/f2784503
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/f2784503
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/f2784503

Branch: refs/heads/1.6.x
Commit: f278450355bbaa95c841c2f857a528091b90d723
Parents: 0298318
Author: Andrea Turli <an...@gmail.com>
Authored: Mon Jul 29 18:43:08 2013 +0200
Committer: Andrew Phillips <an...@apache.org>
Committed: Sun Nov 10 12:03:46 2013 -0500

----------------------------------------------------------------------
 .../softlayer/SoftLayerProviderMetadata.java    |     2 +-
 .../SoftLayerComputeServiceContextModule.java   |     2 +-
 .../compute/functions/ProductItemToImage.java   |    23 +-
 .../compute/functions/ProductItems.java         |     8 +-
 .../functions/VirtualGuestToNodeMetadata.java   |     6 +-
 .../SoftLayerComputeServiceAdapter.java         |     1 -
 .../jclouds/softlayer/domain/ProductOrder.java  |     2 +-
 .../softlayer/features/AccountAsyncClient.java  |    14 +-
 .../softlayer/features/AccountClient.java       |    16 +-
 .../SoftLayerComputeServiceAdapterLiveTest.java |    12 +-
 .../SoftLayerComputeServiceLiveTest.java        |    19 +-
 .../SoftLayerTemplateBuilderLiveTest.java       |    10 +-
 .../functions/ProductItemToImageTest.java       |    38 +-
 .../features/AccountClientExpectTest.java       |   130 +
 .../features/AccountClientLiveTest.java         |    10 +-
 .../features/BaseSoftLayerClientLiveTest.java   |    35 +
 .../features/DatacenterClientLiveTest.java      |    17 +-
 .../features/ProductPackageClientLiveTest.java  |    38 +-
 .../features/VirtualGuestClientLiveTest.java    |    76 +-
 .../src/test/resources/get_active_packages.json | 38287 +++++++++++++++++
 .../resources/get_reduced_active_packages.json  |    10 +
 21 files changed, 38608 insertions(+), 148 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/SoftLayerProviderMetadata.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/SoftLayerProviderMetadata.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/SoftLayerProviderMetadata.java
index 7efda6f..56bb71e 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/SoftLayerProviderMetadata.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/SoftLayerProviderMetadata.java
@@ -91,7 +91,7 @@ public class SoftLayerProviderMetadata extends BaseProviderMetadata {
          .apiMetadata(new SoftLayerApiMetadata())
          .homepage(URI.create("http://www.softlayer.com"))
          .console(URI.create("https://manage.softlayer.com"))
-         .iso3166Codes("SG","US-CA","US-TX","US-VA","US-WA","US-TX", "NL")
+         .iso3166Codes("SG","US-CA","US-TX","US-VA","US-WA","US-TX", "NL", "NSFTW-IL")  // NSFTW-IL is a weird isoCode returned by Softlayer
          .endpoint("https://api.softlayer.com/rest")
          .defaultProperties(SoftLayerProviderMetadata.defaultProperties());
       }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/config/SoftLayerComputeServiceContextModule.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/config/SoftLayerComputeServiceContextModule.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/config/SoftLayerComputeServiceContextModule.java
index a84b6e9..832e7f4 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/config/SoftLayerComputeServiceContextModule.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/config/SoftLayerComputeServiceContextModule.java
@@ -101,7 +101,7 @@ public class SoftLayerComputeServiceContextModule extends
                   public ProductPackage get() {
                      AccountClient accountClient = client.getAccountClient();
                      ProductPackageClient productPackageClient = client.getProductPackageClient();
-                     ProductPackage p = find(accountClient.getActivePackages(), named(virtualGuestPackageName));
+                     ProductPackage p = find(accountClient.getReducedActivePackages(), named(virtualGuestPackageName));
                      return productPackageClient.getProductPackage(p.getId());
                   }
                   

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItemToImage.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItemToImage.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItemToImage.java
index 31c4148..f8606b3 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItemToImage.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItemToImage.java
@@ -16,15 +16,8 @@
  */
 package org.jclouds.softlayer.compute.functions;
 
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import javax.annotation.Resource;
-import javax.inject.Named;
-import javax.inject.Singleton;
-
+import com.google.common.base.Function;
+import com.google.common.base.Objects;
 import org.jclouds.compute.domain.Image;
 import org.jclouds.compute.domain.ImageBuilder;
 import org.jclouds.compute.domain.OperatingSystem;
@@ -34,8 +27,13 @@ import org.jclouds.logging.Logger;
 import org.jclouds.softlayer.domain.ProductItem;
 import org.jclouds.softlayer.domain.ProductItemPrice;
 
-import com.google.common.base.Function;
-import com.google.common.base.Objects;
+import javax.annotation.Resource;
+import javax.inject.Named;
+import javax.inject.Singleton;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import static com.google.common.base.Preconditions.checkNotNull;
 
 /**
  * @author Jason King
@@ -162,7 +160,6 @@ public class ProductItemToImage implements Function<ProductItem, Image> {
                   return Integer.parseInt(m.group(1));
                }
             }
-
             return null;
          }
       };
@@ -179,7 +176,7 @@ public class ProductItemToImage implements Function<ProductItem, Image> {
          public String apply(ProductItem productItem) {
             checkNotNull(productItem, "productItem");
             ProductItemPrice price = ProductItems.price().apply(productItem);
-            return "" + price.getId();
+            return String.valueOf(checkNotNull(price, "price").getId());
          }
       };
    }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItems.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItems.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItems.java
index 7c551e1..a3460d3 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItems.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/ProductItems.java
@@ -19,6 +19,9 @@ package org.jclouds.softlayer.compute.functions;
 import java.util.NoSuchElementException;
 import java.util.Set;
 
+import com.google.common.collect.Sets;
+import org.jclouds.compute.reference.ComputeServiceConstants;
+import org.jclouds.logging.Logger;
 import org.jclouds.softlayer.domain.ProductItem;
 import org.jclouds.softlayer.domain.ProductItemCategory;
 import org.jclouds.softlayer.domain.ProductItemPrice;
@@ -26,6 +29,9 @@ import org.jclouds.softlayer.domain.ProductItemPrice;
 import com.google.common.base.Function;
 import com.google.common.collect.Iterables;
 
+import javax.annotation.Resource;
+import javax.inject.Named;
+
 public class ProductItems {
 
    /**
@@ -60,7 +66,7 @@ public class ProductItems {
       return new Function<ProductItem, ProductItemPrice>() {
          @Override
          public ProductItemPrice apply(ProductItem productItem) {
-            if (productItem.getPrices().size() < 1)
+            if (productItem.getPrices().isEmpty())
                throw new NoSuchElementException("ProductItem has no prices:" + productItem);
             return Iterables.get(productItem.getPrices(), 0);
          }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java
index 93f0fc4..1d2f961 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java
@@ -88,10 +88,8 @@ public class VirtualGuestToNodeMetadata implements Function<VirtualGuest, NodeMe
       if (image != null) {
          builder.imageId(image.getId());
          builder.operatingSystem(image.getOperatingSystem());
+         builder.hardware(hardware.getHardware(from));
       }
-
-      builder.hardware(hardware.getHardware(from));
-
       builder.status(serverStateToNodeStatus.get(from.getPowerState().getKeyName()));
 
       // These are null for 'bad' guest orders in the HALTED state.
@@ -147,6 +145,8 @@ public class VirtualGuestToNodeMetadata implements Function<VirtualGuest, NodeMe
             return null;
          Iterable<ProductItem> items = Iterables.transform(order.getPrices(), ProductItems.item());
          ProductItem os = Iterables.find(items, ProductItemPredicates.categoryCode("os"));
+         if (os.getPrices().isEmpty())
+             return null;
          return new ProductItemToImage().apply(os);
       }
    }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java
index 5e614bb..0b2fc89 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java
@@ -65,7 +65,6 @@ import com.google.common.base.Splitter;
 import com.google.common.base.Supplier;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSet.Builder;
-import com.google.common.collect.Iterables;
 
 /**
  * defines the connection between the {@link SoftLayerClient} implementation and

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/ProductOrder.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/ProductOrder.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/ProductOrder.java
index a0f7072..1cb8606 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/ProductOrder.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/ProductOrder.java
@@ -140,7 +140,7 @@ public class ProductOrder {
    private final boolean useHourlyPricing;
 
    @ConstructorProperties({
-         "packageId", "location", "prices", "virtualGuest", "quantity", "useHourlyPricing"
+      "packageId", "location", "prices", "virtualGuests", "quantity", "useHourlyPricing"
    })
    protected ProductOrder(int packageId, @Nullable String location, @Nullable Set<ProductItemPrice> prices, @Nullable Set<VirtualGuest> virtualGuests, int quantity, boolean useHourlyPricing) {
       this.packageId = packageId;

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountAsyncClient.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountAsyncClient.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountAsyncClient.java
index fcb6b87..810baaf 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountAsyncClient.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountAsyncClient.java
@@ -26,6 +26,7 @@ import javax.ws.rs.core.MediaType;
 import org.jclouds.Fallbacks.NullOnNotFoundOr404;
 import org.jclouds.http.filters.BasicAuthentication;
 import org.jclouds.rest.annotations.Fallback;
+import org.jclouds.rest.annotations.QueryParams;
 import org.jclouds.rest.annotations.RequestFilters;
 import org.jclouds.softlayer.domain.ProductPackage;
 
@@ -34,7 +35,7 @@ import com.google.common.util.concurrent.ListenableFuture;
 /**
  * Provides asynchronous access to Account via their REST API.
  * <p/>
- * 
+ *
  * @see AccountClient
  * @see <a href="http://sldn.softlayer.com/article/REST" />
  * @author Jason King
@@ -46,6 +47,16 @@ import com.google.common.util.concurrent.ListenableFuture;
 public interface AccountAsyncClient {
 
    /**
+    * @see AccountClient#getReducedActivePackages()
+    */
+   @GET
+   @Path("/SoftLayer_Account/ActivePackages.json")
+   @Consumes(MediaType.APPLICATION_JSON)
+   @Fallback(NullOnNotFoundOr404.class)
+   @QueryParams(keys = "objectMask", values = "id;name")
+   ListenableFuture<Set<ProductPackage>> getReducedActivePackages();
+
+    /**
     * @see AccountClient#getActivePackages()
     */
    @GET
@@ -54,5 +65,4 @@ public interface AccountAsyncClient {
    @Fallback(NullOnNotFoundOr404.class)
    ListenableFuture<Set<ProductPackage>> getActivePackages();
 
-
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountClient.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountClient.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountClient.java
index 9b2f85a..d58cff3 100644
--- a/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountClient.java
+++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/features/AccountClient.java
@@ -31,15 +31,15 @@ import org.jclouds.softlayer.domain.ProductPackage;
 public interface AccountClient {
 
    /**
-    * 
-    * @return Gets all the active packages.
-    * This will give you a basic description of the packages that are currently
-    * active and from which you can order a server or additional services.
-    *
-    * Calling ProductPackage.getItems() will return an empty set.
-    * Use ProductPackageClient.getProductPackage(long id) to obtain items data.
-    * @see ProductPackageClient#getProductPackage
+    * @return return all the active packages.
     */
    Set<ProductPackage> getActivePackages();
 
+
+   /**
+    * @return return all the active packages's id and name.
+    * @see #getActivePackages()
+    */
+   Set<ProductPackage> getReducedActivePackages();
+
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java
index 425918c..6d0c7c8 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceAdapterLiveTest.java
@@ -21,9 +21,12 @@ import static org.testng.Assert.assertFalse;
 
 import java.util.Properties;
 import java.util.Random;
+import java.util.concurrent.TimeUnit;
 
+import com.google.common.base.Stopwatch;
 import org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials;
 import org.jclouds.compute.domain.ExecResponse;
+import org.jclouds.compute.domain.OsFamily;
 import org.jclouds.compute.domain.Template;
 import org.jclouds.compute.domain.TemplateBuilder;
 import org.jclouds.compute.functions.DefaultCredentialsFromImageOrOverridingCredentials;
@@ -67,7 +70,7 @@ public class SoftLayerComputeServiceAdapterLiveTest extends BaseSoftLayerClientL
 
    @Test
    public void testListLocations() {
-      assertFalse(Iterables.isEmpty(adapter.listLocations()));
+      assertFalse(Iterables.isEmpty(adapter.listLocations()), "locations must not be empty");
    }
 
    private static final PrioritizeCredentialsFromTemplate prioritizeCredentialsFromTemplate = new PrioritizeCredentialsFromTemplate(
@@ -128,4 +131,11 @@ public class SoftLayerComputeServiceAdapterLiveTest extends BaseSoftLayerClientL
    protected Iterable<Module> setupModules() {
       return ImmutableSet.<Module> of(getLoggingModule(), new SshjSshClientModule());
    }
+
+   @Override
+   protected Properties setupProperties() {
+      Properties properties = super.setupProperties();
+      properties.setProperty("jclouds.ssh.max-retries", "10");
+      return properties;
+   }
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceLiveTest.java
index 15824aa..94dc2ab 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerComputeServiceLiveTest.java
@@ -24,13 +24,15 @@ import org.testng.annotations.Test;
 import com.google.common.collect.ImmutableMap;
 import com.google.inject.Module;
 
+import java.util.Properties;
+
 /**
- * 
+ *
  * Generally disabled, as it incurs higher fees.
- * 
+ *
  * @author Adrian Cole
  */
-@Test(groups = "live", enabled = true, sequential = true)
+@Test(groups = "live", enabled = true, singleThreaded = true)
 public class SoftLayerComputeServiceLiveTest extends BaseComputeServiceLiveTest {
 
    public SoftLayerComputeServiceLiveTest() {
@@ -42,7 +44,7 @@ public class SoftLayerComputeServiceLiveTest extends BaseComputeServiceLiveTest
    protected Module getSshModule() {
       return new SshjSshClientModule();
    }
-   
+
    // softlayer does not support metadata
    @Override
    protected void checkUserMetadataContains(NodeMetadata node, ImmutableMap<String, String> userMetadata) {
@@ -54,4 +56,11 @@ public class SoftLayerComputeServiceLiveTest extends BaseComputeServiceLiveTest
    public void testOptionToNotBlock() {
       // start call is blocking anyway.
    }
-}
+
+   @Override
+   protected Properties setupProperties() {
+      Properties properties = super.setupProperties();
+      properties.setProperty("jclouds.ssh.max-retries", "20");
+      return properties;
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerTemplateBuilderLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerTemplateBuilderLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerTemplateBuilderLiveTest.java
index 98f31e7..ddb85db 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerTemplateBuilderLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/SoftLayerTemplateBuilderLiveTest.java
@@ -47,6 +47,8 @@ import com.google.common.collect.ImmutableSet;
 @Test(groups = "live")
 public class SoftLayerTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest {
 
+   public static final int MAX_RAM = 48 * 1024;
+
    public SoftLayerTemplateBuilderLiveTest() {
       provider = "softlayer";
    }
@@ -141,7 +143,7 @@ public class SoftLayerTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
 
          Template template = context.getComputeService().templateBuilder().biggest().build();
          assertEquals(getCores(template.getHardware()), 16.0d);
-         assertEquals(template.getHardware().getRam(), 16*1024);
+         assertEquals(template.getHardware().getRam(), MAX_RAM);
          assertEquals(getSpace(template.getHardware()), 100.0d);
          assertEquals(template.getHardware().getVolumes().get(0).getType(), Volume.Type.SAN);
       } finally {
@@ -181,7 +183,7 @@ public class SoftLayerTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
          
          Template template = context.getComputeService().templateBuilder().biggest().build();
          assertEquals(getCores(template.getHardware()), 8.0d);
-         assertEquals(template.getHardware().getRam(), 16*1024);
+         assertEquals(template.getHardware().getRam(), MAX_RAM);
          assertEquals(getSpace(template.getHardware()), 100.0d);
          assertEquals(template.getHardware().getVolumes().get(0).getType(), Volume.Type.LOCAL);
       } finally {
@@ -203,14 +205,14 @@ public class SoftLayerTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTes
    public void testBiggestTemplateBuilder() throws IOException {
       Template template = view.getComputeService().templateBuilder().biggest().build();
       assertEquals(getCores(template.getHardware()), 16.0d);
-      assertEquals(template.getHardware().getRam(), 16*1024);
+      assertEquals(template.getHardware().getRam(), MAX_RAM);
       assertEquals(getSpace(template.getHardware()), 100.0d);
       assertEquals(template.getHardware().getVolumes().get(0).getType(), Volume.Type.LOCAL);
    }
 
    @Override
    protected Set<String> getIso3166Codes() {
-      return ImmutableSet.<String> of("SG", "US-CA", "US-TX", "US-VA", "US-WA", "NL");
+      return ImmutableSet.<String> of("SG", "US-CA", "US-TX", "US-VA", "US-WA", "NL", "NSFTW-IL");
    }
 
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/functions/ProductItemToImageTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/functions/ProductItemToImageTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/functions/ProductItemToImageTest.java
index 3a6426d..ebf439c 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/functions/ProductItemToImageTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/compute/functions/ProductItemToImageTest.java
@@ -20,11 +20,11 @@ import static org.jclouds.softlayer.compute.functions.ProductItemToImage.imageId
 import static org.jclouds.softlayer.compute.functions.ProductItemToImage.osBits;
 import static org.jclouds.softlayer.compute.functions.ProductItemToImage.osFamily;
 import static org.jclouds.softlayer.compute.functions.ProductItemToImage.osVersion;
-import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertNotNull;
-import static org.testng.AssertJUnit.assertNull;
-import static org.testng.AssertJUnit.assertTrue;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertNotNull;
+import static org.testng.Assert.assertNull;
+import static org.testng.Assert.assertTrue;
 
 import java.util.Arrays;
 import java.util.List;
@@ -125,8 +125,8 @@ public class ProductItemToImageTest {
          Image i = new ProductItemToImage().apply(item);
          OperatingSystem os = i.getOperatingSystem();
          assertNotNull(os);
-         assertEquals(OsFamily.UBUNTU, os.getFamily());
-         assertEquals("10.04",os.getVersion());
+         assertEquals(os.getFamily(), OsFamily.UBUNTU);
+         assertEquals(os.getVersion(), "10.04");
          assertTrue(os.is64Bit());
    }
 
@@ -139,8 +139,8 @@ public class ProductItemToImageTest {
       Image i = new ProductItemToImage().apply(item);
       OperatingSystem os = i.getOperatingSystem();
       assertNotNull(os);
-      assertEquals(OsFamily.UBUNTU, os.getFamily());
-      assertEquals("10.04",os.getVersion());
+      assertEquals(os.getFamily(), OsFamily.UBUNTU);
+      assertEquals(os.getVersion(), "10.04");
       assertFalse(os.is64Bit());
    }
 
@@ -154,7 +154,7 @@ public class ProductItemToImageTest {
       Image i = new ProductItemToImage().apply(item);
       OperatingSystem os = i.getOperatingSystem();
       assertNotNull(os);
-      assertEquals(OsFamily.UNRECOGNIZED, os.getFamily());
+      assertEquals(os.getFamily(), OsFamily.UNRECOGNIZED);
       assertNull(os.getVersion());
       assertFalse(os.is64Bit());
    }
@@ -168,7 +168,7 @@ public class ProductItemToImageTest {
       Image i = new ProductItemToImage().apply(item);
       OperatingSystem os = i.getOperatingSystem();
       assertNotNull(os);
-      assertEquals(OsFamily.UNRECOGNIZED, os.getFamily());
+      assertEquals(os.getFamily(), OsFamily.UNRECOGNIZED);
       assertNull(os.getVersion());
       assertTrue(os.is64Bit());
    }
@@ -189,16 +189,16 @@ public class ProductItemToImageTest {
    @Test
    public void testId() {
       ProductItemPrice price = ProductItemPrice.builder().id(1234).build();
-      ProductItem item = ProductItem.builder().prices(price).build();
-      assertEquals("1234",imageId().apply(item));
+      ProductItem item = ProductItem.builder().id(5678).prices(price).build();
+      assertEquals(imageId().apply(item), "1234", "Expected the ID of the ProductItemPrice to be returned");
    }
 
    @Test
    public void testIdManyPrices() {
       ProductItemPrice price1 = ProductItemPrice.builder().id(1234).build();
       ProductItemPrice price2 = ProductItemPrice.builder().id(5678).build();
-      ProductItem item = ProductItem.builder().prices(ImmutableSet.of(price1,price2)).build();
-      assertEquals("1234",imageId().apply(item));
+      ProductItem item = ProductItem.builder().id(9012).prices(ImmutableSet.of(price1,price2)).build();
+      assertEquals(imageId().apply(item), "1234", "Expected the ID of the ProductItemPrice to be returned");
    }
 
    @Test(expectedExceptions = NoSuchElementException.class)
@@ -214,17 +214,17 @@ public class ProductItemToImageTest {
 
    @Test
    public void testOsFamily() {
-      assertEquals(OsFamily.UBUNTU,osFamily().apply("Ubuntu Linux os"));
+      assertEquals(osFamily().apply("Ubuntu Linux os"), OsFamily.UBUNTU);
    }
 
    @Test
    public void testOsFamilyUnrecognized() {
-      assertEquals(OsFamily.UNRECOGNIZED,osFamily().apply("not a known operating system"));
+      assertEquals(osFamily().apply("not a known operating system"), OsFamily.UNRECOGNIZED);
    }
    
    @Test
    public void testOsFamilyNull() {
-      assertEquals(OsFamily.UNRECOGNIZED,osFamily().apply(null));
+      assertEquals(osFamily().apply(null), OsFamily.UNRECOGNIZED);
    }
 
    @Test
@@ -249,7 +249,7 @@ public class ProductItemToImageTest {
 
    @Test
    public void testOsVersion() {
-      assertEquals("2099",osVersion().apply("Windows Server 2099 (256 bit)"));
+      assertEquals(osVersion().apply("Windows Server 2099 (256 bit)"), "2099");
    }
 
    @Test

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientExpectTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientExpectTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientExpectTest.java
new file mode 100644
index 0000000..651dbab
--- /dev/null
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientExpectTest.java
@@ -0,0 +1,130 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jclouds.softlayer.features;
+
+import com.google.common.collect.ImmutableSet;
+import org.jclouds.http.HttpRequest;
+import org.jclouds.http.HttpResponse;
+import org.jclouds.rest.internal.BaseRestClientExpectTest;
+import org.jclouds.softlayer.SoftLayerClient;
+import org.jclouds.softlayer.domain.ProductPackage;
+import org.testng.annotations.Test;
+
+import java.net.URI;
+
+import static org.testng.Assert.assertEquals;
+
+/**
+ *
+ * @author Adrian Cole
+ */
+@Test(groups = "unit", testName = "AccountClientExpectTest")
+public class AccountClientExpectTest extends BaseRestClientExpectTest<SoftLayerClient> {
+
+   public static String ACTIVE_PACKAGE_MASK = "id;name";
+
+   public AccountClientExpectTest() {
+     provider = "softlayer";
+   }
+
+   public void testGetActivePackagesWhenResponseIs2xx() {
+
+      SoftLayerClient client = requestSendsResponse(HttpRequest.builder().method("GET")
+                      .endpoint("https://api.softlayer.com/rest/v3/SoftLayer_Account/ActivePackages.json")
+                      .addHeader("Accept", "application/json")
+                      .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
+                      .build(),
+
+              HttpResponse.builder()
+                      .statusCode(200)
+                      .payload(payloadFromResource("/get_active_packages.json"))
+                      .build());
+
+
+
+      assertEquals(client.getAccountClient().getActivePackages(),
+              ImmutableSet.of(
+                      ProductPackage.builder()
+                              .id(13)
+                              .name("Dual Xeon (Dual Core) Woodcrest/Cloverton")
+                              .description("<div class=\"PageTopicSubHead\">Dual Processor Multi-core Servers</div>")
+                              .build(),
+                      ProductPackage.builder()
+                              .id(15)
+                              .name("Single Xeon (Dual Core) Woodcrest/Cloverton")
+                              .description("<div class=\"PageTopicSubHead\">Single Processor Multi-core Servers</div>")
+                              .build()));
+   }
+
+   public void testGetActivePackagesWhenResponseIs404() {
+      SoftLayerClient client = requestSendsResponse(HttpRequest.builder()
+                        .method("GET")
+                        .endpoint("https://api.softlayer.com/rest/v3/SoftLayer_Account/ActivePackages.json")
+                        .addHeader("Accept", "application/json")
+                        .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
+                        .build(),
+                HttpResponse.builder()
+                            .statusCode(404)
+                            .build());
+
+      assertEquals(client.getAccountClient().getActivePackages(), null);
+   }
+
+   public void testGetReducedActivePackagesWhenResponseIs2xx() {
+      SoftLayerClient client = requestSendsResponse(
+             HttpRequest.builder().method("GET")
+                     .endpoint("https://api.softlayer.com/rest/v3/SoftLayer_Account/ActivePackages.json")
+                     .addHeader("Accept", "application/json")
+                     .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
+                     .addQueryParam("objectMask", ACTIVE_PACKAGE_MASK)
+                     .build(),
+
+             HttpResponse.builder()
+                     .statusCode(200)
+                     .payload(payloadFromResource("/get_reduced_active_packages.json"))
+                     .build());
+
+      assertEquals(client.getAccountClient().getReducedActivePackages(),
+             ImmutableSet.of(
+                     ProductPackage.builder()
+                             .id(13)
+                             .name("Dual Xeon (Dual Core) Woodcrest/Cloverton")
+                             .description("<div class=\"PageTopicSubHead\">Dual Processor Multi-core Servers</div>")
+                             .build(),
+                     ProductPackage.builder()
+                             .id(15)
+                             .name("Single Xeon (Dual Core) Woodcrest/Cloverton")
+                             .description("<div class=\"PageTopicSubHead\">Single Processor Multi-core Servers</div>")
+                             .build()));
+   }
+
+   public void testGetReducedActivePackagesWhenResponseIs404() {
+      SoftLayerClient client = requestSendsResponse(
+             HttpRequest.builder()
+                     .method("GET")
+                     .endpoint("https://api.softlayer.com/rest/v3/SoftLayer_Account/ActivePackages.json")
+                     .addHeader("Accept", "application/json")
+                     .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
+                     .addQueryParam("objectMask", ACTIVE_PACKAGE_MASK)
+                     .build(),
+             HttpResponse.builder()
+                     .statusCode(404)
+                     .build());
+      assertEquals(client.getAccountClient().getReducedActivePackages(), null);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientLiveTest.java
index 936c784..5c85e48 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/AccountClientLiveTest.java
@@ -20,6 +20,7 @@ import static org.testng.Assert.assertTrue;
 
 import java.util.Set;
 
+import org.jclouds.softlayer.domain.ProductItem;
 import org.jclouds.softlayer.domain.ProductPackage;
 import org.testng.annotations.Test;
 
@@ -37,11 +38,14 @@ public class AccountClientLiveTest extends BaseSoftLayerClientLiveTest {
       assert null != response;
 
       assertTrue(response.size() >= 0);
-      for (ProductPackage productPackage: response) {
+      for (ProductPackage p : response) {
+          ProductPackage productPackage = api.getProductPackageClient().getProductPackage(p.getId());
           assert productPackage.getId() > 0 : response;
           assert productPackage.getName() != null : response;
-          assert productPackage.getDescription() != null : response;
-          assertTrue(productPackage.getItems().isEmpty());
+
+          for (ProductItem item : productPackage.getItems()) {
+              checkProductItem(item);
+          }
       }
    }
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/BaseSoftLayerClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/BaseSoftLayerClientLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/BaseSoftLayerClientLiveTest.java
index 109a0aa..3cd9f5e 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/BaseSoftLayerClientLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/BaseSoftLayerClientLiveTest.java
@@ -17,9 +17,17 @@
 package org.jclouds.softlayer.features;
 
 import org.jclouds.apis.BaseApiLiveTest;
+import org.jclouds.compute.domain.OsFamily;
 import org.jclouds.softlayer.SoftLayerClient;
+import org.jclouds.softlayer.domain.ProductItem;
+import org.jclouds.softlayer.domain.ProductItemCategory;
+import org.jclouds.softlayer.domain.ProductItemPrice;
 import org.testng.annotations.Test;
 
+import java.util.Set;
+
+import static org.testng.Assert.*;
+
 /**
  * Tests behavior of {@code SoftLayerClient}
  * 
@@ -31,4 +39,31 @@ public class BaseSoftLayerClientLiveTest extends BaseApiLiveTest<SoftLayerClient
    public BaseSoftLayerClientLiveTest() {
       this.provider = "softlayer";
    }
+
+   public void checkProductItem(ProductItem item) {
+      assertTrue(item.getId() > 0, "item id must be more than 0");
+      assertNotNull(item.getDescription(), "item description must be not null");
+      checkCategories(item.getCategories());
+      // units and capacity may be null
+      assertFalse(item.getPrices().isEmpty());
+      for (ProductItemPrice price : item.getPrices()) {
+         checkPrice(price);
+      }
+   }
+
+   public void checkCategories(Set<ProductItemCategory> categories) {
+      for (ProductItemCategory category : categories) {
+         assertTrue(category.getId() > 0, "category id must be more than 0");
+         assertNotNull(category.getName(), "category name must be not null");
+         assertNotNull(category.getCategoryCode(), "category code must be not null");
+      }
+   }
+
+   public void checkPrice(ProductItemPrice price) {
+      assertTrue(price.getId() > 0, "price id must be more than 0");
+      assertTrue(price.getItemId() > 0, "price itemId must be more than 0");
+      assertTrue(price.getRecurringFee() != null || price.getHourlyRecurringFee() != null,
+              "price.getRecurringFee() must be not null OR price.getHourlyRecurringFee() must be not null");
+   }
+
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/DatacenterClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/DatacenterClientLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/DatacenterClientLiveTest.java
index 438efd1..dec0437 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/DatacenterClientLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/DatacenterClientLiveTest.java
@@ -54,19 +54,16 @@ public class DatacenterClientLiveTest extends BaseSoftLayerClientLiveTest {
       Builder<Datacenter> builder = ImmutableSet.builder();
       builder.add(Datacenter.builder().id(265592).name("ams01").longName("Amsterdam 1").build());
       builder.add(Datacenter.builder().id(3).name("dal01").longName("Dallas").build());
-      builder.add(Datacenter.builder().id(18171).name("sea01").longName("Seattle").build());
-      builder.add(Datacenter.builder().id(168642).name("sjc01").longName("San Jose 1").build());
-      builder.add(Datacenter.builder().id(2).name("dal00").longName("Corporate HQ").build());
-      builder.add(Datacenter.builder().id(37473).name("wdc01").longName("Washington, DC").build());
       builder.add(Datacenter.builder().id(154770).name("dal02").longName("Dallas 2").build());
-      builder.add(Datacenter.builder().id(138124).name("dal05").longName("Dallas 5").build());
-      builder.add(Datacenter.builder().id(167093).name("hou01").longName("Houston 1").build());
-      builder.add(Datacenter.builder().id(167094).name("lon01").longName("London 1").build());
       builder.add(Datacenter.builder().id(167092).name("dal04").longName("Dallas 4").build());
-      builder.add(Datacenter.builder().id(224092).name("sng01").longName("Singapore 1").build());
-      builder.add(Datacenter.builder().id(142775).name("hou02").longName("Houston 2").build());
-      builder.add(Datacenter.builder().id(142776).name("dal07").longName("Dallas 7").build());
+      builder.add(Datacenter.builder().id(138124).name("dal05").longName("Dallas 5").build());
       builder.add(Datacenter.builder().id(154820).name("dal06").longName("Dallas 6").build());
+      builder.add(Datacenter.builder().id(142776).name("dal07").longName("Dallas 7").build());
+      builder.add(Datacenter.builder().id(142775).name("hou02").longName("Houston 2").build());
+      builder.add(Datacenter.builder().id(18171).name("sea01").longName("Seattle").build());
+      builder.add(Datacenter.builder().id(168642).name("sjc01").longName("San Jose 1").build());
+      builder.add(Datacenter.builder().id(224092).name("sng01").longName("Singapore 1").build());
+      builder.add(Datacenter.builder().id(37473).name("wdc01").longName("Washington, DC").build());
       Set<Datacenter> response = api().listDatacenters();
       Set<Datacenter> expected = builder.build();
 

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/ProductPackageClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/ProductPackageClientLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/ProductPackageClientLiveTest.java
index 7d3dc9c..caf5b16 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/ProductPackageClientLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/ProductPackageClientLiveTest.java
@@ -79,22 +79,18 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
 
    @Test
    public void testGetProductPackage() {
-      for (ProductPackage productPackage : accountClient.getActivePackages()) {
+      for (ProductPackage productPackage : accountClient.getReducedActivePackages()) {
          ProductPackage response = client.getProductPackage(productPackage.getId());
 
          assert null != response;
          assert response.getId() > 0 : response;
          assert response.getName() != null : response;
-         assert response.getDescription() != null : response;
 
          assertTrue(response.getItems().size() >= 0);
          for (ProductItem item : response.getItems()) {
-            // ProductItem newDetails = client.getProductItem(item.getId());
-            // assertEquals(item.getId(), newDetails.getId());
             checkProductItem(item);
          }
 
-         assertTrue(response.getDatacenters().size() > 0);
          for (Datacenter datacenter : response.getDatacenters()) {
             checkDatacenter(datacenter);
          }
@@ -127,8 +123,6 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
 
    @Test
    public void testGetOneGBRamPrice() {
-      // Predicate p =
-      // Predicates.and(ProductItemPredicates.categoryCode("ram"),ProductItemPredicates.capacity(1.0f));
       Iterable<ProductItem> ramItems = Iterables.filter(cloudServerProductPackage.getItems(),
             Predicates.and(categoryCode("ram"), capacity(1.0f)));
 
@@ -166,28 +160,6 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
       assert Integer.valueOf(1693).equals(price.getId());
    }
 
-   private void checkProductItem(ProductItem item) {
-      assert item.getId() > 0 : item;
-      assert item.getDescription() != null : item;
-      checkCategories(item.getCategories());
-      // units and capacity may be null
-
-      assertTrue(item.getPrices().size() >= 0);
-
-      for (ProductItemPrice price : item.getPrices()) {
-         // ProductItemPrice newDetails =
-         // client.getProductItemPrice(prices.getId());
-         // assertEquals(item.getId(), newDetails.getId());
-         checkPrice(price);
-      }
-   }
-
-   private void checkPrice(ProductItemPrice price) {
-      assert price.getId() > 0 : price;
-      assert price.getItemId() > 0 : price;
-      assert price.getRecurringFee() != null || price.getHourlyRecurringFee() != null : price;
-   }
-
    private void checkDatacenter(Datacenter datacenter) {
       assert datacenter.getId() > 0 : datacenter;
       assert datacenter.getName() != null : datacenter;
@@ -207,12 +179,4 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
       if (!ImmutableSet.of("SG", "NL").contains(address.getCountry()))
          assert address.getState() != null : address;
    }
-
-   private void checkCategories(Set<ProductItemCategory> categories) {
-      for (ProductItemCategory category : categories) {
-         assert category.getId() > 0 : category;
-         assert category.getName() != null : category;
-         assert category.getCategoryCode() != null : category;
-      }
-   }
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/f2784503/providers/softlayer/src/test/java/org/jclouds/softlayer/features/VirtualGuestClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/VirtualGuestClientLiveTest.java b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/VirtualGuestClientLiveTest.java
index ad9a4fb..4fc9add 100644
--- a/providers/softlayer/src/test/java/org/jclouds/softlayer/features/VirtualGuestClientLiveTest.java
+++ b/providers/softlayer/src/test/java/org/jclouds/softlayer/features/VirtualGuestClientLiveTest.java
@@ -16,6 +16,9 @@
  */
 package org.jclouds.softlayer.features;
 
+import static com.google.common.base.Predicates.and;
+import static com.google.common.collect.Iterables.find;
+import static com.google.common.collect.Iterables.get;
 import static org.jclouds.softlayer.predicates.ProductItemPredicates.capacity;
 import static org.jclouds.softlayer.predicates.ProductItemPredicates.categoryCode;
 import static org.jclouds.softlayer.predicates.ProductItemPredicates.units;
@@ -29,6 +32,9 @@ import java.util.Properties;
 import java.util.Random;
 import java.util.Set;
 
+import com.google.common.base.Splitter;
+import org.jclouds.compute.domain.Template;
+import org.jclouds.compute.domain.TemplateBuilder;
 import org.jclouds.softlayer.SoftLayerClient;
 import org.jclouds.softlayer.compute.functions.ProductItems;
 import org.jclouds.softlayer.domain.ProductItem;
@@ -51,13 +57,14 @@ import com.google.inject.TypeLiteral;
 
 /**
  * Tests behavior of {@code VirtualGuestClient}
- * 
+ *
  * @author Adrian Cole
  */
 @Test(groups = "live")
 public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
 
    private static final String TEST_HOSTNAME_PREFIX = "livetest";
+   private TemplateBuilder templateBuilder;
 
    @Test
    public void testListVirtualGuests() throws Exception {
@@ -71,11 +78,8 @@ public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
       }
    }
 
-   @Test(enabled = false, groups = "live")
+   @Test(groups = "live")
    public void testCancelAndPlaceOrder() {
-
-      // This method was not working needs testing out.
-
       // TODO: Should also check if there are active transactions before trying to cancel.
       // objectMask: virtualGuests.activeTransaction
       for (VirtualGuest guest : api().listVirtualGuests()) {
@@ -90,43 +94,22 @@ public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
                named(ProductPackageClientLiveTest.CLOUD_SERVER_PACKAGE_NAME)).getId();
       ProductPackage productPackage = api.getProductPackageClient().getProductPackage(pkgId);
 
-      Iterable<ProductItem> ramItems = Iterables.filter(productPackage.getItems(), Predicates.and(categoryCode("ram"),
-               capacity(2.0f)));
-
-      Map<Float, ProductItem> ramToProductItem = Maps.uniqueIndex(ramItems, ProductItems.capacity());
-
-      ProductItemPrice ramPrice = ProductItems.price().apply(ramToProductItem.get(2.0f));
-
-      Iterable<ProductItem> cpuItems = Iterables.filter(productPackage.getItems(), Predicates.and(
-               units("PRIVATE_CORE"), capacity(2.0f)));
-      Map<Float, ProductItem> coresToProductItem = Maps.uniqueIndex(cpuItems, ProductItems.capacity());
-
-      ProductItemPrice cpuPrice = ProductItems.price().apply(coresToProductItem.get(2.0f));
-
-      Iterable<ProductItem> operatingSystems = Iterables.filter(productPackage.getItems(), categoryCode("os"));
-      Map<String, ProductItem> osToProductItem = Maps.uniqueIndex(operatingSystems, ProductItems.description());
-      ProductItemPrice osPrice = ProductItems.price().apply(
-               osToProductItem.get("Ubuntu Linux 8 LTS Hardy Heron - Minimal Install (64 bit)"));
-
-      Builder<ProductItemPrice> prices = ImmutableSet.builder();
-      prices.addAll(defaultPrices);
-      prices.add(ramPrice);
-      prices.add(cpuPrice);
-      prices.add(osPrice);
-
       VirtualGuest guest = VirtualGuest.builder().domain("jclouds.org").hostname(
                TEST_HOSTNAME_PREFIX + new Random().nextInt()).build();
 
-      ProductOrder order = ProductOrder.builder().packageId(pkgId).quantity(1).useHourlyPricing(true).prices(
-               prices.build()).virtualGuests(guest).build();
+      Template template = templateBuilder.build();
+
+      ProductOrder order = ProductOrder.builder()
+              .packageId(productPackage.getId())
+              .quantity(1)
+              .location(template.getLocation().getId())
+              .useHourlyPricing(true)
+              .prices(getPrices(template, productPackage))
+              .virtualGuests(guest).build();
 
       ProductOrderReceipt receipt = api().orderVirtualGuest(order);
       ProductOrder order2 = receipt.getOrderDetails();
-      VirtualGuest result = Iterables.get(order2.getVirtualGuests(), 0);
-
-      ProductOrder order3 = api().getOrderTemplate(result.getId());
-
-      assertEquals(order.getPrices(), order3.getPrices());
+      assertEquals(order.getPrices(), order2.getPrices());
       assertNotNull(receipt);
    }
 
@@ -135,6 +118,7 @@ public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
    @Override
    protected SoftLayerClient create(Properties props, Iterable<Module> modules) {
       Injector injector = newBuilder().modules(modules).overrides(props).buildInjector();
+      templateBuilder = injector.getInstance(TemplateBuilder.class);
       defaultPrices = injector.getInstance(Key.get(new TypeLiteral<Iterable<ProductItemPrice>>() {
       }));
       return injector.getInstance(SoftLayerClient.class);
@@ -157,8 +141,6 @@ public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
       assert vg.getMaxCpu() > 0 : vg;
       assert vg.getMaxCpuUnits() != null : vg;
       assert vg.getMaxMemory() > 0 : vg;
-      assert vg.getMetricPollDate() != null : vg;
-      assert vg.getModifyDate() != null : vg;
       assert vg.getStartCpus() > 0 : vg;
       assert vg.getStatusId() >= 0 : vg;
       assert vg.getUuid() != null : vg;
@@ -166,4 +148,22 @@ public class VirtualGuestClientLiveTest extends BaseSoftLayerClientLiveTest {
       assert vg.getPrimaryIpAddress() != null : vg;
    }
 
+   private Iterable<ProductItemPrice> getPrices(Template template, ProductPackage productPackage) {
+      Builder<ProductItemPrice> result = ImmutableSet.builder();
+
+      int imageId = Integer.parseInt(template.getImage().getId());
+      result.add(ProductItemPrice.builder().id(imageId).build());
+
+      Iterable<String> hardwareIds = Splitter.on(",").split(template.getHardware().getId());
+      for (String hardwareId : hardwareIds) {
+         int id = Integer.parseInt(hardwareId);
+         result.add(ProductItemPrice.builder().id(id).build());
+      }
+      float portSpeed = 10f;
+      ProductItem uplinkItem = find(productPackage.getItems(),
+              and(capacity(portSpeed), categoryCode("port_speed")));
+      result.add(get(uplinkItem.getPrices(), 0));
+      result.addAll(defaultPrices);
+      return result.build();
+   }
 }