dawn-api 0.10.1 → 0.11.0
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.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/lib/dawn/api/authenticate.rb +33 -7
- data/lib/dawn/api/base_api.rb +52 -6
- data/lib/dawn/api/health_check.rb +14 -0
- data/lib/dawn/api/hosts.rb +16 -3
- data/lib/dawn/api/models/account.rb +44 -15
- data/lib/dawn/api/models/app/domains.rb +30 -6
- data/lib/dawn/api/models/app/drains.rb +30 -6
- data/lib/dawn/api/models/app/env.rb +19 -5
- data/lib/dawn/api/models/app/gears.rb +31 -7
- data/lib/dawn/api/models/app/releases.rb +28 -8
- data/lib/dawn/api/models/app.rb +93 -16
- data/lib/dawn/api/models/domain.rb +36 -11
- data/lib/dawn/api/models/drain.rb +33 -19
- data/lib/dawn/api/models/gear.rb +45 -25
- data/lib/dawn/api/models/key.rb +33 -15
- data/lib/dawn/api/models/login.rb +5 -4
- data/lib/dawn/api/models/release.rb +32 -14
- data/lib/dawn/api/safe/base_api.rb +3 -3
- data/lib/dawn/api/safe/safe_extension.rb +20 -5
- data/lib/dawn/api/version.rb +5 -5
- data/lib/dawn/api.rb +1 -1
- data/spec/api/account_spec.rb +21 -0
- data/spec/api/app/domains_spec.rb +30 -0
- data/spec/api/app/drains_spec.rb +30 -0
- data/spec/api/app/gears_spec.rb +38 -0
- data/spec/api/app/releases_spec.rb +30 -0
- data/spec/api/app_spec.rb +166 -0
- data/spec/api/domain_spec.rb +54 -0
- data/spec/api/drain_spec.rb +54 -0
- data/spec/api/gear_spec.rb +65 -0
- data/spec/api/key_spec.rb +54 -0
- data/spec/api/release_spec.rb +13 -0
- data/spec/api_spec_helper.rb +18 -0
- data/spec/references/data.yml +16 -0
- data/spec/seed.rb +70 -0
- data/spec/seedlog.log +1454 -0
- data/spec/support/vcr.rb +11 -0
- data/spec/vcr/Dawn_Account/_current/should_retrieve_current_user_account.yml +51 -0
- data/spec/vcr/Dawn_Account/_update/should_update_an_account.yml +99 -0
- data/spec/vcr/Dawn_App/_all/should_only_have_an_array_of_apps.yml +62 -0
- data/spec/vcr/Dawn_App/_all/should_retrieve_all_user_apps.yml +62 -0
- data/spec/vcr/Dawn_App/_create/should_create_a_new_app_given_a_name.yml +51 -0
- data/spec/vcr/Dawn_App/_create/should_raise_an_Excon_Errors_UnprocessableEntity_when_an_invalid_name_is_given.yml +49 -0
- data/spec/vcr/Dawn_App/_destroy/should_destroy_1_app.yml +49 -0
- data/spec/vcr/Dawn_App/_destroy/should_fail_to_destroy_non-existant_app.yml +48 -0
- data/spec/vcr/Dawn_App/_domains/should_have_domains.yml +51 -0
- data/spec/vcr/Dawn_App/_domains/should_retrieve_domains.yml +98 -0
- data/spec/vcr/Dawn_App/_drains/should_have_drains.yml +51 -0
- data/spec/vcr/Dawn_App/_find/should_fail_to_find_a_non_existant_app.yml +48 -0
- data/spec/vcr/Dawn_App/_find/should_retrieve_1_app_by_id.yml +111 -0
- data/spec/vcr/Dawn_App/_find/should_retrieve_1_app_by_name.yml +51 -0
- data/spec/vcr/Dawn_App/_gears/should_have_gears.yml +51 -0
- data/spec/vcr/Dawn_App/_gears/should_restart_gears.yml +98 -0
- data/spec/vcr/Dawn_App/_gears/should_retrieve_gears.yml +98 -0
- data/spec/vcr/Dawn_App/_logs/should_fail_to_retrieve_logs_uri_for_a_non_existant_app.yml +48 -0
- data/spec/vcr/Dawn_App/_logs/should_retrieve_logs_url_for_app.yml +98 -0
- data/spec/vcr/Dawn_App/_releases/should_have_releases.yml +51 -0
- data/spec/vcr/Dawn_App/_releases/should_retrieve_releases.yml +98 -0
- data/spec/vcr/Dawn_App/_restart/should_fail_to_restart_a_non_existant_app.yml +48 -0
- data/spec/vcr/Dawn_App/_scale/should_have_updated_formation.yml +51 -0
- data/spec/vcr/Dawn_App/_scale/should_raise_an_IndexError_if_app_key_is_missing.yml +51 -0
- data/spec/vcr/Dawn_App/_scale/should_scale_app.yml +98 -0
- data/spec/vcr/Dawn_App/_update/should_fail_to_update_non-existant_app.yml +48 -0
- data/spec/vcr/Dawn_App_Domains/_all/should_have_only_domains.yml +98 -0
- data/spec/vcr/Dawn_App_Domains/_all/should_return_all_domains.yml +98 -0
- data/spec/vcr/Dawn_App_Domains/_create/should_create_a_new_domain.yml +99 -0
- data/spec/vcr/Dawn_App_Drains/_all/should_have_only_drains.yml +98 -0
- data/spec/vcr/Dawn_App_Drains/_all/should_return_all_drains.yml +98 -0
- data/spec/vcr/Dawn_App_Drains/_create/should_create_a_new_drain.yml +99 -0
- data/spec/vcr/Dawn_App_Gears/_all/should_return_all_gears.yml +98 -0
- data/spec/vcr/Dawn_App_Releases/_all/should_return_all_releases.yml +98 -0
- data/spec/vcr/Dawn_App_Releases/_create/should_create_a_new_release.yml +423 -0
- data/spec/vcr/Dawn_Key/_all/should_retrieve_all_user_keys.yml +52 -0
- data/spec/vcr/Dawn_Key/_create/should_create_a_new_sshkey.yml +51 -0
- data/spec/vcr/Dawn_Key/_create/should_fail_if_sshkey_is_invalid.yml +49 -0
- data/spec/vcr/Dawn_Key/_destroy/should_404_if_key_does_not_exist.yml +48 -0
- data/spec/vcr/Dawn_Key/_destroy/should_remove_a_key_by_id.yml +98 -0
- data/spec/vcr/Dawn_Key/_find/should_404_if_key_does_not_exist.yml +48 -0
- data/spec/vcr/Dawn_Key/_find/should_find_a_key_by_id.yml +99 -0
- data/spec/vcr/Dawn_Release/_find/should_find_1_release_by_id.yml +48 -0
- metadata +62 -3
- data/lib/dawn/api/safe.rb +0 -2
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/domains-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"fa385941ce7ac0ad8864e682bad181e4"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- be2b6190-c27c-4359-8206-f8b6f819feca
|
37
|
+
x-runtime:
|
38
|
+
- '0.018022'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:53:56 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":2,"created_at":"2014-06-24 18:36:05 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:05 UTC","name":"domains-test","version":0,"env":{},"formation":{"web":"1"},"url":"domains-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:54:16 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.dawn.dev/apps/2/domains
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"domain":{"url":"http://wearepeople.io"}}'
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"dd9ad6562072fa6337cd5dc6e54b7e4a"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- 09be991b-f263-42fd-85d4-b3943502f6f0
|
85
|
+
x-runtime:
|
86
|
+
- '0.021063'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:54:12 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"domain":{"id":5,"created_at":"2014-06-24 21:54:12 UTC","updated_at":"2014-06-24
|
96
|
+
21:54:12 UTC","url":"http://wearepeople.io","app":{"app_id":2}}}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Tue, 24 Jun 2014 21:54:32 GMT
|
99
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/drains-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"77aecdd933f446a235e5e811bbdfe61e"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 9d41956e-6521-4739-bc77-f3df35949bff
|
37
|
+
x-runtime:
|
38
|
+
- '0.015398'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:54:22 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":4,"created_at":"2014-06-24 18:36:11 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:11 UTC","name":"drains-test","version":0,"env":{},"formation":{"web":"1"},"url":"drains-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:54:43 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://api.dawn.dev/apps/4/drains
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"d751713988987e9331980363e24189ce"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- 9a6cc586-49d8-4ce4-ae6f-02ce916151d9
|
85
|
+
x-runtime:
|
86
|
+
- '0.013858'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:54:26 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: "[]"
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 24 Jun 2014 21:54:46 GMT
|
98
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/drains-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"77aecdd933f446a235e5e811bbdfe61e"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 3c4ed658-932b-45a5-bb64-f0a69a4c75ea
|
37
|
+
x-runtime:
|
38
|
+
- '0.022803'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:54:13 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":4,"created_at":"2014-06-24 18:36:11 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:11 UTC","name":"drains-test","version":0,"env":{},"formation":{"web":"1"},"url":"drains-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:54:34 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://api.dawn.dev/apps/4/drains
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"d751713988987e9331980363e24189ce"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- 052ce332-c8f6-4b77-9a66-03106864d9d8
|
85
|
+
x-runtime:
|
86
|
+
- '0.013175'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:54:21 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: "[]"
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 24 Jun 2014 21:54:41 GMT
|
98
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/drains-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"77aecdd933f446a235e5e811bbdfe61e"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- e296ff33-ecec-4c50-a529-20df420d0a1f
|
37
|
+
x-runtime:
|
38
|
+
- '0.016156'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:54:26 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":4,"created_at":"2014-06-24 18:36:11 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:11 UTC","name":"drains-test","version":0,"env":{},"formation":{"web":"1"},"url":"drains-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:54:46 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.dawn.dev/apps/4/drains
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"drain":{"url":"http://flush.it"}}'
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"3ea6da5df6f853ffd19e3f8fea9e8d6f"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- 0729ca81-e6df-449f-b10c-f009e738d81a
|
85
|
+
x-runtime:
|
86
|
+
- '0.057579'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:54:35 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"drain":{"id":1,"created_at":"2014-06-24 21:54:35 UTC","updated_at":"2014-06-24
|
96
|
+
21:54:35 UTC","url":"http://flush.it","token":"d.cca22675-fcfc-4d3e-b8b6-2923a5280cde","app":{"app_id":4}}}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Tue, 24 Jun 2014 21:54:56 GMT
|
99
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/gears-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"5917176de09131a4f2e01b7aa6f0e5e4"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- a460c21a-384e-41f2-8cad-ae3a99d4d8b6
|
37
|
+
x-runtime:
|
38
|
+
- '0.015106'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:54:36 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":6,"created_at":"2014-06-24 18:36:17 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:17 UTC","name":"gears-test","version":0,"env":{},"formation":{"web":"1"},"url":"gears-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:54:56 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://api.dawn.dev/apps/6/gears
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"d751713988987e9331980363e24189ce"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- c623bf54-569e-43f0-a8a2-0b06e7206266
|
85
|
+
x-runtime:
|
86
|
+
- '0.013302'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:54:36 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: "[]"
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 24 Jun 2014 21:54:57 GMT
|
98
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/releases-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.11.0
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"042a5f4820c07d6f85a4d00b187db7f9"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 22435383-2593-4c10-9e52-ac7479266d56
|
37
|
+
x-runtime:
|
38
|
+
- '0.019131'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:57:48 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":8,"created_at":"2014-06-24 18:36:20 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:20 UTC","name":"releases-test","version":0,"env":{},"formation":{"web":"1"},"url":"releases-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:58:08 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://api.dawn.dev/apps/8/releases
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.11.0
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html
|
79
|
+
etag:
|
80
|
+
- '"d751713988987e9331980363e24189ce"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- e6cb954d-6ae1-4727-8601-5fa9c6ecd5d7
|
85
|
+
x-runtime:
|
86
|
+
- '0.013132'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:57:49 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: "[]"
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 24 Jun 2014 21:58:09 GMT
|
98
|
+
recorded_with: VCR 2.9.2
|