deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [4/15] RHEV-M: avoid failure of GET instance details
Date Thu, 28 Feb 2013 14:17:14 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d96847ba/server/tests/drivers/rhevm/fixtures/test_0006_must_allow_to_create_a_new_instance_and_make_it_running-8.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/rhevm/fixtures/test_0006_must_allow_to_create_a_new_instance_and_make_it_running-8.yml
b/server/tests/drivers/rhevm/fixtures/test_0006_must_allow_to_create_a_new_instance_and_make_it_running-8.yml
new file mode 100644
index 0000000..9ecd2f0
--- /dev/null
+++ b/server/tests/drivers/rhevm/fixtures/test_0006_must_allow_to_create_a_new_instance_and_make_it_running-8.yml
@@ -0,0 +1,132 @@
+---
+http_interactions:
+- request:
+    method: get
+    uri: https://fakeuser:fakepassword@10.16.120.71/api/vms/cb844493-857d-4238-88a5-597d82396a7f
+    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:
+      Date:
+      - Wed, 27 Feb 2013 22:30:55 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=rqoZRpOdJHp6N705oumSInps; Path=/api; Secure
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '3192'
+      Connection:
+      - close
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<vm
+        href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f\" id=\"cb844493-857d-4238-88a5-597d82396a7f\">\n
+        \   <actions>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/ticket\"
+        rel=\"ticket\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/migrate\"
+        rel=\"migrate\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/cancelmigration\"
+        rel=\"cancelmigration\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/shutdown\"
+        rel=\"shutdown\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/start\"
+        rel=\"start\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/stop\"
+        rel=\"stop\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/suspend\"
+        rel=\"suspend\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/detach\"
+        rel=\"detach\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/export\"
+        rel=\"export\"/>\n        <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/move\"
+        rel=\"move\"/>\n    </actions>\n    <name>i-1362004223</name>\n
   <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/disks\"
+        rel=\"disks\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics\"
+        rel=\"nics\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/cdroms\"
+        rel=\"cdroms\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/snapshots\"
+        rel=\"snapshots\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/tags\"
+        rel=\"tags\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/permissions\"
+        rel=\"permissions\"/>\n    <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/statistics\"
+        rel=\"statistics\"/>\n    <type>server</type>\n    <status>\n
       <state>down</state>\n
+        \   </status>\n    <memory>1073741824</memory>\n    <cpu>\n
       <topology
+        sockets=\"1\" cores=\"1\"/>\n    </cpu>\n    <os type=\"rhel_6x64\">\n
       <boot
+        dev=\"network\"/>\n        <boot dev=\"hd\"/>\n        <kernel></kernel>\n
+        \       <initrd></initrd>\n        <cmdline></cmdline>\n
   </os>\n    <high_availability>\n
+        \       <enabled>false</enabled>\n        <priority>1</priority>\n
   </high_availability>\n
+        \   <display>\n        <type>spice</type>\n        <monitors>1</monitors>\n
+        \       <allow_override>false</allow_override>\n    </display>\n
   <cluster
+        href=\"/api/clusters/b91b0346-4ba3-11e2-a3ac-0050568c6b2d\" id=\"b91b0346-4ba3-11e2-a3ac-0050568c6b2d\"/>\n
+        \   <template href=\"/api/templates/3cd2891a-9a0f-44c8-8dec-6280efa278e3\"
+        id=\"3cd2891a-9a0f-44c8-8dec-6280efa278e3\"/>\n    <creation_time>2013-02-27T17:30:32.542-05:00</creation_time>\n
+        \   <origin>rhev</origin>\n    <stateless>false</stateless>\n
   <payloads>\n
+        \       <payload type=\"floppy\">\n            <file name=\"deltacloud-user-data.txt\">\n
+        \               <content></content>\n            </file>\n    
   </payload>\n
+        \   </payloads>\n    <placement_policy>\n        <affinity>migratable</affinity>\n
+        \   </placement_policy>\n    <memory_policy>\n        <guaranteed>1073741824</guaranteed>\n
+        \       <ballooning>true</ballooning>\n    </memory_policy>\n 
  <quota id=\"00000000-0000-0000-0000-000000000000\"/>\n
+        \   <usb>\n        <enabled>false</enabled>\n    </usb>\n</vm>\n"
+    http_version: 
+  recorded_at: Wed, 27 Feb 2013 22:30:46 GMT
+- request:
+    method: get
+    uri: https://fakeuser:fakepassword@10.16.120.71/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics
+    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:
+      Date:
+      - Wed, 27 Feb 2013 22:30:55 GMT
+      Pragma:
+      - No-cache
+      Cache-Control:
+      - no-cache
+      Expires:
+      - Wed, 31 Dec 1969 19:00:00 EST
+      Set-Cookie:
+      - JSESSIONID=h3qoQe+PQQmxeBsaKtpqXq0n; Path=/api; Secure
+      Content-Type:
+      - application/xml
+      Content-Length:
+      - '1052'
+      Connection:
+      - close
+    body:
+      encoding: US-ASCII
+      string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<nics>\n
+        \   <nic href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics/1bd2f5e8-9b50-4a02-9f6a-f967bf99dfdd\"
+        id=\"1bd2f5e8-9b50-4a02-9f6a-f967bf99dfdd\">\n        <actions>\n      
     <link
+        href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics/1bd2f5e8-9b50-4a02-9f6a-f967bf99dfdd/deactivate\"
+        rel=\"deactivate\"/>\n            <link href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics/1bd2f5e8-9b50-4a02-9f6a-f967bf99dfdd/activate\"
+        rel=\"activate\"/>\n        </actions>\n        <name>nic1</name>\n
       <link
+        href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f/nics/1bd2f5e8-9b50-4a02-9f6a-f967bf99dfdd/statistics\"
+        rel=\"statistics\"/>\n        <vm href=\"/api/vms/cb844493-857d-4238-88a5-597d82396a7f\"
+        id=\"cb844493-857d-4238-88a5-597d82396a7f\"/>\n        <network href=\"/api/networks/75d153fb-3e33-4319-9d6a-1f4cb20b26b0\"
+        id=\"75d153fb-3e33-4319-9d6a-1f4cb20b26b0\"/>\n        <interface>virtio</interface>\n
+        \       <mac address=\"00:1a:4a:10:56:6d\"/>\n        <active>true</active>\n
+        \   </nic>\n</nics>\n"
+    http_version: 
+  recorded_at: Wed, 27 Feb 2013 22:30:47 GMT
+recorded_with: VCR 2.4.0


Mime
View raw message