Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8550D7E8 for ; Thu, 30 Aug 2012 09:51:45 +0000 (UTC) Received: (qmail 75657 invoked by uid 500); 30 Aug 2012 09:51:45 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 75530 invoked by uid 500); 30 Aug 2012 09:51:45 -0000 Mailing-List: contact commits-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list commits@deltacloud.apache.org Received: (qmail 75372 invoked by uid 99); 30 Aug 2012 09:51:45 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 09:51:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D0F7722580; Thu, 30 Aug 2012 09:51:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mfojtik@apache.org To: commits@deltacloud.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [2/5] Added initial OpenStack unit tests Message-Id: <20120830095144.D0F7722580@tyr.zones.apache.org> Date: Thu, 30 Aug 2012 09:51:44 +0000 (UTC) http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fb66c667/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_images.yml ---------------------------------------------------------------------- diff --git a/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_images.yml b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_images.yml new file mode 100644 index 0000000..7aeb324 --- /dev/null +++ b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_images.yml @@ -0,0 +1,825 @@ +--- +http_interactions: +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:26Z", "id": "2cdc8562eed4480eaf404bf7719fc4d1", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:44 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:26Z", "id": "bdabcf1bb3104cb5968c4c4b24400b67", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:44 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - bdabcf1bb3104cb5968c4c4b24400b67 + X-Storage-Token: + - bdabcf1bb3104cb5968c4c4b24400b67 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-e265ef32-452c-494a-a960-7408c096a1c7 + Content-Type: + - application/json + Content-Length: + - '1748' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"flavors": [{"vcpus": 2, "disk": 10, "name": "m1.medium", "links": + [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 40, + "ram": 4096, "id": "3", "swap": ""}, {"vcpus": 4, "disk": 10, "name": "m1.large", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 80, + "ram": 8192, "id": "4", "swap": ""}, {"vcpus": 1, "disk": 0, "name": "m1.tiny", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": + 512, "id": "1", "swap": ""}, {"vcpus": 8, "disk": 10, "name": "m1.xlarge", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 160, + "ram": 16384, "id": "5", "swap": ""}, {"vcpus": 1, "disk": 10, "name": "m1.small", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 20, + "ram": 2048, "id": "2", "swap": ""}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:44 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602 + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 2cdc8562eed4480eaf404bf7719fc4d1 + X-Storage-Token: + - 2cdc8562eed4480eaf404bf7719fc4d1 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-0eb06258-b825-4052-a604-4c02a360bc7d + Content-Type: + - application/json + Content-Length: + - '685' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"image": {"status": "ACTIVE", "updated": "2012-08-24T15:51:45Z", + "name": "f16-jeos", "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "bookmark"}, {"href": "http://10.34.32.211:9292/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": + "2012-08-24T15:41:42Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": + "bf7ce59a-d9f9-45d4-9313-f45b16436602", "metadata": {}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:44 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:26Z", "id": "c5f8836121b2418b96a3feb3eae5cf6e", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:26 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:26Z", "id": "2787674866c1448ab65b5915429e1208", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 2787674866c1448ab65b5915429e1208 + X-Storage-Token: + - 2787674866c1448ab65b5915429e1208 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-5db489bc-cb62-4d8b-a92d-613e413425c8 + Content-Type: + - application/json + Content-Length: + - '1748' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"flavors": [{"vcpus": 2, "disk": 10, "name": "m1.medium", "links": + [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 40, + "ram": 4096, "id": "3", "swap": ""}, {"vcpus": 4, "disk": 10, "name": "m1.large", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 80, + "ram": 8192, "id": "4", "swap": ""}, {"vcpus": 1, "disk": 0, "name": "m1.tiny", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": + 512, "id": "1", "swap": ""}, {"vcpus": 8, "disk": 10, "name": "m1.xlarge", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 160, + "ram": 16384, "id": "5", "swap": ""}, {"vcpus": 1, "disk": 10, "name": "m1.small", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 20, + "ram": 2048, "id": "2", "swap": ""}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - c5f8836121b2418b96a3feb3eae5cf6e + X-Storage-Token: + - c5f8836121b2418b96a3feb3eae5cf6e + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-21ddef3c-a974-472b-bf30-5cc4702b5084 + Content-Type: + - application/json + Content-Length: + - '688' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"images": [{"status": "ACTIVE", "updated": "2012-08-24T15:51:45Z", + "name": "f16-jeos", "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "bookmark"}, {"href": "http://10.34.32.211:9292/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": + "2012-08-24T15:41:42Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": + "bf7ce59a-d9f9-45d4-9313-f45b16436602", "metadata": {}}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:27Z", "id": "3cc0eefd97c344fdbeb8d4db06359fa0", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:27Z", "id": "f55967d736684f4bb13cdf019604e96d", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - f55967d736684f4bb13cdf019604e96d + X-Storage-Token: + - f55967d736684f4bb13cdf019604e96d + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-ba6f44bc-9626-4cc5-9b18-093abe696ec9 + Content-Type: + - application/json + Content-Length: + - '1748' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"flavors": [{"vcpus": 2, "disk": 10, "name": "m1.medium", "links": + [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 40, + "ram": 4096, "id": "3", "swap": ""}, {"vcpus": 4, "disk": 10, "name": "m1.large", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 80, + "ram": 8192, "id": "4", "swap": ""}, {"vcpus": 1, "disk": 0, "name": "m1.tiny", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": + 512, "id": "1", "swap": ""}, {"vcpus": 8, "disk": 10, "name": "m1.xlarge", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 160, + "ram": 16384, "id": "5", "swap": ""}, {"vcpus": 1, "disk": 10, "name": "m1.small", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 20, + "ram": 2048, "id": "2", "swap": ""}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 3cc0eefd97c344fdbeb8d4db06359fa0 + X-Storage-Token: + - 3cc0eefd97c344fdbeb8d4db06359fa0 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-9fefe16f-8925-46a5-a2ff-23432205dd93 + Content-Type: + - application/json + Content-Length: + - '688' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"images": [{"status": "ACTIVE", "updated": "2012-08-24T15:51:45Z", + "name": "f16-jeos", "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "bookmark"}, {"href": "http://10.34.32.211:9292/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": + "2012-08-24T15:41:42Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": + "bf7ce59a-d9f9-45d4-9313-f45b16436602", "metadata": {}}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:27Z", "id": "7c22b6e46a08419f95b2acf98262c8bb", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:27Z", "id": "cdf2d4d03b2e428e884183ffc6a48c4d", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/detail + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - cdf2d4d03b2e428e884183ffc6a48c4d + X-Storage-Token: + - cdf2d4d03b2e428e884183ffc6a48c4d + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-768f3c48-83a0-4417-a692-61f86f6f9b3e + Content-Type: + - application/json + Content-Length: + - '1748' + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"flavors": [{"vcpus": 2, "disk": 10, "name": "m1.medium", "links": + [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/3", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 40, + "ram": 4096, "id": "3", "swap": ""}, {"vcpus": 4, "disk": 10, "name": "m1.large", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/4", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 80, + "ram": 8192, "id": "4", "swap": ""}, {"vcpus": 1, "disk": 0, "name": "m1.tiny", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": + 512, "id": "1", "swap": ""}, {"vcpus": 8, "disk": 10, "name": "m1.xlarge", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/5", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 160, + "ram": 16384, "id": "5", "swap": ""}, {"vcpus": 1, "disk": 10, "name": "m1.small", + "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/2", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 20, + "ram": 2048, "id": "2", "swap": ""}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/images/unknown + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 7c22b6e46a08419f95b2acf98262c8bb + X-Storage-Token: + - 7c22b6e46a08419f95b2acf98262c8bb + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + Content-Type: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Content-Length: + - '62' + Content-Type: + - application/json; charset=UTF-8 + X-Compute-Request-Id: + - req-3840624b-109f-42bd-968e-0b09b7a51bcb + Date: + - Mon, 27 Aug 2012 16:16:27 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"itemNotFound": {"message": "Image not found.", "code": 404}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:45 GMT +recorded_with: VCR 2.2.4 http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fb66c667/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_instances.yml ---------------------------------------------------------------------- diff --git a/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_instances.yml b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_instances.yml new file mode 100644 index 0000000..1c475d9 --- /dev/null +++ b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_instances.yml @@ -0,0 +1,109 @@ +--- +http_interactions: +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:17:33 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:17:33Z", "id": "7fa6728dbb9349dabbf7da4b10a665a7", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:28:51 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/fef00348-9991-404c-b0d4-655d18f84345 + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 7fa6728dbb9349dabbf7da4b10a665a7 + X-Storage-Token: + - 7fa6728dbb9349dabbf7da4b10a665a7 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-be0221ae-72b3-40cc-9ebc-fd70e8542735 + Content-Type: + - application/json + Content-Length: + - '1403' + Date: + - Mon, 27 Aug 2012 16:17:33 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"server": {"OS-EXT-STS:task_state": null, "addresses": {"demonet": + [{"version": 4, "addr": "10.0.0.2"}]}, "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/fef00348-9991-404c-b0d4-655d18f84345", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/servers/fef00348-9991-404c-b0d4-655d18f84345", + "rel": "bookmark"}], "image": {"id": "bf7ce59a-d9f9-45d4-9313-f45b16436602", + "links": [{"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/images/bf7ce59a-d9f9-45d4-9313-f45b16436602", + "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": + "instance-0000000c", "flavor": {"id": "1", "links": [{"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}]}, "id": "fef00348-9991-404c-b0d4-655d18f84345", "user_id": + "f2286a51122345cea7d216c120974b41", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": + "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": + "", "status": "ACTIVE", "updated": "2012-08-27T15:27:16Z", "hostId": "13942eef5ee69ea6fabcd918042084b1ec915973056bb1b497b43dfa", + "OS-EXT-SRV-ATTR:host": "openstack-01.lab.eng.brq.redhat.com", "key_name": + "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "test-3", "created": + "2012-08-27T15:27:12Z", "tenant_id": "e827289fd66f4effb5b9b5012282fdb7", "metadata": + {}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:28:51 GMT +recorded_with: VCR 2.2.4 http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fb66c667/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_keys.yml ---------------------------------------------------------------------- diff --git a/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_keys.yml b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_keys.yml new file mode 100644 index 0000000..25f247f --- /dev/null +++ b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_keys.yml @@ -0,0 +1,197 @@ +--- +http_interactions: +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:39 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:39Z", "id": "2d7eb883d34c4549835b12ab72fa4863", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:57 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/os-keypairs + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 2d7eb883d34c4549835b12ab72fa4863 + X-Storage-Token: + - 2d7eb883d34c4549835b12ab72fa4863 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-92d34996-f7b5-4254-9893-2dc4b196dd0b + Content-Type: + - application/json + Content-Length: + - '756' + Date: + - Mon, 27 Aug 2012 16:16:39 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"keypairs": [{"keypair": {"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDLRqcGJtIWRsRlm9E+BAX1YThZc8y2zdXUF9KY3R1e8sWGnDjBIS91WWliaIgP8CrSMfFEWSzUJbyqrsBui4E0JDP04vcS5W0ioY/BmJD99nRaRncS+KKHChUuVMIjQ6cn+hI76OgfpPqM3GNgkxl2grW2arwXrzWRJ2tEP6QnlQ== + nova@openstack-01.lab.eng.brq.redhat.com\n", "name": "test1", "fingerprint": + "9a:be:87:83:75:ae:06:0e:b7:c4:19:be:f7:52:bd:a8"}}, {"keypair": {"public_key": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDQq0Nu2t2KLs7AQLIUHX6x94tx6sacAXSgkHvlVJLM9HHHPMFlXeerYEeaPSC/vS7mwl0bXNN/ETXRpJ5Thd6BAnLDEAJcvrm63NHeJ4axvALzs6mQyndAu7UpFrK3nEaDPKgZPnEAKCUvBD+vLoySWilaNWGxsVH5kFpbT+73NQ== + nova@openstack-01.lab.eng.brq.redhat.com\n", "name": "test2", "fingerprint": + "cc:1d:51:aa:d7:dd:b7:07:ec:3b:3c:0c:1a:0c:04:c5"}}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:57 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:39 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:39Z", "id": "1fab3d0817254f2fb3cf6070a5a95194", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:57 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/os-keypairs + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - 1fab3d0817254f2fb3cf6070a5a95194 + X-Storage-Token: + - 1fab3d0817254f2fb3cf6070a5a95194 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-f3776a90-fafb-4b5e-89d9-d75b9a58a9fa + Content-Type: + - application/json + Content-Length: + - '756' + Date: + - Mon, 27 Aug 2012 16:16:39 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"keypairs": [{"keypair": {"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDLRqcGJtIWRsRlm9E+BAX1YThZc8y2zdXUF9KY3R1e8sWGnDjBIS91WWliaIgP8CrSMfFEWSzUJbyqrsBui4E0JDP04vcS5W0ioY/BmJD99nRaRncS+KKHChUuVMIjQ6cn+hI76OgfpPqM3GNgkxl2grW2arwXrzWRJ2tEP6QnlQ== + nova@openstack-01.lab.eng.brq.redhat.com\n", "name": "test1", "fingerprint": + "9a:be:87:83:75:ae:06:0e:b7:c4:19:be:f7:52:bd:a8"}}, {"keypair": {"public_key": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDQq0Nu2t2KLs7AQLIUHX6x94tx6sacAXSgkHvlVJLM9HHHPMFlXeerYEeaPSC/vS7mwl0bXNN/ETXRpJ5Thd6BAnLDEAJcvrm63NHeJ4axvALzs6mQyndAu7UpFrK3nEaDPKgZPnEAKCUvBD+vLoySWilaNWGxsVH5kFpbT+73NQ== + nova@openstack-01.lab.eng.brq.redhat.com\n", "name": "test2", "fingerprint": + "cc:1d:51:aa:d7:dd:b7:07:ec:3b:3c:0c:1a:0c:04:c5"}}]}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:57 GMT +recorded_with: VCR 2.2.4 http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fb66c667/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_realms.yml ---------------------------------------------------------------------- diff --git a/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_realms.yml b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_realms.yml new file mode 100644 index 0000000..669d52c --- /dev/null +++ b/server/tests/drivers/openstack/fixtures/test_0003_must_allow_to_filter_realms.yml @@ -0,0 +1,205 @@ +--- +http_interactions: +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:15:34 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:15:34Z", "id": "bb95494b665b406090d2a2d5d72e5a71", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:26:52 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/limits + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - bb95494b665b406090d2a2d5d72e5a71 + X-Storage-Token: + - bb95494b665b406090d2a2d5d72e5a71 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-6b2e205e-8069-45fc-b30c-63c072441a52 + Content-Type: + - application/json + Content-Length: + - '900' + Date: + - Mon, 27 Aug 2012 16:15:34 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"limits": {"rate": [{"regex": ".*", "limit": [{"next-available": + "2012-08-27T15:44:04Z", "unit": "MINUTE", "verb": "POST", "remaining": 9, + "value": 10}, {"next-available": "2012-08-27T16:15:34Z", "unit": "MINUTE", + "verb": "PUT", "remaining": 10, "value": 10}, {"next-available": "2012-08-27T15:39:45Z", + "unit": "MINUTE", "verb": "DELETE", "remaining": 99, "value": 100}], "uri": + "*"}, {"regex": "^/servers", "limit": [{"next-available": "2012-08-27T16:15:34Z", + "unit": "DAY", "verb": "POST", "remaining": 50, "value": 50}], "uri": "*/servers"}, + {"regex": ".*changes-since.*", "limit": [{"next-available": "2012-08-27T16:15:34Z", + "unit": "MINUTE", "verb": "GET", "remaining": 3, "value": 3}], "uri": "*changes-since*"}], + "absolute": {"maxServerMeta": 128, "maxPersonality": 5, "maxImageMeta": 128, + "maxPersonalitySize": 10240, "maxTotalCores": 20, "maxTotalInstances": 10, + "maxTotalRAMSize": 51200}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:26:52 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:15:34 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:15:34Z", "id": "c1e33579df06479d94b8d4615511d528", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:26:52 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/limits + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - c1e33579df06479d94b8d4615511d528 + X-Storage-Token: + - c1e33579df06479d94b8d4615511d528 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-6c5ec037-d2a5-49ac-a244-424e6332e383 + Content-Type: + - application/json + Content-Length: + - '900' + Date: + - Mon, 27 Aug 2012 16:15:34 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"limits": {"rate": [{"regex": ".*", "limit": [{"next-available": + "2012-08-27T15:44:04Z", "unit": "MINUTE", "verb": "POST", "remaining": 9, + "value": 10}, {"next-available": "2012-08-27T16:15:34Z", "unit": "MINUTE", + "verb": "PUT", "remaining": 10, "value": 10}, {"next-available": "2012-08-27T15:39:45Z", + "unit": "MINUTE", "verb": "DELETE", "remaining": 99, "value": 100}], "uri": + "*"}, {"regex": "^/servers", "limit": [{"next-available": "2012-08-27T16:15:34Z", + "unit": "DAY", "verb": "POST", "remaining": 50, "value": 50}], "uri": "*/servers"}, + {"regex": ".*changes-since.*", "limit": [{"next-available": "2012-08-27T16:15:34Z", + "unit": "MINUTE", "verb": "GET", "remaining": 3, "value": 3}], "uri": "*changes-since*"}], + "absolute": {"maxServerMeta": 128, "maxPersonality": 5, "maxImageMeta": 128, + "maxPersonalitySize": 10240, "maxTotalCores": 20, "maxTotalInstances": 10, + "maxTotalRAMSize": 51200}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:26:52 GMT +recorded_with: VCR 2.2.4 http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fb66c667/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml ---------------------------------------------------------------------- diff --git a/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml b/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml new file mode 100644 index 0000000..d8a118a --- /dev/null +++ b/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_hardware_profile.yml @@ -0,0 +1,188 @@ +--- +http_interactions: +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:32 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:32Z", "id": "e212b8468a0b45d9b93b82fda11bd576", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:50 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1 + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - e212b8468a0b45d9b93b82fda11bd576 + X-Storage-Token: + - e212b8468a0b45d9b93b82fda11bd576 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 200 + message: OK + headers: + X-Compute-Request-Id: + - req-5b5d5b66-a04e-4d30-ae7c-9655f708cbe5 + Content-Type: + - application/json + Content-Length: + - '353' + Date: + - Mon, 27 Aug 2012 16:16:32 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"flavor": {"vcpus": 1, "disk": 0, "name": "m1.tiny", "links": [{"href": + "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1", + "rel": "bookmark"}], "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": + 512, "id": "1", "swap": ""}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:51 GMT +- request: + method: post + uri: http://10.34.32.211:5000/v2.0/tokens + body: + encoding: UTF-8 + string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}' + headers: + Content-Type: + - application/json + Accept: + - ! '*/*' + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json + Vary: + - X-Auth-Token + Content-Length: + - '2010' + Date: + - Mon, 27 Aug 2012 16:16:32 GMT + body: + encoding: US-ASCII + string: ! '{"access": {"token": {"expires": "2012-08-28T16:16:32Z", "id": "d111ea498c1045d5893382890dba4cf3", + "tenant": {"description": null, "enabled": true, "id": "e827289fd66f4effb5b9b5012282fdb7", + "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8776/v1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "volume", "name": "Volume Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:9292/v1", "region": "RegionOne", "publicURL": + "http://10.34.32.211:9292/v1", "internalURL": "http://10.34.32.211:9292/v1"}], + "endpoints_links": [], "type": "image", "name": "Image Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "region": "RegionOne", "publicURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7", + "internalURL": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7"}], + "endpoints_links": [], "type": "compute", "name": "Compute Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:8773/services/Admin", "region": "RegionOne", + "publicURL": "http://10.34.32.211:8773/services/Cloud", "internalURL": "http://10.34.32.211:8773/services/Cloud"}], + "endpoints_links": [], "type": "ec2", "name": "EC2 Service"}, {"endpoints": + [{"adminURL": "http://10.34.32.211:35357/v2.0", "region": "RegionOne", "publicURL": + "http://10.34.32.211:5000/v2.0", "internalURL": "http://10.34.32.211:5000/v2.0"}], + "endpoints_links": [], "type": "identity", "name": "Identity Service"}], "user": + {"username": "admin", "roles_links": [], "id": "f2286a51122345cea7d216c120974b41", + "roles": [{"id": "e7e292b28c4b4befb06232fa935a3c48", "name": "KeystoneServiceAdmin"}, + {"id": "7e716d5a52f348bb9a7fbbc230041b2a", "name": "admin"}, {"id": "bf2113c0cb924b34907521808ed9df13", + "name": "KeystoneAdmin"}], "name": "admin"}}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:51 GMT +- request: + method: get + uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/flavors/unknown + body: + encoding: US-ASCII + string: '' + headers: + X-Auth-Token: + - d111ea498c1045d5893382890dba4cf3 + X-Storage-Token: + - d111ea498c1045d5893382890dba4cf3 + Connection: + - Keep-Alive + User-Agent: + - OpenStack Ruby API 1.0.3 + Accept: + - application/json + response: + status: + code: 404 + message: Not Found + headers: + Content-Length: + - '78' + Content-Type: + - application/json; charset=UTF-8 + X-Compute-Request-Id: + - req-9f2c5888-17a5-4e06-a46f-fc88483748b9 + Date: + - Mon, 27 Aug 2012 16:16:33 GMT + Connection: + - keep-alive + body: + encoding: US-ASCII + string: ! '{"itemNotFound": {"message": "The resource could not be found.", + "code": 404}}' + http_version: + recorded_at: Mon, 27 Aug 2012 12:27:51 GMT +recorded_with: VCR 2.2.4