iron_titan 0.2.17 → 0.3.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 +27 -33
- data/lib/iron_titan/api/groups_api.rb +138 -0
- data/lib/iron_titan/api/jobs_api.rb +225 -189
- data/lib/iron_titan/api_client.rb +1 -1
- data/lib/iron_titan/api_error.rb +1 -1
- data/lib/iron_titan/models/error.rb +1 -1
- data/lib/iron_titan/models/error_body.rb +1 -1
- data/lib/iron_titan/models/group.rb +173 -0
- data/lib/iron_titan/models/group_wrapper.rb +161 -0
- data/lib/iron_titan/models/groups_wrapper.rb +163 -0
- data/lib/iron_titan/models/id_status.rb +2 -2
- data/lib/iron_titan/models/job.rb +26 -15
- data/lib/iron_titan/models/job_wrapper.rb +1 -1
- data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/new_job.rb +3 -3
- data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/reason.rb +2 -2
- data/lib/iron_titan/version.rb +2 -2
- data/lib/iron_titan.rb +5 -6
- data/spec/api/groups_api_spec.rb +66 -0
- data/spec/api/jobs_api_spec.rb +61 -53
- data/spec/models/Error_spec.rb +1 -1
- data/spec/models/Job_spec.rb +12 -2
- data/spec/models/error_body_spec.rb +1 -1
- data/spec/models/group_spec.rb +56 -0
- data/spec/models/group_wrapper_spec.rb +46 -0
- data/spec/models/groups_wrapper_spec.rb +46 -0
- data/spec/models/id_status_spec.rb +1 -1
- data/spec/models/job_wrapper_spec.rb +1 -1
- data/spec/models/jobs_wrapper_spec.rb +1 -1
- data/spec/models/new_job_spec.rb +1 -1
- data/spec/models/new_jobs_wrapper_spec.rb +1 -1
- data/spec/models/reason_spec.rb +1 -1
- metadata +14 -2
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -23,13 +23,13 @@ module IronTitan
|
|
23
23
|
# Number of seconds to wait before queueing the job for consumption for the first time. Must be a positive integer. Jobs with a delay start in state \"delayed\" and transition to \"running\" after delay seconds.
|
24
24
|
attr_accessor :delay
|
25
25
|
|
26
|
-
# Maximum runtime in seconds. If a consumer retrieves the
|
26
|
+
# Maximum runtime in seconds. If a consumer retrieves the\njob, but does not change it's status within timeout seconds, the job\nis considered failed, with reason timeout (Titan may allow a small\ngrace period). The consumer should also kill the job after timeout\nseconds. If a consumer tries to change status after Titan has already\ntimed out the job, the consumer will be ignored.\n
|
27
27
|
attr_accessor :timeout
|
28
28
|
|
29
29
|
# Priority of the job. Higher has more priority. 3 levels from 0-2. Jobs at same priority are processed in FIFO order.
|
30
30
|
attr_accessor :priority
|
31
31
|
|
32
|
-
# Number of automatic retries this job is allowed. A retry will be attempted if a task fails. Max 25
|
32
|
+
# \"Number of automatic retries this job is allowed. A retry will be attempted if a task fails. Max 25. Automatic retries are performed by titan when a task reaches a failed state and has `max_retries` > 0. A retry is performed by queueing a new job with the same image id and payload. The new job's max_retries is one less than the original. The new job's `retry_of` field is set to the original Job ID. Titan will delay the new job for retries_delay seconds before queueing it. Cancelled or successful tasks are never automatically retried.\"\n
|
33
33
|
attr_accessor :max_retries
|
34
34
|
|
35
35
|
# Time in seconds to wait before retrying the job. Must be a non-negative integer.
|
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -13,7 +13,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module IronTitan
|
16
|
-
# Machine usable reason for job being in this state.
|
16
|
+
# Machine usable reason for job being in this state. \nValid values for error status are `timeout | killed | bad_exit`.\nValid values for cancelled status are `client_request`.\nFor everything else, this is undefined.\n
|
17
17
|
class Reason
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
19
|
def self.attribute_map
|
data/lib/iron_titan/version.rb
CHANGED
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -11,5 +11,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module IronTitan
|
14
|
-
VERSION = "0.
|
14
|
+
VERSION = "0.3.0"
|
15
15
|
end
|
data/lib/iron_titan.rb
CHANGED
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -19,10 +19,10 @@ require 'iron_titan/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'iron_titan/models/error'
|
21
21
|
require 'iron_titan/models/error_body'
|
22
|
+
require 'iron_titan/models/group'
|
23
|
+
require 'iron_titan/models/group_wrapper'
|
24
|
+
require 'iron_titan/models/groups_wrapper'
|
22
25
|
require 'iron_titan/models/id_status'
|
23
|
-
require 'iron_titan/models/image'
|
24
|
-
require 'iron_titan/models/image_wrapper'
|
25
|
-
require 'iron_titan/models/images_wrapper'
|
26
26
|
require 'iron_titan/models/job'
|
27
27
|
require 'iron_titan/models/job_wrapper'
|
28
28
|
require 'iron_titan/models/jobs_wrapper'
|
@@ -31,8 +31,7 @@ require 'iron_titan/models/new_jobs_wrapper'
|
|
31
31
|
require 'iron_titan/models/reason'
|
32
32
|
|
33
33
|
# APIs
|
34
|
-
require 'iron_titan/api/
|
35
|
-
require 'iron_titan/api/images_api'
|
34
|
+
require 'iron_titan/api/groups_api'
|
36
35
|
require 'iron_titan/api/jobs_api'
|
37
36
|
|
38
37
|
module IronTitan
|
@@ -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.3.0
|
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::GroupsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'GroupsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = IronTitan::GroupsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of GroupsApi' do
|
30
|
+
it 'should create an instact of GroupsApi' do
|
31
|
+
@instance.should be_a(IronTitan::GroupsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for groups_get
|
36
|
+
# Get all group names.
|
37
|
+
# Get a list of all the groups in the system.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [GroupsWrapper]
|
40
|
+
describe 'groups_get test' do
|
41
|
+
it "should work" do
|
42
|
+
# assertion here
|
43
|
+
# should be_a()
|
44
|
+
# should be_nil
|
45
|
+
# should ==
|
46
|
+
# should_not ==
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for groups_name_get
|
51
|
+
# Get information for a group.
|
52
|
+
# This gives more details about a job group, such as statistics.
|
53
|
+
# @param name name of the group.
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [GroupWrapper]
|
56
|
+
describe 'groups_name_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
|
data/spec/api/jobs_api_spec.rb
CHANGED
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -32,14 +32,32 @@ describe 'JobsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for groups_group_name_jobs_get
|
36
|
+
# Get job list by group name.
|
37
|
+
# This will list jobs for a particular group.
|
38
|
+
# @param group_name Name of group for this set of jobs.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [DateTime] :created_after Will return jobs created after this time. In RFC3339 format.
|
41
|
+
# @option opts [Integer] :n Number of jobs to return.
|
42
|
+
# @return [JobsWrapper]
|
43
|
+
describe 'groups_group_name_jobs_get test' do
|
44
|
+
it "should work" do
|
45
|
+
# assertion here
|
46
|
+
# should be_a()
|
47
|
+
# should be_nil
|
48
|
+
# should ==
|
49
|
+
# should_not ==
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# unit tests for groups_group_name_jobs_id_cancel_post
|
36
54
|
# Cancel a job.
|
37
55
|
# Cancels a job in delayed, queued or running status. The worker may continue to run a running job. reason is set to `client_request`.
|
56
|
+
# @param group_name Name of group for this set of jobs.
|
38
57
|
# @param id Job id
|
39
|
-
# @param details Human-readable detailed message explaining cancellation reason.
|
40
58
|
# @param [Hash] opts the optional parameters
|
41
59
|
# @return [JobWrapper]
|
42
|
-
describe '
|
60
|
+
describe 'groups_group_name_jobs_id_cancel_post test' do
|
43
61
|
it "should work" do
|
44
62
|
# assertion here
|
45
63
|
# should be_a()
|
@@ -49,13 +67,14 @@ describe 'JobsApi' do
|
|
49
67
|
end
|
50
68
|
end
|
51
69
|
|
52
|
-
# unit tests for
|
70
|
+
# unit tests for groups_group_name_jobs_id_delete
|
53
71
|
# Delete the job.
|
54
|
-
# 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
|
72
|
+
# 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.\n
|
73
|
+
# @param group_name Name of group for this set of jobs.
|
55
74
|
# @param id Job id
|
56
75
|
# @param [Hash] opts the optional parameters
|
57
76
|
# @return [nil]
|
58
|
-
describe '
|
77
|
+
describe 'groups_group_name_jobs_id_delete test' do
|
59
78
|
it "should work" do
|
60
79
|
# assertion here
|
61
80
|
# should be_a()
|
@@ -65,16 +84,15 @@ describe 'JobsApi' do
|
|
65
84
|
end
|
66
85
|
end
|
67
86
|
|
68
|
-
# unit tests for
|
87
|
+
# unit tests for groups_group_name_jobs_id_error_post
|
69
88
|
# Mark job as failed.
|
70
89
|
# Job is marked as failed if it was in a valid state. Job's `completed_at` time is initialized.
|
90
|
+
# @param group_name Name of group for this set of jobs.
|
71
91
|
# @param id Job id
|
72
92
|
# @param reason Reason for job failure.
|
73
|
-
# @param details Details of job failure.
|
74
|
-
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
75
93
|
# @param [Hash] opts the optional parameters
|
76
94
|
# @return [JobWrapper]
|
77
|
-
describe '
|
95
|
+
describe 'groups_group_name_jobs_id_error_post test' do
|
78
96
|
it "should work" do
|
79
97
|
# assertion here
|
80
98
|
# should be_a()
|
@@ -84,13 +102,14 @@ describe 'JobsApi' do
|
|
84
102
|
end
|
85
103
|
end
|
86
104
|
|
87
|
-
# unit tests for
|
105
|
+
# unit tests for groups_group_name_jobs_id_get
|
88
106
|
# Gets job by id
|
89
107
|
# Gets a job by id.
|
108
|
+
# @param group_name Name of group for this set of jobs.
|
90
109
|
# @param id Job id
|
91
110
|
# @param [Hash] opts the optional parameters
|
92
111
|
# @return [JobWrapper]
|
93
|
-
describe '
|
112
|
+
describe 'groups_group_name_jobs_id_get test' do
|
94
113
|
it "should work" do
|
95
114
|
# assertion here
|
96
115
|
# should be_a()
|
@@ -100,13 +119,14 @@ describe 'JobsApi' do
|
|
100
119
|
end
|
101
120
|
end
|
102
121
|
|
103
|
-
# unit tests for
|
122
|
+
# unit tests for groups_group_name_jobs_id_log_get
|
104
123
|
# Get the log of a completed job.
|
105
124
|
# Retrieves the log from log storage.
|
125
|
+
# @param group_name Name of group for this set of jobs.
|
106
126
|
# @param id Job id
|
107
127
|
# @param [Hash] opts the optional parameters
|
108
128
|
# @return [String]
|
109
|
-
describe '
|
129
|
+
describe 'groups_group_name_jobs_id_log_get test' do
|
110
130
|
it "should work" do
|
111
131
|
# assertion here
|
112
132
|
# should be_a()
|
@@ -116,14 +136,15 @@ describe 'JobsApi' do
|
|
116
136
|
end
|
117
137
|
end
|
118
138
|
|
119
|
-
# unit tests for
|
120
|
-
#
|
121
|
-
#
|
139
|
+
# unit tests for groups_group_name_jobs_id_log_post
|
140
|
+
# Send in a log for storage.
|
141
|
+
# Logs are sent after a job completes since they may be very large and the runner can process the next job.
|
142
|
+
# @param group_name Name of group for this set of jobs.
|
122
143
|
# @param id Job id
|
123
|
-
# @param
|
144
|
+
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
124
145
|
# @param [Hash] opts the optional parameters
|
125
146
|
# @return [JobWrapper]
|
126
|
-
describe '
|
147
|
+
describe 'groups_group_name_jobs_id_log_post test' do
|
127
148
|
it "should work" do
|
128
149
|
# assertion here
|
129
150
|
# should be_a()
|
@@ -133,13 +154,14 @@ describe 'JobsApi' do
|
|
133
154
|
end
|
134
155
|
end
|
135
156
|
|
136
|
-
# unit tests for
|
157
|
+
# unit tests for groups_group_name_jobs_id_retry_post
|
137
158
|
# Retry a job.
|
138
|
-
# The /retry endpoint can be used to force a retry of jobs
|
159
|
+
# \"The /retry endpoint can be used to force a retry of jobs\nwith status succeeded or cancelled. It can also be used to retry jobs\nthat in the failed state, but whose max_retries field is 0. The retried\njob will continue to have max_retries = 0.\"\n
|
160
|
+
# @param group_name Name of group for this set of jobs.
|
139
161
|
# @param id Job id
|
140
162
|
# @param [Hash] opts the optional parameters
|
141
163
|
# @return [JobWrapper]
|
142
|
-
describe '
|
164
|
+
describe 'groups_group_name_jobs_id_retry_post test' do
|
143
165
|
it "should work" do
|
144
166
|
# assertion here
|
145
167
|
# should be_a()
|
@@ -149,14 +171,14 @@ describe 'JobsApi' do
|
|
149
171
|
end
|
150
172
|
end
|
151
173
|
|
152
|
-
# unit tests for
|
174
|
+
# unit tests for groups_group_name_jobs_id_success_post
|
153
175
|
# Mark job as succeeded.
|
154
176
|
# Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
|
177
|
+
# @param group_name Name of group for this set of jobs.
|
155
178
|
# @param id Job id
|
156
|
-
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
157
179
|
# @param [Hash] opts the optional parameters
|
158
180
|
# @return [JobWrapper]
|
159
|
-
describe '
|
181
|
+
describe 'groups_group_name_jobs_id_success_post test' do
|
160
182
|
it "should work" do
|
161
183
|
# assertion here
|
162
184
|
# should be_a()
|
@@ -166,13 +188,14 @@ describe 'JobsApi' do
|
|
166
188
|
end
|
167
189
|
end
|
168
190
|
|
169
|
-
# unit tests for
|
191
|
+
# unit tests for groups_group_name_jobs_id_touch_post
|
170
192
|
# Extend job timeout.
|
171
|
-
# 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.\nIf 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.\nTouch is only valid while the job is in a running state. If touch fails, the runner may stop running the job
|
193
|
+
# 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.\nIf 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.\nTouch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.\n
|
194
|
+
# @param group_name Name of group for this set of jobs.
|
172
195
|
# @param id Job id
|
173
196
|
# @param [Hash] opts the optional parameters
|
174
197
|
# @return [nil]
|
175
|
-
describe '
|
198
|
+
describe 'groups_group_name_jobs_id_touch_post test' do
|
176
199
|
it "should work" do
|
177
200
|
# assertion here
|
178
201
|
# should be_a()
|
@@ -182,13 +205,14 @@ describe 'JobsApi' do
|
|
182
205
|
end
|
183
206
|
end
|
184
207
|
|
185
|
-
# unit tests for
|
186
|
-
#
|
187
|
-
#
|
208
|
+
# unit tests for groups_group_name_jobs_post
|
209
|
+
# Enqueue Job
|
210
|
+
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.\n
|
211
|
+
# @param group_name name of the group.
|
212
|
+
# @param body Array of jobs to post.
|
188
213
|
# @param [Hash] opts the optional parameters
|
189
|
-
# @option opts [Integer] :n Number of jobs to return.
|
190
214
|
# @return [JobsWrapper]
|
191
|
-
describe '
|
215
|
+
describe 'groups_group_name_jobs_post test' do
|
192
216
|
it "should work" do
|
193
217
|
# assertion here
|
194
218
|
# should be_a()
|
@@ -199,10 +223,10 @@ describe 'JobsApi' do
|
|
199
223
|
end
|
200
224
|
|
201
225
|
# unit tests for jobs_get
|
202
|
-
#
|
203
|
-
#
|
226
|
+
# Get next job.
|
227
|
+
# Gets the next job in the queue, ready for processing. Titan may return <=n jobs. Consumers should start processing jobs in order. Each returned job is set to `status` \"running\" and `started_at` is set to the current time. No other consumer can retrieve this job.
|
204
228
|
# @param [Hash] opts the optional parameters
|
205
|
-
# @option opts [Integer] :n Number of jobs to return.
|
229
|
+
# @option opts [Integer] :n Number of jobs to return.
|
206
230
|
# @return [JobsWrapper]
|
207
231
|
describe 'jobs_get test' do
|
208
232
|
it "should work" do
|
@@ -214,20 +238,4 @@ describe 'JobsApi' do
|
|
214
238
|
end
|
215
239
|
end
|
216
240
|
|
217
|
-
# unit tests for jobs_post
|
218
|
-
# Enqueue Job
|
219
|
-
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.
|
220
|
-
# @param body Array of jobs to post.
|
221
|
-
# @param [Hash] opts the optional parameters
|
222
|
-
# @return [JobsWrapper]
|
223
|
-
describe 'jobs_post test' do
|
224
|
-
it "should work" do
|
225
|
-
# assertion here
|
226
|
-
# should be_a()
|
227
|
-
# should be_nil
|
228
|
-
# should ==
|
229
|
-
# should_not ==
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
241
|
end
|
data/spec/models/Error_spec.rb
CHANGED
data/spec/models/Job_spec.rb
CHANGED
@@ -3,7 +3,7 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.3.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -122,7 +122,7 @@ describe 'Job' do
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
describe 'test attribute "
|
125
|
+
describe 'test attribute "group_name"' do
|
126
126
|
it 'should work' do
|
127
127
|
# assertion here
|
128
128
|
# should be_a()
|
@@ -182,5 +182,15 @@ describe 'Job' do
|
|
182
182
|
end
|
183
183
|
end
|
184
184
|
|
185
|
+
describe 'test attribute "retry_id"' do
|
186
|
+
it 'should work' do
|
187
|
+
# assertion here
|
188
|
+
# should be_a()
|
189
|
+
# should be_nil
|
190
|
+
# should ==
|
191
|
+
# should_not ==
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
185
195
|
end
|
186
196
|
|
@@ -0,0 +1,56 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.3.0
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IronTitan::Group
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Group' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::Group.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Group' do
|
31
|
+
it 'should create an instact of Group' do
|
32
|
+
@instance.should be_a(IronTitan::Group)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "created_at"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here
|
48
|
+
# should be_a()
|
49
|
+
# should be_nil
|
50
|
+
# should ==
|
51
|
+
# should_not ==
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.3.0
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IronTitan::GroupWrapper
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'GroupWrapper' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::GroupWrapper.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of GroupWrapper' do
|
31
|
+
it 'should create an instact of GroupWrapper' do
|
32
|
+
@instance.should be_a(IronTitan::GroupWrapper)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "group"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.3.0
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IronTitan::GroupsWrapper
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'GroupsWrapper' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::GroupsWrapper.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of GroupsWrapper' do
|
31
|
+
it 'should create an instact of GroupsWrapper' do
|
32
|
+
@instance.should be_a(IronTitan::GroupsWrapper)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "groups"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|