deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [33/41] Revamp RHEV-M driver tests and rerecord them
Date Mon, 11 Mar 2013 21:36:15 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/861156f8/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_realm.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_realm.yml
b/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_realm.yml
index a65a5e4..9512818 100644
--- a/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_realm.yml
+++ b/server/tests/drivers/rhevm/fixtures/test_0004_must_allow_to_retrieve_single_realm.yml
@@ -1,522 +1,459 @@
---- 
-recorded_with: VCR 2.3.0
-http_interactions: 
-- request: 
+---
+http_interactions:
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters?search=
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:26:53 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=0DvxYFOURQX2ZrYvw8a35fB6; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=slOEpaJeq0lb9n64tNF7GnTQ; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:04 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '864'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_centers>\n
+        \   <data_center href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\"
+        id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n        <name>iscsi</name>\n
+        \       <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n        <storage_type>iscsi</storage_type>\n   
    <storage_format>v3</storage_format>\n
+        \       <version major=\"3\" minor=\"1\"/>\n        <supported_versions>\n
+        \           <version major=\"3\" minor=\"1\"/>\n        </supported_versions>\n
+        \       <status>\n            <state>up</state>\n        </status>\n
   </data_center>\n</data_centers>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:04 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:26:53 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/clusters?search=datacenter=Default
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/clusters?search=datacenter=iscsi
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:26:54 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "1232"
-      Set-Cookie: 
-      - JSESSIONID=LXzamuXkfjKm2iucPQG86ahb; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=+0sFOsPt17EFdYXf8s-0Qfdf; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:04 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '1167'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <clusters>
-            <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95">
-                <name>Default</name>
-                <description>The default server cluster</description>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/networks"
rel="networks"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/permissions"
rel="permissions"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/glustervolumes"
rel="glustervolumes"/>
-                <cpu id="Intel Westmere Family"/>
-                <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a"
id="9df72b84-0234-11e2-9b87-9386d9b09d4a"/>
-                <memory_policy>
-                    <overcommit percent="150"/>
-                    <transparent_hugepages>
-                        <enabled>true</enabled>
-                    </transparent_hugepages>
-                </memory_policy>
-                <scheduling_policy/>
-                <version major="3" minor="1"/>
-                <error_handling>
-                    <on_error>migrate</on_error>
-                </error_handling>
-                <virt_service>true</virt_service>
-                <gluster_service>false</gluster_service>
-            </cluster>
-        </clusters>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d\" id=\"b91b0346-4ba3-11e2-a3ac-0050568c6b2d\">\n
+        \       <name>iscsi</name>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/networks\"
+        rel=\"networks\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/glustervolumes\"
+        rel=\"glustervolumes\"/>\n        <cpu id=\"Intel Nehalem Family\"/>\n 
      <data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\"/>\n
+        \       <memory_policy>\n            <overcommit percent=\"100\"/>\n
           <transparent_hugepages>\n
+        \               <enabled>true</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version
major=\"3\"
+        minor=\"1\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n        <virt_service>true</virt_service>\n
       <gluster_service>false</gluster_service>\n
+        \   </cluster>\n</clusters>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:04 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:26:54 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:26:55 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=gGQY+EpVtoNeJjUGxV3KninN; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=P0uwAXelOCQJ6YKLOCaIH0Af; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:04 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '773'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n
+        \   <name>iscsi</name>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n    <storage_type>iscsi</storage_type>\n    <storage_format>v3</storage_format>\n
+        \   <version major=\"3\" minor=\"1\"/>\n    <supported_versions>\n  
     <version
+        major=\"3\" minor=\"1\"/>\n    </supported_versions>\n    <status>\n
       <state>up</state>\n
+        \   </status>\n</data_center>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:04 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:26:55 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters?search=
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:06 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=xA+gJYnrgpLT82WlbWXHkr7R; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=Hm3RfP1KB5ndb3gtru9U0t6D; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:04 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '864'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_centers>\n
+        \   <data_center href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\"
+        id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n        <name>iscsi</name>\n
+        \       <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n        <storage_type>iscsi</storage_type>\n   
    <storage_format>v3</storage_format>\n
+        \       <version major=\"3\" minor=\"1\"/>\n        <supported_versions>\n
+        \           <version major=\"3\" minor=\"1\"/>\n        </supported_versions>\n
+        \       <status>\n            <state>up</state>\n        </status>\n
   </data_center>\n</data_centers>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:04 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:29:07 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/clusters?search=datacenter=Default
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/clusters?search=datacenter=iscsi
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:08 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "1232"
-      Set-Cookie: 
-      - JSESSIONID=ihwCLAjBfpCX5QO9BXUR2PqO; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=GbNagDQfcdSEfv-M6dhxRi-H; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:05 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '1167'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <clusters>
-            <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95">
-                <name>Default</name>
-                <description>The default server cluster</description>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/networks"
rel="networks"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/permissions"
rel="permissions"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/glustervolumes"
rel="glustervolumes"/>
-                <cpu id="Intel Westmere Family"/>
-                <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a"
id="9df72b84-0234-11e2-9b87-9386d9b09d4a"/>
-                <memory_policy>
-                    <overcommit percent="150"/>
-                    <transparent_hugepages>
-                        <enabled>true</enabled>
-                    </transparent_hugepages>
-                </memory_policy>
-                <scheduling_policy/>
-                <version major="3" minor="1"/>
-                <error_handling>
-                    <on_error>migrate</on_error>
-                </error_handling>
-                <virt_service>true</virt_service>
-                <gluster_service>false</gluster_service>
-            </cluster>
-        </clusters>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d\" id=\"b91b0346-4ba3-11e2-a3ac-0050568c6b2d\">\n
+        \       <name>iscsi</name>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/networks\"
+        rel=\"networks\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/glustervolumes\"
+        rel=\"glustervolumes\"/>\n        <cpu id=\"Intel Nehalem Family\"/>\n 
      <data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\"/>\n
+        \       <memory_policy>\n            <overcommit percent=\"100\"/>\n
           <transparent_hugepages>\n
+        \               <enabled>true</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version
major=\"3\"
+        minor=\"1\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n        <virt_service>true</virt_service>\n
       <gluster_service>false</gluster_service>\n
+        \   </cluster>\n</clusters>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:05 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:29:08 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:09 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=3k4QGXmhck7z3ErqFwozDV0N; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=Tkd9eNLJa+vXAnkYMXXD1Osx; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:05 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '773'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n
+        \   <name>iscsi</name>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n    <storage_type>iscsi</storage_type>\n    <storage_format>v3</storage_format>\n
+        \   <version major=\"3\" minor=\"1\"/>\n    <supported_versions>\n  
     <version
+        major=\"3\" minor=\"1\"/>\n    </supported_versions>\n    <status>\n
       <state>up</state>\n
+        \   </status>\n</data_center>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:05 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:29:09 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters?search=
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:10 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=z0UURnDz3XM5F7L18ez8Odb3; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=Jz0mgH4L-lCtEN2E2AdxWdru; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:05 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '864'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_centers>\n
+        \   <data_center href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\"
+        id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n        <name>iscsi</name>\n
+        \       <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n        <storage_type>iscsi</storage_type>\n   
    <storage_format>v3</storage_format>\n
+        \       <version major=\"3\" minor=\"1\"/>\n        <supported_versions>\n
+        \           <version major=\"3\" minor=\"1\"/>\n        </supported_versions>\n
+        \       <status>\n            <state>up</state>\n        </status>\n
   </data_center>\n</data_centers>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:05 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:29:10 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/clusters?search=datacenter=Default
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/clusters?search=datacenter=iscsi
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:11 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "1232"
-      Set-Cookie: 
-      - JSESSIONID=sYwy9tuj1rGmmhzizlp259PW; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=UkHHFAMMihesrt+SHlLew0TW; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:05 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '1167'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <clusters>
-            <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95">
-                <name>Default</name>
-                <description>The default server cluster</description>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/networks"
rel="networks"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/permissions"
rel="permissions"/>
-                <link href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95/glustervolumes"
rel="glustervolumes"/>
-                <cpu id="Intel Westmere Family"/>
-                <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a"
id="9df72b84-0234-11e2-9b87-9386d9b09d4a"/>
-                <memory_policy>
-                    <overcommit percent="150"/>
-                    <transparent_hugepages>
-                        <enabled>true</enabled>
-                    </transparent_hugepages>
-                </memory_policy>
-                <scheduling_policy/>
-                <version major="3" minor="1"/>
-                <error_handling>
-                    <on_error>migrate</on_error>
-                </error_handling>
-                <virt_service>true</virt_service>
-                <gluster_service>false</gluster_service>
-            </cluster>
-        </clusters>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<clusters>\n
+        \   <cluster href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d\" id=\"b91b0346-4ba3-11e2-a3ac-0050568c6b2d\">\n
+        \       <name>iscsi</name>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/networks\"
+        rel=\"networks\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/permissions\"
+        rel=\"permissions\"/>\n        <link href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d/glustervolumes\"
+        rel=\"glustervolumes\"/>\n        <cpu id=\"Intel Nehalem Family\"/>\n 
      <data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\"/>\n
+        \       <memory_policy>\n            <overcommit percent=\"100\"/>\n
           <transparent_hugepages>\n
+        \               <enabled>true</enabled>\n            </transparent_hugepages>\n
+        \       </memory_policy>\n        <scheduling_policy/>\n        <version
major=\"3\"
+        minor=\"1\"/>\n        <error_handling>\n            <on_error>migrate</on_error>\n
+        \       </error_handling>\n        <virt_service>true</virt_service>\n
       <gluster_service>false</gluster_service>\n
+        \   </cluster>\n</clusters>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:05 GMT
-- request: 
+  recorded_at: Thu, 07 Mar 2013 22:29:12 GMT
+- request:
     method: get
-    uri: https://admin%40internal:redhat@dell-per610-02.lab.eng.brq.redhat.com/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a
-    body: 
-      string: ""
-    headers: 
-      Content-Type: 
+    uri: https://fakeuser:fakepassword@rhevm.example.com/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779
+    body:
+      encoding: US-ASCII
+      string: ''
+    headers:
+      Accept:
       - application/xml
-      Accept-Encoding: 
+      Accept-Encoding:
       - gzip, deflate
-      Accept: 
+      Content-Type:
       - application/xml
-  response: 
-    status: 
+      User-Agent:
+      - Ruby
+  response:
+    status:
       code: 200
       message: OK
-    headers: 
-      Cache-Control: 
+    headers:
+      Date:
+      - Thu, 07 Mar 2013 22:29:12 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
       - no-cache
-      Content-Length: 
-      - "828"
-      Set-Cookie: 
-      - JSESSIONID=69xX-SgvfNZ16R-MvHW7lKvc; Path=/api; Secure
-      Content-Type: 
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=JwumyF11aNbum29zVOvKo6zN; Path=/api; Secure
+      Content-Type:
       - application/xml
-      Pragma: 
-      - No-cache
-      Date: 
-      - Thu, 22 Nov 2012 11:41:05 GMT
-      Expires: 
-      - Thu, 01 Jan 1970 01:00:00 CET
-      Connection: 
+      Content-Length:
+      - '773'
+      Connection:
       - close
-    body: 
-      string: |
-        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-        <data_center href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a" id="9df72b84-0234-11e2-9b87-9386d9b09d4a">
-            <name>Default</name>
-            <description>The default Data Center</description>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/storagedomains"
rel="storagedomains"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/permissions"
rel="permissions"/>
-            <link href="/api/datacenters/9df72b84-0234-11e2-9b87-9386d9b09d4a/quotas"
rel="quotas"/>
-            <storage_type>nfs</storage_type>
-            <storage_format>v3</storage_format>
-            <version major="3" minor="1"/>
-            <supported_versions>
-                <version major="3" minor="1"/>
-            </supported_versions>
-            <status>
-                <state>up</state>
-            </status>
-        </data_center>
-
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<data_center
+        href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779\" id=\"b9bb11c2-f397-4f41-a57b-7ac15a894779\">\n
+        \   <name>iscsi</name>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/storagedomains\"
+        rel=\"storagedomains\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/permissions\"
+        rel=\"permissions\"/>\n    <link href=\"/api/datacenters/b9bb11c2-f397-4f41-a57b-7ac15a894779/quotas\"
+        rel=\"quotas\"/>\n    <storage_type>iscsi</storage_type>\n    <storage_format>v3</storage_format>\n
+        \   <version major=\"3\" minor=\"1\"/>\n    <supported_versions>\n  
     <version
+        major=\"3\" minor=\"1\"/>\n    </supported_versions>\n    <status>\n
       <state>up</state>\n
+        \   </status>\n</data_center>\n"
     http_version: 
-  recorded_at: Thu, 22 Nov 2012 11:41:05 GMT
+  recorded_at: Thu, 07 Mar 2013 22:29:13 GMT
+recorded_with: VCR 2.4.0


Mime
View raw message