libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [3/5] libcloud git commit: Add tests for Softlayer loadbalancer driver
Date Sun, 03 May 2015 00:38:37 GMT
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5d7b1d84/libcloud/test/loadbalancer/fixtures/softlayer/v3__SoftLayer_Product_Order_placeOrder.xml
----------------------------------------------------------------------
diff --git a/libcloud/test/loadbalancer/fixtures/softlayer/v3__SoftLayer_Product_Order_placeOrder.xml
b/libcloud/test/loadbalancer/fixtures/softlayer/v3__SoftLayer_Product_Order_placeOrder.xml
new file mode 100644
index 0000000..3cc4b9c
--- /dev/null
+++ b/libcloud/test/loadbalancer/fixtures/softlayer/v3__SoftLayer_Product_Order_placeOrder.xml
@@ -0,0 +1,709 @@
+<?xml version="1.0" encoding="utf-8"?>
+<params>
+<param>
+ <value>
+  <struct>
+   <member>
+    <name>orderDate</name>
+    <value>
+     <string>2015-04-24T15:19:20+02:00</string>
+    </value>
+   </member>
+   <member>
+    <name>orderId</name>
+    <value>
+     <int>4320271</int>
+    </value>
+   </member>
+   <member>
+    <name>orderDetails</name>
+    <value>
+     <struct>
+      <member>
+       <name>bigDataOrderFlag</name>
+       <value>
+        <boolean>0</boolean>
+       </value>
+      </member>
+      <member>
+       <name>billingOrderItemId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>containerSplHash</name>
+       <value>
+        <string>00000000</string>
+       </value>
+      </member>
+      <member>
+       <name>currencyShortName</name>
+       <value>
+        <string>USD</string>
+       </value>
+      </member>
+      <member>
+       <name>extendedHardwareTesting</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>imageTemplateId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>isManagedOrder</name>
+       <value>
+        <int>0</int>
+       </value>
+      </member>
+      <member>
+       <name>location</name>
+       <value>
+        <string>265592</string>
+       </value>
+      </member>
+      <member>
+       <name>message</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>packageId</name>
+       <value>
+        <int>0</int>
+       </value>
+      </member>
+      <member>
+       <name>paymentType</name>
+       <value>
+        <string>ADD_TO_BALANCE</string>
+       </value>
+      </member>
+      <member>
+       <name>postTaxRecurring</name>
+       <value>
+        <string>29</string>
+       </value>
+      </member>
+      <member>
+       <name>postTaxRecurringHourly</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>postTaxRecurringMonthly</name>
+       <value>
+        <string>29</string>
+       </value>
+      </member>
+      <member>
+       <name>postTaxSetup</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>preTaxRecurring</name>
+       <value>
+        <string>29</string>
+       </value>
+      </member>
+      <member>
+       <name>preTaxRecurringHourly</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>preTaxRecurringMonthly</name>
+       <value>
+        <string>29</string>
+       </value>
+      </member>
+      <member>
+       <name>preTaxSetup</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>presetId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>primaryDiskPartitionId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>privateCloudOrderFlag</name>
+       <value>
+        <boolean>0</boolean>
+       </value>
+      </member>
+      <member>
+       <name>proratedInitialCharge</name>
+       <value>
+        <string>6.77</string>
+       </value>
+      </member>
+      <member>
+       <name>proratedOrderTotal</name>
+       <value>
+        <string>6.77</string>
+       </value>
+      </member>
+      <member>
+       <name>quantity</name>
+       <value>
+        <int>1</int>
+       </value>
+      </member>
+      <member>
+       <name>resourceGroupId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>resourceGroupTemplateId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>sendQuoteEmailFlag</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>serverCoreCount</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>sourceVirtualGuestId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>stepId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>taxCacheHash</name>
+       <value>
+        <string>b94c43e22aeaedb3dc4</string>
+       </value>
+      </member>
+      <member>
+       <name>taxCompletedFlag</name>
+       <value>
+        <boolean>1</boolean>
+       </value>
+      </member>
+      <member>
+       <name>totalRecurringTax</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>totalSetupTax</name>
+       <value>
+        <string>0</string>
+       </value>
+      </member>
+      <member>
+       <name>useHourlyPricing</name>
+       <value>
+        <boolean>0</boolean>
+       </value>
+      </member>
+      <member>
+       <name>billingInformation</name>
+       <value>
+        <struct>
+         <member>
+          <name>billingAddressLine1</name>
+          <value>
+           <string>University</string>
+          </value>
+         </member>
+         <member>
+          <name>billingCity</name>
+          <value>
+           <string>Haifa</string>
+          </value>
+         </member>
+         <member>
+          <name>billingCountryCode</name>
+          <value>
+           <string>IL</string>
+          </value>
+         </member>
+         <member>
+          <name>billingEmail</name>
+          <value>
+           <string>someone@com</string>
+          </value>
+         </member>
+         <member>
+          <name>billingNameCompany</name>
+          <value>
+           <string>IBM</string>
+          </value>
+         </member>
+         <member>
+          <name>billingNameFirst</name>
+          <value>
+           <string>Foo </string>
+          </value>
+         </member>
+         <member>
+          <name>billingNameLast</name>
+          <value>
+           <string>Bar</string>
+          </value>
+         </member>
+         <member>
+          <name>billingPhoneVoice</name>
+          <value>
+           <string>972-4-44444</string>
+          </value>
+         </member>
+         <member>
+          <name>billingPostalCode</name>
+          <value>
+           <string>0000</string>
+          </value>
+         </member>
+         <member>
+          <name>billingState</name>
+          <value>
+           <string>OT</string>
+          </value>
+         </member>
+         <member>
+          <name>cardExpirationMonth</name>
+          <value>
+           <string/>
+          </value>
+         </member>
+         <member>
+          <name>cardExpirationYear</name>
+          <value>
+           <string/>
+          </value>
+         </member>
+         <member>
+          <name>taxExempt</name>
+          <value>
+           <int>0</int>
+          </value>
+         </member>
+        </struct>
+       </value>
+      </member>
+      <member>
+       <name>itemCategoryQuestionAnswers</name>
+       <value>
+        <array>
+         <data/>
+        </array>
+       </value>
+      </member>
+      <member>
+       <name>locationObject</name>
+       <value>
+        <struct>
+         <member>
+          <name>id</name>
+          <value>
+           <int>265592</int>
+          </value>
+         </member>
+         <member>
+          <name>longName</name>
+          <value>
+           <string>Amsterdam 1</string>
+          </value>
+         </member>
+         <member>
+          <name>name</name>
+          <value>
+           <string>ams01</string>
+          </value>
+         </member>
+        </struct>
+       </value>
+      </member>
+      <member>
+       <name>prices</name>
+       <value>
+        <array>
+         <data>
+          <value>
+           <struct>
+            <member>
+             <name>id</name>
+             <value>
+              <int>33021</int>
+             </value>
+            </member>
+            <member>
+             <name>itemId</name>
+             <value>
+              <int>565</int>
+             </value>
+            </member>
+            <member>
+             <name>laborFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>oneTimeFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>recurringFee</name>
+             <value>
+              <string>29</string>
+             </value>
+            </member>
+            <member>
+             <name>setupFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>categories</name>
+             <value>
+              <array>
+               <data>
+                <value>
+                 <struct>
+                  <member>
+                   <name>categoryCode</name>
+                   <value>
+                    <string>proxy_load_balancer</string>
+                   </value>
+                  </member>
+                  <member>
+                   <name>id</name>
+                   <value>
+                    <int>55</int>
+                   </value>
+                  </member>
+                  <member>
+                   <name>name</name>
+                   <value>
+                    <string>Proxy Load Balancer</string>
+                   </value>
+                  </member>
+                 </struct>
+                </value>
+               </data>
+              </array>
+             </value>
+            </member>
+            <member>
+             <name>item</name>
+             <value>
+              <struct>
+               <member>
+                <name>capacity</name>
+                <value>
+                 <string>50</string>
+                </value>
+               </member>
+               <member>
+                <name>description</name>
+                <value>
+                 <string>Load Balancer 50 connections</string>
+                </value>
+               </member>
+               <member>
+                <name>id</name>
+                <value>
+                 <int>565</int>
+                </value>
+               </member>
+               <member>
+                <name>keyName</name>
+                <value>
+                 <string>LOAD_BALANCER_50_CONNECTIONS</string>
+                </value>
+               </member>
+               <member>
+                <name>units</name>
+                <value>
+                 <string>Connections/Second</string>
+                </value>
+               </member>
+               <member>
+                <name>bundle</name>
+                <value>
+                 <array>
+                  <data/>
+                 </array>
+                </value>
+               </member>
+              </struct>
+             </value>
+            </member>
+           </struct>
+          </value>
+         </data>
+        </array>
+       </value>
+      </member>
+      <member>
+       <name>properties</name>
+       <value>
+        <array>
+         <data/>
+        </array>
+       </value>
+      </member>
+      <member>
+       <name>sshKeys</name>
+       <value>
+        <array>
+         <data/>
+        </array>
+       </value>
+      </member>
+      <member>
+       <name>storageGroups</name>
+       <value>
+        <array>
+         <data/>
+        </array>
+       </value>
+      </member>
+     </struct>
+    </value>
+   </member>
+   <member>
+    <name>placedOrder</name>
+    <value>
+     <struct>
+      <member>
+       <name>accountId</name>
+       <value>
+        <int>411826</int>
+       </value>
+      </member>
+      <member>
+       <name>id</name>
+       <value>
+        <int>4320271</int>
+       </value>
+      </member>
+      <member>
+       <name>orderQuoteId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>orderTypeId</name>
+       <value>
+        <int>4</int>
+       </value>
+      </member>
+      <member>
+       <name>presaleEventId</name>
+       <value>
+        <string/>
+       </value>
+      </member>
+      <member>
+       <name>status</name>
+       <value>
+        <string>PENDING_AUTO_APPROVAL</string>
+       </value>
+      </member>
+      <member>
+       <name>userRecordId</name>
+       <value>
+        <int>315282</int>
+       </value>
+      </member>
+      <member>
+       <name>account</name>
+       <value>
+        <struct>
+         <member>
+          <name>brandId</name>
+          <value>
+           <int>30130</int>
+          </value>
+         </member>
+         <member>
+          <name>companyName</name>
+          <value>
+           <string>IBM</string>
+          </value>
+         </member>
+         <member>
+          <name>id</name>
+          <value>
+           <int>411826</int>
+          </value>
+         </member>
+        </struct>
+       </value>
+      </member>
+      <member>
+       <name>items</name>
+       <value>
+        <array>
+         <data>
+          <value>
+           <struct>
+            <member>
+             <name>categoryCode</name>
+             <value>
+              <string>proxy_load_balancer</string>
+             </value>
+            </member>
+            <member>
+             <name>description</name>
+             <value>
+              <string>Load Balancer 50 connections</string>
+             </value>
+            </member>
+            <member>
+             <name>id</name>
+             <value>
+              <int>65021573</int>
+             </value>
+            </member>
+            <member>
+             <name>itemId</name>
+             <value>
+              <int>565</int>
+             </value>
+            </member>
+            <member>
+             <name>itemPriceId</name>
+             <value>
+              <string>33021</string>
+             </value>
+            </member>
+            <member>
+             <name>laborFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>oneTimeFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>parentId</name>
+             <value>
+              <string/>
+             </value>
+            </member>
+            <member>
+             <name>promoCodeId</name>
+             <value>
+              <string/>
+             </value>
+            </member>
+            <member>
+             <name>recurringFee</name>
+             <value>
+              <string>29</string>
+             </value>
+            </member>
+            <member>
+             <name>setupFee</name>
+             <value>
+              <string>0</string>
+             </value>
+            </member>
+            <member>
+             <name>children</name>
+             <value>
+              <array>
+               <data/>
+              </array>
+             </value>
+            </member>
+           </struct>
+          </value>
+         </data>
+        </array>
+       </value>
+      </member>
+      <member>
+       <name>userRecord</name>
+       <value>
+        <struct>
+         <member>
+          <name>accountId</name>
+          <value>
+           <int>00000</int>
+          </value>
+         </member>
+         <member>
+          <name>firstName</name>
+          <value>
+           <string>Foo</string>
+          </value>
+         </member>
+         <member>
+          <name>id</name>
+          <value>
+           <int>00000</int>
+          </value>
+         </member>
+         <member>
+          <name>lastName</name>
+          <value>
+           <string>Foo</string>
+          </value>
+         </member>
+         <member>
+          <name>username</name>
+          <value>
+           <string>foo</string>
+          </value>
+         </member>
+        </struct>
+       </value>
+      </member>
+     </struct>
+    </value>
+   </member>
+  </struct>
+ </value>
+</param>
+</params>


Mime
View raw message