deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [64/65] [partial] Core: Moved all API tests in server/tests into server/tests/deprecated directory
Date Fri, 20 Jul 2012 09:59:23 GMT
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/570a9a04/server/tests/deprecated/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml b/server/tests/deprecated/drivers/openstack/fixtures/post-4dd0a1218e6e56068bf06166824cdccfc92ff94f.yml
new file mode 100644
index 0000000..530f579
--- /dev/null
+++ b/server/tests/deprecated/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/570a9a04/server/tests/deprecated/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml b/server/tests/deprecated/drivers/openstack/fixtures/post-5f3a837fc10786f0348dd186885b6fafab3505e3.yml
new file mode 100644
index 0000000..7ddb060
--- /dev/null
+++ b/server/tests/deprecated/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/570a9a04/server/tests/deprecated/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml b/server/tests/deprecated/drivers/openstack/fixtures/post-ad0fae929173373dbda247f2d3580e61d08d86cf.yml
new file mode 100644
index 0000000..a31353b
--- /dev/null
+++ b/server/tests/deprecated/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/570a9a04/server/tests/deprecated/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml b/server/tests/deprecated/drivers/openstack/fixtures/post-ad1c9a6a30ebabd8e54c99d70c5ae55e0bce07a0.yml
new file mode 100644
index 0000000..7bba2b1
--- /dev/null
+++ b/server/tests/deprecated/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"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/570a9a04/server/tests/deprecated/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml b/server/tests/deprecated/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml
new file mode 100644
index 0000000..b62ad8e
--- /dev/null
+++ b/server/tests/deprecated/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.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:51:09 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:51:09.311Z",
+          "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:51:10 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:49: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\": {\"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:51:11 GMT
+      content-length: 
+      - "3683"
+      content-type: 
+      - application/json
+    body: |-
+      {"access": {
+        "token": {
+          "expires": "2012-04-03T23:51:12.348Z",
+          "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:51:13 GMT
+      content-length: 
+      - "1035"
+      content-type: 
+      - application/json; charset=UTF-8
+    body: "{\"server\": {\"status\": \"ACTIVE\", \"updated\": \"2012-04-03T11:49: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\": {\"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: :delete
+    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
+  response: !ruby/struct:VCR::Response 
+    status: !ruby/struct:VCR::ResponseStatus 
+      code: 204
+      message: No Content
+    headers: 
+      date: 
+      - Tue, 03 Apr 2012 11:51:14 GMT
+      content-length: 
+      - "0"
+      content-type: 
+      - application/json
+    body: 
+    http_version: "1.1"

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/570a9a04/server/tests/deprecated/drivers/openstack/hardware_profiles_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/hardware_profiles_test.rb b/server/tests/deprecated/drivers/openstack/hardware_profiles_test.rb
new file mode 100644
index 0000000..1225e01
--- /dev/null
+++ b/server/tests/deprecated/drivers/openstack/hardware_profiles_test.rb
@@ -0,0 +1,64 @@
+$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..')
+require 'tests/drivers/openstack/common'
+
+module OpenstackTest
+
+  class HardwareProfilesTest < Test::Unit::TestCase
+    include Rack::Test::Methods
+
+    def app
+      Rack::Builder.new {
+        map '/' do
+          use Rack::Static, :urls => ["/stylesheets", "/javascripts"], :root => "public"
+          run Rack::Cascade.new([Deltacloud::API])
+        end
+      }
+    end
+
+    def test_01_it_returns_hardware_profiles
+      get_auth_url '/api;driver=openstack/hardware_profiles'
+      (last_xml_response/'hardware_profiles/hardware_profile').length.should > 0
+    end
+
+    def test_02_each_hardware_profile_has_a_name
+      get_auth_url '/api;driver=openstack/hardware_profiles'
+      (last_xml_response/'hardware_profiles/hardware_profile').each do |profile|
+        (profile/'name').text.should_not == nil
+        (profile/'name').text.should_not == ''
+      end
+    end
+
+    def test_03_each_hardware_profile_has_correct_properties
+      get_auth_url '/api;driver=openstack/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'
+        (profile/'property[@name="memory"]').first[:kind].should == 'fixed'
+        (profile/'property[@name="storage"]').first[:unit].should == 'GB'
+        (profile/'property[@name="storage"]').first[:kind].should == 'fixed'
+      end
+      hwp = ((last_xml_response/'hardware_profiles/hardware_profile').first)
+      @@hwp = { :id => hwp[:id],
+                :arch => (hwp/'property[@name="architecture"]').first[:value],
+                :mem => (hwp/'property[@name="memory"]').first[:value],
+                :disk => (hwp/'property[@name="storage"]').first[:value] }
+      @@no_of_profiles = (last_xml_response/'hardware_profiles/hardware_profile').length
+    end
+
+    def test_04_it_returns_single_hardware_profile
+      get_auth_url "/api;driver=openstack/hardware_profiles/#{@@hwp[:id]}"
+      (last_xml_response/'hardware_profile/name').first.text.should == @@hwp[:id]
+      (last_xml_response/'hardware_profile/property[@name="architecture"]').first[:value].should == @@hwp[:arch]
+      (last_xml_response/'hardware_profile/property[@name="memory"]').first[:value].should == @@hwp[:mem]
+      (last_xml_response/'hardware_profile/property[@name="storage"]').first[:value].should == @@hwp[:disk]
+    end
+
+    def test_05_it_filter_hardware_profiles
+      get_auth_url '/api;driver=openstack/hardware_profiles?architecture=i386'
+      (last_xml_response/'hardware_profiles/hardware_profile').length.should == 0
+      get_auth_url '/api;driver=openstack/hardware_profiles?architecture=x86_64'
+      (last_xml_response/'hardware_profiles/hardware_profile').length.should == @@no_of_profiles
+    end
+
+  end
+end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/570a9a04/server/tests/deprecated/drivers/openstack/images_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/deprecated/drivers/openstack/images_test.rb b/server/tests/deprecated/drivers/openstack/images_test.rb
new file mode 100644
index 0000000..3b79093
--- /dev/null
+++ b/server/tests/deprecated/drivers/openstack/images_test.rb
@@ -0,0 +1,46 @@
+$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..')
+require 'tests/drivers/openstack/common'
+
+module OpenstackTest
+
+  class ImagesTest < Test::Unit::TestCase
+    include Rack::Test::Methods
+
+    def app
+      Rack::Builder.new {
+        map '/' do
+          use Rack::Static, :urls => ["/stylesheets", "/javascripts"], :root => "public"
+          run Rack::Cascade.new([Deltacloud::API])
+        end
+      }
+    end
+
+    def test_01_it_returns_images
+      get_auth_url '/api;driver=openstack/images'
+      (last_xml_response/'images/image').length.should > 0
+    end
+
+    def test_02_each_image_has_correct_properties
+      get_auth_url '/api;driver=openstack/images'
+      (last_xml_response/'images/image').each do |image|
+        (image/'name').should_not == nil
+        (image/'name').should_not == ''
+        (image/'description').should_not == nil
+        (image/'description').should_not == ''
+        (image/'architecture').should_not == nil
+        (image/'architecture').should_not == ''
+        (image/'state').text.should == 'ACTIVE'
+        ENV['API_USER'].include?((image/'owner_id').text).should == true
+        (image/'actions/link').length.should == 2
+        (image/'actions/link').first[:rel].should == 'create_instance'
+      end
+      @@image_id = ((last_xml_response/'images/image').first)[:id]
+    end
+
+    def test_03_it_returns_single_image
+      get_auth_url "/api;driver=openstack/images/#{@@image_id}"
+      (last_xml_response/'image').length.should == 1
+    end
+
+  end
+end


Mime
View raw message