deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <di...@fast.au.fujitsu.com>
Subject [PATCH] FGCP: added unit tests (hwp and images) with vcr recordings
Date Mon, 18 Feb 2013 10:39:41 GMT
From: Dies Koper <diesk@fast.au.fujitsu.com>

---
 server/Rakefile                                    |   4 +-
 .../drivers/fgcp/cert/fgcp-testuser/UserCert.p12   | Bin 0 -> 1568 bytes
 server/tests/drivers/fgcp/common.rb                |  32 +
 ..._0001_must_return_list_of_hardware_profiles.yml | 249 ++++++++
 .../test_0001_must_return_list_of_images.yml       | 341 +++++++++++
 ...0002_must_allow_to_filter_hardware_profiles.yml | 249 ++++++++
 .../test_0002_must_allow_to_filter_images.yml      | 679 +++++++++++++++++++++
 ...t_allow_to_retrieve_single_hardware_profile.yml | 249 ++++++++
 ...st_0003_must_allow_to_retrieve_single_image.yml | 679 +++++++++++++++++++++
 .../test_0004_must_include_correct_attributes.yml  | 126 ++++
 ...st_0005_must_include_at_least_four_profiles.yml | 126 ++++
 .../tests/drivers/fgcp/hardware_profiles_test.rb   |  54 ++
 server/tests/drivers/fgcp/images_test.rb           |  40 ++
 13 files changed, 2826 insertions(+), 2 deletions(-)
 create mode 100644 server/tests/drivers/fgcp/cert/fgcp-testuser/UserCert.p12
 create mode 100644 server/tests/drivers/fgcp/common.rb
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_hardware_profiles.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_images.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_hardware_profiles.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_images.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_hardware_profile.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_image.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0004_must_include_correct_attributes.yml
 create mode 100644 server/tests/drivers/fgcp/fixtures/test_0005_must_include_at_least_four_profiles.yml
 create mode 100644 server/tests/drivers/fgcp/hardware_profiles_test.rb
 create mode 100644 server/tests/drivers/fgcp/images_test.rb

diff --git a/server/Rakefile b/server/Rakefile
index 5494148..41bd2c1 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -132,9 +132,9 @@ end
 #       need to investigate in future.
 #
 if RUBY_PLATFORM == 'java'
-  DRIVERS = [:mock, :ec2, :rhevm, :gogrid, :openstack]
+  DRIVERS = [:mock, :ec2, :rhevm, :gogrid, :openstack, :fgcp]
 else
-  DRIVERS = [:mock, :ec2, :rhevm, :google, :gogrid, :openstack]
+  DRIVERS = [:mock, :ec2, :rhevm, :google, :gogrid, :openstack, :fgcp]
 end
 
 desc 'Run all tests'
diff --git a/server/tests/drivers/fgcp/cert/fgcp-testuser/UserCert.p12 b/server/tests/drivers/fgcp/cert/fgcp-testuser/UserCert.p12
new file mode 100644
index 0000000000000000000000000000000000000000..03310e6ec0cdd587eca23b6c0e2056728fb60ab3
GIT binary patch
literal 1568
zcmY+Dc{mdc9LIN=FuEK$5-GR0jSyz$)v}D32vLsYrYT2e*yg@^m8^t?B$RTtSXy2y
zbdoG{y+v9%W;t^-?|Pp1t*1YJ&+mD@-{0@|{QmfU;8dsz2ndE##W+w2-85|4vNTW}
zSV|S^giysgL^2Cb1*`mKfu$i-u!Kk!6BQ6D_1_ju5(p}#f*Rmd&|SDTRPujWbX*A{
zi@#?bblgTWOc%WgDO{3|Cpq>-gFp}fgbE^i1<^I$ffUfvlpSmfI~Bvow3oB&!cO=R
zXWnDh72j4PT$|H6_3A}UjejC)r1sk57wRj}U_uiRgX~P$K%(`r73nMsxg>U^u3G;{
z!|vd7m)BXlDJqi>(Zd3giMZ);R7d*LI$5JhY;h8Q*mW~erh;*xQb1l!6)1a%ADSj`
zHqq`Xs2HQ~Z$uABM?4?p`83jxUyE;<o+ts=Ii$|<`*|?|iB#TSPgX0%t{j{t9aStk
zpgVrX(n-ER@}|!73^&%R?;y6bUKOi@=Emn{cn_Aq(lDk469djG6`di1<fc-)Tx2$F
zW(MHETt<is+0Pt2<-@?RBJ;M!NO#wBE!SHXnIz)9IQPSC7p%&%iv#K+Cr*%gnT6E`
z4-I;c?he_=Y-=dE-j^JRG&GZsH9qW<n8JBYAJ)?4zN+=h)7FyleZz}kgniz5(1UL4
zn=_UYYYzUHTh`~V^vN6_CBI{1vPd<5n$sMQVR>B%{*aP4+|f&4H4h8%Jef|<(~@qD
zvU(&8VSJh$6nI<I?y1rGx_o`b$|c2e?wxOKTtaMR?Wg%?+@|72k1gf)W%JkHFEoli
zSYWLM2^k&BqvOFAHkbsU&08ULPe*qSrCvW^__9hReyM!9#PktLt;U45GdPj#5|v1@
z){fC_N$|XD^}bGb2uLnQQJ8{?`V}vq03ZOfI)q^q-bnG!=*drf`&}~!c1?-V41<^t
zX1^NHF3Zwq@9x|cfi`B{jLE{4IvKmFnTx+f_X!c-M*Yr5xi}T}o>fxta(>+XT?$*I
zA*d>hR%_nA&AyzzqZ76AWNc~i27vp<b&iYbX=9!NAbMIi0Wk<9T;XTJC1eqjs+#}-
zfIz@000FN4%aB9JLbkaCho4qM80|OQZ)R#_0zUvZ7UjL@=a4v5gg}l+$^ZcYqDJ}U
z0Dpr5`U8rb5xv~5(E(Hffiz(2I&<eUP|xiL6l5w0TfJm&7X}h~bTNQjqibw#RC4UG
zBxd?+(zFAD_`rTwrGlo)6xr~xa>?7w)V~t|kwFcVEIOAKNFKbs_vOU-aKH5j`94VI
zIbzemmzD>J+XVIYPm={&htUWV82+uTRqMm;9Evm7nu8-CY_**C=9=Ql334;{V3!?W
zp+4>7i395{JXeWZs$)V&)w%AhKl5Gun!Q%avype1RYfeWW4{4{UpaL8fbzE&xKRwc
z%Qo^*9pBk4X{<FXPP01tT5P;sl^UPX)9{TjWkJu9Xly42W{!_ZZZnN=BX6vsANzlt
zo%-m68@i2=u2XNTz#J<+Mf3EiPPG7>HI{st=EsagZVxy+0lj+U-825kK3KeeM+m6Z
z=3pRn%_KkrGvViFh*RB~Gk+MH=aB7tBUWWsi8I{Bx^^*dL^)ha=1u8&C8GF8?OD~d
zp|T5Er?%18Q2q$~as|`aR<hJ#JUr2m$ad0@<EIG9V2ZurlEg*7_I^2?OVNi+o20EX
z!R*A(^^nxMFkBsJMdO5BXu6sCB6jH_UXwd`A-m@5vkS?bz2r8$jy_PafadjJtM?za
zy|=nQY)9d5F0FBW+=-fwH1(NIr#(T`gh%2j7I9BG)+4nzlv!VlB5Ys3f_xy#k#{hZ
ze59wGd{O{ic&+C#S97OKCsYcc(4?IIf^)~l=jl%VmnvaAI$7z`lzV7HW=W8?StC2$
z8&P{Nf8Dk@!HBXMX`nGL!OSh46u`-Q#<(YzgYx>bXo_3B^!p+TDR4`;I$Q!OrY8di
zDTx6fvX7p;SQ&6pTJIuVVa#L`uvbUu9EdEo=U7H?y`eiVvhThJ%+fXXnCkkEDE<pi
CiOV?v

literal 0
HcmV?d00001

diff --git a/server/tests/drivers/fgcp/common.rb b/server/tests/drivers/fgcp/common.rb
new file mode 100644
index 0000000..930f1b3
--- /dev/null
+++ b/server/tests/drivers/fgcp/common.rb
@@ -0,0 +1,32 @@
+require 'vcr'
+
+require 'require_relative' if RUBY_VERSION < '1.9'
+require_relative '../../test_helper.rb'
+
+
+# Credentials used to access FGCP server
+#
+ENV['FGCP_CERT_DIR'] =  File.join(File.dirname(__FILE__), 'cert')
+def credentials
+  {
+    :user => 'fgcp-testuser',
+    :password => 'fgcp-password',
+  }
+end
+
+#require 'turn' #internal_use_only
+#Turn.config.format = :outline #internal_use_only
+
+
+VCR.configure do |c|
+  # NOTE: Empty this directory before re-recording
+  c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures')
+  c.hook_into :webmock
+  c.default_cassette_options = {
+    :record => :new_episodes,
+#    :record => :none,
+    :match_requests_on => [:method,
+    VCR.request_matchers.uri_without_param(:Signature, :AccessKeyId)]
+  }
+  #c.debug_logger = File.open(File.join('log', 'vcr.log'), 'w')
+end
diff --git a/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_hardware_profiles.yml b/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_hardware_profiles.yml
new file mode 100644
index 0000000..375db3d
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_hardware_profiles.yml
@@ -0,0 +1,249 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODE0MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=ZPAhBW7w0v3nMkQSGMU5kz82VEVdQeiBhhBNL9O6DfYASHXfQRjjOT7SBLG3%0AFWyiuODgwxQIUG95FNDEeM3B3EZOILyAgid91+SYVV6AgyP0HQgEuRf/bEfS%0AA6eo4fzUclYZXjCN0emtlgD2LXtWvyXyV1s1hNThtOw+M2z6M4LhA8OJBfnu%0Avc8kWrWsvSyx3Lp9fgaDsmsRdyqyZPSP+WQ87jwmrTr62nt7WtCRuXw6VZmO%0AsDpiG8p/lo3nqYSGZMsyRMDyRMXRjCpAFWdecYKMQp0HU2Vwy7U+qLBuVp71%0AVG9gPRTggZFlC8VYpcrD2+wMUqAVxYMsezmxFfmP4Q==%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:15 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=F1F21DE292B5B6E71FBC786C383F669A; 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:15 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODE1MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=whx93k3+lbm1vrlFzUKl3wibIxxmV/ivgEO9SyS5JUlMtdT+myMbaNMHQwuT%0A83grJL72nWUZZCesk7ZbBMFuHcdpMCaEWnmUM+6qEjQNsHKKsInE8bX/ZmK0%0AJe2BOhDLN+8v1mHE1IYIO4OmzhA1Ql2K8th9lJDyHAGSAorqOJED8K7FkdNV%0Abc22Us08422hT4Y0Gz2tDzd/hoy8kA8sFTA2KDGHB43n9SsZgdRVtyQU45Yj%0AZxnhi+/RwiZymNIA3q3aW3Lc/Zm/DnrBK/g54YoqUK2LjfN/11rUtTz7/zNL%0AzvAxl0yvspcZZ8K7NRC8nlvtlpE68A9rIl4m5/fFyw==%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:16 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=696DA083C6FBA66114C588B0B61016F3; 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:16 GMT
diff --git a/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_images.yml b/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_images.yml
new file mode 100644
index 0000000..d38d2d8
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0001_must_return_list_of_images.yml
@@ -0,0 +1,341 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODIyMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListDiskImage&Locale=en&Signature=v8Xbznsd1l2SHLNgA3j+BdhFAooa3J1cdknacEbZ2f0g6vLwChbSGYjtPXmd%0Atp98I4NVFCz4s35+dR2NM9s7c1cnLzgOiv+XPJBl913jAtyfUzQBgCZy6+xG%0A/JIbWSrEgSRw93EyaPjdviwyEhfpFNLw4/J63lbtzhjICY6jU+rtGuu2jzo+%0AOEt+ooZ2M3FDpZsNv19wJ/vrW1E6SADO0kqZmL2GB8emKvH1XbuCOJzT+c7e%0AAcg7f933GqyKeCr+HJol0uOUNUbpFn13g6QJ1YQAC0Q7CoG6ipf3EhzZjmnb%0A0usnkhetiSg71y5alscARMmErrK2XkMCjY4d7ed84g==%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:22 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=7C97F13ACCE75CD4642357180FF24340; 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:23 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODIzMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=PU8hMf3zKWKbZiRj8eVEm3L2/AjsFXbENw7nkY5jt4e6OlqdYHOT+2PdsuLT%0AmWrcJG/t6aE3Ndkzyv3pUpQ62RrriIg4scyr+gXPJztIyMpBcfflsn6W+9ks%0ApX6tfdsEm5ITW4egPw2kNEGrZOR8XPsC7v0zv0woQZ/lLSLE+SDTbOFMAE4R%0AHys1tR2yHlQieIjphegW9KfnMipRyX+QsCM+SgphXObpT4uJIvKsJHr/Eafi%0AiK7DM01brFbdVbZzvOjr1g/PqVOeIwgCAsa9xVynFJTfLdQX+GFQG3DU76oD%0AQtlBJSqXSKbxG5OuGS1DVSWrATH+I7wD1oPdXN/Akg==%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:24 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=7A7893C252855EB637B7EBE38FE31A9F; 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:24 GMT
diff --git a/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_hardware_profiles.yml b/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_hardware_profiles.yml
new file mode 100644
index 0000000..3760d77
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_hardware_profiles.yml
@@ -0,0 +1,249 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODEwMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=trnkaYnKzTfiFzi/h1XS4BsOfG0nyH2KVwiEfJaXRvHjuHfWNm/qfuoz2R+L%0Ak+fFPJjFUENa7EO/jDBBXJDuzowk3Fr/q+EBVX30xrb43vzp5Pkt+XrbEFxM%0A7pNJkyCgpl+u+8+UZnl0cNMP8MEGybiSeTRUPkYRWP7e9sVz+B55QIuo7WTu%0AjJzzHc/WKHUm0MUo6VbzBhJeec2SBuHKtPzix2mkysr/USt+49vmq7iWdg9E%0ABUPSAZSp83oIqD9v3e0v8XR8d7CaP6xRWsc8BEMLwnCQ6Ksz3bIHmRvtbVjZ%0A8qSj4ubyGW5xpoVVNVZve9LEES2/aE1DUMUDt26pUg==%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:11 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=895B2FE83FC5342D2EDE05A2F2AB4F3E; 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:11 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODExMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=HwZoQ9g9uGZafQeCnLp8HR4h0zZoKnPUAHLqu2T+85wIodVA8jKH/EfuN3FA%0A8excnXNtqLKycDxPAQygdcwrXR+ISnuvc9kTnG+FNPGMTRe7wY72ySyWoJIM%0ANhQIFepc88kU3wvstzbHrqepxbrk/Kbv8VxmiB0pmyl/MGBvolMebN541A+b%0AVMgpARRiS5Mb24ayixdAwGdrzGHqoKsLWAu8GHgRtlXgcZT/n3CLNi9tWHAd%0A31NqAbq76vugM5RGOrzEzbyZKRNFywyQZsN7CsiF/5r/qrmUw9p5W74mKgFO%0A2ETr/pfBlpc8XclH+D+IBeXJNlFgLuT+Z8TzJ6kb/w==%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:12 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=BD8ECD9238F58200DC4C6DFA2FFF045A; 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:12 GMT
diff --git a/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_images.yml b/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_images.yml
new file mode 100644
index 0000000..d565612
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0002_must_allow_to_filter_images.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=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODI0MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListDiskImage&Locale=en&Signature=rUT0CKUe2YHzwS21/WvehpqGxdhaqH7AgfFPNHNaQzCVOx4NgvVDT+Z+sFpP%0AFt32i1VaBd5R++haqPtSi6H1181CMTi2u7O9Gb5vJQkqyhWE/LeaDiKxvi6V%0AbYFHyOBHxtodFwGrVqf09HDbRXMpymDAh3VPUGixCZge39Q4oGabSAtZLxem%0AahMj3/lseBTU5l/ql5K1qjfl/n+vO366tgG6uv7/ZTzV+NnSXjTAtWAEyFia%0AbgHQQBI9sZA9yoV9abmGly1RX1FRXEbjs16w9mJNUZPv5fXiAb8GAaYx1MEV%0AFwFwbe7LdrZ2m+6by6KD+oJISrtGJHf9Nkm3MsJndw==%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:25 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=C46AF488794781319EA9702917E30183; 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:26 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODI2MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=khYgVzLiWlm+pTtiNxASl4yAbm8M20elcbnJui2czpKC3YPSRWk24qr0HJD9%0A9qe4XheCQSguMhdYCQTd7U+eB1FJpJEDvk19nFBiWBmIcvjna92haBAlt3AA%0AGolou85DGTo9CVntjhQsMCau2ZNMtGfJov81F3sgdmrtEQauWNJM28i/CV2Q%0Auy23nzsbuISLXSh1SNiVIZIpK0RhTVb9SYv11jTeTJjEURY+QdDwqNHMnZTH%0AJ3Zp2JId+6ZfikOg2P9slMLXNEhodJIt4C8vK+RPo8Q9ZQIvhZy+yDa8+X6I%0A622QEK1lzECAMh/T1VX1MPTG9VyaZyVqw8kBYtLCQQ==%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:27 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=3CB1A31CD36466E41C7A928FBF639A4A; 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:27 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODI3MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListDiskImage&Locale=en&Signature=H2v6F5XT4k0naC19ZmNz7QVof1EIbkr5okJ69J08/DXWb7hKhUA9pmaKt8oB%0A0925mrF1rynp6OvmwimwZOhTuPdS+FrXQ1IkjXiQoipoAgRlJeH7K+MCeYYq%0An4wafTD8I5kCeyxa7lWE2zOZI+5BM6MsXJbDUQ6gP6ZRL2vJD0TKs/mhrvbm%0AJ+XVWyA4oA5fLxD5dUq+JecKl5hC43yKXmmaFaXOWlnUZbnrTp19ki4jmezM%0AEEhrpYe8IlgpqUFLPLiDMfyUzErJ60xr5r3tmXtEX7DsV13okNwCkfhYf7ih%0ANwNmikZQOTUawy0u7JBDiSpEkproEtx+vvnehbGehQ==%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:27 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=12E65B5611016F68D0A251E0F968382A; 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:28 GMT
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODI4MDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=URN8gXp8uW5gojsDViTNobmtplrOC16HPwiRSqiyTgodD+bLciVXION75zGa%0AGlE4xSFxNNZYmhicbaSOHp+15AQz2rjF7NEfqMDrtOk4PlqHDGp5/SVxzwQD%0AsAqS9XTq8weyF+x/xJJEGOjBp8mLN2vyOtq3dcibWP0OsHVPIvOcDfivOGwb%0Af9BsuHDYaKAjIqlzvhB1wL1eD7A7dWyvknWcdlGYVfUns2KdArUtTktKaN4v%0Ax7dU0h7BBcWZn/5nOE+QCbVo60m8Ii5YcLQjDGJLHJsvl6F6r6onXFJRRebT%0AP9JKhZg/zaZdviqDNoFwhjMIUGe1nS8oNyKe6lmoBg==%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:29 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=A6CBCF3F7C6249E68EC518AACB544020; 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:29 GMT
diff --git a/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_hardware_profile.yml b/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_hardware_profile.yml
new file mode 100644
index 0000000..adf9df3
--- /dev/null
+++ b/server/tests/drivers/fgcp/fixtures/test_0003_must_allow_to_retrieve_single_hardware_profile.yml
@@ -0,0 +1,249 @@
+--- 
+recorded_with: VCR 2.4.0
+http_interactions: 
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODEzMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=kJGIiMl/6omZwPkKktZtNOn9DJtKvT6DeynCh1wiDD4vSHEMkDY4dBVuIsNz%0AFQExauwDrtyUaGuTgVBxjw+7JiTWp3wTPLRCT+FQXuXfaWVIAYPEn7qHuex2%0AdDqmKjAUv9pFLXMueVti7+gTAlFgJPc4WzMi20bpfMu+vaXAq9Z0jVX9RPUY%0AuYUWaqeD+1WmsBh3FJykvG4EoO3jPH0fVbOMvpiPiQSvoZFKRyk18GJ1DmSn%0AT7qs0nqYTpu+UmeC2vRCQqYeaV6NHn7Dr+Q5WajAvBbnmmSZBL4r1253paXK%0A5lT65YijC2sNXoVauQieFDIuBixOcVbbYxmq3ddURQ==%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=853EF81D669710246E58A208E398C8B5; 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
+- request: 
+    method: get
+    uri: https://api.globalcloud.fujitsu.com.au/ovissapi/endpoint?AccessKeyId=QVVTIEVhc3Rlcm4gRGF5bGlnaHQgVGltZSYxMzYxMTgyODEzMDAwJjEuMCZT%0ASEExd2l0aFJTQQ==%0A&Action=ListServerType&Locale=en&Signature=kJGIiMl/6omZwPkKktZtNOn9DJtKvT6DeynCh1wiDD4vSHEMkDY4dBVuIsNz%0AFQExauwDrtyUaGuTgVBxjw+7JiTWp3wTPLRCT+FQXuXfaWVIAYPEn7qHuex2%0AdDqmKjAUv9pFLXMueVti7+gTAlFgJPc4WzMi20bpfMu+vaXAq9Z0jVX9RPUY%0AuYUWaqeD+1WmsBh3FJykvG4EoO3jPH0fVbOMvpiPiQSvoZFKRyk18GJ1DmSn%0AT7qs0nqYTpu+UmeC2vRCQqYeaV6NHn7Dr+Q5WajAvBbnmmSZBL4r1253paXK%0A5lT65YijC2sNXoVauQieFDIuBixOcVbbYxmq3ddURQ==%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:14 GMT
+      Transfer-Encoding: 
+      - chunked
+      Set-Cookie: 
+      - JSESSIONID=342A9999CFF112DC95B848979A756AE5; 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:14 GMT
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
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
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
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
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
-- 
1.8.0.msysgit.0



Mime
View raw message