deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [4/7] Updated VCR recordings for Openstack unit tests (fixtures)
Date Tue, 03 Apr 2012 15:11:32 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml b/server/tests/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml
new file mode 100644
index 0000000..530f579
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml
@@ -0,0 +1,376 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:52:25 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:52:25.174Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:52:26 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:50:36Z\", \"hostId\": \"bc7ddd1393483e03bb9cd30d461df9d0bd1b5616a823223ba2443cef\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:48 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71941\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71941\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.205\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:53Z\", \"uuid\": \"a9028b37-1392-4207-a346-458e3dd5c24f\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71941, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:52:28 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:52:28.444Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:52:29 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:50:36Z\", \"hostId\": \"bc7ddd1393483e03bb9cd30d461df9d0bd1b5616a823223ba2443cef\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:48 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71941\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71941\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.205\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:53Z\", \"uuid\": \"a9028b37-1392-4207-a346-458e3dd5c24f\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71941, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :delete
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:52:30 GMT
+      content-length: 
+      - "0"
+      content-type: 
+      - application/json
+    body: 
+    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-5e4576f1ae82702e893b34895a64afe1cf61d6ce.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-5e4576f1ae82702e893b34895a64afe1cf61d6ce.yml b/server/tests/drivers/openstack/fixtures/post-5e4576f1ae82702e893b34895a64afe1cf61d6ce.yml
deleted file mode 100644
index 148d075..0000000
--- a/server/tests/drivers/openstack/fixtures/post-5e4576f1ae82702e893b34895a64afe1cf61d6ce.yml
+++ /dev/null
@@ -1,146 +0,0 @@
----
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0
-    body:
-    headers:
-      x-auth-user:
-      - mfojtik
-      x-auth-key:
-      - test
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 204
-      message: No Content
-    headers:
-      x-auth-token:
-      - mfojtik:admin
-      content-type:
-      - text/plain; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:30 GMT
-      content-length:
-      - "0"
-      x-cdn-management-url:
-      - ""
-      x-server-management-url:
-      - http://mfojtik-2.brq.redhat.com:8774/v1.0
-      x-storage-url:
-      - ""
-    body:
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 200
-      message: OK
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:30 GMT
-      content-length:
-      - "362"
-    body: "{\"server\": {\"status\": \"ACTIVE\", \"hostId\": \"4b3b655c67d8d60d6959b506830e4257bc23bc9946f98f1f63eceeb9\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:40 +0200 2011\", \"addresses\": {\"public\": [], \"private\": [\"10.0.0.2\", \"192.168.122.2\"]}, \"tenant_id\": \"admin\", \"uuid\": \"0326cb45-5a45-4fcd-8cba-fa569e182af0\", \"imageId\": 4, \"flavorId\": 1, \"id\": 18, \"metadata\": {}}}"
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0
-    body:
-    headers:
-      x-auth-user:
-      - mfojtik
-      x-auth-key:
-      - test
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 204
-      message: No Content
-    headers:
-      x-auth-token:
-      - mfojtik:admin
-      content-type:
-      - text/plain; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:30 GMT
-      content-length:
-      - "0"
-      x-cdn-management-url:
-      - ""
-      x-server-management-url:
-      - http://mfojtik-2.brq.redhat.com:8774/v1.0
-      x-storage-url:
-      - ""
-    body:
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 200
-      message: OK
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:30 GMT
-      content-length:
-      - "362"
-    body: "{\"server\": {\"status\": \"ACTIVE\", \"hostId\": \"4b3b655c67d8d60d6959b506830e4257bc23bc9946f98f1f63eceeb9\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:40 +0200 2011\", \"addresses\": {\"public\": [], \"private\": [\"10.0.0.2\", \"192.168.122.2\"]}, \"tenant_id\": \"admin\", \"uuid\": \"0326cb45-5a45-4fcd-8cba-fa569e182af0\", \"imageId\": 4, \"flavorId\": 1, \"id\": 18, \"metadata\": {}}}"
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :post
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18/action
-    body: "{\"reboot\":{\"type\":\"HARD\"}}"
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      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:
-      connection:
-      - keep-alive
-      content-type:
-      - text/html; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:31 GMT
-      content-length:
-      - "0"
-    body:
-    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml b/server/tests/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml
new file mode 100644
index 0000000..7ddb060
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml
@@ -0,0 +1,378 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:49:13 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:49:13.317Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71940
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:49:14 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:48:31Z\", \"hostId\": \"89c1c18fee8b55b5e5c0c547e8181744c6fb144a8217ba2473804f5f\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:27 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71940\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71940\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.200\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:43Z\", \"uuid\": \"2c84201d-1aaf-4f10-a9a7-e4a755de1068\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71940, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:49:16 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:49:16.667Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71940
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:49:18 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:48:31Z\", \"hostId\": \"89c1c18fee8b55b5e5c0c547e8181744c6fb144a8217ba2473804f5f\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:27 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71940\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71940\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.200\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:43Z\", \"uuid\": \"2c84201d-1aaf-4f10-a9a7-e4a755de1068\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71940, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71940/action
+    body: "{\"reboot\":{\"type\":\"HARD\"}}"
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:49:19 GMT
+      content-length: 
+      - "0"
+      content-type: 
+      - text/html; charset=UTF-8
+    body: 
+    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-7927ddd2e1073e7ebfd53e31fc66a0c371240c90.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-7927ddd2e1073e7ebfd53e31fc66a0c371240c90.yml b/server/tests/drivers/openstack/fixtures/post-7927ddd2e1073e7ebfd53e31fc66a0c371240c90.yml
deleted file mode 100644
index 3f5fad4..0000000
--- a/server/tests/drivers/openstack/fixtures/post-7927ddd2e1073e7ebfd53e31fc66a0c371240c90.yml
+++ /dev/null
@@ -1,144 +0,0 @@
----
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0
-    body:
-    headers:
-      x-auth-user:
-      - mfojtik
-      x-auth-key:
-      - test
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 204
-      message: No Content
-    headers:
-      x-auth-token:
-      - mfojtik:admin
-      content-type:
-      - text/plain; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:36 GMT
-      content-length:
-      - "0"
-      x-cdn-management-url:
-      - ""
-      x-server-management-url:
-      - http://mfojtik-2.brq.redhat.com:8774/v1.0
-      x-storage-url:
-      - ""
-    body:
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 200
-      message: OK
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:36 GMT
-      content-length:
-      - "362"
-    body: "{\"server\": {\"status\": \"ACTIVE\", \"hostId\": \"4b3b655c67d8d60d6959b506830e4257bc23bc9946f98f1f63eceeb9\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:40 +0200 2011\", \"addresses\": {\"public\": [], \"private\": [\"10.0.0.2\", \"192.168.122.2\"]}, \"tenant_id\": \"admin\", \"uuid\": \"0326cb45-5a45-4fcd-8cba-fa569e182af0\", \"imageId\": 4, \"flavorId\": 1, \"id\": 18, \"metadata\": {}}}"
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0
-    body:
-    headers:
-      x-auth-user:
-      - mfojtik
-      x-auth-key:
-      - test
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 204
-      message: No Content
-    headers:
-      x-auth-token:
-      - mfojtik:admin
-      content-type:
-      - text/plain; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:36 GMT
-      content-length:
-      - "0"
-      x-cdn-management-url:
-      - ""
-      x-server-management-url:
-      - http://mfojtik-2.brq.redhat.com:8774/v1.0
-      x-storage-url:
-      - ""
-    body:
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 200
-      message: OK
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:36 GMT
-      content-length:
-      - "362"
-    body: "{\"server\": {\"status\": \"ACTIVE\", \"hostId\": \"4b3b655c67d8d60d6959b506830e4257bc23bc9946f98f1f63eceeb9\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:40 +0200 2011\", \"addresses\": {\"public\": [], \"private\": [\"10.0.0.2\", \"192.168.122.2\"]}, \"tenant_id\": \"admin\", \"uuid\": \"0326cb45-5a45-4fcd-8cba-fa569e182af0\", \"imageId\": 4, \"flavorId\": 1, \"id\": 18, \"metadata\": {}}}"
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :delete
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/18
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 202
-      message: Accepted
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - text/html; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:33:36 GMT
-      content-length:
-      - "0"
-    body:
-    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-9c0f9765cb7f4aba0c854f71328fa7d1b9dc6afb.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-9c0f9765cb7f4aba0c854f71328fa7d1b9dc6afb.yml b/server/tests/drivers/openstack/fixtures/post-9c0f9765cb7f4aba0c854f71328fa7d1b9dc6afb.yml
deleted file mode 100644
index 0c80c57..0000000
--- a/server/tests/drivers/openstack/fixtures/post-9c0f9765cb7f4aba0c854f71328fa7d1b9dc6afb.yml
+++ /dev/null
@@ -1,88 +0,0 @@
----
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0
-    body:
-    headers:
-      x-auth-user:
-      - mfojtik
-      x-auth-key:
-      - test
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 204
-      message: No Content
-    headers:
-      x-auth-token:
-      - mfojtik:admin
-      content-type:
-      - text/plain; charset=UTF-8
-      date:
-      - Mon, 24 Oct 2011 15:32:48 GMT
-      x-server-management-url:
-      - http://mfojtik-2.brq.redhat.com:8774/v1.0
-      x-cdn-management-url:
-      - ""
-      content-length:
-      - "0"
-      x-storage-url:
-      - ""
-    body:
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :post
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers
-    body: "{\"server\":{\"imageId\":4,\"personality\":null,\"flavorId\":2,\"name\":\"Mon Oct 24 17:42:41 +0200 2011\"}}"
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      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:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:19 GMT
-      content-length:
-      - "311"
-    body: "{\"server\": {\"status\": \"BUILD\", \"hostId\": \"\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:41 +0200 2011\", \"addresses\": {\"public\": [], \"private\": []}, \"tenant_id\": \"admin\", \"adminPass\": \"K7wKc6YSfJJdtMzB\", \"uuid\": \"ca4fa9ac-785f-4cc5-9116-6bb0a0cd635e\", \"imageId\": 4, \"flavorId\": 2, \"id\": 19, \"metadata\": {}}}"
-    http_version: "1.1"
-- !ruby/struct:VCR::HTTPInteraction
-  request: !ruby/struct:VCR::Request
-    method: :get
-    uri: http://mfojtik-2.brq.redhat.com:8774/v1.0/servers/19
-    body:
-    headers:
-      accept:
-      - application/json
-      x-auth-token:
-      - mfojtik:admin
-      user-agent:
-      - CloudServers Ruby API 0.4.1
-  response: !ruby/struct:VCR::Response
-    status: !ruby/struct:VCR::ResponseStatus
-      code: 200
-      message: OK
-    headers:
-      connection:
-      - keep-alive
-      content-type:
-      - application/json
-      date:
-      - Mon, 24 Oct 2011 15:33:20 GMT
-      content-length:
-      - "278"
-    body: "{\"server\": {\"status\": \"BUILD\", \"hostId\": \"\", \"user_id\": \"mfojtik\", \"name\": \"Mon Oct 24 17:42:41 +0200 2011\", \"addresses\": {\"public\": [], \"private\": []}, \"tenant_id\": \"admin\", \"uuid\": \"ca4fa9ac-785f-4cc5-9116-6bb0a0cd635e\", \"imageId\": 4, \"flavorId\": 2, \"id\": 19, \"metadata\": {}}}"
-    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml b/server/tests/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml
new file mode 100644
index 0000000..a31353b
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml
@@ -0,0 +1,376 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:47:27 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:47:27.272Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:47:28 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:47:28.893Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/flavors/detail
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:47:38 GMT
+      content-length: 
+      - "2130"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"flavors\": [{\"rxtx_quota\": 0, \"name\": \"standard.xsmall\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/100\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}], \"ram\": 1024, \"vcpus\": 1, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 30, \"id\": 100}, {\"rxtx_quota\": 0, \"name\": \"standard.small\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/101\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/101\", \"rel\": \"bookmark\"}], \"ram\": 2048, \"vcpus\": 2, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 60, \"id\": 101}, {\"rxtx_quota\": 0, \"name\": \"standard.2xlarge\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/105\", \"rel\": \"self\"}, {\"href\": \"
 https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/105\", \"rel\": \"bookmark\"}], \"ram\": 32768, \"vcpus\": 8, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 960, \"id\": 105}, {\"rxtx_quota\": 0, \"name\": \"standard.large\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/103\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/103\", \"rel\": \"bookmark\"}], \"ram\": 8192, \"vcpus\": 4, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 240, \"id\": 103}, {\"rxtx_quota\": 0, \"name\": \"standard.medium\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/102\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/102\", \"rel\": \"bookmark\"}], \"ram\": 4096, \"vcpus\": 2, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 120, \"id\": 102}, {\"rxtx_quota\": 0, \"nam
 e\": \"standard.xlarge\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/flavors/104\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/104\", \"rel\": \"bookmark\"}], \"ram\": 16384, \"vcpus\": 4, \"rxtx_cap\": 0, \"swap\": 0, \"disk\": 480, \"id\": 104}]}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers
+    body: "{\"server\":{\"personality\":null,\"imageRef\":\"417\",\"flavorRef\":\"100\",\"name\":\"Tue Apr 03 14:47:27 +0300 2012\"}}"
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:47:44 GMT
+      content-length: 
+      - "956"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"BUILD(scheduling)\", \"updated\": \"2012-04-03T11:47:44Z\", \"hostId\": \"\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:27 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71940\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71940\", \"rel\": \"bookmark\"}], \"addresses\": {}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:43Z\", \"uuid\": \"2c84201d-1aaf-4f10-a9a7-e4a755de1068\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"adminPass\": \"UoZE5eDfaEE3fcke\", \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel
 \": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71940, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71940
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:47:44 GMT
+      content-length: 
+      - "979"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"BUILD(scheduling)\", \"updated\": \"2012-04-03T11:47:44Z\", \"hostId\": \"89c1c18fee8b55b5e5c0c547e8181744c6fb144a8217ba2473804f5f\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:27 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71940\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71940\", \"rel\": \"bookmark\"}], \"addresses\": {}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:43Z\", \"uuid\": \"2c84201d-1aaf-4f10-a9a7-e4a755de1068\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/f
 lavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71940, \"metadata\": {}}}"
+    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/452ca54f/server/tests/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml b/server/tests/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml
new file mode 100644
index 0000000..7bba2b1
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml
@@ -0,0 +1,378 @@
+--- 
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:49:59 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:49:59.199Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:50:00 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:49:01Z\", \"hostId\": \"bc7ddd1393483e03bb9cd30d461df9d0bd1b5616a823223ba2443cef\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:48 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71941\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71941\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.205\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:53Z\", \"uuid\": \"a9028b37-1392-4207-a346-458e3dd5c24f\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71941, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+    body: "{\"auth\":{\"passwordCredentials\":{\"password\":\"Not_a_real_password!1\",\"username\":\"foo@bar.com\"},\"tenantName\":\"foo@bar.com-default-tenant\"}}"
+    headers: 
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      expires: 
+      - "-1"
+      pragma: 
+      - no-cache
+      cache-control: 
+      - no-cache
+      server: 
+      - Apache-Coyote/1.1
+      date: 
+      - Tue, 03 Apr 2012 11:50:02 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:50:02.905Z",
+          "id": "HPAuth_4f7ab57ce4b0dfd6b763ca55",
+          "tenant": {
+            "id": "46871569847393",
+            "name": "foo@bar.com-default-tenant"
+          }
+        },
+        "user": {
+          "id": "90338821550656",
+          "name": "foo@bar.com",
+          "roles": [
+            {
+              "id": "00000000004024",
+              "serviceId": "140",
+              "name": "user",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004022",
+              "serviceId": "110",
+              "name": "Admin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004025",
+              "serviceId": "120",
+              "name": "sysadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004003",
+              "serviceId": "100",
+              "name": "domainadmin"
+            },
+            {
+              "id": "00000000004016",
+              "serviceId": "120",
+              "name": "netadmin",
+              "tenantId": "46871569847393"
+            },
+            {
+              "id": "00000000004004",
+              "serviceId": "100",
+              "name": "domainuser"
+            },
+            {
+              "id": "00000000004013",
+              "serviceId": "130",
+              "name": "block-admin",
+              "tenantId": "46871569847393"
+            }
+          ]
+        },
+        "serviceCatalog": [
+          {
+            "name": "Object Storage",
+            "type": "object-store",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "adminURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "publicURL": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/46871569847393",
+              "region": "region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com\/v1.0\/",
+              "versionList": "https:\/\/region-a.geo-1.objects.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Identity",
+            "type": "identity",
+            "endpoints": [{
+              "publicURL": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "region": "region-a.geo-1",
+              "versionId": "2.0",
+              "versionInfo": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357\/v2.0\/",
+              "versionList": "https:\/\/region-a.geo-1.identity.hpcloudsvc.com:35357"
+            }]
+          },
+          {
+            "name": "Image Management",
+            "type": "image",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.0",
+              "versionInfo": "https:\/\/glance2.uswest.hpcloud.net:9292\/v1.0\/",
+              "versionList": "https:\/\/glance2.uswest.hpcloud.net:9292"
+            }]
+          },
+          {
+            "name": "Block Storage",
+            "type": "hpext:blockstore",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          },
+          {
+            "name": "Compute",
+            "type": "compute",
+            "endpoints": [{
+              "tenantId": "46871569847393",
+              "publicURL": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/46871569847393",
+              "publicURL2": "https:\/\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\/services\/Cloud",
+              "region": "az-2.region-a.geo-1",
+              "versionId": "1.1",
+              "versionInfo": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com\/v1.1\/",
+              "versionList": "https:\/\/az-2.region-a.geo-1.compute.hpcloudsvc.com"
+            }]
+          }
+        ]
+      }}
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :get
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941
+    body: 
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 200
+      message: OK
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:50:04 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:49:01Z\", \"hostId\": \"bc7ddd1393483e03bb9cd30d461df9d0bd1b5616a823223ba2443cef\", \"user_id\": \"90338821550656\", \"name\": \"Tue Apr 03 14:47:48 +0300 2012\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/46871569847393/servers/71941\", \"rel\": \"self\"}, {\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/servers/71941\", \"rel\": \"bookmark\"}], \"addresses\": {\"private\": [{\"version\": 4, \"addr\": \"10.6.45.205\"}]}, \"tenant_id\": \"46871569847393\", \"image\": {\"id\": \"417\", \"links\": [{\"href\": \"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/images/417\", \"rel\": \"bookmark\"}]}, \"created\": \"2012-04-03T11:47:53Z\", \"uuid\": \"a9028b37-1392-4207-a346-458e3dd5c24f\", \"accessIPv4\": \"\", \"accessIPv6\": \"\", \"key_name\": null, \"progress\": 100, \"flavor\": {\"id\": \"100\", \"links\": [{\"href\": \"h
 ttps://az-2.region-a.geo-1.compute.hpcloudsvc.com/46871569847393/flavors/100\", \"rel\": \"bookmark\"}]}, \"config_drive\": \"\", \"id\": 71941, \"metadata\": {}}}"
+    http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction 
+  request: !ruby/struct:VCR::Request 
+    method: :post
+    uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com:443/v1.1/46871569847393/servers/71941/action
+    body: "{\"reboot\":{\"type\":\"HARD\"}}"
+    headers: 
+      x-auth-token: 
+      - HPAuth_4f7ab57ce4b0dfd6b763ca55
+      user-agent: 
+      - OpenStack::Compute Ruby API 1.1.7
+      accept: 
+      - application/json
+      content-type: 
+      - application/json
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 202
+      message: Accepted
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:50:05 GMT
+      content-length: 
+      - "0"
+      content-type: 
+      - text/html; charset=UTF-8
+    body: 
+    http_version: "1.1"


Mime
View raw message