aviator 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aviator/openstack/compute/requests/v2/public/start_server.rb +28 -0
  3. data/lib/aviator/openstack/compute/requests/v2/public/stop_server.rb +28 -0
  4. data/lib/aviator/version.rb +1 -1
  5. data/test/aviator/openstack/compute/requests/v2/public/start_server_test.rb +127 -0
  6. data/test/aviator/openstack/compute/requests/v2/public/stop_server_test.rb +125 -0
  7. data/test/cassettes/openstack/compute/requests/v2/public/start_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +99 -0
  8. data/test/cassettes/openstack/compute/requests/v2/public/start_server/leads_to_a_valid_response_when_valid_params_are_provided.yml +132 -0
  9. data/test/cassettes/openstack/compute/requests/v2/public/start_server/returns_the_correct_value_for_body_.yml +65 -0
  10. data/test/cassettes/openstack/compute/requests/v2/public/start_server/returns_the_correct_value_for_headers_.yml +65 -0
  11. data/test/cassettes/openstack/compute/requests/v2/public/start_server/returns_the_correct_value_for_http_method_.yml +65 -0
  12. data/test/cassettes/openstack/compute/requests/v2/public/start_server/returns_the_correct_value_for_url_.yml +65 -0
  13. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/leads_to_a_valid_response_when_invalid_server_id_is_provided.yml +99 -0
  14. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/leads_to_a_valid_response_when_valid_params_are_provided.yml +132 -0
  15. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/returns_the_correct_value_for_body_.yml +65 -0
  16. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/returns_the_correct_value_for_headers_.yml +65 -0
  17. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/returns_the_correct_value_for_http_method_.yml +65 -0
  18. data/test/cassettes/openstack/compute/requests/v2/public/stop_server/returns_the_correct_value_for_url_.yml +65 -0
  19. metadata +32 -2
@@ -0,0 +1,65 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 01:50:15 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T01:50:15.315964",
32
+ "expires": "2013-09-26T01:50:15Z", "id": "19ae2c8b12484aa6ae6ba8988f75964f",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 01:50:15 GMT
65
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,65 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 01:50:14 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T01:50:14.640651",
32
+ "expires": "2013-09-26T01:50:14Z", "id": "38efa90a73c540608990fd3524545ca3",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 01:50:14 GMT
65
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,65 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 01:50:14 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T01:50:14.813667",
32
+ "expires": "2013-09-26T01:50:14Z", "id": "4268f1145b4c42f4ae0dce702e9007dc",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 01:50:14 GMT
65
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,65 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 01:50:15 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T01:50:15.065736",
32
+ "expires": "2013-09-26T01:50:15Z", "id": "afe5100d0cf14e39b8511ef586bb4506",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 01:50:15 GMT
65
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,99 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 02:08:23 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T02:08:23.535164",
32
+ "expires": "2013-09-26T02:08:23Z", "id": "32b5e0a442e74c1f86fcdb52ca78badb",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 02:08:23 GMT
65
+ - request:
66
+ method: post
67
+ uri: http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0/servers/abogusserveridthatdoesnotexist/action
68
+ body:
69
+ encoding: UTF-8
70
+ string: ! '{"os-stop":null}'
71
+ headers:
72
+ Content-Type:
73
+ - application/json
74
+ User-Agent:
75
+ - Faraday v0.8.8
76
+ X-Auth-Token:
77
+ - 32b5e0a442e74c1f86fcdb52ca78badb
78
+ response:
79
+ status:
80
+ code: 404
81
+ message:
82
+ headers:
83
+ content-length:
84
+ - '73'
85
+ content-type:
86
+ - application/json; charset=UTF-8
87
+ x-compute-request-id:
88
+ - req-78037332-6cd5-4064-a715-269d4ee6cbb1
89
+ date:
90
+ - Wed, 25 Sep 2013 02:08:23 GMT
91
+ connection:
92
+ - close
93
+ body:
94
+ encoding: US-ASCII
95
+ string: ! '{"itemNotFound": {"message": "Instance could not be found", "code":
96
+ 404}}'
97
+ http_version:
98
+ recorded_at: Wed, 25 Sep 2013 02:08:23 GMT
99
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,132 @@
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
+ - '2677'
25
+ date:
26
+ - Wed, 25 Sep 2013 02:08:24 GMT
27
+ connection:
28
+ - close
29
+ body:
30
+ encoding: US-ASCII
31
+ string: ! '{"access": {"token": {"issued_at": "2013-09-25T02:08:24.037534",
32
+ "expires": "2013-09-26T02:08:23Z", "id": "0b55524c320c4b0f87e2372966b673d1",
33
+ "tenant": {"description": "", "enabled": true, "id": "87b582d56d3f4ed19a25c919bb59a6f0",
34
+ "name": "<OPENSTACK_MEMBER_TENANTNAME>"}}, "serviceCatalog": [{"endpoints":
35
+ [{"adminURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
36
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0",
37
+ "id": "1ee1c2c29f8640ab9c3f8654209873f6", "publicURL": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0"}],
38
+ "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL":
39
+ "http://127.0.0.1:3333", "region": "RegionOne", "internalURL": "http://127.0.0.1:3333",
40
+ "id": "3cc6591515c24569bc5342bc82159a77", "publicURL": "http://127.0.0.1:3333"}],
41
+ "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL":
42
+ "http://127.0.0.1:9292", "region": "RegionOne", "internalURL": "http://127.0.0.1:9292",
43
+ "id": "6842e55991f14f66b1ccf7c924d83ca6", "publicURL": "http://127.0.0.1:9292"}],
44
+ "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL":
45
+ "http://127.0.0.1:8777", "region": "RegionOne", "internalURL": "http://127.0.0.1:8777",
46
+ "id": "1edf8d85bb7047beb66c7630b04b01e6", "publicURL": "http://127.0.0.1:8777"}],
47
+ "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints":
48
+ [{"adminURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
49
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0",
50
+ "id": "301c46cc88384348a5415d478162d51e", "publicURL": "http://127.0.0.1:8776/v1/87b582d56d3f4ed19a25c919bb59a6f0"}],
51
+ "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints":
52
+ [{"adminURL": "http://127.0.0.1:8773/services/Admin", "region": "RegionOne",
53
+ "internalURL": "http://127.0.0.1:8773/services/Cloud", "id": "3c91fce7434e4a798e8093841d09c6cc",
54
+ "publicURL": "http://127.0.0.1:8773/services/Cloud"}], "endpoints_links":
55
+ [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0",
56
+ "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id":
57
+ "836cef616b644e2da8b0f39dd1aa78e1", "publicURL": "http://127.0.0.1:5000/v2.0"}],
58
+ "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username":
59
+ "<OPENSTACK_MEMBER_USERNAME>", "roles_links": [], "id": "cbdd1e36bf1d4bceab9896f47c0e5a9b",
60
+ "roles": [{"name": "_member_"}, {"name": "project_manager"}], "name": "<OPENSTACK_MEMBER_USERNAME>"},
61
+ "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab",
62
+ "0877846b7e534fc3ae0e9b0bb226343d"]}}}'
63
+ http_version:
64
+ recorded_at: Wed, 25 Sep 2013 02:08:24 GMT
65
+ - request:
66
+ method: get
67
+ uri: http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0/servers
68
+ body:
69
+ encoding: US-ASCII
70
+ string: ''
71
+ headers:
72
+ Content-Type:
73
+ - application/json
74
+ User-Agent:
75
+ - Faraday v0.8.8
76
+ X-Auth-Token:
77
+ - 0b55524c320c4b0f87e2372966b673d1
78
+ response:
79
+ status:
80
+ code: 200
81
+ message:
82
+ headers:
83
+ x-compute-request-id:
84
+ - req-5c05caa3-e474-48a8-a889-755fa8e680b6
85
+ content-type:
86
+ - application/json
87
+ content-length:
88
+ - '360'
89
+ date:
90
+ - Wed, 25 Sep 2013 02:08:24 GMT
91
+ connection:
92
+ - close
93
+ body:
94
+ encoding: US-ASCII
95
+ string: ! '{"servers": [{"id": "9e43634d-71bf-4e04-97b3-783ce9e6d4bc", "links":
96
+ [{"href": "http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0/servers/9e43634d-71bf-4e04-97b3-783ce9e6d4bc",
97
+ "rel": "self"}, {"href": "http://127.0.0.1:8774/87b582d56d3f4ed19a25c919bb59a6f0/servers/9e43634d-71bf-4e04-97b3-783ce9e6d4bc",
98
+ "rel": "bookmark"}], "name": "test-instance"}]}'
99
+ http_version:
100
+ recorded_at: Wed, 25 Sep 2013 02:08:24 GMT
101
+ - request:
102
+ method: post
103
+ uri: http://127.0.0.1:8774/v2/87b582d56d3f4ed19a25c919bb59a6f0/servers/9e43634d-71bf-4e04-97b3-783ce9e6d4bc/action
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"os-stop":null}'
107
+ headers:
108
+ Content-Type:
109
+ - application/json
110
+ User-Agent:
111
+ - Faraday v0.8.8
112
+ X-Auth-Token:
113
+ - 0b55524c320c4b0f87e2372966b673d1
114
+ response:
115
+ status:
116
+ code: 202
117
+ message:
118
+ headers:
119
+ content-type:
120
+ - text/html; charset=UTF-8
121
+ content-length:
122
+ - '0'
123
+ date:
124
+ - Wed, 25 Sep 2013 02:08:24 GMT
125
+ connection:
126
+ - close
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ''
130
+ http_version:
131
+ recorded_at: Wed, 25 Sep 2013 02:08:24 GMT
132
+ recorded_with: VCR 2.5.0