aviator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +1 -0
- data/README.md +35 -8
- data/README.md.orig +217 -0
- data/aviator.gemspec +3 -3
- data/lib/aviator/openstack/compute/v2/public/change_admin_password.rb +54 -0
- data/lib/aviator/openstack/compute/v2/public/create_image.rb +56 -0
- data/lib/aviator/openstack/compute/v2/public/create_server.rb +64 -0
- data/lib/aviator/openstack/compute/v2/public/delete_server.rb +39 -0
- data/lib/aviator/openstack/compute/v2/public/get_server.rb +39 -0
- data/lib/aviator/openstack/compute/v2/public/list_addresses.rb +48 -0
- data/lib/aviator/openstack/compute/v2/public/list_flavors.rb +55 -0
- data/lib/aviator/openstack/compute/v2/public/reboot_server.rb +51 -0
- data/lib/aviator/openstack/compute/v2/public/rebuild_server.rb +63 -0
- data/lib/aviator/openstack/compute/v2/public/root.rb +34 -0
- data/lib/aviator/openstack/compute/v2/public/update_server.rb +55 -0
- data/lib/aviator/version.rb +1 -1
- data/test/aviator/core/service_test.rb +3 -15
- data/test/aviator/core/session_test.rb +3 -3
- data/test/aviator/openstack/compute/v2/public/change_admin_password_test.rb +141 -0
- data/test/aviator/openstack/compute/v2/public/create_image_test.rb +146 -0
- data/test/aviator/openstack/compute/v2/public/create_server_test.rb +177 -0
- data/test/aviator/openstack/compute/v2/public/delete_server_test.rb +131 -0
- data/test/aviator/openstack/compute/v2/public/get_server_test.rb +138 -0
- data/test/aviator/openstack/compute/v2/public/list_addresses_test.rb +161 -0
- data/test/aviator/openstack/compute/v2/public/list_flavors_test.rb +160 -0
- data/test/aviator/openstack/compute/v2/public/list_images_test.rb +1 -1
- data/test/aviator/openstack/compute/v2/public/reboot_server_test.rb +137 -0
- data/test/aviator/openstack/compute/v2/public/rebuild_server_test.rb +183 -0
- data/test/aviator/openstack/compute/v2/public/root_test.rb +106 -0
- data/test/aviator/openstack/compute/v2/public/update_server_test.rb +144 -0
- data/test/aviator/openstack/identity/v2/admin/create_tenant_test.rb +1 -1
- data/test/cassettes/core/service/i_default_session_data_/sets_the_service_s_default_session_data.yml +18 -17
- data/test/cassettes/core/service/i_request/accepts_an_endpoint_type_option_for_selecting_a_specific_request.yml +31 -30
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_bootstrapped_session_data.yml +18 -17
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_non-bootstrapped_session_data.yml +29 -27
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_if_api_version_is_not_defined_but_can_be_inferred_from_host_uri.yml +18 -17
- data/test/cassettes/core/service/i_request/uses_the_default_session_data_if_session_data_is_not_provided.yml +29 -27
- data/test/cassettes/core/session/c_load/creates_a_new_instance_from_the_given_session_dump.yml +18 -17
- data/test/cassettes/core/session/c_load/uses_the_loaded_auth_info_for_its_services.yml +18 -17
- data/test/cassettes/core/session/c_new/directs_log_entries_to_the_given_log_file.yml +18 -17
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_indicated_in_the_config_file.yml +18 -17
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_using_the_credentials_in_the_given_block.yml +10 -10
- data/test/cassettes/core/session/i_authenticate/raises_an_AuthenticationError_when_authentication_fails.yml +3 -3
- data/test/cassettes/core/session/i_authenticate/updates_the_session_data_of_its_service_objects.yml +36 -34
- data/test/cassettes/core/session/i_dump/serializes_the_session_data_for_caching.yml +18 -17
- data/test/cassettes/core/session/i_load/returns_itself.yml +18 -17
- data/test/cassettes/core/session/i_load/updates_the_session_data_of_its_service_objects.yml +36 -34
- data/test/cassettes/core/session/i_validate/returns_false_if_session_is_no_longer_valid.yml +20 -19
- data/test/cassettes/core/session/i_validate/returns_true_if_session_is_still_valid.yml +22 -21
- data/test/cassettes/core/session/i_xxx_service/returns_an_instance_of_the_indicated_service.yml +18 -17
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +97 -0
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/leads_to_a_valid_response_when_valid_params_are_provided.yml +132 -0
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/change_admin_password/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +97 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/leads_to_a_valid_response_when_valid_params_are_provided.yml +132 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/create_image/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/leads_to_a_valid_response_when_parameters_are_provided.yml +182 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/leads_to_a_valid_response_when_the_adminPass_parameter_is_provided.yml +182 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/leads_to_a_valid_response_when_the_flavorRef_parameter_is_invalid.yml +135 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/returns_the_correct_value_for_body_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/returns_the_correct_value_for_headers_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/returns_the_correct_value_for_http_method_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/create_server/returns_the_correct_value_for_url_.yml +222 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +96 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/leads_to_a_valid_response_when_valid_server_id_is_provided.yml +131 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/returns_the_correct_value_for_body_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/returns_the_correct_value_for_headers_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/returns_the_correct_value_for_http_method_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/delete_server/returns_the_correct_value_for_url_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/leads_to_a_valid_response_when_a_valid_server_id_is_provided.yml +145 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/leads_to_a_valid_response_when_an_invalid_server_id_is_provided.yml +96 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/returns_the_correct_value_for_body_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/returns_the_correct_value_for_headers_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/returns_the_correct_value_for_http_method_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/get_server/returns_the_correct_value_for_url_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/leads_to_a_valid_response_when_a_networkID_parameter_is_provided.yml +167 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/leads_to_a_valid_response_when_a_valid_server_id_is_provided.yml +132 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/leads_to_a_valid_response_when_an_invalid_server_id_is_provided.yml +96 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_addresses/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/leads_to_a_valid_response_when_no_parameters_are_provided.yml +104 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/leads_to_a_valid_response_when_the_details_filter_is_provided.yml +111 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/leads_to_a_valid_response_when_the_minDisk_filter_is_provided.yml +146 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/returns_the_correct_value_for_body_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/returns_the_correct_value_for_headers_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/returns_the_correct_value_for_http_method_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_flavors/returns_the_correct_value_for_url_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_no_parameters_are_provided.yml +32 -31
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_invalid.yml +23 -22
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_valid.yml +32 -31
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body_.yml +18 -17
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers_.yml +18 -17
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_http_method_.yml +18 -17
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url_.yml +18 -17
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_no_parameters_are_provided.yml +39 -38
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_parameters_are_invalid.yml +37 -35
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_parameters_are_valid.yml +42 -39
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_body_.yml +32 -30
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_headers_.yml +32 -30
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_http_method_.yml +32 -30
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_url_.yml +32 -30
- data/test/cassettes/openstack/compute/v2/public/reboot_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +97 -0
- data/test/cassettes/openstack/compute/v2/public/reboot_server/leads_to_a_valid_response_when_valid_params_are_provided.yml +130 -0
- data/test/cassettes/openstack/compute/v2/public/reboot_server/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/reboot_server/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/reboot_server/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/reboot_server/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/leads_to_a_valid_response_when_invalid_image_id_is_provided.yml +133 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +167 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/leads_to_a_valid_response_when_valid_params_are_provided.yml +216 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/rebuild_server/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/root/leads_to_a_valid_response_when_no_parameters_are_provided.yml +101 -0
- data/test/cassettes/openstack/compute/v2/public/root/returns_the_correct_value_for_body_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/root/returns_the_correct_value_for_headers_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/root/returns_the_correct_value_for_http_method_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/root/returns_the_correct_value_for_url_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +96 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/leads_to_a_valid_response_when_valid_server_id_is_provided.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/returns_the_correct_value_for_body_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/returns_the_correct_value_for_headers_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/returns_the_correct_value_for_http_method_.yml +142 -0
- data/test/cassettes/openstack/compute/v2/public/update_server/returns_the_correct_value_for_url_.yml +142 -0
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_invalid.yml +21 -20
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_valid.yml +25 -24
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_parameters_are_invalid.yml +3 -3
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_parameters_are_valid.yml +10 -10
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_provided_with_a_token.yml +28 -27
- data/test/environment.yml.example +16 -9
- data/test/environment.yml.travis-ci +19 -14
- data/test/support/vcr_setup.rb +35 -10
- data/test/test_helper.rb +3 -1
- metadata +180 -52
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body.yml +0 -63
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers.yml +0 -63
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url.yml +0 -63
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_provided_with_invalid_params.yml +0 -97
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<OPENSTACK_MEMBER_USERNAME>","password":"<OPENSTACK_MEMBER_PASSWORD>"},"tenantName":"<OPENSTACK_MEMBER_TENANTNAME>"}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.8
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
vary:
|
20
|
+
- X-Auth-Token
|
21
|
+
content-type:
|
22
|
+
- application/json
|
23
|
+
content-length:
|
24
|
+
- '2654'
|
25
|
+
date:
|
26
|
+
- Thu, 05 Sep 2013 07:22:12 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-05T07:22:12.738892",
|
32
|
+
"expires": "2013-09-05T13:22:12Z", "id": "4903731207cf4f4ca2dae1e4e8096dfe",
|
33
|
+
"tenant": {"description": "Used for Aviator testing/development ", "enabled":
|
34
|
+
true, "id": "d770443fc60a410c843dc12b98ac8135", "name": "<OPENSTACK_MEMBER_TENANTNAME>"}},
|
35
|
+
"serviceCatalog": [{"endpoints": [{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135",
|
36
|
+
"region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135",
|
37
|
+
"id": "6bb597a3738045f4b2c51a7702037cab", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135"}],
|
38
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
39
|
+
"<OPENSTACK_ADMIN_HOST_URI>:9292", "region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:9292",
|
40
|
+
"id": "2985945e07b74103bb2dfef7e426cd43", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:9292"}],
|
41
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
42
|
+
"<OPENSTACK_ADMIN_HOST_URI>:8777", "region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8777",
|
43
|
+
"id": "370119dd80e84894bfe83d766fd467dd", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8777"}],
|
44
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
45
|
+
[{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135",
|
46
|
+
"region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135",
|
47
|
+
"id": "2492a6f5fa80466d9312e51a8f79b638", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135"}],
|
48
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
49
|
+
[{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Admin", "region":
|
50
|
+
"RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Cloud",
|
51
|
+
"id": "1f68f3ce931946c788e487443e772fb2", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Cloud"}],
|
52
|
+
"endpoints_links": [], "type": "ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL":
|
53
|
+
"<OPENSTACK_ADMIN_HOST_URI>:35357/v2.0", "region": "RegionOne", "internalURL":
|
54
|
+
"<OPENSTACK_ADMIN_HOST_URI>:5000/v2.0", "id": "12c722e9b9fb471fbea83c6157c0123a",
|
55
|
+
"publicURL": "<OPENSTACK_ADMIN_HOST_URI>:5000/v2.0"}], "endpoints_links":
|
56
|
+
[], "type": "identity", "name": "keystone"}], "user": {"username": "<OPENSTACK_MEMBER_USERNAME>",
|
57
|
+
"roles_links": [], "id": "447527294dae4a1788d36beb0db99c00", "roles": [{"name":
|
58
|
+
"Member"}], "name": "<OPENSTACK_MEMBER_USERNAME>"}, "metadata": {"is_admin":
|
59
|
+
0, "roles": ["f970c227c0ee4512899606886348f67f"]}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Thu, 05 Sep 2013 07:22:12 GMT
|
62
|
+
- request:
|
63
|
+
method: get
|
64
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/images
|
65
|
+
body:
|
66
|
+
encoding: US-ASCII
|
67
|
+
string: ''
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
User-Agent:
|
72
|
+
- Faraday v0.8.8
|
73
|
+
X-Auth-Token:
|
74
|
+
- 4903731207cf4f4ca2dae1e4e8096dfe
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
x-compute-request-id:
|
81
|
+
- req-d3ef3d51-9c8f-42dd-a15e-21bbfe7724a9
|
82
|
+
content-type:
|
83
|
+
- application/json
|
84
|
+
content-length:
|
85
|
+
- '565'
|
86
|
+
date:
|
87
|
+
- Thu, 05 Sep 2013 07:22:16 GMT
|
88
|
+
connection:
|
89
|
+
- close
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ! '{"images": [{"id": "d4c7103f-f6d9-425e-8435-fc6f11e22ab8", "links":
|
93
|
+
[{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
94
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
95
|
+
"rel": "bookmark"}, {"href": "http://10.50.2.1:9292/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
96
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "64Bit
|
97
|
+
Ubuntu 12.04"}]}'
|
98
|
+
http_version:
|
99
|
+
recorded_at: Thu, 05 Sep 2013 07:22:16 GMT
|
100
|
+
- request:
|
101
|
+
method: get
|
102
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors
|
103
|
+
body:
|
104
|
+
encoding: US-ASCII
|
105
|
+
string: ''
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
User-Agent:
|
110
|
+
- Faraday v0.8.8
|
111
|
+
X-Auth-Token:
|
112
|
+
- 4903731207cf4f4ca2dae1e4e8096dfe
|
113
|
+
response:
|
114
|
+
status:
|
115
|
+
code: 200
|
116
|
+
message:
|
117
|
+
headers:
|
118
|
+
x-compute-request-id:
|
119
|
+
- req-37b8d419-330f-40cc-a912-c4f11cea74cc
|
120
|
+
content-type:
|
121
|
+
- application/json
|
122
|
+
content-length:
|
123
|
+
- '1075'
|
124
|
+
date:
|
125
|
+
- Thu, 05 Sep 2013 07:22:17 GMT
|
126
|
+
connection:
|
127
|
+
- close
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ! '{"flavors": [{"id": "2", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/2",
|
131
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/2",
|
132
|
+
"rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/3",
|
133
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/3",
|
134
|
+
"rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href":
|
135
|
+
"<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/4",
|
136
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/4",
|
137
|
+
"rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/5",
|
138
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/5",
|
139
|
+
"rel": "bookmark"}], "name": "m1.xlarge"}]}'
|
140
|
+
http_version:
|
141
|
+
recorded_at: Thu, 05 Sep 2013 07:22:17 GMT
|
142
|
+
recorded_with: VCR 2.5.0
|
data/test/cassettes/openstack/compute/v2/public/update_server/returns_the_correct_value_for_url_.yml
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<OPENSTACK_MEMBER_USERNAME>","password":"<OPENSTACK_MEMBER_PASSWORD>"},"tenantName":"<OPENSTACK_MEMBER_TENANTNAME>"}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.8
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message:
|
18
|
+
headers:
|
19
|
+
vary:
|
20
|
+
- X-Auth-Token
|
21
|
+
content-type:
|
22
|
+
- application/json
|
23
|
+
content-length:
|
24
|
+
- '2654'
|
25
|
+
date:
|
26
|
+
- Thu, 05 Sep 2013 07:28:08 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-05T07:28:08.015455",
|
32
|
+
"expires": "2013-09-05T13:28:07Z", "id": "5ad94dac6c4346cbaddcd6c2f9d24aab",
|
33
|
+
"tenant": {"description": "Used for Aviator testing/development ", "enabled":
|
34
|
+
true, "id": "d770443fc60a410c843dc12b98ac8135", "name": "<OPENSTACK_MEMBER_TENANTNAME>"}},
|
35
|
+
"serviceCatalog": [{"endpoints": [{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135",
|
36
|
+
"region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135",
|
37
|
+
"id": "6bb597a3738045f4b2c51a7702037cab", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135"}],
|
38
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
39
|
+
"<OPENSTACK_ADMIN_HOST_URI>:9292", "region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:9292",
|
40
|
+
"id": "2985945e07b74103bb2dfef7e426cd43", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:9292"}],
|
41
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
42
|
+
"<OPENSTACK_ADMIN_HOST_URI>:8777", "region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8777",
|
43
|
+
"id": "370119dd80e84894bfe83d766fd467dd", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8777"}],
|
44
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
45
|
+
[{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135",
|
46
|
+
"region": "RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135",
|
47
|
+
"id": "2492a6f5fa80466d9312e51a8f79b638", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8776/v1/d770443fc60a410c843dc12b98ac8135"}],
|
48
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
49
|
+
[{"adminURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Admin", "region":
|
50
|
+
"RegionOne", "internalURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Cloud",
|
51
|
+
"id": "1f68f3ce931946c788e487443e772fb2", "publicURL": "<OPENSTACK_ADMIN_HOST_URI>:8773/services/Cloud"}],
|
52
|
+
"endpoints_links": [], "type": "ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL":
|
53
|
+
"<OPENSTACK_ADMIN_HOST_URI>:35357/v2.0", "region": "RegionOne", "internalURL":
|
54
|
+
"<OPENSTACK_ADMIN_HOST_URI>:5000/v2.0", "id": "12c722e9b9fb471fbea83c6157c0123a",
|
55
|
+
"publicURL": "<OPENSTACK_ADMIN_HOST_URI>:5000/v2.0"}], "endpoints_links":
|
56
|
+
[], "type": "identity", "name": "keystone"}], "user": {"username": "<OPENSTACK_MEMBER_USERNAME>",
|
57
|
+
"roles_links": [], "id": "447527294dae4a1788d36beb0db99c00", "roles": [{"name":
|
58
|
+
"Member"}], "name": "<OPENSTACK_MEMBER_USERNAME>"}, "metadata": {"is_admin":
|
59
|
+
0, "roles": ["f970c227c0ee4512899606886348f67f"]}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Thu, 05 Sep 2013 07:28:08 GMT
|
62
|
+
- request:
|
63
|
+
method: get
|
64
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/images
|
65
|
+
body:
|
66
|
+
encoding: US-ASCII
|
67
|
+
string: ''
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
User-Agent:
|
72
|
+
- Faraday v0.8.8
|
73
|
+
X-Auth-Token:
|
74
|
+
- 5ad94dac6c4346cbaddcd6c2f9d24aab
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
x-compute-request-id:
|
81
|
+
- req-e267aca6-9b26-4fe1-9305-bab8a9e6b736
|
82
|
+
content-type:
|
83
|
+
- application/json
|
84
|
+
content-length:
|
85
|
+
- '565'
|
86
|
+
date:
|
87
|
+
- Thu, 05 Sep 2013 07:28:12 GMT
|
88
|
+
connection:
|
89
|
+
- close
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ! '{"images": [{"id": "d4c7103f-f6d9-425e-8435-fc6f11e22ab8", "links":
|
93
|
+
[{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
94
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
95
|
+
"rel": "bookmark"}, {"href": "http://10.50.2.1:9292/d770443fc60a410c843dc12b98ac8135/images/d4c7103f-f6d9-425e-8435-fc6f11e22ab8",
|
96
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "64Bit
|
97
|
+
Ubuntu 12.04"}]}'
|
98
|
+
http_version:
|
99
|
+
recorded_at: Thu, 05 Sep 2013 07:28:12 GMT
|
100
|
+
- request:
|
101
|
+
method: get
|
102
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors
|
103
|
+
body:
|
104
|
+
encoding: US-ASCII
|
105
|
+
string: ''
|
106
|
+
headers:
|
107
|
+
Content-Type:
|
108
|
+
- application/json
|
109
|
+
User-Agent:
|
110
|
+
- Faraday v0.8.8
|
111
|
+
X-Auth-Token:
|
112
|
+
- 5ad94dac6c4346cbaddcd6c2f9d24aab
|
113
|
+
response:
|
114
|
+
status:
|
115
|
+
code: 200
|
116
|
+
message:
|
117
|
+
headers:
|
118
|
+
x-compute-request-id:
|
119
|
+
- req-fd38d969-13b7-4509-b51a-d57050c9827c
|
120
|
+
content-type:
|
121
|
+
- application/json
|
122
|
+
content-length:
|
123
|
+
- '1075'
|
124
|
+
date:
|
125
|
+
- Thu, 05 Sep 2013 07:28:13 GMT
|
126
|
+
connection:
|
127
|
+
- close
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ! '{"flavors": [{"id": "2", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/2",
|
131
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/2",
|
132
|
+
"rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/3",
|
133
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/3",
|
134
|
+
"rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href":
|
135
|
+
"<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/4",
|
136
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/4",
|
137
|
+
"rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/v2/d770443fc60a410c843dc12b98ac8135/flavors/5",
|
138
|
+
"rel": "self"}, {"href": "<OPENSTACK_ADMIN_HOST_URI>:8774/d770443fc60a410c843dc12b98ac8135/flavors/5",
|
139
|
+
"rel": "bookmark"}], "name": "m1.xlarge"}]}'
|
140
|
+
http_version:
|
141
|
+
recorded_at: Thu, 05 Sep 2013 07:28:13 GMT
|
142
|
+
recorded_with: VCR 2.5.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: <
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"<
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<OPENSTACK_ADMIN_USERNAME>","password":"<OPENSTACK_ADMIN_PASSWORD>"},"tenantName":"<OPENSTACK_ADMIN_TENANTNAME>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -21,19 +21,20 @@ http_interactions:
|
|
21
21
|
content-type:
|
22
22
|
- application/json
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '2657'
|
25
25
|
date:
|
26
|
-
-
|
26
|
+
- Wed, 04 Sep 2013 21:37:02 GMT
|
27
27
|
connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: US-ASCII
|
31
|
-
string: ! '{"access": {"token": {"issued_at": "2013-
|
32
|
-
"expires": "2013-
|
33
|
-
"tenant": {"description": null, "enabled": true, "id": "
|
34
|
-
"name": "
|
35
|
-
"
|
36
|
-
"
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-04T21:37:02.667872",
|
32
|
+
"expires": "2013-09-05T21:37:02Z", "id": "388c3df1c731461681ed91173bf3f513",
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "99ac3327702a4da09fd2513fe7d8e5bf",
|
34
|
+
"name": "<OPENSTACK_ADMIN_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
|
35
|
+
[{"adminURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf",
|
36
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf",
|
37
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf"}],
|
37
38
|
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
38
39
|
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
39
40
|
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
@@ -44,9 +45,9 @@ http_interactions:
|
|
44
45
|
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
45
46
|
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
46
47
|
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
47
|
-
[{"adminURL": "http://192.168.56.11:8776/v1/
|
48
|
-
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/
|
49
|
-
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/
|
48
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf",
|
49
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf",
|
50
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf"}],
|
50
51
|
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
51
52
|
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
52
53
|
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
@@ -55,11 +56,11 @@ http_interactions:
|
|
55
56
|
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
56
57
|
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
57
58
|
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
58
|
-
"
|
59
|
-
[{"name": "admin"}], "name": "
|
60
|
-
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
59
|
+
"<OPENSTACK_ADMIN_USERNAME>", "roles_links": [], "id": "b4217edff9a14c3888439386a726ada9",
|
60
|
+
"roles": [{"name": "admin"}], "name": "<OPENSTACK_ADMIN_USERNAME>"}, "metadata":
|
61
|
+
{"is_admin": 0, "roles": ["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
61
62
|
http_version:
|
62
|
-
recorded_at:
|
63
|
+
recorded_at: Wed, 04 Sep 2013 21:36:54 GMT
|
63
64
|
- request:
|
64
65
|
method: post
|
65
66
|
uri: http://192.168.56.11:35357/v2.0/tenants
|
@@ -72,7 +73,7 @@ http_interactions:
|
|
72
73
|
User-Agent:
|
73
74
|
- Faraday v0.8.8
|
74
75
|
X-Auth-Token:
|
75
|
-
-
|
76
|
+
- 388c3df1c731461681ed91173bf3f513
|
76
77
|
response:
|
77
78
|
status:
|
78
79
|
code: 400
|
@@ -85,7 +86,7 @@ http_interactions:
|
|
85
86
|
content-length:
|
86
87
|
- '105'
|
87
88
|
date:
|
88
|
-
-
|
89
|
+
- Wed, 04 Sep 2013 21:37:02 GMT
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
body:
|
@@ -93,5 +94,5 @@ http_interactions:
|
|
93
94
|
string: ! '{"error": {"message": "Name field is required and cannot be empty",
|
94
95
|
"code": 400, "title": "Bad Request"}}'
|
95
96
|
http_version:
|
96
|
-
recorded_at:
|
97
|
+
recorded_at: Wed, 04 Sep 2013 21:36:54 GMT
|
97
98
|
recorded_with: VCR 2.5.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: <
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"<
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<OPENSTACK_ADMIN_USERNAME>","password":"<OPENSTACK_ADMIN_PASSWORD>"},"tenantName":"<OPENSTACK_ADMIN_TENANTNAME>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -21,19 +21,20 @@ http_interactions:
|
|
21
21
|
content-type:
|
22
22
|
- application/json
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '2657'
|
25
25
|
date:
|
26
|
-
-
|
26
|
+
- Wed, 04 Sep 2013 21:37:02 GMT
|
27
27
|
connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: US-ASCII
|
31
|
-
string: ! '{"access": {"token": {"issued_at": "2013-
|
32
|
-
"expires": "2013-
|
33
|
-
"tenant": {"description": null, "enabled": true, "id": "
|
34
|
-
"name": "
|
35
|
-
"
|
36
|
-
"
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-04T21:37:02.967633",
|
32
|
+
"expires": "2013-09-05T21:37:02Z", "id": "2f9ac263932245e6ba353660ee408d2c",
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "99ac3327702a4da09fd2513fe7d8e5bf",
|
34
|
+
"name": "<OPENSTACK_ADMIN_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
|
35
|
+
[{"adminURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf",
|
36
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf",
|
37
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/99ac3327702a4da09fd2513fe7d8e5bf"}],
|
37
38
|
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
38
39
|
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
39
40
|
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
@@ -44,9 +45,9 @@ http_interactions:
|
|
44
45
|
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
45
46
|
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
46
47
|
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
47
|
-
[{"adminURL": "http://192.168.56.11:8776/v1/
|
48
|
-
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/
|
49
|
-
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/
|
48
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf",
|
49
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf",
|
50
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/99ac3327702a4da09fd2513fe7d8e5bf"}],
|
50
51
|
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
51
52
|
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
52
53
|
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
@@ -55,24 +56,24 @@ http_interactions:
|
|
55
56
|
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
56
57
|
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
57
58
|
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
58
|
-
"
|
59
|
-
[{"name": "admin"}], "name": "
|
60
|
-
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
59
|
+
"<OPENSTACK_ADMIN_USERNAME>", "roles_links": [], "id": "b4217edff9a14c3888439386a726ada9",
|
60
|
+
"roles": [{"name": "admin"}], "name": "<OPENSTACK_ADMIN_USERNAME>"}, "metadata":
|
61
|
+
{"is_admin": 0, "roles": ["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
61
62
|
http_version:
|
62
|
-
recorded_at:
|
63
|
+
recorded_at: Wed, 04 Sep 2013 21:36:54 GMT
|
63
64
|
- request:
|
64
65
|
method: post
|
65
66
|
uri: http://192.168.56.11:35357/v2.0/tenants
|
66
67
|
body:
|
67
68
|
encoding: UTF-8
|
68
|
-
string: ! '{"tenant":{"name":"Project
|
69
|
+
string: ! '{"tenant":{"name":"Aviator Project","description":"My Project","enabled":true}}'
|
69
70
|
headers:
|
70
71
|
Content-Type:
|
71
72
|
- application/json
|
72
73
|
User-Agent:
|
73
74
|
- Faraday v0.8.8
|
74
75
|
X-Auth-Token:
|
75
|
-
-
|
76
|
+
- 2f9ac263932245e6ba353660ee408d2c
|
76
77
|
response:
|
77
78
|
status:
|
78
79
|
code: 200
|
@@ -83,15 +84,15 @@ http_interactions:
|
|
83
84
|
content-type:
|
84
85
|
- application/json
|
85
86
|
content-length:
|
86
|
-
- '
|
87
|
+
- '127'
|
87
88
|
date:
|
88
|
-
-
|
89
|
+
- Wed, 04 Sep 2013 21:37:03 GMT
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
body:
|
92
93
|
encoding: US-ASCII
|
93
|
-
string: ! '{"tenant": {"description": "My Project", "enabled": true, "id": "
|
94
|
-
"name": "Project
|
94
|
+
string: ! '{"tenant": {"description": "My Project", "enabled": true, "id": "8f426fd59401455a95de33353b5e7f1f",
|
95
|
+
"name": "Aviator Project"}}'
|
95
96
|
http_version:
|
96
|
-
recorded_at:
|
97
|
+
recorded_at: Wed, 04 Sep 2013 21:36:54 GMT
|
97
98
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: <
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ! '{"auth":{"passwordCredentials":{"username":"somebogususer","password":"doesitreallymatter?"}}}'
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
content-length:
|
24
24
|
- '98'
|
25
25
|
date:
|
26
|
-
-
|
26
|
+
- Wed, 04 Sep 2013 21:37:03 GMT
|
27
27
|
connection:
|
28
28
|
- close
|
29
29
|
body:
|
@@ -31,5 +31,5 @@ http_interactions:
|
|
31
31
|
string: ! '{"error": {"message": "Could not find user: somebogususer", "code":
|
32
32
|
401, "title": "Unauthorized"}}'
|
33
33
|
http_version:
|
34
|
-
recorded_at:
|
34
|
+
recorded_at: Wed, 04 Sep 2013 21:36:55 GMT
|
35
35
|
recorded_with: VCR 2.5.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: <
|
5
|
+
uri: <OPENSTACK_ADMIN_HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"<
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<OPENSTACK_ADMIN_USERNAME>","password":"<OPENSTACK_ADMIN_PASSWORD>"}}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -21,18 +21,18 @@ http_interactions:
|
|
21
21
|
content-type:
|
22
22
|
- application/json
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '339'
|
25
25
|
date:
|
26
|
-
-
|
26
|
+
- Wed, 04 Sep 2013 21:37:03 GMT
|
27
27
|
connection:
|
28
28
|
- close
|
29
29
|
body:
|
30
30
|
encoding: US-ASCII
|
31
|
-
string: ! '{"access": {"token": {"issued_at": "2013-
|
32
|
-
"expires": "2013-
|
33
|
-
"serviceCatalog": [], "user": {"username": "
|
34
|
-
"
|
35
|
-
{"is_admin": 0, "roles": []}}}'
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-04T21:37:03.225297",
|
32
|
+
"expires": "2013-09-05T21:37:03Z", "id": "5335c316136548569fc0e9f0bc4b163f"},
|
33
|
+
"serviceCatalog": [], "user": {"username": "<OPENSTACK_ADMIN_USERNAME>", "roles_links":
|
34
|
+
[], "id": "b4217edff9a14c3888439386a726ada9", "roles": [], "name": "<OPENSTACK_ADMIN_USERNAME>"},
|
35
|
+
"metadata": {"is_admin": 0, "roles": []}}}'
|
36
36
|
http_version:
|
37
|
-
recorded_at:
|
37
|
+
recorded_at: Wed, 04 Sep 2013 21:36:54 GMT
|
38
38
|
recorded_with: VCR 2.5.0
|