worker_ruby 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +118 -0
  4. data/VERSION +1 -0
  5. data/VERSION.txt +1 -0
  6. data/docs/Complete.md +10 -0
  7. data/docs/CoreApi.md +200 -0
  8. data/docs/Error.md +8 -0
  9. data/docs/ErrorBody.md +9 -0
  10. data/docs/Group.md +12 -0
  11. data/docs/GroupWrapper.md +8 -0
  12. data/docs/GroupsApi.md +197 -0
  13. data/docs/GroupsWrapper.md +8 -0
  14. data/docs/IdStatus.md +9 -0
  15. data/docs/Image.md +10 -0
  16. data/docs/ImageWrapper.md +8 -0
  17. data/docs/ImagesApi.md +98 -0
  18. data/docs/ImagesWrapper.md +8 -0
  19. data/docs/Job.md +25 -0
  20. data/docs/JobWrapper.md +8 -0
  21. data/docs/JobsApi.md +684 -0
  22. data/docs/JobsWrapper.md +10 -0
  23. data/docs/Log.md +8 -0
  24. data/docs/NewJob.md +14 -0
  25. data/docs/NewJobWithImage.md +15 -0
  26. data/docs/NewJobsWrapper.md +8 -0
  27. data/docs/NewTask.md +14 -0
  28. data/docs/NewTasksWrapper.md +8 -0
  29. data/docs/Reason.md +7 -0
  30. data/docs/RunnerApi.md +170 -0
  31. data/docs/Start.md +8 -0
  32. data/docs/Task.md +25 -0
  33. data/docs/TaskWrapper.md +8 -0
  34. data/docs/TasksApi.md +684 -0
  35. data/docs/TasksWrapper.md +10 -0
  36. data/git_push.sh +67 -0
  37. data/iron_ruby.gemspec +55 -0
  38. data/iron_titan.gemspec +32 -0
  39. data/lib/iron_ruby.rb +66 -0
  40. data/lib/iron_ruby/api/groups_api.rb +262 -0
  41. data/lib/iron_ruby/api/runner_api.rb +229 -0
  42. data/lib/iron_ruby/api/tasks_api.rb +842 -0
  43. data/lib/iron_ruby/api_client.rb +378 -0
  44. data/lib/iron_ruby/api_error.rb +47 -0
  45. data/lib/iron_ruby/configuration.rb +207 -0
  46. data/lib/iron_ruby/models/complete.rb +220 -0
  47. data/lib/iron_ruby/models/error.rb +199 -0
  48. data/lib/iron_ruby/models/error_body.rb +208 -0
  49. data/lib/iron_ruby/models/group.rb +242 -0
  50. data/lib/iron_ruby/models/group_wrapper.rb +200 -0
  51. data/lib/iron_ruby/models/groups_wrapper.rb +202 -0
  52. data/lib/iron_ruby/models/id_status.rb +243 -0
  53. data/lib/iron_ruby/models/new_task.rb +270 -0
  54. data/lib/iron_ruby/models/new_tasks_wrapper.rb +202 -0
  55. data/lib/iron_ruby/models/start.rb +200 -0
  56. data/lib/iron_ruby/models/task.rb +427 -0
  57. data/lib/iron_ruby/models/task_wrapper.rb +200 -0
  58. data/lib/iron_ruby/models/tasks_wrapper.rb +221 -0
  59. data/lib/iron_ruby/version.rb +26 -0
  60. data/lib/iron_titan.rb +66 -0
  61. data/lib/iron_titan/api/core_api.rb +260 -0
  62. data/lib/iron_titan/api/groups_api.rb +262 -0
  63. data/lib/iron_titan/api/images_api.rb +138 -0
  64. data/lib/iron_titan/api/jobs_api.rb +842 -0
  65. data/lib/iron_titan/api/runner_api.rb +229 -0
  66. data/lib/iron_titan/api_client.rb +372 -0
  67. data/lib/iron_titan/api_error.rb +47 -0
  68. data/lib/iron_titan/configuration.rb +186 -0
  69. data/lib/iron_titan/models/complete.rb +220 -0
  70. data/lib/iron_titan/models/error.rb +199 -0
  71. data/lib/iron_titan/models/error_body.rb +208 -0
  72. data/lib/iron_titan/models/group.rb +242 -0
  73. data/lib/iron_titan/models/group_wrapper.rb +200 -0
  74. data/lib/iron_titan/models/groups_wrapper.rb +202 -0
  75. data/lib/iron_titan/models/id_status.rb +243 -0
  76. data/lib/iron_titan/models/image.rb +184 -0
  77. data/lib/iron_titan/models/image_wrapper.rb +161 -0
  78. data/lib/iron_titan/models/images_wrapper.rb +163 -0
  79. data/lib/iron_titan/models/job.rb +427 -0
  80. data/lib/iron_titan/models/job_array.rb +160 -0
  81. data/lib/iron_titan/models/job_wrapper.rb +200 -0
  82. data/lib/iron_titan/models/jobs_wrapper.rb +221 -0
  83. data/lib/iron_titan/models/log.rb +161 -0
  84. data/lib/iron_titan/models/new_job.rb +270 -0
  85. data/lib/iron_titan/models/new_job_array.rb +160 -0
  86. data/lib/iron_titan/models/new_job_with_image.rb +249 -0
  87. data/lib/iron_titan/models/new_jobs_wrapper.rb +202 -0
  88. data/lib/iron_titan/models/reason.rb +164 -0
  89. data/lib/iron_titan/models/start.rb +200 -0
  90. data/lib/iron_titan/version.rb +26 -0
  91. data/lib/worker_ruby.rb +66 -0
  92. data/lib/worker_ruby/api/groups_api.rb +262 -0
  93. data/lib/worker_ruby/api/runner_api.rb +229 -0
  94. data/lib/worker_ruby/api/tasks_api.rb +842 -0
  95. data/lib/worker_ruby/api_client.rb +378 -0
  96. data/lib/worker_ruby/api_error.rb +47 -0
  97. data/lib/worker_ruby/configuration.rb +207 -0
  98. data/lib/worker_ruby/models/complete.rb +220 -0
  99. data/lib/worker_ruby/models/error.rb +199 -0
  100. data/lib/worker_ruby/models/error_body.rb +208 -0
  101. data/lib/worker_ruby/models/group.rb +242 -0
  102. data/lib/worker_ruby/models/group_wrapper.rb +200 -0
  103. data/lib/worker_ruby/models/groups_wrapper.rb +202 -0
  104. data/lib/worker_ruby/models/id_status.rb +243 -0
  105. data/lib/worker_ruby/models/new_task.rb +270 -0
  106. data/lib/worker_ruby/models/new_tasks_wrapper.rb +202 -0
  107. data/lib/worker_ruby/models/start.rb +200 -0
  108. data/lib/worker_ruby/models/task.rb +427 -0
  109. data/lib/worker_ruby/models/task_wrapper.rb +200 -0
  110. data/lib/worker_ruby/models/tasks_wrapper.rb +221 -0
  111. data/lib/worker_ruby/version.rb +26 -0
  112. data/spec/api/CoreApi_spec.rb +99 -0
  113. data/spec/api/JobsApi_spec.rb +131 -0
  114. data/spec/api/core_api_spec.rb +99 -0
  115. data/spec/api/groups_api_spec.rb +94 -0
  116. data/spec/api/images_api_spec.rb +66 -0
  117. data/spec/api/jobs_api_spec.rb +220 -0
  118. data/spec/api/runner_api_spec.rb +88 -0
  119. data/spec/api/tasks_api_spec.rb +220 -0
  120. data/spec/api_client_spec.rb +237 -0
  121. data/spec/configuration_spec.rb +53 -0
  122. data/spec/models/ErrorBody_spec.rb +56 -0
  123. data/spec/models/JobArray_spec.rb +46 -0
  124. data/spec/models/JobWrapper_spec.rb +46 -0
  125. data/spec/models/NewJobArray_spec.rb +46 -0
  126. data/spec/models/NewJob_spec.rb +96 -0
  127. data/spec/models/complete_spec.rb +65 -0
  128. data/spec/models/error_body_spec.rb +59 -0
  129. data/spec/models/error_spec.rb +53 -0
  130. data/spec/models/group_spec.rb +77 -0
  131. data/spec/models/group_wrapper_spec.rb +53 -0
  132. data/spec/models/groups_wrapper_spec.rb +53 -0
  133. data/spec/models/id_status_spec.rb +63 -0
  134. data/spec/models/image_spec.rb +66 -0
  135. data/spec/models/image_wrapper_spec.rb +46 -0
  136. data/spec/models/images_wrapper_spec.rb +46 -0
  137. data/spec/models/job_array_spec.rb +46 -0
  138. data/spec/models/job_spec.rb +161 -0
  139. data/spec/models/job_wrapper_spec.rb +53 -0
  140. data/spec/models/jobs_wrapper_spec.rb +65 -0
  141. data/spec/models/log_spec.rb +46 -0
  142. data/spec/models/new_job_array_spec.rb +46 -0
  143. data/spec/models/new_job_spec.rb +89 -0
  144. data/spec/models/new_job_with_image_spec.rb +116 -0
  145. data/spec/models/new_jobs_wrapper_spec.rb +53 -0
  146. data/spec/models/new_task_spec.rb +89 -0
  147. data/spec/models/new_tasks_wrapper_spec.rb +53 -0
  148. data/spec/models/reason_spec.rb +36 -0
  149. data/spec/models/start_spec.rb +53 -0
  150. data/spec/models/task_spec.rb +163 -0
  151. data/spec/models/task_wrapper_spec.rb +53 -0
  152. data/spec/models/tasks_wrapper_spec.rb +65 -0
  153. data/spec/spec_helper.rb +122 -0
  154. data/worker_ruby-0.5.5.gem +0 -0
  155. data/worker_ruby.gemspec +55 -0
  156. metadata +420 -0
@@ -0,0 +1,131 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IronTitan::JobsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'JobsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = IronTitan::JobsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of JobsApi' do
30
+ it 'should create an instact of JobsApi' do
31
+ @instance.should be_a(IronTitan::JobsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for job_id_get
36
+ # Gets job by id
37
+ # Gets a job by id.
38
+ # @param id Job id
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [JobWrapper]
41
+ describe 'job_id_get test' do
42
+ it "should work" do
43
+ # assertion here
44
+ # should be_a()
45
+ # should be_nil
46
+ # should ==
47
+ # should_not ==
48
+ end
49
+ end
50
+
51
+ # unit tests for job_id_patch
52
+ # Update a job
53
+ # Typically used to update status on error/completion. TODO: only allow 'status' field.
54
+ # @param id Job id
55
+ # @param body Job data to post
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [JobWrapper]
58
+ describe 'job_id_patch test' do
59
+ it "should work" do
60
+ # assertion here
61
+ # should be_a()
62
+ # should be_nil
63
+ # should ==
64
+ # should_not ==
65
+ end
66
+ end
67
+
68
+ # unit tests for job_id_cancel_post
69
+ # Cancel a job.
70
+ # This will prevent a job from running. TODO: should we attempt to kill a running job?
71
+ # @param id Job id
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [JobWrapper]
74
+ describe 'job_id_cancel_post test' do
75
+ it "should work" do
76
+ # assertion here
77
+ # should be_a()
78
+ # should be_nil
79
+ # should ==
80
+ # should_not ==
81
+ end
82
+ end
83
+
84
+ # unit tests for job_id_retry_post
85
+ # Retry a job.
86
+ # If a job fails, you can retry the job with the original payload.
87
+ # @param id Job id
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [JobWrapper]
90
+ describe 'job_id_retry_post test' do
91
+ it "should work" do
92
+ # assertion here
93
+ # should be_a()
94
+ # should be_nil
95
+ # should ==
96
+ # should_not ==
97
+ end
98
+ end
99
+
100
+ # unit tests for jobs_get
101
+ # Get next job.
102
+ # Gets the next job in the queue, ready for processing.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<JobArray>]
105
+ describe 'jobs_get test' do
106
+ it "should work" do
107
+ # assertion here
108
+ # should be_a()
109
+ # should be_nil
110
+ # should ==
111
+ # should_not ==
112
+ end
113
+ end
114
+
115
+ # unit tests for jobs_post
116
+ # Enqueue Job
117
+ # Enqueues a job.
118
+ # @param body Array of jobs to post.
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [JobArray]
121
+ describe 'jobs_post test' do
122
+ it "should work" do
123
+ # assertion here
124
+ # should be_a()
125
+ # should be_nil
126
+ # should ==
127
+ # should_not ==
128
+ end
129
+ end
130
+
131
+ end
@@ -0,0 +1,99 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.2.17
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IronTitan::CoreApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CoreApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = IronTitan::CoreApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CoreApi' do
30
+ it 'should create an instact of CoreApi' do
31
+ @instance.should be_a(IronTitan::CoreApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for job_id_delete
36
+ # Delete the job.
37
+ # Delete only succeeds if job status is one of `succeeded\n| failed | cancelled`. Cancel a job if it is another state and needs to\nbe deleted. All information about the job, including the log, is\nirretrievably lost when this is invoked.
38
+ # @param id Job id
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'job_id_delete test' do
42
+ it "should work" do
43
+ # assertion here
44
+ # should be_a()
45
+ # should be_nil
46
+ # should ==
47
+ # should_not ==
48
+ end
49
+ end
50
+
51
+ # unit tests for job_id_get
52
+ # Gets job by id
53
+ # Gets a job by id.
54
+ # @param id Job id
55
+ # @param [Hash] opts the optional parameters
56
+ # @return [JobWrapper]
57
+ describe 'job_id_get test' do
58
+ it "should work" do
59
+ # assertion here
60
+ # should be_a()
61
+ # should be_nil
62
+ # should ==
63
+ # should_not ==
64
+ end
65
+ end
66
+
67
+ # unit tests for jobs_consume_get
68
+ # Get next job.
69
+ # Gets the next job in the queue, ready for processing. Titan may return &lt;=n jobs. Consumers should start processing jobs in order. Each returned job is set to `status` \&quot;running\&quot; and `started_at` is set to the current time. No other consumer can retrieve this job.
70
+ # @param [Hash] opts the optional parameters
71
+ # @option opts [Integer] :n Number of jobs to return.
72
+ # @return [JobsWrapper]
73
+ describe 'jobs_consume_get test' do
74
+ it "should work" do
75
+ # assertion here
76
+ # should be_a()
77
+ # should be_nil
78
+ # should ==
79
+ # should_not ==
80
+ end
81
+ end
82
+
83
+ # unit tests for jobs_post
84
+ # Enqueue Job
85
+ # Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.
86
+ # @param body Array of jobs to post.
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [JobsWrapper]
89
+ describe 'jobs_post test' do
90
+ it "should work" do
91
+ # assertion here
92
+ # should be_a()
93
+ # should be_nil
94
+ # should ==
95
+ # should_not ==
96
+ end
97
+ end
98
+
99
+ end
@@ -0,0 +1,94 @@
1
+ =begin
2
+ #IronWorker CE API
3
+
4
+ #The ultimate, language agnostic, container based task processing framework.
5
+
6
+ OpenAPI spec version: 0.5.7
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+
27
+ # Unit tests for IronWorker::GroupsApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'GroupsApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = IronWorker::GroupsApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of GroupsApi' do
41
+ it 'should create an instact of GroupsApi' do
42
+ expect(@instance).to be_instance_of(IronWorker::GroupsApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for groups_get
47
+ # Get all group names.
48
+ # Get a list of all the groups in the system.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [GroupsWrapper]
51
+ describe 'groups_get test' do
52
+ it "should work" do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for groups_name_get
58
+ # Get information for a group.
59
+ # This gives more details about a task group, such as statistics.
60
+ # @param name name of the group.
61
+ # @param [Hash] opts the optional parameters
62
+ # @return [GroupWrapper]
63
+ describe 'groups_name_get test' do
64
+ it "should work" do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ # unit tests for groups_name_put
70
+ # Create/update a task group.
71
+ # You can set group level settings here.
72
+ # @param name name of the group.
73
+ # @param body Group to post.
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [GroupWrapper]
76
+ describe 'groups_name_put test' do
77
+ it "should work" do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ # unit tests for groups_post
83
+ # Post new group
84
+ # Insert a new task group
85
+ # @param body Group to post.
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [GroupWrapper]
88
+ describe 'groups_post test' do
89
+ it "should work" do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ end
@@ -0,0 +1,66 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.2.17
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IronTitan::ImagesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ImagesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = IronTitan::ImagesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ImagesApi' do
30
+ it 'should create an instact of ImagesApi' do
31
+ @instance.should be_a(IronTitan::ImagesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for image_id_get
36
+ # Get information for image id.
37
+ # This gives more details about on image, such as the image name and other statistics.
38
+ # @param id ID of the image.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [ImageWrapper]
41
+ describe 'image_id_get test' do
42
+ it "should work" do
43
+ # assertion here
44
+ # should be_a()
45
+ # should be_nil
46
+ # should ==
47
+ # should_not ==
48
+ end
49
+ end
50
+
51
+ # unit tests for images_get
52
+ # Get all image names.
53
+ # TODO: Using images for lack of a better term. See https://github.com/iron-io/titan/issues/43 for discussion.
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [ImagesWrapper]
56
+ describe 'images_get test' do
57
+ it "should work" do
58
+ # assertion here
59
+ # should be_a()
60
+ # should be_nil
61
+ # should ==
62
+ # should_not ==
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,220 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.4.9
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+
27
+ # Unit tests for IronTitan::JobsApi
28
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
29
+ # Please update as you see appropriate
30
+ describe 'JobsApi' do
31
+ before do
32
+ # run before each test
33
+ @instance = IronTitan::JobsApi.new
34
+ end
35
+
36
+ after do
37
+ # run after each test
38
+ end
39
+
40
+ describe 'test an instance of JobsApi' do
41
+ it 'should create an instact of JobsApi' do
42
+ expect(@instance).to be_instance_of(IronTitan::JobsApi)
43
+ end
44
+ end
45
+
46
+ # unit tests for groups_name_jobs_get
47
+ # Get job list by group name.
48
+ # This will list jobs for a particular group.
49
+ # @param name Name of group for this set of jobs.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [DateTime] :created_after Will return jobs created after this time. In RFC3339 format.
52
+ # @option opts [Integer] :n Number of jobs to return per page. Default is 50. Max is 1000.
53
+ # @option opts [String] :cursor Pass this in from a previous query to paginate results.
54
+ # @return [JobsWrapper]
55
+ describe 'groups_name_jobs_get test' do
56
+ it "should work" do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for groups_name_jobs_id_cancel_post
62
+ # Cancel a job.
63
+ # Cancels a job in delayed, queued or running status. The worker may continue to run a running job. reason is set to &#x60;client_request&#x60;. The job&#39;s completed_at field is set to the current time on the jobserver.
64
+ # @param name Name of group for this set of jobs.
65
+ # @param id Job id
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [JobWrapper]
68
+ describe 'groups_name_jobs_id_cancel_post test' do
69
+ it "should work" do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ # unit tests for groups_name_jobs_id_delete
75
+ # Delete the job.
76
+ # Delete only succeeds if job status is one of &#x60;succeeded | failed | cancelled&#x60;. Cancel a job if it is another state and needs to be deleted. All information about the job, including the log, is irretrievably lost when this is invoked.
77
+ # @param name Name of group for this set of jobs.
78
+ # @param id Job id
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [nil]
81
+ describe 'groups_name_jobs_id_delete test' do
82
+ it "should work" do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for groups_name_jobs_id_error_post
88
+ # Mark job as failed.
89
+ # Job is marked as failed if it was in a valid state. Job&#39;s &#x60;finished_at&#x60; time is initialized.
90
+ # @param name Name of group for this set of jobs.
91
+ # @param id Job id
92
+ # @param body
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [JobWrapper]
95
+ describe 'groups_name_jobs_id_error_post test' do
96
+ it "should work" do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ # unit tests for groups_name_jobs_id_get
102
+ # Gets job by id
103
+ # Gets a job by id.
104
+ # @param name Name of group for this set of jobs.
105
+ # @param id Job id
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [JobWrapper]
108
+ describe 'groups_name_jobs_id_get test' do
109
+ it "should work" do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ # unit tests for groups_name_jobs_id_log_get
115
+ # Get the log of a completed job.
116
+ # Retrieves the log from log storage.
117
+ # @param name Name of group for this set of jobs.
118
+ # @param id Job id
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [String]
121
+ describe 'groups_name_jobs_id_log_get test' do
122
+ it "should work" do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
127
+ # unit tests for groups_name_jobs_id_log_post
128
+ # Send in a log for storage.
129
+ # Logs are sent after a job completes since they may be very large and the runner can process the next job.
130
+ # @param name Name of group for this set of jobs.
131
+ # @param id Job id
132
+ # @param log Output log for the job. Content-Type must be \&quot;text/plain; charset&#x3D;utf-8\&quot;.
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [JobWrapper]
135
+ describe 'groups_name_jobs_id_log_post test' do
136
+ it "should work" do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ # unit tests for groups_name_jobs_id_retry_post
142
+ # Retry a job.
143
+ # \&quot;The /retry endpoint can be used to force a retry of jobs with status succeeded or cancelled. It can also be used to retry jobs that in the failed state, but whose max_retries field is 0. The retried job will continue to have max_retries &#x3D; 0.\&quot;
144
+ # @param name Name of group for this set of jobs.
145
+ # @param id Job id
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [JobWrapper]
148
+ describe 'groups_name_jobs_id_retry_post test' do
149
+ it "should work" do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
154
+ # unit tests for groups_name_jobs_id_start_post
155
+ # Mark job as started, ie: status &#x3D; &#39;running&#39;
156
+ # Job status is changed to &#39;running&#39; if it was in a valid state before. Job&#39;s &#x60;started_at&#x60; time is initialized.
157
+ # @param name Name of group for this set of jobs.
158
+ # @param id Job id
159
+ # @param body
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [JobWrapper]
162
+ describe 'groups_name_jobs_id_start_post test' do
163
+ it "should work" do
164
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
165
+ end
166
+ end
167
+
168
+ # unit tests for groups_name_jobs_id_success_post
169
+ # Mark job as succeeded.
170
+ # Job status is changed to succeeded if it was in a valid state before. Job&#39;s &#x60;completed_at&#x60; time is initialized.
171
+ # @param name Name of group for this set of jobs.
172
+ # @param id Job id
173
+ # @param body
174
+ # @param [Hash] opts the optional parameters
175
+ # @return [JobWrapper]
176
+ describe 'groups_name_jobs_id_success_post test' do
177
+ it "should work" do
178
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
179
+ end
180
+ end
181
+
182
+ # unit tests for groups_name_jobs_id_touch_post
183
+ # Extend job timeout.
184
+ # Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image. If the timeout is small, the job may never get to run, or run but not be accepted by Titan. Consumers can touch the job before it times out. Titan will reset the timeout, giving the consumer another timeout seconds to run the job. Touch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.
185
+ # @param name Name of group for this set of jobs.
186
+ # @param id Job id
187
+ # @param [Hash] opts the optional parameters
188
+ # @return [nil]
189
+ describe 'groups_name_jobs_id_touch_post test' do
190
+ it "should work" do
191
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
+ end
193
+ end
194
+
195
+ # unit tests for groups_name_jobs_post
196
+ # Enqueue Job
197
+ # Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.
198
+ # @param name name of the group.
199
+ # @param body Array of jobs to post.
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [JobsWrapper]
202
+ describe 'groups_name_jobs_post test' do
203
+ it "should work" do
204
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
205
+ end
206
+ end
207
+
208
+ # unit tests for jobs_get
209
+ # Get next job.
210
+ # Gets the next job in the queue, ready for processing. Titan may return &lt;&#x3D;n jobs. Consumers should start processing jobs in order. Each returned job is set to &#x60;status&#x60; \&quot;running\&quot; and &#x60;started_at&#x60; is set to the current time. No other consumer can retrieve this job.
211
+ # @param [Hash] opts the optional parameters
212
+ # @option opts [Integer] :n Number of jobs to return.
213
+ # @return [JobsWrapper]
214
+ describe 'jobs_get test' do
215
+ it "should work" do
216
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
217
+ end
218
+ end
219
+
220
+ end