aviator 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.coveralls.yml +1 -0
- data/.gitignore +6 -1
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +12 -0
- data/Gemfile +13 -0
- data/Guardfile +6 -0
- data/LICENSE.txt +1 -1
- data/README.md +151 -2
- data/Rakefile +8 -0
- data/aviator.gemspec +14 -1
- data/bin/aviator +110 -0
- data/lib/aviator/core.rb +9 -0
- data/lib/aviator/core/request.rb +229 -0
- data/lib/aviator/core/response.rb +33 -0
- data/lib/aviator/core/service.rb +203 -0
- data/lib/aviator/core/session.rb +187 -0
- data/lib/aviator/openstack/compute/v2/public/list_images.rb +49 -0
- data/lib/aviator/openstack/identity/v2/admin/create_tenant.rb +42 -0
- data/lib/aviator/openstack/identity/v2/admin/list_tenants.rb +43 -0
- data/lib/aviator/openstack/identity/v2/public/create_token.rb +61 -0
- data/lib/aviator/openstack/identity/v2/public/list_tenants.rb +44 -0
- data/lib/aviator/version.rb +1 -1
- data/test/aviator/core/request_test.rb +342 -0
- data/test/aviator/core/service_test.rb +158 -0
- data/test/aviator/core/session_test.rb +201 -0
- data/test/aviator/openstack/compute/v2/public/list_images_test.rb +179 -0
- data/test/aviator/openstack/identity/v2/admin/create_tenant_test.rb +151 -0
- data/test/aviator/openstack/identity/v2/public/create_token_test.rb +159 -0
- data/test/cassettes/core/service/i_default_session_data_/sets_the_service_s_default_session_data.yml +63 -0
- data/test/cassettes/core/service/i_request/accepts_an_endpoint_type_option_for_selecting_a_specific_request.yml +140 -0
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_bootstrapped_session_data.yml +63 -0
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_non-bootstrapped_session_data.yml +97 -0
- 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 +63 -0
- data/test/cassettes/core/service/i_request/uses_the_default_session_data_if_session_data_is_not_provided.yml +97 -0
- data/test/cassettes/core/session/c_load/creates_a_new_instance_from_the_given_session_dump.yml +63 -0
- data/test/cassettes/core/session/c_load/uses_the_loaded_auth_info_for_its_services.yml +63 -0
- data/test/cassettes/core/session/c_new/directs_log_entries_to_the_given_log_file.yml +63 -0
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_indicated_in_the_config_file.yml +63 -0
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_using_the_credentials_in_the_given_block.yml +38 -0
- data/test/cassettes/core/session/i_authenticate/raises_an_AuthenticationError_when_authentication_fails.yml +35 -0
- data/test/cassettes/core/session/i_authenticate/updates_the_session_data_of_its_service_objects.yml +123 -0
- data/test/cassettes/core/session/i_dump/serializes_the_session_data_for_caching.yml +63 -0
- data/test/cassettes/core/session/i_validate/returns_false_if_session_is_no_longer_valid.yml +97 -0
- data/test/cassettes/core/session/i_validate/returns_true_if_session_is_still_valid.yml +98 -0
- data/test/cassettes/core/session/i_xxx_service/returns_an_instance_of_the_indicated_service.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_no_parameters_are_provided.yml +108 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_invalid.yml +96 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_valid.yml +103 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url_.yml +63 -0
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_invalid.yml +97 -0
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_valid.yml +97 -0
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_provided_with_invalid_params.yml +97 -0
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_parameters_are_invalid.yml +35 -0
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_parameters_are_valid.yml +38 -0
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_provided_with_a_token.yml +98 -0
- data/test/environment.yml.example +22 -0
- data/test/environment.yml.travis-ci +24 -0
- data/test/support/openstack_request_test_helper.rb +57 -0
- data/test/support/test_base_class.rb +39 -0
- data/test/support/test_environment.rb +37 -0
- data/test/support/test_reporter.rb +45 -0
- data/test/support/vcr_setup.rb +41 -0
- data/test/test_helper.rb +35 -0
- data/tmp/.gitignore +0 -0
- metadata +310 -8
- data/lib/aviator.rb +0 -5
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"<PASSWORD>"},"tenantName":"admin"}}'
|
|
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
|
+
- '2648'
|
|
25
|
+
date:
|
|
26
|
+
- Thu, 29 Aug 2013 17:46:21 GMT
|
|
27
|
+
connection:
|
|
28
|
+
- close
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-08-29T17:46:21.355879",
|
|
32
|
+
"expires": "2013-08-30T17:46:21Z", "id": "cb4472b8802c4707a43ac887d5722f89",
|
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
|
34
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
35
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
36
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
|
37
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
|
38
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
|
39
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
|
40
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
|
41
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
|
42
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
|
43
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
|
44
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
|
45
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
|
46
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
|
47
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
48
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
49
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
|
50
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
|
51
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
|
52
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
|
53
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
|
54
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
|
55
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
|
56
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
|
57
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
|
58
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
|
59
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
|
60
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
|
61
|
+
http_version:
|
|
62
|
+
recorded_at: Thu, 29 Aug 2013 17:44:52 GMT
|
|
63
|
+
- request:
|
|
64
|
+
method: get
|
|
65
|
+
uri: http://192.168.56.11:5000/v2.0/tenants
|
|
66
|
+
body:
|
|
67
|
+
encoding: US-ASCII
|
|
68
|
+
string: ''
|
|
69
|
+
headers:
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
User-Agent:
|
|
73
|
+
- Faraday v0.8.8
|
|
74
|
+
X-Auth-Token:
|
|
75
|
+
- cb4472b8802c4707a43ac887d5722f89
|
|
76
|
+
response:
|
|
77
|
+
status:
|
|
78
|
+
code: 200
|
|
79
|
+
message:
|
|
80
|
+
headers:
|
|
81
|
+
vary:
|
|
82
|
+
- X-Auth-Token
|
|
83
|
+
content-type:
|
|
84
|
+
- application/json
|
|
85
|
+
content-length:
|
|
86
|
+
- '231'
|
|
87
|
+
date:
|
|
88
|
+
- Thu, 29 Aug 2013 17:46:21 GMT
|
|
89
|
+
connection:
|
|
90
|
+
- close
|
|
91
|
+
body:
|
|
92
|
+
encoding: US-ASCII
|
|
93
|
+
string: ! '{"tenants_links": [], "tenants": [{"description": null, "enabled":
|
|
94
|
+
true, "id": "3cab25130620477b8b03f1bfa8741603", "name": "admin"}, {"description":
|
|
95
|
+
null, "enabled": true, "id": "99ac3327702a4da09fd2513fe7d8e5bf", "name": "demo"}]}'
|
|
96
|
+
http_version:
|
|
97
|
+
recorded_at: Thu, 29 Aug 2013 17:44:52 GMT
|
|
98
|
+
recorded_with: VCR 2.5.0
|
data/test/cassettes/core/session/i_xxx_service/returns_an_instance_of_the_indicated_service.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"<PASSWORD>"},"tenantName":"admin"}}'
|
|
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
|
+
- '2648'
|
|
25
|
+
date:
|
|
26
|
+
- Thu, 29 Aug 2013 02:59:34 GMT
|
|
27
|
+
connection:
|
|
28
|
+
- close
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-08-29T02:59:34.916815",
|
|
32
|
+
"expires": "2013-08-30T02:59:34Z", "id": "01d9a2cc03fe46bda7ae1ac6514ad3a1",
|
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
|
34
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
35
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
36
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
|
37
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
|
38
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
|
39
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
|
40
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
|
41
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
|
42
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
|
43
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
|
44
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
|
45
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
|
46
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
|
47
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
48
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
49
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
|
50
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
|
51
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
|
52
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
|
53
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
|
54
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
|
55
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
|
56
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
|
57
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
|
58
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
|
59
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
|
60
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
|
61
|
+
http_version:
|
|
62
|
+
recorded_at: Thu, 29 Aug 2013 06:59:19 GMT
|
|
63
|
+
recorded_with: VCR 2.5.0
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"<PASSWORD>"},"tenantName":"admin"}}'
|
|
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
|
+
- '2648'
|
|
25
|
+
date:
|
|
26
|
+
- Thu, 29 Aug 2013 18:49:36 GMT
|
|
27
|
+
connection:
|
|
28
|
+
- close
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-08-29T18:49:36.670853",
|
|
32
|
+
"expires": "2013-08-30T18:49:36Z", "id": "642842e39ab4408d87c2a8b112ded098",
|
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
|
34
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
35
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
36
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
|
37
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
|
38
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
|
39
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
|
40
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
|
41
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
|
42
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
|
43
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
|
44
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
|
45
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
|
46
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
|
47
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
48
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
49
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
|
50
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
|
51
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
|
52
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
|
53
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
|
54
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
|
55
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
|
56
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
|
57
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
|
58
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
|
59
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
|
60
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
|
61
|
+
http_version:
|
|
62
|
+
recorded_at: Thu, 29 Aug 2013 18:47:12 GMT
|
|
63
|
+
- request:
|
|
64
|
+
method: get
|
|
65
|
+
uri: http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images
|
|
66
|
+
body:
|
|
67
|
+
encoding: US-ASCII
|
|
68
|
+
string: ''
|
|
69
|
+
headers:
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
User-Agent:
|
|
73
|
+
- Faraday v0.8.8
|
|
74
|
+
X-Auth-Token:
|
|
75
|
+
- 642842e39ab4408d87c2a8b112ded098
|
|
76
|
+
response:
|
|
77
|
+
status:
|
|
78
|
+
code: 200
|
|
79
|
+
message:
|
|
80
|
+
headers:
|
|
81
|
+
x-compute-request-id:
|
|
82
|
+
- req-da53d864-7ddd-407b-8d48-5f3415c7bbd7
|
|
83
|
+
content-type:
|
|
84
|
+
- application/json
|
|
85
|
+
content-length:
|
|
86
|
+
- '1641'
|
|
87
|
+
date:
|
|
88
|
+
- Thu, 29 Aug 2013 18:49:36 GMT
|
|
89
|
+
connection:
|
|
90
|
+
- close
|
|
91
|
+
body:
|
|
92
|
+
encoding: US-ASCII
|
|
93
|
+
string: ! '{"images": [{"id": "c1acec19-1026-45e8-946e-b9e9a261916b", "links":
|
|
94
|
+
[{"href": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images/c1acec19-1026-45e8-946e-b9e9a261916b",
|
|
95
|
+
"rel": "self"}, {"href": "http://192.168.56.11:8774/3cab25130620477b8b03f1bfa8741603/images/c1acec19-1026-45e8-946e-b9e9a261916b",
|
|
96
|
+
"rel": "bookmark"}, {"href": "http://10.0.2.15:9292/3cab25130620477b8b03f1bfa8741603/images/c1acec19-1026-45e8-946e-b9e9a261916b",
|
|
97
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.1-x86_64-uec"},
|
|
98
|
+
{"id": "3c2b8955-1a71-4d1c-92a4-e414a172dcb2", "links": [{"href": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
99
|
+
"rel": "self"}, {"href": "http://192.168.56.11:8774/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
100
|
+
"rel": "bookmark"}, {"href": "http://10.0.2.15:9292/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
101
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.1-x86_64-uec-ramdisk"},
|
|
102
|
+
{"id": "fa64ed94-caec-4cab-acd6-0c5ae18732a6", "links": [{"href": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images/fa64ed94-caec-4cab-acd6-0c5ae18732a6",
|
|
103
|
+
"rel": "self"}, {"href": "http://192.168.56.11:8774/3cab25130620477b8b03f1bfa8741603/images/fa64ed94-caec-4cab-acd6-0c5ae18732a6",
|
|
104
|
+
"rel": "bookmark"}, {"href": "http://10.0.2.15:9292/3cab25130620477b8b03f1bfa8741603/images/fa64ed94-caec-4cab-acd6-0c5ae18732a6",
|
|
105
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.1-x86_64-uec-kernel"}]}'
|
|
106
|
+
http_version:
|
|
107
|
+
recorded_at: Thu, 29 Aug 2013 18:47:12 GMT
|
|
108
|
+
recorded_with: VCR 2.5.0
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"<PASSWORD>"},"tenantName":"admin"}}'
|
|
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
|
+
- '2648'
|
|
25
|
+
date:
|
|
26
|
+
- Thu, 29 Aug 2013 18:49:37 GMT
|
|
27
|
+
connection:
|
|
28
|
+
- close
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-08-29T18:49:37.192953",
|
|
32
|
+
"expires": "2013-08-30T18:49:37Z", "id": "d570ba1ebffd4c6b93cefa27f120df33",
|
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
|
34
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
35
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
36
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
|
37
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
|
38
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
|
39
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
|
40
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
|
41
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
|
42
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
|
43
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
|
44
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
|
45
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
|
46
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
|
47
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
48
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
49
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
|
50
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
|
51
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
|
52
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
|
53
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
|
54
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
|
55
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
|
56
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
|
57
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
|
58
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
|
59
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
|
60
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
|
61
|
+
http_version:
|
|
62
|
+
recorded_at: Thu, 29 Aug 2013 18:47:12 GMT
|
|
63
|
+
- request:
|
|
64
|
+
method: get
|
|
65
|
+
uri: http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images?name=nonexistentimagenameherpderp
|
|
66
|
+
body:
|
|
67
|
+
encoding: US-ASCII
|
|
68
|
+
string: ''
|
|
69
|
+
headers:
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
User-Agent:
|
|
73
|
+
- Faraday v0.8.8
|
|
74
|
+
X-Auth-Token:
|
|
75
|
+
- d570ba1ebffd4c6b93cefa27f120df33
|
|
76
|
+
response:
|
|
77
|
+
status:
|
|
78
|
+
code: 200
|
|
79
|
+
message:
|
|
80
|
+
headers:
|
|
81
|
+
x-compute-request-id:
|
|
82
|
+
- req-031f4f36-f046-4f7e-8e89-8bd4b87e18de
|
|
83
|
+
content-type:
|
|
84
|
+
- application/json
|
|
85
|
+
content-length:
|
|
86
|
+
- '14'
|
|
87
|
+
date:
|
|
88
|
+
- Thu, 29 Aug 2013 18:49:37 GMT
|
|
89
|
+
connection:
|
|
90
|
+
- close
|
|
91
|
+
body:
|
|
92
|
+
encoding: US-ASCII
|
|
93
|
+
string: ! '{"images": []}'
|
|
94
|
+
http_version:
|
|
95
|
+
recorded_at: Thu, 29 Aug 2013 18:47:12 GMT
|
|
96
|
+
recorded_with: VCR 2.5.0
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"admin","password":"<PASSWORD>"},"tenantName":"admin"}}'
|
|
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
|
+
- '2648'
|
|
25
|
+
date:
|
|
26
|
+
- Thu, 29 Aug 2013 18:49:36 GMT
|
|
27
|
+
connection:
|
|
28
|
+
- close
|
|
29
|
+
body:
|
|
30
|
+
encoding: US-ASCII
|
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-08-29T18:49:36.099288",
|
|
32
|
+
"expires": "2013-08-30T18:49:36Z", "id": "086d1bbda42b466b92d0ebd388a93344",
|
|
33
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
|
34
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
35
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
|
36
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
|
37
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
|
38
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
|
39
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
|
40
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
|
41
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
|
42
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
|
43
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
|
44
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
|
45
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
|
46
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
|
47
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
48
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
|
49
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
|
50
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
|
51
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
|
52
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
|
53
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
|
54
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
|
55
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
|
56
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
|
57
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
|
58
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
|
59
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
|
60
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
|
61
|
+
http_version:
|
|
62
|
+
recorded_at: Thu, 29 Aug 2013 18:47:11 GMT
|
|
63
|
+
- request:
|
|
64
|
+
method: get
|
|
65
|
+
uri: http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images/detail?name=cirros-0.3.1-x86_64-uec-ramdisk
|
|
66
|
+
body:
|
|
67
|
+
encoding: US-ASCII
|
|
68
|
+
string: ''
|
|
69
|
+
headers:
|
|
70
|
+
Content-Type:
|
|
71
|
+
- application/json
|
|
72
|
+
User-Agent:
|
|
73
|
+
- Faraday v0.8.8
|
|
74
|
+
X-Auth-Token:
|
|
75
|
+
- 086d1bbda42b466b92d0ebd388a93344
|
|
76
|
+
response:
|
|
77
|
+
status:
|
|
78
|
+
code: 200
|
|
79
|
+
message:
|
|
80
|
+
headers:
|
|
81
|
+
x-compute-request-id:
|
|
82
|
+
- req-9849c145-c498-41f5-9a0b-d7e1c1d95598
|
|
83
|
+
content-type:
|
|
84
|
+
- application/json
|
|
85
|
+
content-length:
|
|
86
|
+
- '741'
|
|
87
|
+
date:
|
|
88
|
+
- Thu, 29 Aug 2013 18:49:36 GMT
|
|
89
|
+
connection:
|
|
90
|
+
- close
|
|
91
|
+
body:
|
|
92
|
+
encoding: US-ASCII
|
|
93
|
+
string: ! '{"images": [{"status": "ACTIVE", "updated": "2013-07-30T22:31:21Z",
|
|
94
|
+
"links": [{"href": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
95
|
+
"rel": "self"}, {"href": "http://192.168.56.11:8774/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
96
|
+
"rel": "bookmark"}, {"href": "http://10.0.2.15:9292/3cab25130620477b8b03f1bfa8741603/images/3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
97
|
+
"type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "3c2b8955-1a71-4d1c-92a4-e414a172dcb2",
|
|
98
|
+
"OS-EXT-IMG-SIZE:size": 3714968, "name": "cirros-0.3.1-x86_64-uec-ramdisk",
|
|
99
|
+
"created": "2013-07-30T22:31:21Z", "minDisk": 0, "progress": 100, "minRam":
|
|
100
|
+
0, "metadata": {}}]}'
|
|
101
|
+
http_version:
|
|
102
|
+
recorded_at: Thu, 29 Aug 2013 18:47:11 GMT
|
|
103
|
+
recorded_with: VCR 2.5.0
|