incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1089371 [2/2] - in /incubator/deltacloud/trunk/server: ./ tests/ tests/drivers/mock/ tests/drivers/rackspace/ tests/drivers/rackspace/fixtures/
Date Wed, 06 Apr 2011 09:21:41 GMT
Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b73452ba27599b5e170faaae32bfef8b0a331fc6.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b73452ba27599b5e170faaae32bfef8b0a331fc6.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b73452ba27599b5e170faaae32bfef8b0a331fc6.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b73452ba27599b5e170faaae32bfef8b0a331fc6.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,77 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:15 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:00 GMT
+      x-varnish: 
+      - "437923080"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:17 GMT
+      content-length: 
+      - "242"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b84d468c592033e08492238bd5c80639cbc63bd3.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b84d468c592033e08492238bd5c80639cbc63bd3.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b84d468c592033e08492238bd5c80639cbc63bd3.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-b84d468c592033e08492238bd5c80639cbc63bd3.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,36 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:27 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d69cab1f8c346dc2f51a2865feeeb744da88cdfd.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d69cab1f8c346dc2f51a2865feeeb744da88cdfd.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d69cab1f8c346dc2f51a2865feeeb744da88cdfd.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d69cab1f8c346dc2f51a2865feeeb744da88cdfd.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:28 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/flavors/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Tue, 18 Mar 2008 17:54:15 GMT
+      x-varnish: 
+      - 437917617 437909592
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:29 GMT
+      content-length: 
+      - "368"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "96"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /flavors
+    body: "{\"flavors\":[{\"id\":1,\"ram\":256,\"disk\":10,\"name\":\"256 server\"},{\"id\":2,\"ram\":512,\"disk\":20,\"name\":\"512 server\"},{\"id\":3,\"ram\":1024,\"disk\":40,\"name\":\"1GB server\"},{\"id\":4,\"ram\":2048,\"disk\":80,\"name\":\"2GB server\"},{\"id\":5,\"ram\":4096,\"disk\":160,\"name\":\"4GB server\"},{\"id\":6,\"ram\":8192,\"disk\":320,\"name\":\"8GB server\"},{\"id\":7,\"ram\":15872,\"disk\":620,\"name\":\"15.5GB server\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d6e43a79c4429459bf2618c5a6a6d80757a67ef9.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d6e43a79c4429459bf2618c5a6a6d80757a67ef9.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d6e43a79c4429459bf2618c5a6a6d80757a67ef9.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-d6e43a79c4429459bf2618c5a6a6d80757a67ef9.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:35 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/images/detail
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Wed, 16 Mar 2011 16:37:05 GMT
+      x-varnish: 
+      - 437918350 437909890
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:36 GMT
+      content-length: 
+      - "2460"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "96"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/images
+    body: "{\"images\":[{\"id\":58,\"status\":\"ACTIVE\",\"updated\":\"2010-09-17T07:19:20-05:00\",\"name\":\"Windows Server 2008 R2 x64 - MSSQL2K8R2\"},{\"id\":71,\"status\":\"ACTIVE\",\"updated\":\"2010-11-13T17:00:35-06:00\",\"name\":\"Fedora 14\"},{\"id\":62,\"status\":\"ACTIVE\",\"updated\":\"2011-03-16T11:37:05-05:00\",\"name\":\"Red Hat Enterprise Linux 5.5\"},{\"id\":29,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:32-06:00\",\"name\":\"Windows Server 2003 R2 SP2 x86\"},{\"id\":40,\"status\":\"ACTIVE\",\"updated\":\"2010-10-28T11:40:20-05:00\",\"name\":\"Oracle EL Server Release 5 Update 4\"},{\"id\":23,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:05:53-06:00\",\"name\":\"Windows Server 2003 R2 SP2 x64\"},{\"id\":19,\"status\":\"ACTIVE\",\"updated\":\"2009-12-15T15:43:39-06:00\",\"name\":\"Gentoo 10.1\"},{\"id\":31,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:44-06:00\",\"name\":\"Windows Server 2008 SP2 x86\"},{\"id\":57,\"status\":\"ACTIVE\",\"u
 pdated\":\"2010-09-17T07:16:25-05:00\",\"name\":\"Windows Server 2008 SP2 x64 - MSSQL2K8R2\"},{\"id\":14362,\"status\":\"ACTIVE\",\"updated\":\"2009-11-06T05:09:40-06:00\",\"name\":\"Ubuntu 9.10 (karmic)\"},{\"id\":49,\"status\":\"ACTIVE\",\"updated\":\"2010-05-04T08:58:18-05:00\",\"name\":\"Ubuntu 10.04 LTS (lucid)\"},{\"id\":55,\"status\":\"ACTIVE\",\"updated\":\"2010-06-29T05:21:55-05:00\",\"name\":\"Arch 2010.05\"},{\"id\":41,\"status\":\"ACTIVE\",\"updated\":\"2010-09-20T09:08:35-05:00\",\"name\":\"Oracle EL JeOS Release 5 Update 3\"},{\"id\":10,\"status\":\"ACTIVE\",\"updated\":\"2009-08-26T14:59:54-05:00\",\"name\":\"Ubuntu 8.04.2 LTS (hardy)\"},{\"id\":187811,\"status\":\"ACTIVE\",\"updated\":\"2009-12-16T01:02:17-06:00\",\"name\":\"CentOS 5.4\"},{\"id\":53,\"status\":\"ACTIVE\",\"updated\":\"2010-06-27T20:13:08-05:00\",\"name\":\"Fedora 13\"},{\"id\":24,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:04-06:00\",\"name\":\"Windows Server 2008 SP2 x64\"},{\"id\":
 51,\"status\":\"ACTIVE\",\"updated\":\"2010-05-21T00:01:43-05:00\",\"name\":\"CentOS 5.5\"},{\"id\":69,\"status\":\"ACTIVE\",\"updated\":\"2010-10-21T15:36:29-05:00\",\"name\":\"Ubuntu 10.10 (maverick)\"},{\"id\":28,\"status\":\"ACTIVE\",\"updated\":\"2010-01-26T12:07:17-06:00\",\"name\":\"Windows Server 2008 R2 x64\"},{\"id\":56,\"status\":\"ACTIVE\",\"updated\":\"2010-09-17T07:12:56-05:00\",\"name\":\"Windows Server 2008 SP2 x86 - MSSQL2K8R2\"},{\"id\":14,\"status\":\"ACTIVE\",\"updated\":\"2009-12-15T15:37:22-06:00\",\"name\":\"Red Hat Enterprise Linux 5.4\"},{\"id\":4,\"status\":\"ACTIVE\",\"updated\":\"2009-08-26T14:59:52-05:00\",\"name\":\"Debian 5.0 (lenny)\"},{\"progress\":100,\"id\":8766576,\"status\":\"ACTIVE\",\"created\":\"2011-02-28T07:40:50-06:00\",\"updated\":\"2011-03-01T06:33:53-06:00\",\"name\":\"Test11\"}]}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-db67323871eddf68889aefc40aeed345459e6e63.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-db67323871eddf68889aefc40aeed345459e6e63.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-db67323871eddf68889aefc40aeed345459e6e63.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/get-db67323871eddf68889aefc40aeed345459e6e63.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,79 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:33 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:26 GMT
+      x-varnish: 
+      - "437924950"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:35 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-165f1ed29df23e6c585ba08d4bd1748b81bef0c2.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-165f1ed29df23e6c585ba08d4bd1748b81bef0c2.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-165f1ed29df23e6c585ba08d4bd1748b81bef0c2.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-165f1ed29df23e6c585ba08d4bd1748b81bef0c2.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,118 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:46 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers
+    body: "{\"server\":{\"imageId\":71,\"flavorId\":2,\"personality\":null,\"name\":\"Thu Mar 31 14:35:46 +0200 2011\"}}"
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      x-varnish: 
+      - "437920217"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:51 GMT
+      content-length: 
+      - "286"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":0,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"BUILD\",\"adminPass\":\"ThuMar311435460200201156oVOLhc2\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:35:51 GMT
+      x-varnish: 
+      - "437921027"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:52 GMT
+      content-length: 
+      - "240"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":0,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"BUILD\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-34c093a5823b18fbaee744bd095162aa29cf3338.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-34c093a5823b18fbaee744bd095162aa29cf3338.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-34c093a5823b18fbaee744bd095162aa29cf3338.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-34c093a5823b18fbaee744bd095162aa29cf3338.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,198 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:48 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:26 GMT
+      x-varnish: 
+      - "437926870"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:50 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:36:50 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:26 GMT
+      x-varnish: 
+      - "437927160"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:52 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336/action
+    body: "{\"reboot\":{\"type\":\"HARD\"}}"
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      x-varnish: 
+      - "437927306"
+      connection: 
+      - keep-alive
+      content-type: 
+      - text/xml
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:36:55 GMT
+      content-length: 
+      - "0"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: 
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-837a9c2f7f5471d7163f1a149a29195fc73364ea.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-837a9c2f7f5471d7163f1a149a29195fc73364ea.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-837a9c2f7f5471d7163f1a149a29195fc73364ea.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-837a9c2f7f5471d7163f1a149a29195fc73364ea.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,196 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:38:01 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:44 GMT
+      x-varnish: 
+      - "437933481"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:38:02 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722338
+    body: "{\"server\":{\"progress\":100,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:38:04 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 203
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:36:44 GMT
+      x-varnish: 
+      - 437933775 437933481
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:38:04 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "2"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722338
+    body: "{\"server\":{\"progress\":100,\"id\":722338,\"imageId\":71,\"flavorId\":2,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114354602002011\",\"hostId\":\"9d13306835530e8b384b0751b2bbb51b\",\"addresses\":{\"public\":[\"50.56.108.136\"],\"private\":[\"10.181.175.131\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :delete
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722338
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      x-varnish: 
+      - "437933848"
+      connection: 
+      - keep-alive
+      content-type: 
+      - text/xml
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:38:07 GMT
+      content-length: 
+      - "0"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: 
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-aa64fab8820e4b7362b3784fb7373023223bfad3.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-aa64fab8820e4b7362b3784fb7373023223bfad3.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-aa64fab8820e4b7362b3784fb7373023223bfad3.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-aa64fab8820e4b7362b3784fb7373023223bfad3.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,196 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:37:21 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:37:07 GMT
+      x-varnish: 
+      - "437930088"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:37:22 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:37:23 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:37:07 GMT
+      x-varnish: 
+      - "437930162"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:37:25 GMT
+      content-length: 
+      - "243"
+      cache-control: 
+      - s-maxage=1800
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+      x-purge-key: 
+      - /561604/servers/722336
+    body: "{\"server\":{\"progress\":100,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"ACTIVE\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :delete
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      x-varnish: 
+      - "437930164"
+      connection: 
+      - keep-alive
+      content-type: 
+      - text/xml
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:37:28 GMT
+      content-length: 
+      - "0"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: 
+    http_version: "1.1"

Added: incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-c29de27eb57dd3b1d715623c78d86ae1e4ca70d3.yml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-c29de27eb57dd3b1d715623c78d86ae1e4ca70d3.yml?rev=1089371&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-c29de27eb57dd3b1d715623c78d86ae1e4ca70d3.yml (added)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/fixtures/post-c29de27eb57dd3b1d715623c78d86ae1e4ca70d3.yml Wed Apr  6 09:21:39 2011
@@ -0,0 +1,118 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://auth.api.rackspacecloud.com:443/v1.0
+    body: 
+    headers: 
+      x-auth-user: 
+      - michalfojtik
+      x-auth-key: 
+      - 47de1170d57eb8f11dba2f6e7fd26838
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      content-type: 
+      - application/octet-stream
+      server: 
+      - Apache/2.2.3 (Mosso Engineering)
+      date: 
+      - Thu, 31 Mar 2011 12:35:38 GMT
+      x-cdn-management-url: 
+      - https://cdn2.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      content-length: 
+      - "0"
+      x-server-management-url: 
+      - https://servers.api.rackspacecloud.com/v1.0/561604
+      x-storage-url: 
+      - https://storage101.ord1.clouddrive.com/v1/MossoCloudFS_317909a7-4980-462e-b37c-42da54393ba5
+      x-storage-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+    body: 
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers
+    body: "{\"server\":{\"imageId\":71,\"flavorId\":1,\"personality\":null,\"name\":\"Thu Mar 31 14:35:38 +0200 2011\"}}"
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      x-varnish: 
+      - "437918823"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:43 GMT
+      content-length: 
+      - "286"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":0,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"adminPass\":\"ThuMar3114353802002011sBX72f3iP\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://servers.api.rackspacecloud.com:443/v1.0/561604/servers/722336
+    body: 
+    headers: 
+      accept: 
+      - application/json
+      x-auth-token: 
+      - 82fcef6b-9aa8-476b-a6aa-3adfb5985ef4
+      user-agent: 
+      - CloudServers Ruby API 0.4.1
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      last-modified: 
+      - Thu, 31 Mar 2011 12:35:43 GMT
+      x-varnish: 
+      - "437919847"
+      connection: 
+      - keep-alive
+      content-type: 
+      - application/json
+      via: 
+      - 1.1 varnish
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Thu, 31 Mar 2011 12:35:45 GMT
+      content-length: 
+      - "240"
+      cache-control: 
+      - no-cache
+      age: 
+      - "0"
+      vary: 
+      - Accept, Accept-Encoding, X-Auth-Token
+    body: "{\"server\":{\"progress\":0,\"id\":722336,\"imageId\":71,\"flavorId\":1,\"status\":\"BUILD\",\"name\":\"ThuMar3114353802002011\",\"hostId\":\"54b46e1cf423140b1b3bda212d153d3e\",\"addresses\":{\"public\":[\"50.56.108.139\"],\"private\":[\"10.181.161.149\"]},\"metadata\":{}}}"
+    http_version: "1.1"

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/hardware_profiles_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/hardware_profiles_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/hardware_profiles_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/hardware_profiles_test.rb Wed Apr  6 09:21:39 2011
@@ -11,12 +11,12 @@ module RackspaceTest
     end
 
     def test_01_it_returns_hardware_profiles
-      do_xml_request '/api;driver=rackspace/hardware_profiles', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').length.should == 7
     end
 
     def test_02_each_hardware_profile_has_a_name
-      do_xml_request '/api;driver=rackspace/hardware_profiles', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         (profile/'name').text.should_not == nil
         (profile/'name').text.should_not == ''
@@ -24,7 +24,7 @@ module RackspaceTest
     end
 
     def test_03_each_hardware_profile_has_correct_properties
-      do_xml_request '/api;driver=rackspace/hardware_profiles', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles'
       (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
         (profile/'property[@name="architecture"]').first[:value].should == 'x86_64'
         (profile/'property[@name="memory"]').first[:unit].should == 'MB'
@@ -35,7 +35,7 @@ module RackspaceTest
     end
 
     def test_04_it_returns_single_hardware_profile
-      do_xml_request '/api;driver=rackspace/hardware_profiles/1', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles/1'
       (last_xml_response/'hardware_profile/name').first.text.should == '1'
       (last_xml_response/'hardware_profile/property[@name="architecture"]').first[:value].should == 'x86_64'
       (last_xml_response/'hardware_profile/property[@name="memory"]').first[:value].should == '256'
@@ -43,9 +43,9 @@ module RackspaceTest
     end
 
     def test_05_it_filter_hardware_profiles
-      do_xml_request '/api;driver=rackspace/hardware_profiles?architecture=i386', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles?architecture=i386'
       (last_xml_response/'hardware_profiles/hardware_profile').length.should == 0
-      do_xml_request '/api;driver=rackspace/hardware_profiles?architecture=x86_64', {}, true
+      get_auth_url '/api;driver=rackspace/hardware_profiles?architecture=x86_64'
       (last_xml_response/'hardware_profiles/hardware_profile').length.should == 7
     end
 

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/images_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/images_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/images_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/images_test.rb Wed Apr  6 09:21:39 2011
@@ -11,12 +11,12 @@ module RackspaceTest
     end
 
     def test_01_it_returns_images
-      do_xml_request '/api;driver=rackspace/images', {}, true
+      get_auth_url '/api;driver=rackspace/images'
       (last_xml_response/'images/image').length.should > 0
     end
 
     def test_02_each_image_has_correct_properties
-      do_xml_request '/api;driver=rackspace/images', {}, true
+      get_auth_url '/api;driver=rackspace/images'
       (last_xml_response/'images/image').each do |image|
         (image/'name').should_not == nil
         (image/'name').should_not == ''
@@ -32,7 +32,7 @@ module RackspaceTest
     end
 
     def test_03_it_returns_single_image
-      do_xml_request '/api;driver=rackspace/images/71', {}, true
+      get_auth_url '/api;driver=rackspace/images/71'
       (last_xml_response/'image').length.should == 1
     end
 

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/instances_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/instances_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/instances_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/instances_test.rb Wed Apr  6 09:21:39 2011
@@ -15,10 +15,9 @@ module RackspaceTest
         :image_id => '71',
         :'api[driver]' => 'rackspace',
       }
-      header 'Accept', accept_header(:xml)
-      post '/api/instances', params, authenticate
+      post_url '/api/instances', params
       last_response.status.should == 201 # Created
-      @@instance = Nokogiri::XML(last_response.body)
+      @@instance = last_xml_response
       (@@instance/'instance').length.should > 0
       (@@instance/'instance/name').first.text.should_not == nil
       (@@instance/'instance/name').first.text.should_not == nil
@@ -33,10 +32,9 @@ module RackspaceTest
         :hwp_id => '2',
         :'api[driver]' => 'rackspace',
       }
-      header 'Accept', accept_header(:xml)
-      post '/api/instances', params, authenticate
+      post_url '/api/instances', params
       last_response.status.should == 201 # Created
-      @@instance2 = Nokogiri::XML(last_response.body)
+      @@instance2 = last_xml_response
       (@@instance2/'instance').length.should > 0
       (@@instance2/'instance/name').first.text.should_not == nil
       (@@instance2/'instance/name').first.text.should_not == nil
@@ -80,15 +78,15 @@ module RackspaceTest
     end
 
     def test_04_01_created_instance_goes_to_running_state
-      20.times do
-        do_xml_request "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", {}, true
+      20.times do |tick|
+        get_auth_url "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", { :tick => tick}
         last_response.status.should_not == 500
         state = (last_xml_response/'instance/state').first.text
         break if state=='RUNNING'
         sleep(5)
       end
       @@instance = last_xml_response
-      do_xml_request "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", {}, true
+      get_auth_url "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}"
       last_response.status.should_not == 500
       (last_xml_response/'instance/state').first.text.should == 'RUNNING'
       (last_xml_response/'instance/actions/link[@rel="reboot"]').first.should_not == nil
@@ -98,15 +96,15 @@ module RackspaceTest
     end
 
     def test_04_02_created_instance_goes_to_running_state
-      20.times do
-        do_xml_request "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}", {}, true
+      20.times do |tick|
+        get_auth_url "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}", { :tick => tick}
         last_response.status.should_not == 500
         state = (last_xml_response/'instance/state').first.text
         break if state=='RUNNING'
         sleep(5)
       end
       @@instance2 = last_xml_response
-      do_xml_request "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}", {}, true
+      get_auth_url "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}"
       last_response.status.should_not == 500
       (last_xml_response/'instance/state').first.text.should == 'RUNNING'
       (last_xml_response/'instance/actions/link[@rel="reboot"]').first.should_not == nil
@@ -115,15 +113,14 @@ module RackspaceTest
       (last_xml_response/'instance/actions/link[@rel="run"]').first.should_not == nil
     end
 
-    def test_05_created_instance_can_be_rebooted
+    def test_05_01_created_instance_can_be_rebooted
       params = {
         :'api[driver]' => 'rackspace',
       }
-      header 'Accept', accept_header(:xml)
-      post "/api/instances/#{(@@instance/'instance').first[:id]}/reboot", params, authenticate
+      post_url "/api/instances/#{(@@instance/'instance').first[:id]}/reboot", params
       last_response.status.should == 200
-      20.times do
-        do_xml_request "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", {}, true
+      20.times do |tick|
+        get_auth_url "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", { :tick => tick}
         last_response.status.should_not == 500
         state = (last_xml_response/'instance/state').first.text
         break if state=='RUNNING'
@@ -131,15 +128,14 @@ module RackspaceTest
       end
     end
 
-    def test_06_created_instance_can_be_destroyed
+    def test_06_01_created_instance_can_be_destroyed
       params = {
         :'api[driver]' => 'rackspace',
       }
-      header 'Accept', accept_header(:xml)
-      post "/api/instances/#{(@@instance/'instance').first[:id]}/stop", params, authenticate
+      post_url "/api/instances/#{(@@instance/'instance').first[:id]}/stop", params
       last_response.status.should == 200
-      20.times do
-        do_xml_request "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", {}, true
+      20.times do |tick|
+        get_auth_url "/api;driver=rackspace/instances/#{(@@instance/'instance').first[:id]}", { :tick => tick}
         last_response.status.should_not == 500
         break if last_response.status == 404
         sleep(5)
@@ -151,17 +147,15 @@ module RackspaceTest
       params = {
         :'api[driver]' => 'rackspace',
       }
-      header 'Accept', accept_header(:xml)
-      post "/api/instances/#{(@@instance2/'instance').first[:id]}/stop", params, authenticate
+      post_url "/api/instances/#{(@@instance2/'instance').first[:id]}/stop", params, authenticate
       last_response.status.should == 200
-      20.times do
-        do_xml_request "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}", {}, true
+      20.times do |tick|
+        get_auth_url "/api;driver=rackspace/instances/#{(@@instance2/'instance').first[:id]}", { :tick => tick}
         last_response.status.should_not == 500
         break if last_response.status == 404
         sleep(5)
       end
       last_response.status.should == 404
     end
-
   end
 end

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/realms_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/realms_test.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/realms_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/realms_test.rb Wed Apr  6 09:21:39 2011
@@ -11,12 +11,12 @@ module RackspaceTest
     end
 
     def test_01_it_returns_realms
-      do_xml_request '/api;driver=rackspace/realms', {}, true
+      get_auth_url '/api;driver=rackspace/realms'
       (last_xml_response/'realms/realm').length.should == 1
     end
 
     def test_02_each_realm_has_a_name
-      do_xml_request '/api;driver=rackspace/realms', {}, true
+      get_auth_url '/api;driver=rackspace/realms'
       (last_xml_response/'realms/realm').each do |profile|
         (profile/'name').text.should_not == nil
         (profile/'name').text.should_not == ''
@@ -25,7 +25,7 @@ module RackspaceTest
     end
 
     def test_03_it_returns_single_realm
-      do_xml_request '/api;driver=rackspace/realms/us', {}, true
+      get_auth_url '/api;driver=rackspace/realms/us'
       (last_xml_response/'realm').first[:id].should == 'us'
       (last_xml_response/'realm/name').first.text.should == 'United States'
       (last_xml_response/'realm/state').first.text.should == 'AVAILABLE'

Modified: incubator/deltacloud/trunk/server/tests/drivers/rackspace/setup.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/rackspace/setup.rb?rev=1089371&r1=1089370&r2=1089371&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/rackspace/setup.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/rackspace/setup.rb Wed Apr  6 09:21:39 2011
@@ -1,3 +1,14 @@
 ENV['API_DRIVER']   = "rackspace"
-ENV['API_USER']     = '<RACKSPACE_USERNAME>'
-ENV['API_PASSWORD'] = '<RACKSPACE_API_KEY>'
+ENV['API_USER']     = 'michalfojtik'
+ENV['API_PASSWORD'] = '47de1170d57eb8f11dba2f6e7fd26838'
+
+require 'vcr'
+
+DeltacloudTestCommon::record!
+
+VCR.config do |c|
+  c.cassette_library_dir = 'tests/drivers/rackspace/fixtures/'
+  c.stub_with :webmock
+  c.default_cassette_options = { :record => :new_episodes }
+end
+



Mime
View raw message