marathon-api 1.1.0 → 1.2.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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +11 -6
  4. data/bin/marathon +49 -41
  5. data/fixtures/vcr/Marathon/_info/returns_the_info_hash.yml +10 -2
  6. data/fixtures/vcr/Marathon/_ping/ping/.yml +7 -1
  7. data/fixtures/vcr/Marathon_App/_changes/changes_the_app.yml +21 -5
  8. data/fixtures/vcr/Marathon_App/_changes/fails_with_stange_attributes.yml +8 -2
  9. data/fixtures/vcr/Marathon_App/_delete/deletes_the_app.yml +11 -3
  10. data/fixtures/vcr/Marathon_App/_delete/fails_deleting_not_existing_app.yml +9 -1
  11. data/fixtures/vcr/Marathon_App/_get/fails_getting_not_existing_app.yml +9 -1
  12. data/fixtures/vcr/Marathon_App/_get/gets_the_app.yml +10 -2
  13. data/fixtures/vcr/Marathon_App/_list/lists_apps.yml +11 -4
  14. data/fixtures/vcr/Marathon_App/_restart/fails_restarting_not_existing_app.yml +9 -1
  15. data/fixtures/vcr/Marathon_App/_restart/restarts_an_app.yml +9 -3
  16. data/fixtures/vcr/Marathon_App/_start/fails_getting_not_existing_app.yml +9 -1
  17. data/fixtures/vcr/Marathon_App/_start/starts_the_app.yml +12 -4
  18. data/fixtures/vcr/Marathon_App/_version/gets_a_version.yml +19 -7
  19. data/fixtures/vcr/Marathon_App/_versions/gets_versions.yml +9 -3
  20. data/fixtures/vcr/Marathon_Deployment/_delete/cleans_app_from_marathon.yml +38 -0
  21. data/fixtures/vcr/Marathon_Deployment/_delete/deletes_deployments.yml +20 -8
  22. data/fixtures/vcr/Marathon_Deployment/_list/lists_deployments.yml +34 -14
  23. data/fixtures/vcr/Marathon_EventSubscriptions/_list/lists_callbacks.yml +10 -2
  24. data/fixtures/vcr/Marathon_EventSubscriptions/_register/registers_callback.yml +10 -2
  25. data/fixtures/vcr/Marathon_EventSubscriptions/_unregister/unregisters_callback.yml +10 -2
  26. data/fixtures/vcr/Marathon_Group/_changes/changes_the_group.yml +20 -8
  27. data/fixtures/vcr/Marathon_Group/_changes/previews_changes.yml +38 -0
  28. data/fixtures/vcr/Marathon_Group/_delete/deletes_the_group.yml +9 -3
  29. data/fixtures/vcr/Marathon_Group/_delete/fails_deleting_not_existing_app.yml +8 -2
  30. data/fixtures/vcr/Marathon_Group/_get/fails_getting_not_existing_app.yml +8 -2
  31. data/fixtures/vcr/Marathon_Group/_get/gets_the_group.yml +9 -3
  32. data/fixtures/vcr/Marathon_Group/_list/lists_apps.yml +12 -4
  33. data/fixtures/vcr/Marathon_Group/_start/fails_getting_not_existing_group.yml +8 -2
  34. data/fixtures/vcr/Marathon_Group/_start/starts_the_group.yml +9 -3
  35. data/fixtures/vcr/Marathon_Leader/_delete/delete/.yml +9 -1
  36. data/fixtures/vcr/Marathon_Leader/_get/get/.yml +10 -2
  37. data/fixtures/vcr/Marathon_Queue/_list/lists_queue.yml +9 -4
  38. data/fixtures/vcr/Marathon_Task/_delete/kills_a_tasks_of_an_app.yml +26 -10
  39. data/fixtures/vcr/Marathon_Task/_delete_all/kills_all_tasks_of_an_app.yml +10 -2
  40. data/fixtures/vcr/Marathon_Task/_get/gets_tasks_of_an_app.yml +10 -2
  41. data/fixtures/vcr/Marathon_Task/_list/lists_running_tasks.yml +10 -2
  42. data/fixtures/vcr/Marathon_Task/_list/lists_tasks.yml +10 -2
  43. data/lib/marathon/deployment.rb +5 -2
  44. data/lib/marathon/deployment_action.rb +23 -0
  45. data/lib/marathon/deployment_info.rb +17 -1
  46. data/lib/marathon/deployment_step.rb +21 -0
  47. data/lib/marathon/error.rb +1 -1
  48. data/lib/marathon/group.rb +13 -5
  49. data/lib/marathon/task.rb +7 -9
  50. data/lib/marathon/version.rb +1 -1
  51. data/lib/marathon.rb +2 -0
  52. data/spec/marathon/app_spec.rb +5 -7
  53. data/spec/marathon/deployment_action_spec.rb +25 -0
  54. data/spec/marathon/deployment_info_spec.rb +10 -1
  55. data/spec/marathon/deployment_spec.rb +7 -3
  56. data/spec/marathon/deployment_step_spec.rb +32 -0
  57. data/spec/marathon/event_subscriptions_spec.rb +2 -2
  58. data/spec/marathon/group_spec.rb +31 -19
  59. data/spec/marathon/leader_spec.rb +2 -4
  60. data/spec/marathon/queue_spec.rb +1 -2
  61. data/spec/marathon/task_spec.rb +4 -10
  62. metadata +10 -3
  63. data/fixtures/vcr/Marathon_App/_tasks/has_tasks.yml +0 -30
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.8.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,12 +32,12 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"versions":["2015-03-04T16:34:15.691Z"]}'
35
+ string: '{"versions":["2015-03-17T13:05:39.559Z","2015-03-17T13:05:39.490Z","2015-03-17T13:04:37.200Z","2015-03-17T13:04:37.060Z","2015-03-17T13:04:36.997Z","2015-03-17T12:06:04.971Z","2015-03-17T12:06:00.843Z","2015-03-17T12:06:00.788Z","2015-03-17T12:04:49.309Z","2015-03-17T12:04:47.711Z","2015-03-17T12:04:47.484Z","2015-03-17T12:04:33.718Z","2015-03-17T12:04:32.686Z","2015-03-17T12:04:32.630Z","2015-03-17T12:04:30.244Z","2015-03-17T12:03:31.426Z","2015-03-17T12:03:26.347Z","2015-03-17T12:03:26.281Z","2015-03-17T12:02:23.385Z","2015-03-17T12:02:15.239Z","2015-03-17T12:02:15.195Z","2015-03-17T12:00:37.036Z","2015-03-17T12:00:28.288Z","2015-03-17T12:00:27.750Z","2015-03-17T12:00:09.006Z","2015-03-17T12:00:08.822Z","2015-03-17T12:00:08.757Z","2015-03-17T11:59:06.274Z","2015-03-17T11:59:06.059Z","2015-03-17T11:59:05.997Z","2015-03-17T11:57:04.811Z","2015-03-17T11:57:02.136Z","2015-03-17T11:57:01.341Z","2015-03-17T11:56:31.250Z","2015-03-17T11:56:28.537Z","2015-03-17T11:56:28.397Z","2015-03-17T11:52:04.570Z","2015-03-17T11:52:04.421Z","2015-03-17T11:52:04.355Z","2015-03-17T11:50:01.156Z","2015-03-17T11:49:57.243Z","2015-03-17T11:49:57.183Z","2015-03-17T11:42:41.281Z","2015-03-17T10:34:05.973Z","2015-03-17T10:33:19.189Z","2015-03-17T10:32:51.153Z","2015-03-17T10:32:34.010Z","2015-03-17T10:31:44.527Z","2015-03-17T10:19:02.815Z","2015-03-17T10:12:14.793Z"]}'
30
36
  http_version:
31
- recorded_at: Thu, 05 Mar 2015 16:53:32 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:05:49 GMT
32
38
  - request:
33
39
  method: get
34
- uri: http://localhost:8080/v2/apps//ubuntu2/versions/2015-03-04T16:34:15.691Z
40
+ uri: http://localhost:8080/v2/apps//ubuntu2/versions/2015-03-17T13:05:39.559Z
35
41
  body:
36
42
  encoding: US-ASCII
37
43
  string: ''
@@ -41,12 +47,18 @@ http_interactions:
41
47
  Accept:
42
48
  - application/json
43
49
  User-Agent:
44
- - ub0r/Marathon-API 0.8.0
50
+ - ub0r/Marathon-API 1.1.0
45
51
  response:
46
52
  status:
47
53
  code: 200
48
54
  message: OK
49
55
  headers:
56
+ Cache-Control:
57
+ - no-cache, no-store, must-revalidate
58
+ Pragma:
59
+ - no-cache
60
+ Expires:
61
+ - '0'
50
62
  Content-Type:
51
63
  - application/json
52
64
  Transfer-Encoding:
@@ -55,7 +67,7 @@ http_interactions:
55
67
  - Jetty(8.y.z-SNAPSHOT)
56
68
  body:
57
69
  encoding: UTF-8
58
- string: '{"id":"/ubuntu2","cmd":"while sleep 10; do date -u +%T; done","args":null,"user":null,"env":{},"instances":1,"cpus":0.1,"mem":64.0,"disk":0.0,"executor":"","constraints":[],"uris":[],"storeUrls":[],"ports":[10001],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":{"type":"DOCKER","volumes":[],"docker":{"image":"libmesos/ubuntu","network":null,"portMappings":null,"privileged":false,"parameters":[]}},"healthChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1.0,"maximumOverCapacity":1.0},"labels":{},"version":"2015-03-04T16:34:15.691Z"}'
70
+ string: '{"id":"/ubuntu2","cmd":"while sleep 10; do date -u +%T; done","args":null,"user":null,"env":{},"instances":2,"cpus":0.1,"mem":64.0,"disk":0.0,"executor":"","constraints":[["hostname","GROUP_BY"]],"uris":[],"storeUrls":[],"ports":[],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":{"type":"DOCKER","volumes":[],"docker":{"image":"libmesos/ubuntu","network":null,"portMappings":null,"privileged":false,"parameters":[]}},"healthChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1.0,"maximumOverCapacity":1.0},"labels":{},"version":"2015-03-17T13:05:39.559Z"}'
59
71
  http_version:
60
- recorded_at: Thu, 05 Mar 2015 16:53:32 GMT
72
+ recorded_at: Tue, 17 Mar 2015 13:05:49 GMT
61
73
  recorded_with: VCR 2.9.3
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.8.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,7 +32,7 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"versions":["2015-03-04T16:34:15.691Z"]}'
35
+ string: '{"versions":["2015-03-17T13:05:39.559Z","2015-03-17T13:05:39.490Z","2015-03-17T13:04:37.200Z","2015-03-17T13:04:37.060Z","2015-03-17T13:04:36.997Z","2015-03-17T12:06:04.971Z","2015-03-17T12:06:00.843Z","2015-03-17T12:06:00.788Z","2015-03-17T12:04:49.309Z","2015-03-17T12:04:47.711Z","2015-03-17T12:04:47.484Z","2015-03-17T12:04:33.718Z","2015-03-17T12:04:32.686Z","2015-03-17T12:04:32.630Z","2015-03-17T12:04:30.244Z","2015-03-17T12:03:31.426Z","2015-03-17T12:03:26.347Z","2015-03-17T12:03:26.281Z","2015-03-17T12:02:23.385Z","2015-03-17T12:02:15.239Z","2015-03-17T12:02:15.195Z","2015-03-17T12:00:37.036Z","2015-03-17T12:00:28.288Z","2015-03-17T12:00:27.750Z","2015-03-17T12:00:09.006Z","2015-03-17T12:00:08.822Z","2015-03-17T12:00:08.757Z","2015-03-17T11:59:06.274Z","2015-03-17T11:59:06.059Z","2015-03-17T11:59:05.997Z","2015-03-17T11:57:04.811Z","2015-03-17T11:57:02.136Z","2015-03-17T11:57:01.341Z","2015-03-17T11:56:31.250Z","2015-03-17T11:56:28.537Z","2015-03-17T11:56:28.397Z","2015-03-17T11:52:04.570Z","2015-03-17T11:52:04.421Z","2015-03-17T11:52:04.355Z","2015-03-17T11:50:01.156Z","2015-03-17T11:49:57.243Z","2015-03-17T11:49:57.183Z","2015-03-17T11:42:41.281Z","2015-03-17T10:34:05.973Z","2015-03-17T10:33:19.189Z","2015-03-17T10:32:51.153Z","2015-03-17T10:32:34.010Z","2015-03-17T10:31:44.527Z","2015-03-17T10:19:02.815Z","2015-03-17T10:12:14.793Z"]}'
30
36
  http_version:
31
- recorded_at: Thu, 05 Mar 2015 16:50:18 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:05:49 GMT
32
38
  recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://localhost:8080/v2/apps//test-app
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - ub0r/Marathon-API 1.1.0
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
27
+ Content-Type:
28
+ - application/json
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Server:
32
+ - Jetty(8.y.z-SNAPSHOT)
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"version":"2015-03-17T13:06:03.873Z","deploymentId":"8f5983da-4a3f-4d29-a7e9-dd90cd399815"}'
36
+ http_version:
37
+ recorded_at: Tue, 17 Mar 2015 13:06:07 GMT
38
+ recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://localhost:8080/v2/apps//test
5
+ uri: http://localhost:8080/v2/apps//test-app?force=true
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"instances":1}'
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.8.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,12 +32,12 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"version":"2015-03-05T17:31:57.866Z","deploymentId":"c8ae1205-0072-427b-9839-851ec45e8608"}'
35
+ string: '{"version":"2015-03-17T13:06:00.450Z","deploymentId":"82213a8e-87fe-48ba-9b1e-2c2d7f68abda"}'
30
36
  http_version:
31
- recorded_at: Thu, 05 Mar 2015 17:31:57 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:01 GMT
32
38
  - request:
33
39
  method: delete
34
- uri: http://localhost:8080/v2/deployments/c8ae1205-0072-427b-9839-851ec45e8608
40
+ uri: http://localhost:8080/v2/deployments/82213a8e-87fe-48ba-9b1e-2c2d7f68abda
35
41
  body:
36
42
  encoding: US-ASCII
37
43
  string: ''
@@ -41,12 +47,18 @@ http_interactions:
41
47
  Accept:
42
48
  - application/json
43
49
  User-Agent:
44
- - ub0r/Marathon-API 0.8.0
50
+ - ub0r/Marathon-API 1.1.0
45
51
  response:
46
52
  status:
47
53
  code: 200
48
54
  message: OK
49
55
  headers:
56
+ Cache-Control:
57
+ - no-cache, no-store, must-revalidate
58
+ Pragma:
59
+ - no-cache
60
+ Expires:
61
+ - '0'
50
62
  Content-Type:
51
63
  - application/json
52
64
  Transfer-Encoding:
@@ -55,7 +67,7 @@ http_interactions:
55
67
  - Jetty(8.y.z-SNAPSHOT)
56
68
  body:
57
69
  encoding: UTF-8
58
- string: '{"version":"2015-03-05T17:31:57.998Z","deploymentId":"032a79dc-5094-49e9-a287-a3d2d3d47f5d"}'
70
+ string: '{"version":"2015-03-17T13:06:01.878Z","deploymentId":"7c36a5ea-f928-4387-8206-69b111121210"}'
59
71
  http_version:
60
- recorded_at: Thu, 05 Mar 2015 17:31:58 GMT
72
+ recorded_at: Tue, 17 Mar 2015 13:06:03 GMT
61
73
  recorded_with: VCR 2.9.3
@@ -2,22 +2,30 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://localhost:8080/v2/apps//test
5
+ uri: http://localhost:8080/v2/apps//test-app?force=true
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"instances":0}'
8
+ string: '{"instances":0,"cmd":"sleep 60"}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.8.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
- code: 200
19
- message: OK
18
+ code: 201
19
+ message: Created
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
27
+ Location:
28
+ - http://localhost:8080/v2/apps//test-app/test-app
21
29
  Content-Type:
22
30
  - application/json
23
31
  Transfer-Encoding:
@@ -26,12 +34,12 @@ http_interactions:
26
34
  - Jetty(8.y.z-SNAPSHOT)
27
35
  body:
28
36
  encoding: UTF-8
29
- string: '{"version":"2015-03-05T17:28:59.786Z","deploymentId":"05c3689c-6156-451a-901e-c86aef5e2762"}'
37
+ string: '{"version":"2015-03-17T13:05:54.871Z","deploymentId":"ce0b301a-4149-47b3-8a5c-96e976ca58c5"}'
30
38
  http_version:
31
- recorded_at: Thu, 05 Mar 2015 17:28:59 GMT
39
+ recorded_at: Tue, 17 Mar 2015 13:05:57 GMT
32
40
  - request:
33
41
  method: put
34
- uri: http://localhost:8080/v2/apps//test
42
+ uri: http://localhost:8080/v2/apps//test-app?force=true
35
43
  body:
36
44
  encoding: UTF-8
37
45
  string: '{"instances":2}'
@@ -41,12 +49,18 @@ http_interactions:
41
49
  Accept:
42
50
  - application/json
43
51
  User-Agent:
44
- - ub0r/Marathon-API 0.8.0
52
+ - ub0r/Marathon-API 1.1.0
45
53
  response:
46
54
  status:
47
55
  code: 200
48
56
  message: OK
49
57
  headers:
58
+ Cache-Control:
59
+ - no-cache, no-store, must-revalidate
60
+ Pragma:
61
+ - no-cache
62
+ Expires:
63
+ - '0'
50
64
  Content-Type:
51
65
  - application/json
52
66
  Transfer-Encoding:
@@ -55,9 +69,9 @@ http_interactions:
55
69
  - Jetty(8.y.z-SNAPSHOT)
56
70
  body:
57
71
  encoding: UTF-8
58
- string: '{"version":"2015-03-05T17:29:00.939Z","deploymentId":"2e4201a2-96f2-4e72-a1a1-153689b5b583"}'
72
+ string: '{"version":"2015-03-17T13:05:58.587Z","deploymentId":"0893efb1-8fd7-435b-b7f4-5ba195b635d9"}'
59
73
  http_version:
60
- recorded_at: Thu, 05 Mar 2015 17:29:01 GMT
74
+ recorded_at: Tue, 17 Mar 2015 13:05:59 GMT
61
75
  - request:
62
76
  method: get
63
77
  uri: http://localhost:8080/v2/deployments
@@ -70,12 +84,18 @@ http_interactions:
70
84
  Accept:
71
85
  - application/json
72
86
  User-Agent:
73
- - ub0r/Marathon-API 0.8.0
87
+ - ub0r/Marathon-API 1.1.0
74
88
  response:
75
89
  status:
76
90
  code: 200
77
91
  message: OK
78
92
  headers:
93
+ Cache-Control:
94
+ - no-cache, no-store, must-revalidate
95
+ Pragma:
96
+ - no-cache
97
+ Expires:
98
+ - '0'
79
99
  Content-Type:
80
100
  - application/json
81
101
  Transfer-Encoding:
@@ -84,7 +104,7 @@ http_interactions:
84
104
  - Jetty(8.y.z-SNAPSHOT)
85
105
  body:
86
106
  encoding: UTF-8
87
- string: '[{"currentStep":1,"currentActions":[{"action":"ScaleApplication","app":"/test"}],"affectedApps":["/test"],"version":"2015-03-05T17:29:00.939Z","id":"2e4201a2-96f2-4e72-a1a1-153689b5b583","totalSteps":1,"steps":[[{"action":"ScaleApplication","app":"/test"}]]}]'
107
+ string: '[{"currentStep":1,"currentActions":[{"action":"ScaleApplication","app":"/test-app"}],"affectedApps":["/test-app"],"version":"2015-03-17T13:05:58.587Z","id":"0893efb1-8fd7-435b-b7f4-5ba195b635d9","totalSteps":1,"steps":[[{"action":"ScaleApplication","app":"/test-app"}]]}]'
88
108
  http_version:
89
- recorded_at: Thu, 05 Mar 2015 17:29:02 GMT
109
+ recorded_at: Tue, 17 Mar 2015 13:06:00 GMT
90
110
  recorded_with: VCR 2.9.3
@@ -11,11 +11,19 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
+ User-Agent:
15
+ - ub0r/Marathon-API 1.1.0
14
16
  response:
15
17
  status:
16
18
  code: 200
17
19
  message: OK
18
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
19
27
  Content-Type:
20
28
  - application/json
21
29
  Transfer-Encoding:
@@ -24,7 +32,7 @@ http_interactions:
24
32
  - Jetty(8.y.z-SNAPSHOT)
25
33
  body:
26
34
  encoding: UTF-8
27
- string: '{"callbackUrls":["http://localhost/events/foo"]}'
35
+ string: '{"callbackUrls":["http://localhost:8083/marathon/event","http://127.0.0.1:8083/marathon/event","http://localhost/events/foo"]}'
28
36
  http_version:
29
- recorded_at: Tue, 03 Mar 2015 18:31:15 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:07 GMT
30
38
  recorded_with: VCR 2.9.3
@@ -11,11 +11,19 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
+ User-Agent:
15
+ - ub0r/Marathon-API 1.1.0
14
16
  response:
15
17
  status:
16
18
  code: 200
17
19
  message: OK
18
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
19
27
  Content-Type:
20
28
  - application/json
21
29
  Transfer-Encoding:
@@ -24,7 +32,7 @@ http_interactions:
24
32
  - Jetty(8.y.z-SNAPSHOT)
25
33
  body:
26
34
  encoding: UTF-8
27
- string: '{"clientIp":"10.0.2.2","callbackUrl":"http://localhost/events/foo","eventType":"subscribe_event","timestamp":"2015-03-03T18:31:14.688Z"}'
35
+ string: '{"clientIp":"10.0.2.2","callbackUrl":"http://localhost/events/foo","eventType":"subscribe_event","timestamp":"2015-03-17T13:06:07.067Z"}'
28
36
  http_version:
29
- recorded_at: Tue, 03 Mar 2015 18:31:14 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:07 GMT
30
38
  recorded_with: VCR 2.9.3
@@ -11,11 +11,19 @@ http_interactions:
11
11
  - application/json
12
12
  Accept:
13
13
  - application/json
14
+ User-Agent:
15
+ - ub0r/Marathon-API 1.1.0
14
16
  response:
15
17
  status:
16
18
  code: 200
17
19
  message: OK
18
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
19
27
  Content-Type:
20
28
  - application/json
21
29
  Transfer-Encoding:
@@ -24,7 +32,7 @@ http_interactions:
24
32
  - Jetty(8.y.z-SNAPSHOT)
25
33
  body:
26
34
  encoding: UTF-8
27
- string: '{"clientIp":"10.0.2.2","callbackUrl":"http://localhost/events/foo","eventType":"unsubscribe_event","timestamp":"2015-03-03T18:31:15.066Z"}'
35
+ string: '{"clientIp":"10.0.2.2","callbackUrl":"http://localhost/events/foo","eventType":"unsubscribe_event","timestamp":"2015-03-17T13:06:07.744Z"}'
28
36
  http_version:
29
- recorded_at: Tue, 03 Mar 2015 18:31:15 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:07 GMT
30
38
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://localhost:8080/v2/groups//ubuntu2
5
+ uri: http://localhost:8080/v2/groups//test-group?force=true
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"instances":2}'
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.9.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,12 +32,12 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"version":"2015-03-09T10:33:40.511Z","deploymentId":"4186c1d4-80a8-4cf2-a606-cc9e93680c13"}'
35
+ string: '{"version":"2015-03-17T13:06:08.503Z","deploymentId":"7eb64062-acb9-43c5-8f0f-0c8e2837c868"}'
30
36
  http_version:
31
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:08 GMT
32
38
  - request:
33
39
  method: put
34
- uri: http://localhost:8080/v2/groups//ubuntu2?force=true
40
+ uri: http://localhost:8080/v2/groups//test-group?force=true
35
41
  body:
36
42
  encoding: UTF-8
37
43
  string: '{"instances":1}'
@@ -41,12 +47,18 @@ http_interactions:
41
47
  Accept:
42
48
  - application/json
43
49
  User-Agent:
44
- - ub0r/Marathon-API 0.9.0
50
+ - ub0r/Marathon-API 1.1.0
45
51
  response:
46
52
  status:
47
53
  code: 200
48
54
  message: OK
49
55
  headers:
56
+ Cache-Control:
57
+ - no-cache, no-store, must-revalidate
58
+ Pragma:
59
+ - no-cache
60
+ Expires:
61
+ - '0'
50
62
  Content-Type:
51
63
  - application/json
52
64
  Transfer-Encoding:
@@ -55,7 +67,7 @@ http_interactions:
55
67
  - Jetty(8.y.z-SNAPSHOT)
56
68
  body:
57
69
  encoding: UTF-8
58
- string: '{"version":"2015-03-09T10:33:40.730Z","deploymentId":"72ad642f-90ba-4fec-8470-9abec46c47c3"}'
70
+ string: '{"version":"2015-03-17T13:06:08.649Z","deploymentId":"e6232eee-4370-4d50-9215-a5c57ac14304"}'
59
71
  http_version:
60
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
72
+ recorded_at: Tue, 17 Mar 2015 13:06:08 GMT
61
73
  recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:8080/v2/groups//test-group?dryRun=true
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"instances":20}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - ub0r/Marathon-API 1.1.0
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
27
+ Content-Type:
28
+ - application/json
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Server:
32
+ - Jetty(8.y.z-SNAPSHOT)
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"steps":[]}'
36
+ http_version:
37
+ recorded_at: Tue, 17 Mar 2015 13:25:39 GMT
38
+ recorded_with: VCR 2.9.3
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.9.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,7 +32,7 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"version":"2015-03-09T10:33:40.335Z","deploymentId":"c5ad3775-a422-48f0-99ee-e7e7f098a832"}'
35
+ string: '{"version":"2015-03-17T13:06:08.992Z","deploymentId":"dc1bea59-c598-4d50-91db-6d50d675f073"}'
30
36
  http_version:
31
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:09 GMT
32
38
  recorded_with: VCR 2.9.3
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.9.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 404
19
19
  message: Not Found
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -28,5 +34,5 @@ http_interactions:
28
34
  encoding: UTF-8
29
35
  string: '{"message":"Group ''/fooo group'' does not exist"}'
30
36
  http_version:
31
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:09 GMT
32
38
  recorded_with: VCR 2.9.3
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.9.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 404
19
19
  message: Not Found
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -28,5 +34,5 @@ http_interactions:
28
34
  encoding: UTF-8
29
35
  string: '{"message":"Group ''/fooo group'' does not exist"}'
30
36
  http_version:
31
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:08 GMT
32
38
  recorded_with: VCR 2.9.3
@@ -12,12 +12,18 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  User-Agent:
15
- - ub0r/Marathon-API 0.9.0
15
+ - ub0r/Marathon-API 1.1.0
16
16
  response:
17
17
  status:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
+ Cache-Control:
22
+ - no-cache, no-store, must-revalidate
23
+ Pragma:
24
+ - no-cache
25
+ Expires:
26
+ - '0'
21
27
  Content-Type:
22
28
  - application/json
23
29
  Transfer-Encoding:
@@ -26,7 +32,7 @@ http_interactions:
26
32
  - Jetty(8.y.z-SNAPSHOT)
27
33
  body:
28
34
  encoding: UTF-8
29
- string: '{"id":"/test-group","apps":[{"id":"/test-group/app","cmd":"sleep 30","args":null,"user":null,"env":{},"instances":1,"cpus":1.0,"mem":128.0,"disk":0.0,"executor":"","constraints":[],"uris":[],"storeUrls":[],"ports":[10000],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":null,"healthChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1.0,"maximumOverCapacity":0.0},"labels":{},"version":"2015-03-09T10:33:39.889Z"}],"groups":[],"dependencies":[],"version":"2015-03-09T10:33:39.889Z"}'
35
+ string: '{"id":"/test-group","apps":[{"id":"/test-group/app","cmd":"sleep 30","args":null,"user":null,"env":{},"instances":1,"cpus":1.0,"mem":128.0,"disk":0.0,"executor":"","constraints":[],"uris":[],"storeUrls":[],"ports":[10000],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":null,"healthChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":1.0,"maximumOverCapacity":0.0},"labels":{},"version":"2015-03-17T13:06:07.888Z"}],"groups":[],"dependencies":[],"version":"2015-03-17T13:06:07.888Z"}'
30
36
  http_version:
31
- recorded_at: Mon, 09 Mar 2015 10:33:40 GMT
37
+ recorded_at: Tue, 17 Mar 2015 13:06:08 GMT
32
38
  recorded_with: VCR 2.9.3