deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [36/50] [abbrv] Core: Added initial RHEV-M unit tests
Date Mon, 30 Jul 2012 14:29:17 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/02bb895d/server/tests/drivers/rhevm/fixtures/test_0003_must_allow_to_filter_realms.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/rhevm/fixtures/test_0003_must_allow_to_filter_realms.yml b/server/tests/drivers/rhevm/fixtures/test_0003_must_allow_to_filter_realms.yml
new file mode 100644
index 0000000..b219a8c
--- /dev/null
+++ b/server/tests/drivers/rhevm/fixtures/test_0003_must_allow_to_filter_realms.yml
@@ -0,0 +1,748 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:49 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:54 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:53:49 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:49 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:49 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:55 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:56 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:56 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:50 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:56 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:53:51 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:56 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:53:51 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:54:56 GMT
+recorded_with: VCR 2.1.1

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/02bb895d/server/tests/drivers/rhevm/fixtures/test_0003_must_switch_realms_when_switching_between_different_clusters.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/rhevm/fixtures/test_0003_must_switch_realms_when_switching_between_different_clusters.yml b/server/tests/drivers/rhevm/fixtures/test_0003_must_switch_realms_when_switching_between_different_clusters.yml
new file mode 100644
index 0000000..95143f9
--- /dev/null
+++ b/server/tests/drivers/rhevm/fixtures/test_0003_must_switch_realms_when_switching_between_different_clusters.yml
@@ -0,0 +1,415 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters?search=
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1496'
+      Date:
+      - Wed, 25 Jul 2012 11:51:53 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_centers>\n
+        \   <data_center id=\"aa585157-a098-48c3-8b5b-70a32e88c263\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263\">\n
+        \       <name>engops-iscsi</name>\n        <description></description>\n        <link
+        rel=\"storagedomains\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263/storagedomains\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263/permissions\"/>\n
+        \       <storage_type>iscsi</storage_type>\n        <version minor=\"0\" major=\"3\"/>\n
+        \       <supported_versions>\n            <version minor=\"0\" major=\"3\"/>\n
+        \       </supported_versions>\n        <status>\n            <state>uninitialized</state>\n
+        \       </status>\n    </data_center>\n    <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n        <name>engops-nfs</name>\n
+        \       <description></description>\n        <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \       <storage_type>nfs</storage_type>\n        <storage_format>v1</storage_format>\n
+        \       <version minor=\"0\" major=\"3\"/>\n        <supported_versions>\n
+        \           <version minor=\"0\" major=\"3\"/>\n        </supported_versions>\n
+        \       <status>\n            <state>up</state>\n        </status>\n    </data_center>\n</data_centers>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters?search=
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1496'
+      Date:
+      - Wed, 25 Jul 2012 11:51:53 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_centers>\n
+        \   <data_center id=\"aa585157-a098-48c3-8b5b-70a32e88c263\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263\">\n
+        \       <name>engops-iscsi</name>\n        <description></description>\n        <link
+        rel=\"storagedomains\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263/storagedomains\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/datacenters/aa585157-a098-48c3-8b5b-70a32e88c263/permissions\"/>\n
+        \       <storage_type>iscsi</storage_type>\n        <version minor=\"0\" major=\"3\"/>\n
+        \       <supported_versions>\n            <version minor=\"0\" major=\"3\"/>\n
+        \       </supported_versions>\n        <status>\n            <state>uninitialized</state>\n
+        \       </status>\n    </data_center>\n    <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n        <name>engops-nfs</name>\n
+        \       <description></description>\n        <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \       <storage_type>nfs</storage_type>\n        <storage_format>v1</storage_format>\n
+        \       <version minor=\"0\" major=\"3\"/>\n        <supported_versions>\n
+        \           <version minor=\"0\" major=\"3\"/>\n        </supported_versions>\n
+        \       <status>\n            <state>up</state>\n        </status>\n    </data_center>\n</data_centers>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/clusters?search=datacenter=engops-nfs
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '971'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\">\n
+        \       <name>engops-nfs</name>\n        <link rel=\"networks\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/networks\"/>\n
+        \       <link rel=\"permissions\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702/permissions\"/>\n
+        \       <cpu id=\"Intel Conroe Family\"/>\n        <data_center id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\"/>\n        <memory_policy>\n
+        \           <overcommit percent=\"100\"/>\n            <transparent_hugepages>\n
+        \               <enabled>false</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version minor=\"0\"
+        major=\"3\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n    </cluster>\n</clusters>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '715'
+      Date:
+      - Wed, 25 Jul 2012 11:51:54 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        id=\"645e425e-66fe-4ac9-8874-537bd10ef08d\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d\">\n
+        \   <name>engops-nfs</name>\n    <description></description>\n    <link rel=\"storagedomains\"
+        href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/storagedomains\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/datacenters/645e425e-66fe-4ac9-8874-537bd10ef08d/permissions\"/>\n
+        \   <storage_type>nfs</storage_type>\n    <storage_format>v1</storage_format>\n
+        \   <version minor=\"0\" major=\"3\"/>\n    <supported_versions>\n        <version
+        minor=\"0\" major=\"3\"/>\n    </supported_versions>\n    <status>\n        <state>up</state>\n
+        \   </status>\n</data_center>\n"
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+recorded_with: VCR 2.1.1

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/02bb895d/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_image.yml b/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
new file mode 100644
index 0000000..6964a88
--- /dev/null
+++ b/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_image.yml
@@ -0,0 +1,388 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1847'
+      Date:
+      - Wed, 25 Jul 2012 11:52:00 GMT
+    body:
+      encoding: US-ASCII
+      string: !str
+        str: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template
+          id=\"dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\">\n
+          \   <name>rhel61-network</name>\n    <description>RHEL 6.1 with networking</description>\n
+          \   <actions>\n        <link rel=\"export\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/export\"/>\n
+          \   </actions>\n    <link rel=\"disks\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/disks\"/>\n
+          \   <link rel=\"nics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/nics\"/>\n
+          \   <link rel=\"cdroms\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/cdroms\"/>\n
+          \   <link rel=\"snapshots\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/snapshots\"/>\n
+          \   <link rel=\"tags\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/tags\"/>\n
+          \   <link rel=\"permissions\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/permissions\"/>\n
+          \   <link rel=\"statistics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/statistics\"/>\n
+          \   <type>server</type>\n    <status>\n        <state>ok</state>\n    </status>\n
+          \   <memory>2147483648</memory>\n    <cpu>\n        <topology cores=\"2\"
+          sockets=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n        <boot
+          dev=\"hd\"/>\n        <kernel></kernel>\n        <initrd></initrd>\n        <cmdline></cmdline>\n
+          \   </os>\n    <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\"/>\n
+          \   <creation_time>2011-10-06T13:31:30.467+02:00</creation_time>\n    <origin>rhev</origin>\n
+          \   <high_availability>\n        <enabled>false</enabled>\n        <priority>1</priority>\n
+          \   </high_availability>\n    <display>\n        <type>vnc</type>\n        <monitors>1</monitors>\n
+          \   </display>\n    <stateless>false</stateless>\n    <usb>\n        <enabled>false</enabled>\n
+          \   </usb>\n</template>\n"
+        net_http_res: &70270611038140 !ruby/object:Net::HTTPOK
+          http_version: '1.0'
+          code: '200'
+          message: OK
+          header:
+            server:
+            - Apache-Coyote/1.1
+            pragma:
+            - No-cache
+            cache-control:
+            - no-cache
+            expires:
+            - Thu, 01 Jan 1970 01:00:00 CET
+            x-powered-by:
+            - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+            content-type:
+            - application/xml
+            content-length:
+            - '1847'
+            date:
+            - Wed, 25 Jul 2012 11:52:00 GMT
+          body: !str
+            str: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template
+              id=\"dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\">\n
+              \   <name>rhel61-network</name>\n    <description>RHEL 6.1 with networking</description>\n
+              \   <actions>\n        <link rel=\"export\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/export\"/>\n
+              \   </actions>\n    <link rel=\"disks\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/disks\"/>\n
+              \   <link rel=\"nics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/nics\"/>\n
+              \   <link rel=\"cdroms\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/cdroms\"/>\n
+              \   <link rel=\"snapshots\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/snapshots\"/>\n
+              \   <link rel=\"tags\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/tags\"/>\n
+              \   <link rel=\"permissions\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/permissions\"/>\n
+              \   <link rel=\"statistics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/statistics\"/>\n
+              \   <type>server</type>\n    <status>\n        <state>ok</state>\n    </status>\n
+              \   <memory>2147483648</memory>\n    <cpu>\n        <topology cores=\"2\"
+              sockets=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n        <boot
+              dev=\"hd\"/>\n        <kernel></kernel>\n        <initrd></initrd>\n
+              \       <cmdline></cmdline>\n    </os>\n    <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\"
+              href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\"/>\n    <creation_time>2011-10-06T13:31:30.467+02:00</creation_time>\n
+              \   <origin>rhev</origin>\n    <high_availability>\n        <enabled>false</enabled>\n
+              \       <priority>1</priority>\n    </high_availability>\n    <display>\n
+              \       <type>vnc</type>\n        <monitors>1</monitors>\n    </display>\n
+              \   <stateless>false</stateless>\n    <usb>\n        <enabled>false</enabled>\n
+              \   </usb>\n</template>\n"
+            net_http_res: *70270611038140
+            args: &70270611163740
+              :method: :get
+              :url: https://rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872
+              :headers:
+                :content_type: application/xml
+                :accept: application/xml
+                :authorization: Basic dmRjYWRtaW5Acmhldi5sYWIuZW5nLmJycS5yZWRoYXQuY29tOjEyMzQ1Ng==
+            code: 200
+          read: true
+          __read_body_previously_called: true
+        args: *70270611163740
+        code: 200
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1847'
+      Date:
+      - Wed, 25 Jul 2012 11:52:00 GMT
+    body:
+      encoding: US-ASCII
+      string: !str
+        str: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template
+          id=\"dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\">\n
+          \   <name>rhel61-network</name>\n    <description>RHEL 6.1 with networking</description>\n
+          \   <actions>\n        <link rel=\"export\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/export\"/>\n
+          \   </actions>\n    <link rel=\"disks\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/disks\"/>\n
+          \   <link rel=\"nics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/nics\"/>\n
+          \   <link rel=\"cdroms\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/cdroms\"/>\n
+          \   <link rel=\"snapshots\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/snapshots\"/>\n
+          \   <link rel=\"tags\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/tags\"/>\n
+          \   <link rel=\"permissions\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/permissions\"/>\n
+          \   <link rel=\"statistics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/statistics\"/>\n
+          \   <type>server</type>\n    <status>\n        <state>ok</state>\n    </status>\n
+          \   <memory>2147483648</memory>\n    <cpu>\n        <topology cores=\"2\"
+          sockets=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n        <boot
+          dev=\"hd\"/>\n        <kernel></kernel>\n        <initrd></initrd>\n        <cmdline></cmdline>\n
+          \   </os>\n    <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\"/>\n
+          \   <creation_time>2011-10-06T13:31:30.467+02:00</creation_time>\n    <origin>rhev</origin>\n
+          \   <high_availability>\n        <enabled>false</enabled>\n        <priority>1</priority>\n
+          \   </high_availability>\n    <display>\n        <type>vnc</type>\n        <monitors>1</monitors>\n
+          \   </display>\n    <stateless>false</stateless>\n    <usb>\n        <enabled>false</enabled>\n
+          \   </usb>\n</template>\n"
+        net_http_res: &70270610935100 !ruby/object:Net::HTTPOK
+          http_version: '1.0'
+          code: '200'
+          message: OK
+          header:
+            server:
+            - Apache-Coyote/1.1
+            pragma:
+            - No-cache
+            cache-control:
+            - no-cache
+            expires:
+            - Thu, 01 Jan 1970 01:00:00 CET
+            x-powered-by:
+            - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+            content-type:
+            - application/xml
+            content-length:
+            - '1847'
+            date:
+            - Wed, 25 Jul 2012 11:52:00 GMT
+          body: !str
+            str: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template
+              id=\"dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\">\n
+              \   <name>rhel61-network</name>\n    <description>RHEL 6.1 with networking</description>\n
+              \   <actions>\n        <link rel=\"export\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/export\"/>\n
+              \   </actions>\n    <link rel=\"disks\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/disks\"/>\n
+              \   <link rel=\"nics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/nics\"/>\n
+              \   <link rel=\"cdroms\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/cdroms\"/>\n
+              \   <link rel=\"snapshots\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/snapshots\"/>\n
+              \   <link rel=\"tags\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/tags\"/>\n
+              \   <link rel=\"permissions\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/permissions\"/>\n
+              \   <link rel=\"statistics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/statistics\"/>\n
+              \   <type>server</type>\n    <status>\n        <state>ok</state>\n    </status>\n
+              \   <memory>2147483648</memory>\n    <cpu>\n        <topology cores=\"2\"
+              sockets=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n        <boot
+              dev=\"hd\"/>\n        <kernel></kernel>\n        <initrd></initrd>\n
+              \       <cmdline></cmdline>\n    </os>\n    <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\"
+              href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\"/>\n    <creation_time>2011-10-06T13:31:30.467+02:00</creation_time>\n
+              \   <origin>rhev</origin>\n    <high_availability>\n        <enabled>false</enabled>\n
+              \       <priority>1</priority>\n    </high_availability>\n    <display>\n
+              \       <type>vnc</type>\n        <monitors>1</monitors>\n    </display>\n
+              \   <stateless>false</stateless>\n    <usb>\n        <enabled>false</enabled>\n
+              \   </usb>\n</template>\n"
+            net_http_res: *70270610935100
+            args: &70270610991180
+              :method: :get
+              :url: https://rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872
+              :headers:
+                :content_type: application/xml
+                :accept: application/xml
+                :authorization: Basic dmRjYWRtaW5Acmhldi5sYWIuZW5nLmJycS5yZWRoYXQuY29tOjEyMzQ1Ng==
+            code: 200
+          read: true
+          __read_body_previously_called: true
+        args: *70270610991180
+        code: 200
+    http_version: 
+  recorded_at: Mon, 23 Jul 2012 12:21:00 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 200
+      message: OK
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Thu, 01 Jan 1970 01:00:00 CET
+      X-Powered-By:
+      - Servlet 2.5; JBoss-5.0/JBossWeb-2.1
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1847'
+      Date:
+      - Wed, 25 Jul 2012 11:53:58 GMT
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<template
+        id=\"dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872\">\n
+        \   <name>rhel61-network</name>\n    <description>RHEL 6.1 with networking</description>\n
+        \   <actions>\n        <link rel=\"export\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/export\"/>\n
+        \   </actions>\n    <link rel=\"disks\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/disks\"/>\n
+        \   <link rel=\"nics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/nics\"/>\n
+        \   <link rel=\"cdroms\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/cdroms\"/>\n
+        \   <link rel=\"snapshots\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/snapshots\"/>\n
+        \   <link rel=\"tags\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/tags\"/>\n
+        \   <link rel=\"permissions\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/permissions\"/>\n
+        \   <link rel=\"statistics\" href=\"/api/templates/dfa924b7-83e8-4a5c-9d5c-1270fd0c0872/statistics\"/>\n
+        \   <type>server</type>\n    <status>\n        <state>ok</state>\n    </status>\n
+        \   <memory>2147483648</memory>\n    <cpu>\n        <topology cores=\"2\"
+        sockets=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n        <boot dev=\"hd\"/>\n
+        \       <kernel></kernel>\n        <initrd></initrd>\n        <cmdline></cmdline>\n
+        \   </os>\n    <cluster id=\"3c8af388-cff6-11e0-9267-52540013f702\" href=\"/api/clusters/3c8af388-cff6-11e0-9267-52540013f702\"/>\n
+        \   <creation_time>2011-10-06T13:31:30.467+02:00</creation_time>\n    <origin>rhev</origin>\n
+        \   <high_availability>\n        <enabled>false</enabled>\n        <priority>1</priority>\n
+        \   </high_availability>\n    <display>\n        <type>vnc</type>\n        <monitors>1</monitors>\n
+        \   </display>\n    <stateless>false</stateless>\n    <usb>\n        <enabled>false</enabled>\n
+        \   </usb>\n</template>\n"
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:55:04 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/ami-aaaaaaaa
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 404
+      message: Not Found
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Content-Type:
+      - text/html;charset=utf-8
+      Content-Length:
+      - '950'
+      Date:
+      - Wed, 25 Jul 2012 11:53:58 GMT
+    body:
+      encoding: US-ASCII
+      string: ! '<html><head><title>JBoss Web/2.1.11.GA - Error report</title><style><!--H1
+        {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
+        H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
+        H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
+        BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
+        B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
+        P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
+        {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
+        Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
+        <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR
+        size="1" noshade="noshade"><h3>JBoss Web/2.1.11.GA</h3></body></html>'
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:55:04 GMT
+- request:
+    method: get
+    uri: https://vdcadmin%40rhev.lab.eng.brq.redhat.com:123456@rhev30-dc.lab.eng.brq.redhat.com:8443/api/templates/unknown
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
+      - application/xml
+      Accept-Encoding:
+      - gzip, deflate
+      Content-Type:
+      - application/xml
+      User-Agent:
+      - Ruby
+  response:
+    status:
+      code: 404
+      message: Not Found
+    headers:
+      Server:
+      - Apache-Coyote/1.1
+      Content-Type:
+      - text/html;charset=utf-8
+      Content-Length:
+      - '950'
+      Date:
+      - Wed, 25 Jul 2012 11:53:58 GMT
+    body:
+      encoding: US-ASCII
+      string: ! '<html><head><title>JBoss Web/2.1.11.GA - Error report</title><style><!--H1
+        {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
+        H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
+        H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
+        BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
+        B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
+        P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
+        {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
+        Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
+        <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR
+        size="1" noshade="noshade"><h3>JBoss Web/2.1.11.GA</h3></body></html>'
+    http_version: 
+  recorded_at: Wed, 25 Jul 2012 11:55:04 GMT
+recorded_with: VCR 2.1.1


Mime
View raw message