You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2012/12/11 09:35:11 UTC
[PATCH 1/2] Server tests - updated fixtures for openstack instances - fixes broken build
From: marios <ma...@redhat.com>
https://travis-ci.org/mifo/deltacloud/jobs/3591100
Signed-off-by: marios <ma...@redhat.com>
---
...r_when_GET_instances_with_wrong_credentials.yml | 44 ++
.../test_0002_must_return_list_of_instances.yml | 602 ++++++++++++++++-----
.../test_0003_must_allow_to_filter_instances.yml | 354 +++++++++++-
...0004_must_allow_to_retrieve_single_instance.yml | 354 +++++++++++-
...eate_and_destroy_an_instance-inst_launch-10.yml | 221 ++++++--
...reate_and_destroy_an_instance-inst_launch-9.yml | 228 ++++++++
...ust_allow_to_create_and_destroy_an_instance.yml | 491 ++++++++++++++++-
7 files changed, 2101 insertions(+), 193 deletions(-)
create mode 100644 server/tests/drivers/openstack/fixtures/test_0001_must_throw_error_when_GET_instances_with_wrong_credentials.yml
create mode 100644 server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-9.yml
diff --git a/server/tests/drivers/openstack/fixtures/test_0001_must_throw_error_when_GET_instances_with_wrong_credentials.yml b/server/tests/drivers/openstack/fixtures/test_0001_must_throw_error_when_GET_instances_with_wrong_credentials.yml
new file mode 100644
index 0000000..a946a9a
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/test_0001_must_throw_error_when_GET_instances_with_wrong_credentials.yml
@@ -0,0 +1,44 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"unknown","password":"wrong"},"tenantName":"wrong"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 401
+ message: Unauthorized
+ headers:
+ Cneonction:
+ - close
+ Content-Length:
+ - '149'
+ Content-Type:
+ - application/json
+ Date:
+ - Tue, 11 Dec 2012 08:26:59 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\n \"unauthorized\" : {\n \"code\" : 401,\n \"details\" :
+ \"Invalid credentials\",\n \"message\" : \"UNAUTHORIZED\",\n \"otherAttributes\"
+ : {\n }\n }\n}"
+ http_version:
+ recorded_at: Tue, 11 Dec 2012 08:27:00 GMT
+recorded_with: VCR 2.3.0
diff --git a/server/tests/drivers/openstack/fixtures/test_0002_must_return_list_of_instances.yml b/server/tests/drivers/openstack/fixtures/test_0002_must_return_list_of_instances.yml
index 61e7761..5453c1b 100644
--- a/server/tests/drivers/openstack/fixtures/test_0002_must_return_list_of_instances.yml
+++ b/server/tests/drivers/openstack/fixtures/test_0002_must_return_list_of_instances.yml
@@ -2,10 +2,10 @@
http_interactions:
- request:
method: post
- uri: http://10.34.32.211:5000/v2.0/tokens
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
body:
encoding: UTF-8
- string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}'
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
headers:
Content-Type:
- application/json
@@ -18,112 +18,267 @@ http_interactions:
code: 200
message: OK
headers:
+ Content-Length:
+ - '4011'
Content-Type:
- application/json
- Vary:
- - X-Auth-Token
+ Date:
+ - Mon, 10 Dec 2012 15:10:07 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:10:07.991Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:08 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/detail
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
Content-Length:
- - '2010'
+ - '2541'
+ Content-Type:
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:33 GMT
- body:
- encoding: US-ASCII
- string: ! '{"access": {"token": {"expires": "2012-08-28T16:17:33Z", "id": "3d86c2c60db740048679f407ce56b8dc",
- "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"}}}'
+ - Mon, 10 Dec 2012 15:10:09 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"servers": [{"status": "ACTIVE", "updated": "2012-12-10T15:03:24Z",
+ "hostId": "0e41006b0e3db6478b080da632acdaa02e346c37231920e704bd3d64", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:02:57 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802775",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.194"},
+ {"version": 4, "addr": "15.185.173.7"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:03:01Z", "uuid": "fae40ccd-f3bf-468b-8faa-67fa9f108b2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802775, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}, {"status": "ACTIVE", "updated":
+ "2012-12-10T15:02:54Z", "hostId": "25fd82504218b60b7dd014973a9636b0330e84d39bc920bfc63013b7",
+ "user_id": "98765fake43210", "name": "server2012-12-10 17:02:28 +0200", "links":
+ [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802771",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802771",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.186"},
+ {"version": 4, "addr": "15.185.174.5"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "14075", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/14075",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:02:32Z", "uuid": "ee5dee00-1fac-4d7e-908d-6a0089c98d2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802771, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}]}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:51 GMT
+ recorded_at: Mon, 10 Dec 2012 15:10:10 GMT
- request:
method: get
- uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/detail
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
body:
encoding: US-ASCII
string: ''
headers:
X-Auth-Token:
- - 3d86c2c60db740048679f407ce56b8dc
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
X-Storage-Token:
- - 3d86c2c60db740048679f407ce56b8dc
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- Keep-Alive
User-Agent:
- - OpenStack Ruby API 1.0.3
+ - OpenStack Ruby API 1.0.7
Accept:
- application/json
+ Content-Type:
+ - application/json
response:
status:
code: 200
message: OK
headers:
- X-Compute-Request-Id:
- - req-12f4d254-1dca-4f59-95f8-5358f5ab2dce
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:10:11 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:11 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
Content-Type:
- application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
Content-Length:
- - '2824'
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:33 GMT
+ - Mon, 10 Dec 2012 15:10:13 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:13 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802771/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- - keep-alive
- body:
- encoding: US-ASCII
- string: ! '{"servers": [{"OS-EXT-STS:task_state": null, "addresses": {"demonet":
- [{"version": 4, "addr": "10.0.0.7"}]}, "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/632f0a99-7c2d-4624-afaf-b9d2421279bc",
- "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/servers/632f0a99-7c2d-4624-afaf-b9d2421279bc",
- "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-00000011", "flavor": {"id": "1", "links": [{"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1",
- "rel": "bookmark"}]}, "id": "632f0a99-7c2d-4624-afaf-b9d2421279bc", "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:44:08Z", "hostId": "13942eef5ee69ea6fabcd918042084b1ec915973056bb1b497b43dfa",
- "OS-EXT-SRV-ATTR:host": "openstack-01.lab.eng.brq.redhat.com", "key_name":
- "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "server2012-08-27
- 13:55:22 +0200", "created": "2012-08-27T15:44:04Z", "tenant_id": "e827289fd66f4effb5b9b5012282fdb7",
- "metadata": {}}, {"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":
- {}}]}'
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cneonction:
+ - close
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:10:14 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:51 GMT
+ recorded_at: Mon, 10 Dec 2012 15:10:14 GMT
- request:
method: post
- uri: http://10.34.32.211:5000/v2.0/tokens
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
body:
encoding: UTF-8
- string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}'
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
headers:
Content-Type:
- application/json
@@ -136,104 +291,257 @@ http_interactions:
code: 200
message: OK
headers:
+ Content-Length:
+ - '4011'
Content-Type:
- application/json
- Vary:
- - X-Auth-Token
+ Date:
+ - Mon, 10 Dec 2012 15:10:16 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:10:16.411Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:16 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/detail
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
Content-Length:
- - '2010'
+ - '2541'
+ Content-Type:
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:33 GMT
- body:
- encoding: US-ASCII
- string: ! '{"access": {"token": {"expires": "2012-08-28T16:17:33Z", "id": "cd515949e1314be9b29cc84d92f282b4",
- "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"}}}'
+ - Mon, 10 Dec 2012 15:10:18 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"servers": [{"status": "ACTIVE", "updated": "2012-12-10T15:03:24Z",
+ "hostId": "0e41006b0e3db6478b080da632acdaa02e346c37231920e704bd3d64", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:02:57 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802775",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.194"},
+ {"version": 4, "addr": "15.185.173.7"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:03:01Z", "uuid": "fae40ccd-f3bf-468b-8faa-67fa9f108b2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802775, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}, {"status": "ACTIVE", "updated":
+ "2012-12-10T15:02:54Z", "hostId": "25fd82504218b60b7dd014973a9636b0330e84d39bc920bfc63013b7",
+ "user_id": "98765fake43210", "name": "server2012-12-10 17:02:28 +0200", "links":
+ [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802771",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802771",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.186"},
+ {"version": 4, "addr": "15.185.174.5"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "14075", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/14075",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:02:32Z", "uuid": "ee5dee00-1fac-4d7e-908d-6a0089c98d2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802771, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}]}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:51 GMT
+ recorded_at: Mon, 10 Dec 2012 15:10:18 GMT
- request:
method: get
- uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/detail
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
body:
encoding: US-ASCII
string: ''
headers:
X-Auth-Token:
- - cd515949e1314be9b29cc84d92f282b4
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
X-Storage-Token:
- - cd515949e1314be9b29cc84d92f282b4
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- Keep-Alive
User-Agent:
- - OpenStack Ruby API 1.0.3
+ - OpenStack Ruby API 1.0.7
Accept:
- application/json
+ Content-Type:
+ - application/json
response:
status:
code: 200
message: OK
headers:
- X-Compute-Request-Id:
- - req-8b6053a6-6fbc-4c56-a6ae-d09fc553fa0e
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:10:19 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:20 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
Content-Type:
- application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
Content-Length:
- - '2824'
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:33 GMT
+ - Mon, 10 Dec 2012 15:10:21 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:10:21 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802771/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- - keep-alive
- body:
- encoding: US-ASCII
- string: ! '{"servers": [{"OS-EXT-STS:task_state": null, "addresses": {"demonet":
- [{"version": 4, "addr": "10.0.0.7"}]}, "links": [{"href": "http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/632f0a99-7c2d-4624-afaf-b9d2421279bc",
- "rel": "self"}, {"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/servers/632f0a99-7c2d-4624-afaf-b9d2421279bc",
- "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-00000011", "flavor": {"id": "1", "links": [{"href": "http://10.34.32.211:8774/e827289fd66f4effb5b9b5012282fdb7/flavors/1",
- "rel": "bookmark"}]}, "id": "632f0a99-7c2d-4624-afaf-b9d2421279bc", "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:44:08Z", "hostId": "13942eef5ee69ea6fabcd918042084b1ec915973056bb1b497b43dfa",
- "OS-EXT-SRV-ATTR:host": "openstack-01.lab.eng.brq.redhat.com", "key_name":
- "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "server2012-08-27
- 13:55:22 +0200", "created": "2012-08-27T15:44:04Z", "tenant_id": "e827289fd66f4effb5b9b5012282fdb7",
- "metadata": {}}, {"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":
- {}}]}'
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:10:23 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:52 GMT
-recorded_with: VCR 2.2.4
+ recorded_at: Mon, 10 Dec 2012 15:10:23 GMT
+recorded_with: VCR 2.3.0
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
index 1c475d9..f9a683e 100644
--- 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
@@ -106,4 +106,356 @@ http_interactions:
{}}}'
http_version:
recorded_at: Mon, 27 Aug 2012 12:28:51 GMT
-recorded_with: VCR 2.2.4
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:37:37 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:37:37.375Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:37 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1274'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:39 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "ACTIVE", "updated": "2012-12-10T15:03:24Z",
+ "hostId": "0e41006b0e3db6478b080da632acdaa02e346c37231920e704bd3d64", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:02:57 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802775",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.194"},
+ {"version": 4, "addr": "15.185.173.7"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:03:01Z", "uuid": "fae40ccd-f3bf-468b-8faa-67fa9f108b2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802775, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:39 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:40 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:40 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:42 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:42 GMT
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:37:43 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:37:43.608Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:43 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/unknown
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 404
+ message: Not Found
+ headers:
+ Nncoection:
+ - close
+ Content-Length:
+ - '78'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:45 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"itemNotFound": {"message": "The resource could not be found.",
+ "code": 404}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:45 GMT
+recorded_with: VCR 2.3.0
diff --git a/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml b/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
index 7bf2c32..63211ea 100644
--- a/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
+++ b/server/tests/drivers/openstack/fixtures/test_0004_must_allow_to_retrieve_single_instance.yml
@@ -106,4 +106,356 @@ http_interactions:
{}}}'
http_version:
recorded_at: Mon, 27 Aug 2012 12:28:51 GMT
-recorded_with: VCR 2.2.4
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:38:30 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:38:30.551Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:30 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1274'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:32 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "ACTIVE", "updated": "2012-12-10T15:03:24Z",
+ "hostId": "0e41006b0e3db6478b080da632acdaa02e346c37231920e704bd3d64", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:02:57 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802775",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.194"},
+ {"version": 4, "addr": "15.185.173.7"}]}, "tenant_id": "123456fake7890", "image":
+ {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:03:01Z", "uuid": "fae40ccd-f3bf-468b-8faa-67fa9f108b2e",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802775, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:32 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:33 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:34 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802775/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:35 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:35 GMT
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:38:36 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:38:37.202Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:37 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/unknown
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 404
+ message: Not Found
+ headers:
+ Nncoection:
+ - close
+ Content-Length:
+ - '78'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:39 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"itemNotFound": {"message": "The resource could not be found.",
+ "code": 404}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:39 GMT
+recorded_with: VCR 2.3.0
diff --git a/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-10.yml b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-10.yml
index ecb0f61..76e4d5f 100644
--- a/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-10.yml
+++ b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-10.yml
@@ -2,10 +2,10 @@
http_interactions:
- request:
method: post
- uri: http://10.34.32.211:5000/v2.0/tokens
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
body:
encoding: UTF-8
- string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"password"},"tenantName":"admin"}}'
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
headers:
Content-Type:
- application/json
@@ -18,76 +18,211 @@ http_interactions:
code: 200
message: OK
headers:
+ Content-Length:
+ - '4011'
Content-Type:
- application/json
- Vary:
- - X-Auth-Token
+ Date:
+ - Mon, 10 Dec 2012 15:37:57 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:37:57.623Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:57 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
Content-Length:
- - '2010'
+ - '1268'
+ Content-Type:
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:34 GMT
+ - Mon, 10 Dec 2012 15:37:59 GMT
body:
encoding: US-ASCII
- string: ! '{"access": {"token": {"expires": "2012-08-28T16:17:34Z", "id": "5925f23f1aaf40d984b640f0dd7b9bee",
- "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"}}}'
+ string: ! '{"server": {"status": "BUILD(spawning)", "updated": "2012-12-10T15:37:56Z",
+ "hostId": "651cb8f253a1914eb5689826c7aebdaf2d5c8f6e965544b797e0f29f", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:37:46 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.204"},
+ {"version": 4, "addr": "15.185.175.199"}]}, "tenant_id": "123456fake7890",
+ "image": {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "flavor": {"id": "100",
+ "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:52 GMT
+ recorded_at: Mon, 10 Dec 2012 15:37:59 GMT
- request:
method: get
- uri: http://10.34.32.211:8774/v1.1/e827289fd66f4effb5b9b5012282fdb7/servers/
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
body:
encoding: US-ASCII
string: ''
headers:
X-Auth-Token:
- - 5925f23f1aaf40d984b640f0dd7b9bee
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
X-Storage-Token:
- - 5925f23f1aaf40d984b640f0dd7b9bee
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- Keep-Alive
User-Agent:
- - OpenStack Ruby API 1.0.3
+ - OpenStack Ruby API 1.0.7
Accept:
- application/json
Content-Type:
- application/json
response:
status:
- code: 404
- message: Not Found
+ code: 200
+ message: OK
headers:
Content-Length:
- - '52'
+ - '1570'
Content-Type:
- - text/plain; charset=UTF-8
+ - application/json; charset=UTF-8
Date:
- - Mon, 27 Aug 2012 16:17:34 GMT
+ - Mon, 10 Dec 2012 15:38:01 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:04 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
Connection:
- - keep-alive
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:06 GMT
body:
encoding: US-ASCII
- string: ! "404 Not Found\n\nThe resource could not be found.\n\n "
+ string: ! '{"volumeAttachments": []}'
http_version:
- recorded_at: Mon, 27 Aug 2012 12:28:52 GMT
-recorded_with: VCR 2.2.4
+ recorded_at: Mon, 10 Dec 2012 15:38:06 GMT
+recorded_with: VCR 2.3.0
diff --git a/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-9.yml b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-9.yml
new file mode 100644
index 0000000..c9b5994
--- /dev/null
+++ b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance-inst_launch-9.yml
@@ -0,0 +1,228 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:38:17 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:38:17.642Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:17 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1276'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:19 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "ACTIVE", "updated": "2012-12-10T15:38:12Z",
+ "hostId": "651cb8f253a1914eb5689826c7aebdaf2d5c8f6e965544b797e0f29f", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:37:46 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.204"},
+ {"version": 4, "addr": "15.185.175.199"}]}, "tenant_id": "123456fake7890",
+ "image": {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:19 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:20 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:21 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:22 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:22 GMT
+recorded_with: VCR 2.3.0
diff --git a/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance.yml b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance.yml
index 74f7fe7..849ef66 100644
--- a/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance.yml
+++ b/server/tests/drivers/openstack/fixtures/test_0005_must_allow_to_create_and_destroy_an_instance.yml
@@ -149,4 +149,493 @@ http_interactions:
"tenant_id": "e827289fd66f4effb5b9b5012282fdb7", "metadata": {}}}'
http_version:
recorded_at: Mon, 27 Aug 2012 12:28:52 GMT
-recorded_with: VCR 2.2.4
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:37:46 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:37:46.690Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:46 GMT
+- request:
+ method: post
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers
+ body:
+ encoding: UTF-8
+ string: ! '{"server":{"personality":[],"name":"server2012-12-10 17:37:46 +0200","imageRef":"47940","flavorRef":"100","security_groups":[]}}'
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Content-Length:
+ - '1156'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:50 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "BUILD(scheduling)", "updated": "2012-12-10T15:37:50Z",
+ "hostId": "", "user_id": "98765fake43210", "name": "server2012-12-10 17:37:46
+ +0200", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {}, "tenant_id": "123456fake7890", "image":
+ {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "adminPass": "qVikFd7qzKekej6q",
+ "flavor": {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:50 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1228'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:52 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "BUILD(networking)", "updated": "2012-12-10T15:37:51Z",
+ "hostId": "651cb8f253a1914eb5689826c7aebdaf2d5c8f6e965544b797e0f29f", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:37:46 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.204"}]},
+ "tenant_id": "123456fake7890", "image": {"id": "47940", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "flavor": {"id": "100",
+ "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:52 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/extensions
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1570'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:54 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"extensions": [{"updated": "2011-03-25T00:00:00+00:00", "name":
+ "Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/volumes/api/v1.1",
+ "alias": "os-volumes", "description": "Volumes support"}, {"updated": "2012-10-11T00:00:00+00:00",
+ "name": "HP Bootable Volumes", "links": [], "namespace": "http://docs.openstack.org/ext/hp-bootable-volumes/api/v1.1",
+ "alias": "hp-bootable-volumes", "description": "hp bootable volumes support"},
+ {"updated": "2012-09-04T00:00:00+00:00", "name": "hp volume backup", "links":
+ [], "namespace": "http://docs.openstack.org/ext/hp-volume-backups/api/v1.1",
+ "alias": "hp-volume-backups", "description": "hp volume backups support"},
+ {"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [],
+ "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs",
+ "description": "Keypair Support"}, {"updated": "2011-12-08T00:00:00+00:00",
+ "name": "Console_output", "links": [], "namespace": "http://docs.openstack.org/compute/ext/os-console-output/api/v1.1",
+ "alias": "os-console-output", "description": "Console log output support,
+ with tailing ability."}, {"updated": "2011-07-21T00:00:00+00:00", "name":
+ "SecurityGroups", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v1.1",
+ "alias": "security_groups", "description": "Security group support"}, {"updated":
+ "2011-06-16T00:00:00+00:00", "name": "Floating_ips", "links": [], "namespace":
+ "http://docs.openstack.org/ext/floating_ips/api/v1.1", "alias": "os-floating-ips",
+ "description": "Floating IPs support"}]}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:54 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903/os-volume_attachments
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '25'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:37:55 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"volumeAttachments": []}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:37:56 GMT
+- request:
+ method: post
+ uri: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
+ body:
+ encoding: UTF-8
+ string: ! '{"auth":{"passwordCredentials":{"username":"foo@fakedomain.eu","password":"1234fake56789"},"tenantName":"foo@fakedomain.eu-default-tenant"}}'
+ headers:
+ Content-Type:
+ - application/json
+ Accept:
+ - ! '*/*'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '4011'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:38:23 GMT
+ Cache-Control:
+ - no-cache
+ Expires:
+ - '-1'
+ Pragma:
+ - no-cache
+ Server:
+ - Apache-Coyote/1.1
+ body:
+ encoding: US-ASCII
+ string: ! "{\"access\": {\n \"token\": {\n \"expires\": \"2012-12-11T03:38:23.961Z\",\n
+ \ \"id\": \"EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1\",\n
+ \ \"tenant\": {\n \"id\": \"123456fake7890\",\n \"name\": \"foo@fakedomain.eu-default-tenant\"\n
+ \ }\n },\n \"user\": {\n \"id\": \"98765fake43210\",\n \"name\":
+ \"foo@fakedomain.eu\",\n \"roles\": [\n {\n \"id\": \"00000000004024\",\n
+ \ \"serviceId\": \"140\",\n \"name\": \"user\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004022\",\n
+ \ \"serviceId\": \"110\",\n \"name\": \"Admin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004025\",\n
+ \ \"serviceId\": \"120\",\n \"name\": \"sysadmin\",\n \"tenantId\":
+ \"123456fake7890\"\n },\n {\n \"id\": \"00000000004003\",\n
+ \ \"serviceId\": \"100\",\n \"name\": \"domainadmin\"\n },\n
+ \ {\n \"id\": \"00000000004016\",\n \"serviceId\": \"120\",\n
+ \ \"name\": \"netadmin\",\n \"tenantId\": \"123456fake7890\"\n
+ \ },\n {\n \"id\": \"00000000004004\",\n \"serviceId\":
+ \"100\",\n \"name\": \"domainuser\"\n },\n {\n \"id\":
+ \"00000000004013\",\n \"serviceId\": \"130\",\n \"name\": \"block-admin\",\n
+ \ \"tenantId\": \"123456fake7890\"\n }\n ]\n },\n \"serviceCatalog\":
+ [\n {\n \"name\": \"Object Storage\",\n \"type\": \"object-store\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1\\/123456fake7890\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.objects.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Identity\",\n \"type\": \"identity\",\n
+ \ \"endpoints\": [\n {\n \"publicURL\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-b.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-b.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ },\n {\n \"publicURL\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"region\": \"region-a.geo-1\",\n \"versionId\": \"2.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\\/v2.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/region-a.geo-1.identity.hpcloudsvc.com:35357\"\n
+ \ }\n ]\n },\n {\n \"name\": \"Image Management\",\n
+ \ \"type\": \"image\",\n \"endpoints\": [{\n \"tenantId\":
+ \"123456fake7890\",\n \"publicURL\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.0\",\n
+ \ \"versionInfo\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\\/v1.0\\/\",\n
+ \ \"versionList\": \"https:\\/\\/glance2.uswest.hpcloud.net:9292\"\n
+ \ }]\n },\n {\n \"name\": \"Block Storage\",\n \"type\":
+ \"volume\",\n \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n
+ \ \"publicURL\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n },\n {\n \"name\": \"Compute\",\n \"type\": \"compute\",\n
+ \ \"endpoints\": [{\n \"tenantId\": \"123456fake7890\",\n \"publicURL\":
+ \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/123456fake7890\",\n
+ \ \"publicURL2\": \"https:\\/\\/az-2.region-a.geo-1.ec2-compute.hpcloudsvc.com\\/services\\/Cloud\",\n
+ \ \"region\": \"az-2.region-a.geo-1\",\n \"versionId\": \"1.1\",\n
+ \ \"versionInfo\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\\/v1.1\\/\",\n
+ \ \"versionList\": \"https:\\/\\/az-2.region-a.geo-1.compute.hpcloudsvc.com\"\n
+ \ }]\n }\n ]\n}}"
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:24 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1276'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:25 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "ACTIVE", "updated": "2012-12-10T15:38:12Z",
+ "hostId": "651cb8f253a1914eb5689826c7aebdaf2d5c8f6e965544b797e0f29f", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:37:46 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.204"},
+ {"version": 4, "addr": "15.185.175.199"}]}, "tenant_id": "123456fake7890",
+ "image": {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "progress": 100, "flavor":
+ {"id": "100", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:25 GMT
+- request:
+ method: delete
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ response:
+ status:
+ code: 204
+ message: No Content
+ headers:
+ Content-Length:
+ - '0'
+ Content-Type:
+ - application/json
+ Date:
+ - Mon, 10 Dec 2012 15:38:27 GMT
+ body:
+ encoding: US-ASCII
+ string: ''
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:27 GMT
+- request:
+ method: get
+ uri: https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ X-Auth-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ X-Storage-Token:
+ - EUAuth_01d7206e81832d1ac45183ab9531ba4f6cdc231590a31d5a326aa3cac417cdd1
+ Connection:
+ - Keep-Alive
+ User-Agent:
+ - OpenStack Ruby API 1.0.7
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Content-Length:
+ - '1269'
+ Content-Type:
+ - application/json; charset=UTF-8
+ Date:
+ - Mon, 10 Dec 2012 15:38:28 GMT
+ body:
+ encoding: US-ASCII
+ string: ! '{"server": {"status": "ACTIVE(deleting)", "updated": "2012-12-10T15:38:27Z",
+ "hostId": "651cb8f253a1914eb5689826c7aebdaf2d5c8f6e965544b797e0f29f", "user_id":
+ "98765fake43210", "name": "server2012-12-10 17:37:46 +0200", "links": [{"href":
+ "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/servers/802903",
+ "rel": "self"}, {"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/servers/802903",
+ "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.7.7.204"},
+ {"version": 4, "addr": "15.185.175.199"}]}, "tenant_id": "123456fake7890",
+ "image": {"id": "47940", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/images/47940",
+ "rel": "bookmark"}]}, "created": "2012-12-10T15:37:50Z", "uuid": "2cfc10d4-5bb4-4364-9caa-a3d9b460eef4",
+ "accessIPv4": "", "accessIPv6": "", "key_name": null, "flavor": {"id": "100",
+ "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/123456fake7890/flavors/100",
+ "rel": "bookmark"}]}, "config_drive": "", "id": 802903, "security_groups":
+ [{"name": "default", "links": [{"href": "https://az-2.region-a.geo-1.compute.hpcloudsvc.com/v1.1/123456fake7890/os-security-groups/1381",
+ "rel": "bookmark"}], "id": 1381}], "metadata": {}}}'
+ http_version:
+ recorded_at: Mon, 10 Dec 2012 15:38:29 GMT
+recorded_with: VCR 2.3.0
--
1.7.11.7
[PATCH 2/2] Server tests - fixes openstack driver instances test - broken build
Posted by ma...@redhat.com.
From: marios <ma...@redhat.com>
https://travis-ci.org/mifo/deltacloud/jobs/3591100
Signed-off-by: marios <ma...@redhat.com>
---
server/tests/drivers/openstack/instances_test.rb | 34 +++++++++++++-----------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/server/tests/drivers/openstack/instances_test.rb b/server/tests/drivers/openstack/instances_test.rb
index e391a2a..8ce2704 100644
--- a/server/tests/drivers/openstack/instances_test.rb
+++ b/server/tests/drivers/openstack/instances_test.rb
@@ -5,6 +5,14 @@ require_relative 'common.rb'
describe 'OpenStackDriver Instances' do
+ def credentials
+ {
+ :user => "foo@fakedomain.eu+foo@fakedomain.eu-default-tenant",
+ :password => "1234fake56789",
+ :provider => "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/"
+ }
+ end
+
before do
@driver = Deltacloud::new(:openstack, credentials)
VCR.insert_cassette __name__
@@ -14,9 +22,9 @@ describe 'OpenStackDriver Instances' do
VCR.eject_cassette
end
- it 'must throw error when wrong credentials' do
+ it 'must throw error when GET instances with wrong credentials' do
Proc.new do
- @driver.backend.images(OpenStruct.new(:user => 'unknown+wrong', :password => 'wrong'))
+ @driver.backend.instances(OpenStruct.new(:user => 'unknown+wrong', :password => 'wrong'))
end.must_raise Deltacloud::Exceptions::AuthenticationFailure, 'Authentication Failure'
end
@@ -25,28 +33,23 @@ describe 'OpenStackDriver Instances' do
@driver.instances.first.must_be_kind_of Instance
end
-# FIXME: The tests above will fail because of incompatibility
-# in a way how OpenStack handle uuid/id.
-# Please uncomment these tests if that will be fixed.
-
-=begin
it 'must allow to filter instances' do
- instances = @driver.instances :id => 'fef00348-9991-404c-b0d4-655d18f84345'
+ instances = @driver.instances :id => '802775'
instances.wont_be_empty
instances.must_be_kind_of Array
instances.size.must_equal 1
puts instances.inspect
- instances.first.id.must_equal 'fef00348-9991-404c-b0d4-655d18f84345'
+ instances.first.id.must_equal '802775'
@driver.instances(:id => 'unknown').must_be_empty
end
it 'must allow to retrieve single instance' do
- instance = @driver.instance :id => 'fef00348-9991-404c-b0d4-655d18f84345'
+ instance = @driver.instance :id => '802775'
instance.wont_be_nil
- instance.id.must_equal 'fef00348-9991-404c-b0d4-655d18f84345'
- instance.name.must_equal 'test-3'
+ instance.id.must_equal '802775'
+ instance.name.must_equal 'server2012-12-10 17:02:57 +0200'
instance.state.wont_be_empty
- instance.owner_id.must_equal 'admin'
+ instance.owner_id.must_equal 'foo@fakedomain.eu'
instance.realm_id.wont_be_empty
instance.image_id.wont_be_empty
instance.instance_profile.wont_be_nil
@@ -54,13 +57,12 @@ describe 'OpenStackDriver Instances' do
end
it 'must allow to create and destroy an instance' do
- instance = @driver.create_instance 'bf7ce59a-d9f9-45d4-9313-f45b16436602', :hwp_id => '1'
+ instance = @driver.create_instance '47940', :hwp_id => '100'
instance.wont_be_nil
- instance.image_id.must_equal 'bf7ce59a-d9f9-45d4-9313-f45b16436602'
+ instance.image_id.must_equal '47940'
instance.name.wont_be_empty
instance.wait_for!(@driver, record_retries('inst_launch')) { |i| i.is_running? }
puts @driver.destroy_instance(instance.id).inspect
end
-=end
end
--
1.7.11.7