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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -4
  3. data/lib/dawn/api/authenticate.rb +33 -7
  4. data/lib/dawn/api/base_api.rb +52 -6
  5. data/lib/dawn/api/health_check.rb +14 -0
  6. data/lib/dawn/api/hosts.rb +16 -3
  7. data/lib/dawn/api/models/account.rb +44 -15
  8. data/lib/dawn/api/models/app/domains.rb +30 -6
  9. data/lib/dawn/api/models/app/drains.rb +30 -6
  10. data/lib/dawn/api/models/app/env.rb +19 -5
  11. data/lib/dawn/api/models/app/gears.rb +31 -7
  12. data/lib/dawn/api/models/app/releases.rb +28 -8
  13. data/lib/dawn/api/models/app.rb +93 -16
  14. data/lib/dawn/api/models/domain.rb +36 -11
  15. data/lib/dawn/api/models/drain.rb +33 -19
  16. data/lib/dawn/api/models/gear.rb +45 -25
  17. data/lib/dawn/api/models/key.rb +33 -15
  18. data/lib/dawn/api/models/login.rb +5 -4
  19. data/lib/dawn/api/models/release.rb +32 -14
  20. data/lib/dawn/api/safe/base_api.rb +3 -3
  21. data/lib/dawn/api/safe/safe_extension.rb +20 -5
  22. data/lib/dawn/api/version.rb +5 -5
  23. data/lib/dawn/api.rb +1 -1
  24. data/spec/api/account_spec.rb +21 -0
  25. data/spec/api/app/domains_spec.rb +30 -0
  26. data/spec/api/app/drains_spec.rb +30 -0
  27. data/spec/api/app/gears_spec.rb +38 -0
  28. data/spec/api/app/releases_spec.rb +30 -0
  29. data/spec/api/app_spec.rb +166 -0
  30. data/spec/api/domain_spec.rb +54 -0
  31. data/spec/api/drain_spec.rb +54 -0
  32. data/spec/api/gear_spec.rb +65 -0
  33. data/spec/api/key_spec.rb +54 -0
  34. data/spec/api/release_spec.rb +13 -0
  35. data/spec/api_spec_helper.rb +18 -0
  36. data/spec/references/data.yml +16 -0
  37. data/spec/seed.rb +70 -0
  38. data/spec/seedlog.log +1454 -0
  39. data/spec/support/vcr.rb +11 -0
  40. data/spec/vcr/Dawn_Account/_current/should_retrieve_current_user_account.yml +51 -0
  41. data/spec/vcr/Dawn_Account/_update/should_update_an_account.yml +99 -0
  42. data/spec/vcr/Dawn_App/_all/should_only_have_an_array_of_apps.yml +62 -0
  43. data/spec/vcr/Dawn_App/_all/should_retrieve_all_user_apps.yml +62 -0
  44. data/spec/vcr/Dawn_App/_create/should_create_a_new_app_given_a_name.yml +51 -0
  45. data/spec/vcr/Dawn_App/_create/should_raise_an_Excon_Errors_UnprocessableEntity_when_an_invalid_name_is_given.yml +49 -0
  46. data/spec/vcr/Dawn_App/_destroy/should_destroy_1_app.yml +49 -0
  47. data/spec/vcr/Dawn_App/_destroy/should_fail_to_destroy_non-existant_app.yml +48 -0
  48. data/spec/vcr/Dawn_App/_domains/should_have_domains.yml +51 -0
  49. data/spec/vcr/Dawn_App/_domains/should_retrieve_domains.yml +98 -0
  50. data/spec/vcr/Dawn_App/_drains/should_have_drains.yml +51 -0
  51. data/spec/vcr/Dawn_App/_find/should_fail_to_find_a_non_existant_app.yml +48 -0
  52. data/spec/vcr/Dawn_App/_find/should_retrieve_1_app_by_id.yml +111 -0
  53. data/spec/vcr/Dawn_App/_find/should_retrieve_1_app_by_name.yml +51 -0
  54. data/spec/vcr/Dawn_App/_gears/should_have_gears.yml +51 -0
  55. data/spec/vcr/Dawn_App/_gears/should_restart_gears.yml +98 -0
  56. data/spec/vcr/Dawn_App/_gears/should_retrieve_gears.yml +98 -0
  57. data/spec/vcr/Dawn_App/_logs/should_fail_to_retrieve_logs_uri_for_a_non_existant_app.yml +48 -0
  58. data/spec/vcr/Dawn_App/_logs/should_retrieve_logs_url_for_app.yml +98 -0
  59. data/spec/vcr/Dawn_App/_releases/should_have_releases.yml +51 -0
  60. data/spec/vcr/Dawn_App/_releases/should_retrieve_releases.yml +98 -0
  61. data/spec/vcr/Dawn_App/_restart/should_fail_to_restart_a_non_existant_app.yml +48 -0
  62. data/spec/vcr/Dawn_App/_scale/should_have_updated_formation.yml +51 -0
  63. data/spec/vcr/Dawn_App/_scale/should_raise_an_IndexError_if_app_key_is_missing.yml +51 -0
  64. data/spec/vcr/Dawn_App/_scale/should_scale_app.yml +98 -0
  65. data/spec/vcr/Dawn_App/_update/should_fail_to_update_non-existant_app.yml +48 -0
  66. data/spec/vcr/Dawn_App_Domains/_all/should_have_only_domains.yml +98 -0
  67. data/spec/vcr/Dawn_App_Domains/_all/should_return_all_domains.yml +98 -0
  68. data/spec/vcr/Dawn_App_Domains/_create/should_create_a_new_domain.yml +99 -0
  69. data/spec/vcr/Dawn_App_Drains/_all/should_have_only_drains.yml +98 -0
  70. data/spec/vcr/Dawn_App_Drains/_all/should_return_all_drains.yml +98 -0
  71. data/spec/vcr/Dawn_App_Drains/_create/should_create_a_new_drain.yml +99 -0
  72. data/spec/vcr/Dawn_App_Gears/_all/should_return_all_gears.yml +98 -0
  73. data/spec/vcr/Dawn_App_Releases/_all/should_return_all_releases.yml +98 -0
  74. data/spec/vcr/Dawn_App_Releases/_create/should_create_a_new_release.yml +423 -0
  75. data/spec/vcr/Dawn_Key/_all/should_retrieve_all_user_keys.yml +52 -0
  76. data/spec/vcr/Dawn_Key/_create/should_create_a_new_sshkey.yml +51 -0
  77. data/spec/vcr/Dawn_Key/_create/should_fail_if_sshkey_is_invalid.yml +49 -0
  78. data/spec/vcr/Dawn_Key/_destroy/should_404_if_key_does_not_exist.yml +48 -0
  79. data/spec/vcr/Dawn_Key/_destroy/should_remove_a_key_by_id.yml +98 -0
  80. data/spec/vcr/Dawn_Key/_find/should_404_if_key_does_not_exist.yml +48 -0
  81. data/spec/vcr/Dawn_Key/_find/should_find_a_key_by_id.yml +99 -0
  82. data/spec/vcr/Dawn_Release/_find/should_find_1_release_by_id.yml +48 -0
  83. metadata +62 -3
  84. data/lib/dawn/api/safe.rb +0 -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
+ - 62fc07ab-1ec0-4ed3-b1fb-d1f50dbc8426
37
+ x-runtime:
38
+ - '0.014724'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:01:49 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:02:09 GMT
51
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.dawn.dev/apps/-1
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
+ - 1721db4b-412f-445e-a119-9cfee9c93fdd
35
+ x-runtime:
36
+ - '0.014983'
37
+ transfer-encoding:
38
+ - ''
39
+ connection:
40
+ - TE, close
41
+ Date:
42
+ - Tue, 24 Jun 2014 22:00:05 GMT
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"id":"app.not_exist","message":"App (id: -1) does not exist"}'
46
+ http_version:
47
+ recorded_at: Tue, 24 Jun 2014 22:00:25 GMT
48
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,111 @@
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
+ - '"684654c89bd2787971ad75cea0a8adbc"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-request-id:
36
+ - 324a5a80-6011-4a2a-904f-17d3be0638d5
37
+ x-runtime:
38
+ - '0.064641'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 21:59:24 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"}},{"app":{"id":16,"created_at":"2014-06-24
60
+ 21:59:06 UTC","updated_at":"2014-06-24 21:59:06 UTC","name":"cookie-crushers","version":0,"env":{},"formation":{"web":"1"},"url":"cookie-crushers.dawnapp.dev"}}]'
61
+ http_version:
62
+ recorded_at: Tue, 24 Jun 2014 21:59:44 GMT
63
+ - request:
64
+ method: get
65
+ uri: http://api.dawn.dev/apps/2
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Accept:
71
+ - application/json
72
+ Content-Type:
73
+ - application/json
74
+ Accept-Encoding:
75
+ - gzip
76
+ User-Agent:
77
+ - dawn/0.11.0
78
+ X-Ruby-Version:
79
+ - 2.1.2
80
+ X-Ruby-Platform:
81
+ - x86_64-linux
82
+ Authorization:
83
+ - Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
84
+ response:
85
+ status:
86
+ code: 200
87
+ message:
88
+ headers:
89
+ content-type:
90
+ - text/html
91
+ etag:
92
+ - '"fa385941ce7ac0ad8864e682bad181e4"'
93
+ cache-control:
94
+ - max-age=0, private, must-revalidate
95
+ x-request-id:
96
+ - 50196700-4f0b-435a-bd95-b40421a80d80
97
+ x-runtime:
98
+ - '0.056647'
99
+ transfer-encoding:
100
+ - ''
101
+ connection:
102
+ - TE, close
103
+ Date:
104
+ - Tue, 24 Jun 2014 21:59:32 GMT
105
+ body:
106
+ encoding: UTF-8
107
+ string: '{"app":{"id":2,"created_at":"2014-06-24 18:36:05 UTC","updated_at":"2014-06-24
108
+ 18:36:05 UTC","name":"domains-test","version":0,"env":{},"formation":{"web":"1"},"url":"domains-test.dawnapp.dev"}}'
109
+ http_version:
110
+ recorded_at: Tue, 24 Jun 2014 21:59:53 GMT
111
+ 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
+ - '"70f18583ad50884e483281cb10619f25"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-request-id:
36
+ - 533ce033-1356-4869-8af2-2b2117622e65
37
+ x-runtime:
38
+ - '0.017526'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:00:04 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 22:00:24 GMT
51
+ 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
+ - 0e28931d-d436-4956-828e-53c69e661893
37
+ x-runtime:
38
+ - '0.021976'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:01:46 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:02:06 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
+ - b4e81238-cfec-4cdc-b2da-a83a4e66b9a4
37
+ x-runtime:
38
+ - '0.023028'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:01:47 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:02:08 GMT
51
+ - request:
52
+ method: post
53
+ uri: http://api.dawn.dev/apps/16/gears/restart
54
+ body:
55
+ encoding: UTF-8
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
+ - '"960e2ff7d8088d758c2145d8dcd915dc"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ x-request-id:
84
+ - 18c176ba-049f-4cfd-a457-ee3d51bfbec1
85
+ x-runtime:
86
+ - '0.009892'
87
+ transfer-encoding:
88
+ - ''
89
+ connection:
90
+ - TE, close
91
+ Date:
92
+ - Tue, 24 Jun 2014 22:01:48 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: '{"message":"gears have been restarted"}'
96
+ http_version:
97
+ recorded_at: Tue, 24 Jun 2014 22:02:09 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/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
+ - 91c394be-684c-4b0c-a6b8-0ae13f44c818
37
+ x-runtime:
38
+ - '0.020882'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:01:46 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:02:06 GMT
51
+ - request:
52
+ method: get
53
+ uri: http://api.dawn.dev/apps/16/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
+ - b71f4bc3-95a2-43b0-91f0-4b8845af0a22
85
+ x-runtime:
86
+ - '0.012149'
87
+ transfer-encoding:
88
+ - ''
89
+ connection:
90
+ - TE, close
91
+ Date:
92
+ - Tue, 24 Jun 2014 22:01:47 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: "[]"
96
+ http_version:
97
+ recorded_at: Tue, 24 Jun 2014 22:02:07 GMT
98
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.dawn.dev/apps/-1/logs
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
+ - 66770e69-4085-4a52-a837-7589649f7769
35
+ x-runtime:
36
+ - '0.011698'
37
+ transfer-encoding:
38
+ - ''
39
+ connection:
40
+ - TE, close
41
+ Date:
42
+ - Tue, 24 Jun 2014 22:00:16 GMT
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"id":"app.not_exist","message":"App (id: -1) does not exist"}'
46
+ http_version:
47
+ recorded_at: Tue, 24 Jun 2014 22:00:36 GMT
48
+ 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
+ - '"70f18583ad50884e483281cb10619f25"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-request-id:
36
+ - 75ac877b-a8f6-42dd-852a-11d1096a710d
37
+ x-runtime:
38
+ - '0.018828'
39
+ transfer-encoding:
40
+ - ''
41
+ connection:
42
+ - TE, close
43
+ Date:
44
+ - Tue, 24 Jun 2014 22:01:16 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 22:01:36 GMT
51
+ - request:
52
+ method: get
53
+ uri: http://api.dawn.dev/apps/16/logs
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
+ - '"7e709a3bdb62002d3f3509d009fc6505"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ x-request-id:
84
+ - 50dbcb9b-2ede-44e4-a22e-ffa9778fa19d
85
+ x-runtime:
86
+ - '0.017605'
87
+ transfer-encoding:
88
+ - ''
89
+ connection:
90
+ - TE, close
91
+ Date:
92
+ - Tue, 24 Jun 2014 22:01:32 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: '{"logs":"/sessions/969a3dab-cf03-42a1-a8e7-3ad70cb067fd"}'
96
+ http_version:
97
+ recorded_at: Tue, 24 Jun 2014 22:01:52 GMT
98
+ recorded_with: VCR 2.9.2