aviator 0.0.2 → 0.0.3
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/README.md +9 -1
- data/aviator.gemspec +1 -1
- data/bin/aviator +6 -86
- data/lib/aviator/core/cli/describer.rb +95 -0
- data/lib/aviator/core/cli.rb +1 -0
- data/lib/aviator/core/request.rb +62 -65
- data/lib/aviator/core/service.rb +26 -41
- data/lib/aviator/core/session.rb +7 -0
- data/lib/aviator/core.rb +1 -0
- data/lib/aviator/openstack/compute/v2/public/list_images.rb +51 -42
- data/lib/aviator/openstack/compute/v2/public/list_servers.rb +58 -0
- data/lib/aviator/openstack/identity/v2/admin/create_tenant.rb +43 -32
- data/lib/aviator/openstack/identity/v2/admin/list_tenants.rb +49 -38
- data/lib/aviator/openstack/identity/v2/public/create_token.rb +53 -47
- data/lib/aviator/openstack/identity/v2/public/list_tenants.rb +36 -26
- data/lib/aviator/version.rb +1 -1
- data/lib/aviator.rb +1 -0
- data/test/aviator/core/cli/describer_test.rb +140 -0
- data/test/aviator/core/request_test.rb +132 -157
- data/test/aviator/core/service_test.rb +49 -26
- data/test/aviator/core/session_test.rb +29 -0
- data/test/aviator/openstack/compute/v2/public/list_images_test.rb +16 -18
- data/test/aviator/openstack/compute/v2/public/list_servers_test.rb +178 -0
- data/test/aviator/openstack/identity/v2/admin/create_tenant_test.rb +10 -12
- data/test/aviator/openstack/identity/v2/public/create_token_test.rb +12 -14
- data/test/cassettes/core/service/i_default_session_data_/sets_the_service_s_default_session_data.yml +1 -1
- data/test/cassettes/core/service/i_request/accepts_an_endpoint_type_option_for_selecting_a_specific_request.yml +1 -1
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_bootstrapped_session_data.yml +1 -1
- data/test/cassettes/core/service/i_request/can_find_the_correct_request_based_on_non-bootstrapped_session_data.yml +1 -1
- 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 +1 -1
- data/test/cassettes/core/service/i_request/uses_the_default_session_data_if_session_data_is_not_provided.yml +1 -1
- data/test/cassettes/core/session/c_load/creates_a_new_instance_from_the_given_session_dump.yml +1 -1
- data/test/cassettes/core/session/c_load/uses_the_loaded_auth_info_for_its_services.yml +1 -1
- data/test/cassettes/core/session/c_new/directs_log_entries_to_the_given_log_file.yml +1 -1
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_indicated_in_the_config_file.yml +1 -1
- data/test/cassettes/core/session/i_authenticate/authenticates_against_the_auth_service_using_the_credentials_in_the_given_block.yml +1 -1
- data/test/cassettes/core/session/i_authenticate/updates_the_session_data_of_its_service_objects.yml +2 -2
- data/test/cassettes/core/session/i_dump/serializes_the_session_data_for_caching.yml +1 -1
- data/test/cassettes/core/session/i_load/returns_itself.yml +63 -0
- data/test/cassettes/core/session/i_load/updates_the_session_data_of_its_service_objects.yml +123 -0
- data/test/cassettes/core/session/i_validate/returns_false_if_session_is_no_longer_valid.yml +1 -1
- data/test/cassettes/core/session/i_validate/returns_true_if_session_is_still_valid.yml +1 -1
- data/test/cassettes/core/session/i_xxx_service/returns_an_instance_of_the_indicated_service.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_no_parameters_are_provided.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_invalid.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/leads_to_a_valid_response_when_parameters_are_valid.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body_.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_headers_.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_http_method_.yml +63 -0
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url_.yml +1 -1
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_no_parameters_are_provided.yml +101 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_parameters_are_invalid.yml +95 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/leads_to_a_valid_response_when_parameters_are_valid.yml +109 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_body_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_headers_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_http_method_.yml +62 -0
- data/test/cassettes/openstack/compute/v2/public/list_servers/returns_the_correct_value_for_url_.yml +62 -0
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_invalid.yml +1 -1
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_params_are_valid.yml +1 -1
- data/test/cassettes/openstack/identity/v2/admin/create_tenant/leads_to_a_valid_response_when_provided_with_invalid_params.yml +1 -1
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_parameters_are_valid.yml +1 -1
- data/test/cassettes/openstack/identity/v2/public/create_token/leads_to_a_valid_response_when_provided_with_a_token.yml +2 -2
- data/test/support/{openstack_request_test_helper.rb → request_helper.rb} +21 -2
- data/test/support/test_base_class.rb +1 -1
- data/test/support/test_reporter.rb +4 -2
- data/test/support/vcr_setup.rb +4 -0
- data/test/test_helper.rb +5 -1
- metadata +38 -10
@@ -0,0 +1,123 @@
|
|
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":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
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
|
+
- Mon, 02 Sep 2013 18:02:17 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-02T18:02:17.103202",
|
32
|
+
"expires": "2013-09-03T18:02:17Z", "id": "368a64a148714e9fbe618f39dbbca105",
|
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: Tue, 03 Sep 2013 08:08:07 GMT
|
63
|
+
- request:
|
64
|
+
method: post
|
65
|
+
uri: <HOST_URI>:5000/v2.0/tokens
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
69
|
+
headers:
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
User-Agent:
|
73
|
+
- Faraday v0.8.8
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message:
|
78
|
+
headers:
|
79
|
+
vary:
|
80
|
+
- X-Auth-Token
|
81
|
+
content-type:
|
82
|
+
- application/json
|
83
|
+
content-length:
|
84
|
+
- '2648'
|
85
|
+
date:
|
86
|
+
- Mon, 02 Sep 2013 18:02:17 GMT
|
87
|
+
connection:
|
88
|
+
- close
|
89
|
+
body:
|
90
|
+
encoding: US-ASCII
|
91
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-02T18:02:17.395539",
|
92
|
+
"expires": "2013-09-03T18:02:17Z", "id": "8b4101a55c99402a9f2cb154b2975391",
|
93
|
+
"tenant": {"description": null, "enabled": true, "id": "3cab25130620477b8b03f1bfa8741603",
|
94
|
+
"name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
95
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603",
|
96
|
+
"id": "3b72a66bf2f0491bb8dba827cade0d48", "publicURL": "http://192.168.56.11:8774/v2/3cab25130620477b8b03f1bfa8741603"}],
|
97
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
98
|
+
"http://192.168.56.11:3333", "region": "RegionOne", "internalURL": "http://192.168.56.11:3333",
|
99
|
+
"id": "482f749b370c40eab8788d6d0bc47f48", "publicURL": "http://192.168.56.11:3333"}],
|
100
|
+
"endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
|
101
|
+
"http://192.168.56.11:9292", "region": "RegionOne", "internalURL": "http://192.168.56.11:9292",
|
102
|
+
"id": "0cd5d5d5a0c24721a0392b47c89e3640", "publicURL": "http://192.168.56.11:9292"}],
|
103
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
104
|
+
"http://192.168.56.11:8777", "region": "RegionOne", "internalURL": "http://192.168.56.11:8777",
|
105
|
+
"id": "4eb4edec1d2647bfb8ba4f9a5757169d", "publicURL": "http://192.168.56.11:8777"}],
|
106
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
107
|
+
[{"adminURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
108
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603",
|
109
|
+
"id": "009e8a41953d439f845b2a0c0dc28b73", "publicURL": "http://192.168.56.11:8776/v1/3cab25130620477b8b03f1bfa8741603"}],
|
110
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
111
|
+
[{"adminURL": "http://192.168.56.11:8773/services/Admin", "region": "RegionOne",
|
112
|
+
"internalURL": "http://192.168.56.11:8773/services/Cloud", "id": "6820836ec6834548bf7b54da0271dded",
|
113
|
+
"publicURL": "http://192.168.56.11:8773/services/Cloud"}], "endpoints_links":
|
114
|
+
[], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://192.168.56.11:35357/v2.0",
|
115
|
+
"region": "RegionOne", "internalURL": "http://192.168.56.11:5000/v2.0", "id":
|
116
|
+
"24a95f51f67949e784971e97463ee4d8", "publicURL": "http://192.168.56.11:5000/v2.0"}],
|
117
|
+
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
|
118
|
+
"admin", "roles_links": [], "id": "cbbcc4f7aef6435fa2da7e5f0b2f1e97", "roles":
|
119
|
+
[{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
|
120
|
+
["01a81f2dbb3441f1aaa8fe68a7c6f546"]}}}'
|
121
|
+
http_version:
|
122
|
+
recorded_at: Tue, 03 Sep 2013 08:08:07 GMT
|
123
|
+
recorded_with: VCR 2.5.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
data/test/cassettes/core/session/i_xxx_service/returns_an_instance_of_the_indicated_service.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_body_.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -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":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
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
|
+
- Wed, 04 Sep 2013 12:55:30 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-04T12:55:30.584559",
|
32
|
+
"expires": "2013-09-05T12:55:30Z", "id": "1cd6ba534d94447f9420b372869447ac",
|
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: Mon, 02 Sep 2013 08:56:17 GMT
|
63
|
+
recorded_with: VCR 2.5.0
|
data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
data/test/cassettes/openstack/compute/v2/public/list_images/returns_the_correct_value_for_url_.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: <HOST_URI>:5000/v2.0/tokens
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"auth":{"passwordCredentials":{"username":"
|
8
|
+
string: ! '{"auth":{"passwordCredentials":{"username":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
9
9
|
headers:
|
10
10
|
Content-Type:
|
11
11
|
- application/json
|
@@ -0,0 +1,101 @@
|
|
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":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
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
|
+
- '2749'
|
25
|
+
date:
|
26
|
+
- Tue, 03 Sep 2013 21:21:27 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-03T21:21:27.643220",
|
32
|
+
"expires": "2013-09-04T03:21:27Z", "id": "f08ae852cdc54961bf8e048e7feeb122",
|
33
|
+
"tenant": {"description": "System account for Morphlabs mCloud administration",
|
34
|
+
"enabled": true, "id": "e7b1b62aa1474f758c4974b8be44cf6c", "name": "demo"}},
|
35
|
+
"serviceCatalog": [{"endpoints": [{"adminURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
36
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
37
|
+
"id": "6bb597a3738045f4b2c51a7702037cab", "publicURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
38
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
39
|
+
"<HOST_URI>:9292", "region": "RegionOne", "internalURL": "<HOST_URI>:9292",
|
40
|
+
"id": "2985945e07b74103bb2dfef7e426cd43", "publicURL": "<HOST_URI>:9292"}],
|
41
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
42
|
+
"<HOST_URI>:8777", "region": "RegionOne", "internalURL": "<HOST_URI>:8777",
|
43
|
+
"id": "370119dd80e84894bfe83d766fd467dd", "publicURL": "<HOST_URI>:8777"}],
|
44
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
45
|
+
[{"adminURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c", "region":
|
46
|
+
"RegionOne", "internalURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c",
|
47
|
+
"id": "2492a6f5fa80466d9312e51a8f79b638", "publicURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
48
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
49
|
+
[{"adminURL": "<HOST_URI>:8773/services/Admin", "region": "RegionOne", "internalURL":
|
50
|
+
"<HOST_URI>:8773/services/Cloud", "id": "1f68f3ce931946c788e487443e772fb2",
|
51
|
+
"publicURL": "<HOST_URI>:8773/services/Cloud"}], "endpoints_links": [], "type":
|
52
|
+
"ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "<HOST_URI>:35357/v2.0",
|
53
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:5000/v2.0", "id": "12c722e9b9fb471fbea83c6157c0123a",
|
54
|
+
"publicURL": "<HOST_URI>:5000/v2.0"}], "endpoints_links": [], "type": "identity",
|
55
|
+
"name": "keystone"}], "user": {"username": "morphadmin", "roles_links": [],
|
56
|
+
"id": "87f34120be394c598520744d0f4a8233", "roles": [{"name": "Member"}, {"name":
|
57
|
+
"admin"}, {"name": "project_manager"}], "name": "morphadmin"}, "metadata":
|
58
|
+
{"is_admin": 0, "roles": ["f970c227c0ee4512899606886348f67f", "a0d6ba8f41b746b495a6d25c69962489",
|
59
|
+
"88141c3fd5cd48459cfe1243bfa6d4e1"]}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 03 Sep 2013 21:21:27 GMT
|
62
|
+
- request:
|
63
|
+
method: get
|
64
|
+
uri: <HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers
|
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
|
+
- f08ae852cdc54961bf8e048e7feeb122
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
x-compute-request-id:
|
81
|
+
- req-a29e1a74-515d-4ebe-8a08-6a9e68ea2316
|
82
|
+
content-type:
|
83
|
+
- application/json
|
84
|
+
content-length:
|
85
|
+
- '753'
|
86
|
+
date:
|
87
|
+
- Tue, 03 Sep 2013 21:21:28 GMT
|
88
|
+
connection:
|
89
|
+
- close
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ! '{"servers": [{"id": "2b8b852f-df7a-496e-b480-d2eea625016b", "links":
|
93
|
+
[{"href": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers/2b8b852f-df7a-496e-b480-d2eea625016b",
|
94
|
+
"rel": "self"}, {"href": "<HOST_URI>:8774/e7b1b62aa1474f758c4974b8be44cf6c/servers/2b8b852f-df7a-496e-b480-d2eea625016b",
|
95
|
+
"rel": "bookmark"}], "name": "launching"}, {"id": "41b7cac5-f718-4a3c-a727-5edf0f69ff70",
|
96
|
+
"links": [{"href": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers/41b7cac5-f718-4a3c-a727-5edf0f69ff70",
|
97
|
+
"rel": "self"}, {"href": "<HOST_URI>:8774/e7b1b62aa1474f758c4974b8be44cf6c/servers/41b7cac5-f718-4a3c-a727-5edf0f69ff70",
|
98
|
+
"rel": "bookmark"}], "name": "test101"}]}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Tue, 03 Sep 2013 21:21:28 GMT
|
101
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,95 @@
|
|
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":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
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
|
+
- '2749'
|
25
|
+
date:
|
26
|
+
- Tue, 03 Sep 2013 21:24:31 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-03T21:24:31.344753",
|
32
|
+
"expires": "2013-09-04T03:24:31Z", "id": "e32225931f064f1cbec963a362dd9a5f",
|
33
|
+
"tenant": {"description": "System account for Morphlabs mCloud administration",
|
34
|
+
"enabled": true, "id": "e7b1b62aa1474f758c4974b8be44cf6c", "name": "demo"}},
|
35
|
+
"serviceCatalog": [{"endpoints": [{"adminURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
36
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
37
|
+
"id": "6bb597a3738045f4b2c51a7702037cab", "publicURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
38
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
39
|
+
"<HOST_URI>:9292", "region": "RegionOne", "internalURL": "<HOST_URI>:9292",
|
40
|
+
"id": "2985945e07b74103bb2dfef7e426cd43", "publicURL": "<HOST_URI>:9292"}],
|
41
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
42
|
+
"<HOST_URI>:8777", "region": "RegionOne", "internalURL": "<HOST_URI>:8777",
|
43
|
+
"id": "370119dd80e84894bfe83d766fd467dd", "publicURL": "<HOST_URI>:8777"}],
|
44
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
45
|
+
[{"adminURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c", "region":
|
46
|
+
"RegionOne", "internalURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c",
|
47
|
+
"id": "2492a6f5fa80466d9312e51a8f79b638", "publicURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
48
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
49
|
+
[{"adminURL": "<HOST_URI>:8773/services/Admin", "region": "RegionOne", "internalURL":
|
50
|
+
"<HOST_URI>:8773/services/Cloud", "id": "1f68f3ce931946c788e487443e772fb2",
|
51
|
+
"publicURL": "<HOST_URI>:8773/services/Cloud"}], "endpoints_links": [], "type":
|
52
|
+
"ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "<HOST_URI>:35357/v2.0",
|
53
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:5000/v2.0", "id": "12c722e9b9fb471fbea83c6157c0123a",
|
54
|
+
"publicURL": "<HOST_URI>:5000/v2.0"}], "endpoints_links": [], "type": "identity",
|
55
|
+
"name": "keystone"}], "user": {"username": "morphadmin", "roles_links": [],
|
56
|
+
"id": "87f34120be394c598520744d0f4a8233", "roles": [{"name": "Member"}, {"name":
|
57
|
+
"admin"}, {"name": "project_manager"}], "name": "morphadmin"}, "metadata":
|
58
|
+
{"is_admin": 0, "roles": ["f970c227c0ee4512899606886348f67f", "a0d6ba8f41b746b495a6d25c69962489",
|
59
|
+
"88141c3fd5cd48459cfe1243bfa6d4e1"]}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 03 Sep 2013 21:24:31 GMT
|
62
|
+
- request:
|
63
|
+
method: get
|
64
|
+
uri: <HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers?image=nonexistentimagenameherpderp
|
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
|
+
- e32225931f064f1cbec963a362dd9a5f
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
x-compute-request-id:
|
81
|
+
- req-7a1bee45-7627-49df-ac1d-0fbb3b57fcb3
|
82
|
+
content-type:
|
83
|
+
- application/json
|
84
|
+
content-length:
|
85
|
+
- '15'
|
86
|
+
date:
|
87
|
+
- Tue, 03 Sep 2013 21:24:31 GMT
|
88
|
+
connection:
|
89
|
+
- close
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ! '{"servers": []}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Tue, 03 Sep 2013 21:24:31 GMT
|
95
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,109 @@
|
|
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":"<USERNAME>","password":"<PASSWORD>"},"tenantName":"<TENANT>"}}'
|
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
|
+
- '2749'
|
25
|
+
date:
|
26
|
+
- Tue, 03 Sep 2013 21:27:08 GMT
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
body:
|
30
|
+
encoding: US-ASCII
|
31
|
+
string: ! '{"access": {"token": {"issued_at": "2013-09-03T21:27:08.696582",
|
32
|
+
"expires": "2013-09-04T03:27:08Z", "id": "df7fc83f89ba4d07b24c86fddb33c5f5",
|
33
|
+
"tenant": {"description": "System account for Morphlabs mCloud administration",
|
34
|
+
"enabled": true, "id": "e7b1b62aa1474f758c4974b8be44cf6c", "name": "demo"}},
|
35
|
+
"serviceCatalog": [{"endpoints": [{"adminURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
36
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c",
|
37
|
+
"id": "6bb597a3738045f4b2c51a7702037cab", "publicURL": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
38
|
+
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
|
39
|
+
"<HOST_URI>:9292", "region": "RegionOne", "internalURL": "<HOST_URI>:9292",
|
40
|
+
"id": "2985945e07b74103bb2dfef7e426cd43", "publicURL": "<HOST_URI>:9292"}],
|
41
|
+
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
|
42
|
+
"<HOST_URI>:8777", "region": "RegionOne", "internalURL": "<HOST_URI>:8777",
|
43
|
+
"id": "370119dd80e84894bfe83d766fd467dd", "publicURL": "<HOST_URI>:8777"}],
|
44
|
+
"endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
|
45
|
+
[{"adminURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c", "region":
|
46
|
+
"RegionOne", "internalURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c",
|
47
|
+
"id": "2492a6f5fa80466d9312e51a8f79b638", "publicURL": "<HOST_URI>:8776/v1/e7b1b62aa1474f758c4974b8be44cf6c"}],
|
48
|
+
"endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
|
49
|
+
[{"adminURL": "<HOST_URI>:8773/services/Admin", "region": "RegionOne", "internalURL":
|
50
|
+
"<HOST_URI>:8773/services/Cloud", "id": "1f68f3ce931946c788e487443e772fb2",
|
51
|
+
"publicURL": "<HOST_URI>:8773/services/Cloud"}], "endpoints_links": [], "type":
|
52
|
+
"ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "<HOST_URI>:35357/v2.0",
|
53
|
+
"region": "RegionOne", "internalURL": "<HOST_URI>:5000/v2.0", "id": "12c722e9b9fb471fbea83c6157c0123a",
|
54
|
+
"publicURL": "<HOST_URI>:5000/v2.0"}], "endpoints_links": [], "type": "identity",
|
55
|
+
"name": "keystone"}], "user": {"username": "morphadmin", "roles_links": [],
|
56
|
+
"id": "87f34120be394c598520744d0f4a8233", "roles": [{"name": "Member"}, {"name":
|
57
|
+
"admin"}, {"name": "project_manager"}], "name": "morphadmin"}, "metadata":
|
58
|
+
{"is_admin": 0, "roles": ["f970c227c0ee4512899606886348f67f", "a0d6ba8f41b746b495a6d25c69962489",
|
59
|
+
"88141c3fd5cd48459cfe1243bfa6d4e1"]}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 03 Sep 2013 21:27:08 GMT
|
62
|
+
- request:
|
63
|
+
method: get
|
64
|
+
uri: <HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers/detail?image=c95d4992-24b1-4c9a-93cb-5d2935503148
|
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
|
+
- df7fc83f89ba4d07b24c86fddb33c5f5
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 200
|
78
|
+
message:
|
79
|
+
headers:
|
80
|
+
x-compute-request-id:
|
81
|
+
- req-293d592c-136b-4a6c-8b22-ab37e1036b11
|
82
|
+
content-type:
|
83
|
+
- application/json
|
84
|
+
content-length:
|
85
|
+
- '1578'
|
86
|
+
date:
|
87
|
+
- Tue, 03 Sep 2013 21:27:10 GMT
|
88
|
+
connection:
|
89
|
+
- close
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ! '{"servers": [{"status": "ACTIVE", "updated": "2013-08-05T07:10:50Z",
|
93
|
+
"hostId": "199dd5dd1a58ad0485af047fe8ef2dbe13ed8bd69283f3aad90fc512", "OS-EXT-SRV-ATTR:host":
|
94
|
+
"cn26.la-1-2.morphlabs.net", "addresses": {"novanetwork": [{"version": 4,
|
95
|
+
"addr": "10.2.0.15", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "<HOST_URI>:8774/v2/e7b1b62aa1474f758c4974b8be44cf6c/servers/2b8b852f-df7a-496e-b480-d2eea625016b",
|
96
|
+
"rel": "self"}, {"href": "<HOST_URI>:8774/e7b1b62aa1474f758c4974b8be44cf6c/servers/2b8b852f-df7a-496e-b480-d2eea625016b",
|
97
|
+
"rel": "bookmark"}], "key_name": "", "image": {"id": "c95d4992-24b1-4c9a-93cb-5d2935503148",
|
98
|
+
"links": [{"href": "<HOST_URI>:8774/e7b1b62aa1474f758c4974b8be44cf6c/images/c95d4992-24b1-4c9a-93cb-5d2935503148",
|
99
|
+
"rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state":
|
100
|
+
"active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000018", "OS-EXT-SRV-ATTR:hypervisor_hostname":
|
101
|
+
"cn26.la-1-2.morphlabs.net", "flavor": {"id": "2", "links": [{"href": "<HOST_URI>:8774/e7b1b62aa1474f758c4974b8be44cf6c/flavors/2",
|
102
|
+
"rel": "bookmark"}]}, "id": "2b8b852f-df7a-496e-b480-d2eea625016b", "security_groups":
|
103
|
+
[{"name": "default"}], "OS-EXT-AZ:availability_zone": "nova", "user_id": "ab263d5e1c6343bd9d56d694a71e8ac0",
|
104
|
+
"name": "launching", "created": "2013-08-05T07:08:41Z", "tenant_id": "e7b1b62aa1474f758c4974b8be44cf6c",
|
105
|
+
"OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress":
|
106
|
+
0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}]}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Tue, 03 Sep 2013 21:27:10 GMT
|
109
|
+
recorded_with: VCR 2.5.0
|