dawn-api 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/spec/support/vcr.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'vcr'
|
2
|
+
require 'webmock'
|
3
|
+
|
4
|
+
VCR.configure do |c|
|
5
|
+
#c.allow_http_connections_when_no_cassette = false
|
6
|
+
c.hook_into :excon
|
7
|
+
c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'vcr')
|
8
|
+
c.configure_rspec_metadata!
|
9
|
+
c.default_cassette_options = { record: :new_episodes }
|
10
|
+
#c.default_cassette_options = { record: :all }
|
11
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/account
|
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
|
+
- '"a0c5e72c41d0b8b3f3a32e7394ba9ae5"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 34212f41-33ae-4340-865e-1071400afc34
|
37
|
+
x-runtime:
|
38
|
+
- '0.009545'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:53:20 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"user":{"id":2,"created_at":"2014-06-24 18:34:17 UTC","updated_at":"2014-06-24
|
48
|
+
18:34:17 UTC","username":"IceDragon","email":"mistdragon100@gmail.com","api_key":"aF3EG3XcumzJmKpaHyB9"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:53:41 GMT
|
51
|
+
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/account
|
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
|
+
- '"a0c5e72c41d0b8b3f3a32e7394ba9ae5"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 965916e8-ea4d-4937-bce9-3380478c68e0
|
37
|
+
x-runtime:
|
38
|
+
- '0.008783'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:53:23 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"user":{"id":2,"created_at":"2014-06-24 18:34:17 UTC","updated_at":"2014-06-24
|
48
|
+
18:34:17 UTC","username":"IceDragon","email":"mistdragon100@gmail.com","api_key":"aF3EG3XcumzJmKpaHyB9"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:53:43 GMT
|
51
|
+
- request:
|
52
|
+
method: patch
|
53
|
+
uri: http://api.dawn.dev/account
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"account":{"username":"MyNameIs"}}'
|
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
|
+
- '"aa3ee9fa5443773c753ba9766a7e2e9b"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
x-request-id:
|
84
|
+
- 9dec4167-d111-4f34-8c54-fa149baa197a
|
85
|
+
x-runtime:
|
86
|
+
- '0.015168'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 21:53:26 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"user":{"id":2,"created_at":"2014-06-24 18:34:17 UTC","updated_at":"2014-06-24
|
96
|
+
21:53:26 UTC","username":"MyNameIs","email":"mistdragon100@gmail.com","api_key":"aF3EG3XcumzJmKpaHyB9"}}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Tue, 24 Jun 2014 21:53:47 GMT
|
99
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps
|
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
|
+
- '"0350f855a63b671ea9164b8c5e1dd56f"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 1d3f2c2d-3f61-447f-afe6-3e2b85e1d8f8
|
37
|
+
x-runtime:
|
38
|
+
- '0.052397'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:59:03 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"}},{"app":{"id":3,"created_at":"2014-06-24
|
49
|
+
18:36:06 UTC","updated_at":"2014-06-24 18:36:06 UTC","name":"domain-test","version":0,"env":{},"formation":{"web":"1"},"url":"domain-test.dawnapp.dev"}},{"app":{"id":4,"created_at":"2014-06-24
|
50
|
+
18:36:11 UTC","updated_at":"2014-06-24 18:36:11 UTC","name":"drains-test","version":0,"env":{},"formation":{"web":"1"},"url":"drains-test.dawnapp.dev"}},{"app":{"id":5,"created_at":"2014-06-24
|
51
|
+
18:36:12 UTC","updated_at":"2014-06-24 18:36:12 UTC","name":"drain-test","version":0,"env":{},"formation":{"web":"1"},"url":"drain-test.dawnapp.dev"}},{"app":{"id":6,"created_at":"2014-06-24
|
52
|
+
18:36:17 UTC","updated_at":"2014-06-24 18:36:17 UTC","name":"gears-test","version":0,"env":{},"formation":{"web":"1"},"url":"gears-test.dawnapp.dev"}},{"app":{"id":7,"created_at":"2014-06-24
|
53
|
+
18:36:18 UTC","updated_at":"2014-06-24 18:36:18 UTC","name":"gear-test","version":0,"env":{},"formation":{"web":"1"},"url":"gear-test.dawnapp.dev"}},{"app":{"id":8,"created_at":"2014-06-24
|
54
|
+
18:36:20 UTC","updated_at":"2014-06-24 18:36:20 UTC","name":"releases-test","version":0,"env":{},"formation":{"web":"1"},"url":"releases-test.dawnapp.dev"}},{"app":{"id":9,"created_at":"2014-06-24
|
55
|
+
18:36:20 UTC","updated_at":"2014-06-24 18:36:20 UTC","name":"release-test","version":0,"env":{},"formation":{"web":"1"},"url":"release-test.dawnapp.dev"}},{"app":{"id":10,"created_at":"2014-06-24
|
56
|
+
18:36:22 UTC","updated_at":"2014-06-24 18:36:22 UTC","name":"env-test","version":0,"env":{},"formation":{"web":"1"},"url":"env-test.dawnapp.dev"}},{"app":{"id":11,"created_at":"2014-06-24
|
57
|
+
18:39:55 UTC","updated_at":"2014-06-24 18:39:55 UTC","name":"high-morse-82","version":0,"env":{},"formation":{"web":"1"},"url":"high-morse-82.dawnapp.dev"}},{"app":{"id":14,"created_at":"2014-06-24
|
58
|
+
18:53:16 UTC","updated_at":"2014-06-24 18:53:16 UTC","name":"jovial-pike-55","version":0,"env":{},"formation":{"web":"1"},"url":"jovial-pike-55.dawnapp.dev"}},{"app":{"id":15,"created_at":"2014-06-24
|
59
|
+
19:08:41 UTC","updated_at":"2014-06-24 19:08:41 UTC","name":"app-test","version":0,"env":{},"formation":{"web":"1"},"url":"app-test.dawnapp.dev"}}]'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 24 Jun 2014 21:59:23 GMT
|
62
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps
|
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
|
+
- '"0350f855a63b671ea9164b8c5e1dd56f"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 21ea71e9-3bca-401f-b065-b984023b68fd
|
37
|
+
x-runtime:
|
38
|
+
- '0.063846'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:59:01 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"}},{"app":{"id":3,"created_at":"2014-06-24
|
49
|
+
18:36:06 UTC","updated_at":"2014-06-24 18:36:06 UTC","name":"domain-test","version":0,"env":{},"formation":{"web":"1"},"url":"domain-test.dawnapp.dev"}},{"app":{"id":4,"created_at":"2014-06-24
|
50
|
+
18:36:11 UTC","updated_at":"2014-06-24 18:36:11 UTC","name":"drains-test","version":0,"env":{},"formation":{"web":"1"},"url":"drains-test.dawnapp.dev"}},{"app":{"id":5,"created_at":"2014-06-24
|
51
|
+
18:36:12 UTC","updated_at":"2014-06-24 18:36:12 UTC","name":"drain-test","version":0,"env":{},"formation":{"web":"1"},"url":"drain-test.dawnapp.dev"}},{"app":{"id":6,"created_at":"2014-06-24
|
52
|
+
18:36:17 UTC","updated_at":"2014-06-24 18:36:17 UTC","name":"gears-test","version":0,"env":{},"formation":{"web":"1"},"url":"gears-test.dawnapp.dev"}},{"app":{"id":7,"created_at":"2014-06-24
|
53
|
+
18:36:18 UTC","updated_at":"2014-06-24 18:36:18 UTC","name":"gear-test","version":0,"env":{},"formation":{"web":"1"},"url":"gear-test.dawnapp.dev"}},{"app":{"id":8,"created_at":"2014-06-24
|
54
|
+
18:36:20 UTC","updated_at":"2014-06-24 18:36:20 UTC","name":"releases-test","version":0,"env":{},"formation":{"web":"1"},"url":"releases-test.dawnapp.dev"}},{"app":{"id":9,"created_at":"2014-06-24
|
55
|
+
18:36:20 UTC","updated_at":"2014-06-24 18:36:20 UTC","name":"release-test","version":0,"env":{},"formation":{"web":"1"},"url":"release-test.dawnapp.dev"}},{"app":{"id":10,"created_at":"2014-06-24
|
56
|
+
18:36:22 UTC","updated_at":"2014-06-24 18:36:22 UTC","name":"env-test","version":0,"env":{},"formation":{"web":"1"},"url":"env-test.dawnapp.dev"}},{"app":{"id":11,"created_at":"2014-06-24
|
57
|
+
18:39:55 UTC","updated_at":"2014-06-24 18:39:55 UTC","name":"high-morse-82","version":0,"env":{},"formation":{"web":"1"},"url":"high-morse-82.dawnapp.dev"}},{"app":{"id":14,"created_at":"2014-06-24
|
58
|
+
18:53:16 UTC","updated_at":"2014-06-24 18:53:16 UTC","name":"jovial-pike-55","version":0,"env":{},"formation":{"web":"1"},"url":"jovial-pike-55.dawnapp.dev"}},{"app":{"id":15,"created_at":"2014-06-24
|
59
|
+
19:08:41 UTC","updated_at":"2014-06-24 19:08:41 UTC","name":"app-test","version":0,"env":{},"formation":{"web":"1"},"url":"app-test.dawnapp.dev"}}]'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 24 Jun 2014 21:59:21 GMT
|
62
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.dawn.dev/apps
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"app":{"name":"cookie-crushers"}}'
|
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
|
+
- '"70f18583ad50884e483281cb10619f25"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 861b40ce-4fbc-4239-bd88-c44fbc21c423
|
37
|
+
x-runtime:
|
38
|
+
- '0.028705'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 21:59:06 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":16,"created_at":"2014-06-24 21:59:06 UTC","updated_at":"2014-06-24
|
48
|
+
21:59:06 UTC","name":"cookie-crushers","version":0,"env":{},"formation":{"web":"1"},"url":"cookie-crushers.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 21:59:27 GMT
|
51
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.dawn.dev/apps
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"app":{"name":"ThaTunaCorps"}}'
|
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: 422
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
cache-control:
|
32
|
+
- no-cache
|
33
|
+
x-request-id:
|
34
|
+
- efa840bc-45f3-4a93-bbb5-633bb1dd0978
|
35
|
+
x-runtime:
|
36
|
+
- '0.051069'
|
37
|
+
transfer-encoding:
|
38
|
+
- ''
|
39
|
+
connection:
|
40
|
+
- TE, close
|
41
|
+
Date:
|
42
|
+
- Tue, 24 Jun 2014 21:59:22 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":"app.save.fail","message":"App (name: ThaTunaCorps) saving has
|
46
|
+
failed","errors":{"name":"is invalid"}}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Tue, 24 Jun 2014 21:59:42 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/bread-crushers
|
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: 404
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
cache-control:
|
32
|
+
- no-cache
|
33
|
+
x-request-id:
|
34
|
+
- 294fbfa0-4b41-4e0a-ac69-71e3355e1dfa
|
35
|
+
x-runtime:
|
36
|
+
- '0.009986'
|
37
|
+
transfer-encoding:
|
38
|
+
- ''
|
39
|
+
connection:
|
40
|
+
- TE, close
|
41
|
+
Date:
|
42
|
+
- Tue, 24 Jun 2014 22:04:39 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":"app.not_exist","message":"App (id: bread-crushers) does not
|
46
|
+
exist"}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Tue, 24 Jun 2014 22:05:00 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://api.dawn.dev/apps/some-app
|
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: 404
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
cache-control:
|
32
|
+
- no-cache
|
33
|
+
x-request-id:
|
34
|
+
- f8f58089-faeb-4713-ac4b-0dbb0b6f9c07
|
35
|
+
x-runtime:
|
36
|
+
- '0.009257'
|
37
|
+
transfer-encoding:
|
38
|
+
- ''
|
39
|
+
connection:
|
40
|
+
- TE, close
|
41
|
+
Date:
|
42
|
+
- Tue, 24 Jun 2014 22:00:06 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":"app.not_exist","message":"App (id: some-app) does not exist"}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 24 Jun 2014 22:00:26 GMT
|
48
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/cookie-crushers
|
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
|
+
- '"831f4f06614ad204a50ca98c6f6f85ca"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 1739a0df-adc9-4391-bb0f-ee0a46a60e49
|
37
|
+
x-runtime:
|
38
|
+
- '0.037152'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 22:02:50 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":16,"created_at":"2014-06-24 21:59:06 UTC","updated_at":"2014-06-24
|
48
|
+
22:01:42 UTC","name":"cookie-crushers","version":0,"env":{},"formation":{"web":"2"},"url":"cookie-crushers.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 22:03:10 GMT
|
51
|
+
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/cookie-crushers
|
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
|
+
- '"831f4f06614ad204a50ca98c6f6f85ca"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- a07c89b1-4b88-4440-b700-19944e1c589f
|
37
|
+
x-runtime:
|
38
|
+
- '0.019667'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 22:02:52 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":16,"created_at":"2014-06-24 21:59:06 UTC","updated_at":"2014-06-24
|
48
|
+
22:01:42 UTC","name":"cookie-crushers","version":0,"env":{},"formation":{"web":"2"},"url":"cookie-crushers.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 22:03:12 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://api.dawn.dev/apps/16/domains
|
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
|
+
- 23cec6f2-b67d-4da4-9386-b109d6b84477
|
85
|
+
x-runtime:
|
86
|
+
- '0.015211'
|
87
|
+
transfer-encoding:
|
88
|
+
- ''
|
89
|
+
connection:
|
90
|
+
- TE, close
|
91
|
+
Date:
|
92
|
+
- Tue, 24 Jun 2014 22:03:09 GMT
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: "[]"
|
96
|
+
http_version:
|
97
|
+
recorded_at: Tue, 24 Jun 2014 22:03:29 GMT
|
98
|
+
recorded_with: VCR 2.9.2
|