deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [5/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-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml
b/server/tests/drivers/openstack/fixtures/post-e76eb822e9d5ef959a99ab9c276973f63c2158ae.yml
new file mode 100644
index 0000000..b62ad8e
--- /dev/null
+++ b/server/tests/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"


Mime
View raw message