deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject [1/2] FGCP: added unit tests (hwp and images) with vcr recordings
Date Mon, 18 Feb 2013 11:54:21 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9a44c9ca/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_image.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_image.yml b/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_image.yml
new file mode 100644
index 0000000..16c70c1
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_image.yml
@@ -0,0 +1,679 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODE2MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListDiskImage&Locale=en&Signature=ibeQka9hTGWcqEHtFX0djGvGJsKOuNaIZRD3F+lvMUrMX3nyXA+KnIWxG371%0AuXxk9SyWCJhu4z2ZZ0frzi0FE5aUqeF0ssYIvJ7eBc4gopDZMUe8YpbXgSmI%0A7LCrQILI2sCqfZ7t6jH3SlI+hEn/PT/GdU/zWXmGUozc13tZyopoN5N0LIV7%0AOYTQcGIKg8e+3C4g9GIU9Tqml1ixdHUefZvQ0umVk3qmvLRc1E2QdlaAGmQC%0AcpU4M0k3qxaET+LmYtjQC9ZN+m52sVrOnIofnX/Blq4TJ4yo6+OQpY5z+G88%0AWC0fV9ynAr0JVRxW1NL3SpAuY2g+As1rMYV7+HQjkQ==%0A&Version=2011-01-31
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:17 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=D5EF3EAEA45CFC5E8A6A692894A41265; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListDiskImageResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <diskimages>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0001_RHEL5_8EN64_v1_24x7SPT</diskimageId>
+              <diskimageName>RHEL5.8 64bit(EN) wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.8 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0002_RHEL5_8EN64_v1_NoSPT</diskimageId>
+              <diskimageName>RHEL5.8 64bit(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.8 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0003_RHEL6_3EN64_v1_24x7SPT</diskimageId>
+              <diskimageName>RHEL6.3 64bit(EN) wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 6.3 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0004_RHEL6_3EN64_v1_NoSPT</diskimageId>
+              <diskimageName>RHEL6.3 64bit(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 6.3 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_21VKHA77OO</diskimageId>
+              <diskimageName>CentOS 5.6 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.6 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_D30U8UNY6I9S</diskimageId>
+              <diskimageName>CentOS 6.2 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 6.2 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_D30Y0LNN4WE8</diskimageId>
+              <diskimageName>W2k8R2EESP1(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 EE 64bit SP1 (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_FBV3QFG44MPS</diskimageId>
+              <diskimageName>CentOS 5.6 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.6 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_J55YW6UE101DS</diskimageId>
+              <diskimageName>CentOS 5.4 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.4 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_J56Y5PS4FJO5C</diskimageId>
+              <diskimageName>W2k8R2SE/SQL2k8R2(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+              <softwares>
+                <software>
+                  <license>Included</license>
+                  <name>SQLServer 2008 R2 SE (English)</name>
+                </software>
+              </softwares>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_LKNVW2TH31A0W</diskimageId>
+              <diskimageName>CentOS 5.4 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.4 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_LLIPQ3UJ43RWG</diskimageId>
+              <diskimageName>W2k8R2SESP1(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit SP1 (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_QIEWLLNIF7IF40</diskimageId>
+              <diskimageName>W2k8R2SE/IIS(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+              <softwares>
+                <software>
+                  <license />
+                  <name>Internet Information Server 7.5</name>
+                </software>
+              </softwares>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_S24FWXU0Q9VH0JK</diskimageId>
+              <diskimageName>CentOS 6.2 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 6.2 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_X1W13YQIDAYQ2SQO</diskimageId>
+              <diskimageName>RHEL5.7 64bit wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.7 64bit (English) with Support</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+          </diskimages>
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+        </ListDiskImageResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:18 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODE4MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=C+m5bymEH7RO/D6zaqRj6+1rIpsmhhUlX+ExbXmu+LXP3gxuZ06TD3RBaipG%0A+ANdJ39dUW50orvzshVBdbgBFPcqIfYuaeCRq7U1GeZh/qlMJB6GFRLwW9It%0AW/4G2mB7sck518DT8qWBu1nIXCEs9C9dzI/aRW7pBDJpF+YYfZEqL8gZk9p4%0ASPVovSZygwzEOyiM8NdaCvgXRXSwiPqi5GpZjqMwLVfUjyuDWryTnST7prQ6%0AUDSbImF5qqxMYjUDG4o/HBVL8mJucdaZHMCtKzQYxvPJKCsmm3UY0VzD27cQ%0AB77ArCM1BuEreJ09ahR0NEw2h95qgTwShROHmgWSUA==%0A&Version=2011-01-31&diskImageId=dummy
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:19 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=72A3B8DFDBA4E527F86A2299C1D8B7B6; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListServerTypeResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+          <servertypes>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_144</id>
+              <memory>
+                <memorySize>7.5</memorySize>
+              </memory>
+              <name>advanced</name>
+              <price>0.4949</price>
+              <productId>AUS-VM-0001-0003</productId>
+              <productName>Advanced VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>1.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_140</id>
+              <memory>
+                <memorySize>1.7</memorySize>
+              </memory>
+              <name>economy</name>
+              <price>0.1237</price>
+              <productId>AUS-VM-0001-0001</productId>
+              <productName>Economy VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>2</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146</id>
+              <memory>
+                <memorySize>15.0</memorySize>
+              </memory>
+              <name>high_performance</name>
+              <price>0.9898</price>
+              <productId>AUS-VM-0001-0004</productId>
+              <productName>High-Performance VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>2.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_142</id>
+              <memory>
+                <memorySize>3.4</memorySize>
+              </memory>
+              <name>standard</name>
+              <price>0.2474</price>
+              <productId>AUS-VM-0001-0002</productId>
+              <productName>Standard VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>4</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146337</id>
+              <memory>
+                <memorySize>30.0</memorySize>
+              </memory>
+              <name>w_high</name>
+              <price>1.9796</price>
+              <productId>AUS-VM-0001-0011</productId>
+              <productName>Double-High Performance VM</productName>
+            </servertype>
+          </servertypes>
+        </ListServerTypeResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:19 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODE5MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListDiskImage&Locale=en&Signature=ceSgDqn1q5Ct0WxTVKUWQYJmOf2OjqrolahzWhFGKaPsG5t8uJdwb2AVSjNG%0AHDv4EZLp6qAZBW/kFj5VwvCqLL2nG3KtCrViBe92X339AaL/YEPRPJYbgEiN%0AA+0v0zjN16rEz8LUlho/bU6DTumN8Lto2hSX0YMydki0xCkeiG/vndksxEqq%0AOamGMUaHQesXRdqOjvlSLeKzAhCb76bJp7M/8UF3urGpbuiM2AhoQsb+3kBY%0AU4YoIxowCyUkYXZ3hg5LFDjkdooX83gJTy17LEC6+tu3jCUawVI0BHobyk4W%0A9Mj1vazJbMJuw1zlcVr0IFif2UbzO8S0eLNc5YtrMw==%0A&Version=2011-01-31
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:20 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=3F554B82753EFCBF8B9996C9CE61FAC4; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListDiskImageResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <diskimages>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0001_RHEL5_8EN64_v1_24x7SPT</diskimageId>
+              <diskimageName>RHEL5.8 64bit(EN) wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.8 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0002_RHEL5_8EN64_v1_NoSPT</diskimageId>
+              <diskimageName>RHEL5.8 64bit(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.8 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0003_RHEL6_3EN64_v1_24x7SPT</diskimageId>
+              <diskimageName>RHEL6.3 64bit(EN) wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 6.3 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG0004_RHEL6_3EN64_v1_NoSPT</diskimageId>
+              <diskimageName>RHEL6.3 64bit(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 6.3 64bit</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_21VKHA77OO</diskimageId>
+              <diskimageName>CentOS 5.6 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.6 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_D30U8UNY6I9S</diskimageId>
+              <diskimageName>CentOS 6.2 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 6.2 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_D30Y0LNN4WE8</diskimageId>
+              <diskimageName>W2k8R2EESP1(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 EE 64bit SP1 (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_FBV3QFG44MPS</diskimageId>
+              <diskimageName>CentOS 5.6 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.6 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_J55YW6UE101DS</diskimageId>
+              <diskimageName>CentOS 5.4 32bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.4 32bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_J56Y5PS4FJO5C</diskimageId>
+              <diskimageName>W2k8R2SE/SQL2k8R2(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+              <softwares>
+                <software>
+                  <license>Included</license>
+                  <name>SQLServer 2008 R2 SE (English)</name>
+                </software>
+              </softwares>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_LKNVW2TH31A0W</diskimageId>
+              <diskimageName>CentOS 5.4 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 5.4 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_LLIPQ3UJ43RWG</diskimageId>
+              <diskimageName>W2k8R2SESP1(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit SP1 (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_QIEWLLNIF7IF40</diskimageId>
+              <diskimageName>W2k8R2SE/IIS(EN)</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Windows Server 2008 R2 SE 64bit (English)</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+              <softwares>
+                <software>
+                  <license />
+                  <name>Internet Information Server 7.5</name>
+                </software>
+              </softwares>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_S24FWXU0Q9VH0JK</diskimageId>
+              <diskimageName>CentOS 6.2 64bit(EN)</diskimageName>
+              <licenseInfo />
+              <osName>CentOS 6.2 64bit (English)</osName>
+              <osType>pv</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>10.0</size>
+            </diskimage>
+            <diskimage>
+              <creatorName>UZXC0GRT</creatorName>
+              <description />
+              <diskimageId>IMG_3c9820_X1W13YQIDAYQ2SQO</diskimageId>
+              <diskimageName>RHEL5.7 64bit wSPT</diskimageName>
+              <licenseInfo>Included</licenseInfo>
+              <osName>Red Hat Enterprise Linux 5.7 64bit (English) with Support</osName>
+              <osType>hvm</osType>
+              <registrant>UZXC0GRT</registrant>
+              <size>40.0</size>
+            </diskimage>
+          </diskimages>
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+        </ListDiskImageResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:20 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODIxMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=fK8xszbGy8gCaTss4YJkGoOvWkFGvBls6vSpF02xMBBhfOnxYxB/SL1gCR+y%0AmEueWaphxDf+KjxKr46C51ZKPjg+ZWnZQjc8rsddX9FPRCBobEUZu6cDaGUC%0AWvkMLTS1MDcP0KSkgm3uogOVm/0nNdP3sh/wbRZJPDvm5EZRQw5n+lSMZVkh%0AXO+rt5rMlqjd0+et7DWmCFmOgkLiF8JQZy7qlao47QwMbY1LY1eTzBt3634t%0AvZYIqwWw2PpneXO7vQk7eKudzfUHzAezjVM6Ngv23po/f4Vrp+alQm56dEOv%0AxavVZX7nMYFwCPgfAZ2xbjd74pOt6POwyX/oAldbaA==%0A&Version=2011-01-31&diskImageId=dummy
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:21 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=A2A0BFD6A522222CA052855090142AA3; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListServerTypeResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+          <servertypes>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_144</id>
+              <memory>
+                <memorySize>7.5</memorySize>
+              </memory>
+              <name>advanced</name>
+              <price>0.4949</price>
+              <productId>AUS-VM-0001-0003</productId>
+              <productName>Advanced VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>1.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_140</id>
+              <memory>
+                <memorySize>1.7</memorySize>
+              </memory>
+              <name>economy</name>
+              <price>0.1237</price>
+              <productId>AUS-VM-0001-0001</productId>
+              <productName>Economy VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>2</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146</id>
+              <memory>
+                <memorySize>15.0</memorySize>
+              </memory>
+              <name>high_performance</name>
+              <price>0.9898</price>
+              <productId>AUS-VM-0001-0004</productId>
+              <productName>High-Performance VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>2.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_142</id>
+              <memory>
+                <memorySize>3.4</memorySize>
+              </memory>
+              <name>standard</name>
+              <price>0.2474</price>
+              <productId>AUS-VM-0001-0002</productId>
+              <productName>Standard VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>4</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146337</id>
+              <memory>
+                <memorySize>30.0</memorySize>
+              </memory>
+              <name>w_high</name>
+              <price>1.9796</price>
+              <productId>AUS-VM-0001-0011</productId>
+              <productName>Double-High Performance VM</productName>
+            </servertype>
+          </servertypes>
+        </ListServerTypeResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:21 GMT

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9a44c9ca/server/tests/drivers/fgcp/fixtures/test_0004_must_include_correct_attributes.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/fixtures/test_0004_must_include_correct_attributes.yml b/server/tests/drivers/fgcp/fixtures/test_0004_must_include_correct_attributes.yml
new file mode 100644
index 0000000..f55852c
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0004_must_include_correct_attributes.yml
@@ -0,0 +1,126 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODEyMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=z3pBXQX53AXyyosU0Is0xAni9N61RnBi4NMw7glcGUQPlmV/rf0gB+JY/y3l%0AgDTbxCGPJ3Xg8b/PAn3YvnyMhJAiL3HaQKznsbH1wcQcS9+fZ/0x08JpWWVz%0ABHSija61OtJGbqV9Et9VamDMe4OzsAcHbWcN7KeW0P1WH5V00MbCNIZnZZBR%0Awhit8SoE2I3bzUAPgWl/M2VWqxqDwzlr6bEcBEkXUqfGis9s635T8o4gysLW%0ABoFfUaZR1f0/zlDsbRsuovWyIJYjHAZ3lJe58SxnBUS7CX2nWpi2OXThGoAr%0Aoea1NoeKFiawYDU4hIPGxlxV95D8TEIYwlIEzRRexA==%0A&Version=2011-01-31&diskImageId=dummy
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:13 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=EB12E538DA934CE48CE6B699FBB2AF76; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListServerTypeResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+          <servertypes>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_144</id>
+              <memory>
+                <memorySize>7.5</memorySize>
+              </memory>
+              <name>advanced</name>
+              <price>0.4949</price>
+              <productId>AUS-VM-0001-0003</productId>
+              <productName>Advanced VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>1.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_140</id>
+              <memory>
+                <memorySize>1.7</memorySize>
+              </memory>
+              <name>economy</name>
+              <price>0.1237</price>
+              <productId>AUS-VM-0001-0001</productId>
+              <productName>Economy VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>2</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146</id>
+              <memory>
+                <memorySize>15.0</memorySize>
+              </memory>
+              <name>high_performance</name>
+              <price>0.9898</price>
+              <productId>AUS-VM-0001-0004</productId>
+              <productName>High-Performance VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>2.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_142</id>
+              <memory>
+                <memorySize>3.4</memorySize>
+              </memory>
+              <name>standard</name>
+              <price>0.2474</price>
+              <productId>AUS-VM-0001-0002</productId>
+              <productName>Standard VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>4</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146337</id>
+              <memory>
+                <memorySize>30.0</memorySize>
+              </memory>
+              <name>w_high</name>
+              <price>1.9796</price>
+              <productId>AUS-VM-0001-0011</productId>
+              <productName>Double-High Performance VM</productName>
+            </servertype>
+          </servertypes>
+        </ListServerTypeResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:13 GMT

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9a44c9ca/server/tests/drivers/fgcp/fixtures/test_0005_must_include_at_least_four_profiles.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/fixtures/test_0005_must_include_at_least_four_profiles.yml b/server/tests/drivers/fgcp/fixtures/test_0005_must_include_at_least_four_profiles.yml
new file mode 100644
index 0000000..64d78be
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0005_must_include_at_least_four_profiles.yml
@@ -0,0 +1,126 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODA5MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=RGCovUee9Hm4ynmNvX32hwSmRSKK7IYmbSDSgRlUCCp9jDckM3toiYCVC+XN%0ANFT9RX350TzHxAf877PZQLRNmmAb1pLmtC4woiez2enurtG1KZ/iA7sflkbw%0A4Ha7PntZR4eQXztjugLlHydANO+MqaRQ0fYuzDPmGL06jbbcTn8mEVUIJhmR%0AFMnQuMks92NcPlBolXm6U93qJkTw9v1XeN+qK7vnZHShZgG12jYnJ3l0iwKG%0A2Qo2R5nZYAJKLLPwd3W+veJkTrZJ5WIdzljXESensqpLEwrbhWYLxKWf8pxq%0AGpHSLeiKYDO/y6YlrDmSgdyC9k+qKPn7EgfEOP/4Pg==%0A&Version=2011-01-31&diskImageId=dummy
+    body: 
+      string: ""
+    headers: 
+      Accept: 
+      - text/xml
+      User-Agent: 
+      - OViSS-API-CLIENT
+  response: 
+    status: 
+      code: 200
+      message: OK
+    headers: 
+      Date: 
+      - Mon, 18 Feb 2013 10:20:10 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=389AA2D44102AB87BF01D3769C510516; Path=/ovisspxy; Secure
+      Content-Type: 
+      - text/xml;charset=UTF-8
+      Connection: 
+      - close
+    body: 
+      string: |
+        <?xml version="1.0" encoding="UTF-8"?>
+        <ListServerTypeResponse xmlns="http://apioviss.jp.fujitsu.com">
+          <responseMessage>Processing was completed.</responseMessage>
+          <responseStatus>SUCCESS</responseStatus>
+          <servertypes>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_144</id>
+              <memory>
+                <memorySize>7.5</memorySize>
+              </memory>
+              <name>advanced</name>
+              <price>0.4949</price>
+              <productId>AUS-VM-0001-0003</productId>
+              <productName>Advanced VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>1.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_140</id>
+              <memory>
+                <memorySize>1.7</memorySize>
+              </memory>
+              <name>economy</name>
+              <price>0.1237</price>
+              <productId>AUS-VM-0001-0001</productId>
+              <productName>Economy VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>2</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146</id>
+              <memory>
+                <memorySize>15.0</memorySize>
+              </memory>
+              <name>high_performance</name>
+              <price>0.9898</price>
+              <productId>AUS-VM-0001-0004</productId>
+              <productName>High-Performance VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>2.0</cpuPerf>
+                <numOfCpu>1</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_142</id>
+              <memory>
+                <memorySize>3.4</memorySize>
+              </memory>
+              <name>standard</name>
+              <price>0.2474</price>
+              <productId>AUS-VM-0001-0002</productId>
+              <productName>Standard VM</productName>
+            </servertype>
+            <servertype>
+              <chargeType>amount</chargeType>
+              <cpu>
+                <cpuArch>IA</cpuArch>
+                <cpuPerf>4.0</cpuPerf>
+                <numOfCpu>4</numOfCpu>
+              </cpu>
+              <expectedUsage>744</expectedUsage>
+              <id>islanda-cbrm_146337</id>
+              <memory>
+                <memorySize>30.0</memorySize>
+              </memory>
+              <name>w_high</name>
+              <price>1.9796</price>
+              <productId>AUS-VM-0001-0011</productId>
+              <productName>Double-High Performance VM</productName>
+            </servertype>
+          </servertypes>
+        </ListServerTypeResponse>
+        
+
+    http_version: 
+  recorded_at: Mon, 18 Feb 2013 10:20:10 GMT

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9a44c9ca/server/tests/drivers/fgcp/hardware_profiles_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/hardware_profiles_test.rb b/server/tests/drivers/fgcp/hardware_profiles_test.rb
new file mode 100644
index 0000000..f65cd1f
--- /dev/null
+++ b/server/tests/drivers/fgcp/hardware_profiles_test.rb
@@ -0,0 +1,54 @@
+require 'rubygems'
+require 'require_relative' if RUBY_VERSION < '1.9'
+
+require_relative 'common.rb'
+
+describe 'FGCP HardwareProfiles' do
+
+  before do
+    @driver = Deltacloud::new(:fgcp, credentials)
+    VCR.insert_cassette __name__
+  end
+
+  after do
+    VCR.eject_cassette
+  end
+
+  it 'must return list of hardware_profiles' do
+    @driver.hardware_profiles.wont_be_empty
+    @driver.hardware_profiles.first.must_be_kind_of Deltacloud::HardwareProfile
+  end
+
+  it 'must allow to filter hardware_profiles' do
+    hardware_profiles = @driver.hardware_profiles :id => 'economy'
+    hardware_profiles.wont_be_empty
+    hardware_profiles.must_be_kind_of Array
+    hardware_profiles.size.must_equal 1
+    hardware_profiles.first.id.must_equal 'economy'
+    @driver.hardware_profiles(:id => 'unknown').must_be_empty
+  end
+
+  it 'must allow to retrieve single hardware_profile' do
+    hardware_profile = @driver.hardware_profile :id => 'economy'
+    hardware_profile.wont_be_nil
+    hardware_profile.id.must_equal 'economy'
+    hardware_profile.properties.must_be_kind_of Array
+    hardware_profile.properties.wont_be_empty
+    @driver.hardware_profile(:id => 'unknown').must_be_nil
+  end
+
+  it 'must include correct attributes' do
+    hardware_profile = @driver.hardware_profiles.first
+    hardware_profile.cpu.wont_be_nil
+    hardware_profile.cpu.value.wont_be :<, 1
+    hardware_profile.memory.wont_be_nil
+    hardware_profile.memory.value.wont_be :<=, 1740 #1740.8 is lowest (economy)
+    hardware_profile.storage.must_be_nil
+  end
+
+  it 'must include at least four profiles' do
+    hardware_profiles = @driver.hardware_profiles
+    hardware_profiles.size.wont_be :<, 4
+  end
+
+end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9a44c9ca/server/tests/drivers/fgcp/images_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/images_test.rb b/server/tests/drivers/fgcp/images_test.rb
new file mode 100644
index 0000000..24a852a
--- /dev/null
+++ b/server/tests/drivers/fgcp/images_test.rb
@@ -0,0 +1,40 @@
+#$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..')
+require 'require_relative' if RUBY_VERSION < '1.9'
+
+require_relative 'common.rb'
+
+describe 'FGCP Images' do
+
+  before do
+    @driver = Deltacloud::new(:fgcp, credentials)
+    VCR.insert_cassette __name__
+  end
+
+  after do
+    VCR.eject_cassette
+  end
+
+  it 'must return list of images' do
+    imgs = @driver.images
+    imgs.wont_be_empty
+    imgs.first.must_be_kind_of Image
+  end
+
+  it 'must allow to filter images' do
+    img = @driver.images(:id => 'IMG_3c9820_S24FWXU0Q9VH0JK')
+    img.wont_be_empty
+    img.must_be_kind_of Array
+    img.size.must_equal 1
+    img.first.id.must_equal 'IMG_3c9820_S24FWXU0Q9VH0JK'
+    @driver.images(:id => 'unknown').must_be_empty
+  end
+
+  it 'must allow to retrieve single image' do
+    img = @driver.image(:id => 'IMG_3c9820_S24FWXU0Q9VH0JK')
+    img.wont_be_nil
+    img.must_be_kind_of Image
+    img.id.must_equal 'IMG_3c9820_S24FWXU0Q9VH0JK'
+    @driver.image(:id => 'unknown').must_be_nil
+  end
+
+end


Mime
View raw message