iron_titan 0.3.10 → 0.4.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.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +6 -5
- data/lib/iron_titan/api/groups_api.rb +34 -31
- data/lib/iron_titan/api/jobs_api.rb +140 -182
- data/lib/iron_titan/api/runner_api.rb +43 -47
- data/lib/iron_titan/api_client.rb +48 -8
- data/lib/iron_titan/api_error.rb +12 -1
- data/lib/iron_titan/configuration.rb +23 -0
- data/lib/iron_titan/models/complete.rb +63 -27
- data/lib/iron_titan/models/error.rb +59 -21
- data/lib/iron_titan/models/error_body.rb +61 -24
- data/lib/iron_titan/models/group.rb +112 -28
- data/lib/iron_titan/models/group_wrapper.rb +60 -21
- data/lib/iron_titan/models/groups_wrapper.rb +60 -21
- data/lib/iron_titan/models/id_status.rb +89 -28
- data/lib/iron_titan/models/job.rb +168 -90
- data/lib/iron_titan/models/job_wrapper.rb +60 -21
- data/lib/iron_titan/models/jobs_wrapper.rb +62 -24
- data/lib/iron_titan/models/new_job.rb +91 -42
- data/lib/iron_titan/models/new_jobs_wrapper.rb +60 -21
- data/lib/iron_titan/models/start.rb +59 -21
- data/lib/iron_titan/version.rb +13 -2
- data/lib/iron_titan.rb +12 -1
- data/spec/api/groups_api_spec.rb +16 -17
- data/spec/api/jobs_api_spec.rb +37 -78
- data/spec/api/runner_api_spec.rb +20 -21
- data/spec/api_client_spec.rb +296 -0
- data/spec/configuration_spec.rb +48 -0
- data/spec/models/complete_spec.rb +16 -17
- data/spec/models/error_body_spec.rb +15 -12
- data/spec/models/error_spec.rb +14 -7
- data/spec/models/group_spec.rb +33 -12
- data/spec/models/group_wrapper_spec.rb +14 -7
- data/spec/models/groups_wrapper_spec.rb +14 -7
- data/spec/models/id_status_spec.rb +18 -12
- data/spec/models/job_spec.rb +43 -88
- data/spec/models/job_wrapper_spec.rb +14 -7
- data/spec/models/jobs_wrapper_spec.rb +15 -12
- data/spec/models/new_job_spec.rb +20 -37
- data/spec/models/new_jobs_wrapper_spec.rb +14 -7
- data/spec/models/start_spec.rb +14 -7
- data/spec/spec_helper.rb +122 -0
- metadata +9 -2
@@ -0,0 +1,296 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.4.0
|
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
|
+
|
26
|
+
describe IronTitan::ApiClient do
|
27
|
+
context 'initialization' do
|
28
|
+
context 'URL stuff' do
|
29
|
+
context 'host' do
|
30
|
+
it 'removes http from host' do
|
31
|
+
IronTitan.configure { |c| c.host = 'http://example.com' }
|
32
|
+
expect(IronTitan::Configuration.default.host).to eq('example.com')
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'removes https from host' do
|
36
|
+
IronTitan.configure { |c| c.host = 'https://wookiee.com' }
|
37
|
+
expect(IronTitan::ApiClient.default.config.host).to eq('wookiee.com')
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'removes trailing path from host' do
|
41
|
+
IronTitan.configure { |c| c.host = 'hobo.com/v4' }
|
42
|
+
expect(IronTitan::Configuration.default.host).to eq('hobo.com')
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
context 'base_path' do
|
47
|
+
it "prepends a slash to base_path" do
|
48
|
+
IronTitan.configure { |c| c.base_path = 'v4/dog' }
|
49
|
+
expect(IronTitan::Configuration.default.base_path).to eq('/v4/dog')
|
50
|
+
end
|
51
|
+
|
52
|
+
it "doesn't prepend a slash if one is already there" do
|
53
|
+
IronTitan.configure { |c| c.base_path = '/v4/dog' }
|
54
|
+
expect(IronTitan::Configuration.default.base_path).to eq('/v4/dog')
|
55
|
+
end
|
56
|
+
|
57
|
+
it "ends up as a blank string if nil" do
|
58
|
+
IronTitan.configure { |c| c.base_path = nil }
|
59
|
+
expect(IronTitan::Configuration.default.base_path).to eq('')
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe "#update_params_for_auth!" do
|
66
|
+
it "sets header api-key parameter with prefix" do
|
67
|
+
IronTitan.configure do |c|
|
68
|
+
c.api_key_prefix['api_key'] = 'PREFIX'
|
69
|
+
c.api_key['api_key'] = 'special-key'
|
70
|
+
end
|
71
|
+
|
72
|
+
api_client = IronTitan::ApiClient.new
|
73
|
+
|
74
|
+
config2 = IronTitan::Configuration.new do |c|
|
75
|
+
c.api_key_prefix['api_key'] = 'PREFIX2'
|
76
|
+
c.api_key['api_key'] = 'special-key2'
|
77
|
+
end
|
78
|
+
api_client2 = IronTitan::ApiClient.new(config2)
|
79
|
+
|
80
|
+
auth_names = ['api_key', 'unknown']
|
81
|
+
|
82
|
+
header_params = {}
|
83
|
+
query_params = {}
|
84
|
+
api_client.update_params_for_auth! header_params, query_params, auth_names
|
85
|
+
expect(header_params).to eq({'api_key' => 'PREFIX special-key'})
|
86
|
+
expect(query_params).to eq({})
|
87
|
+
|
88
|
+
header_params = {}
|
89
|
+
query_params = {}
|
90
|
+
api_client2.update_params_for_auth! header_params, query_params, auth_names
|
91
|
+
expect(header_params).to eq({'api_key' => 'PREFIX2 special-key2'})
|
92
|
+
expect(query_params).to eq({})
|
93
|
+
end
|
94
|
+
|
95
|
+
it "sets header api-key parameter without prefix" do
|
96
|
+
IronTitan.configure do |c|
|
97
|
+
c.api_key_prefix['api_key'] = nil
|
98
|
+
c.api_key['api_key'] = 'special-key'
|
99
|
+
end
|
100
|
+
|
101
|
+
api_client = IronTitan::ApiClient.new
|
102
|
+
|
103
|
+
header_params = {}
|
104
|
+
query_params = {}
|
105
|
+
auth_names = ['api_key', 'unknown']
|
106
|
+
api_client.update_params_for_auth! header_params, query_params, auth_names
|
107
|
+
expect(header_params).to eq({'api_key' => 'special-key'})
|
108
|
+
expect(query_params).to eq({})
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
describe "timeout in #build_request" do
|
113
|
+
let(:config) { IronTitan::Configuration.new }
|
114
|
+
let(:api_client) { IronTitan::ApiClient.new(config) }
|
115
|
+
|
116
|
+
it "defaults to 0" do
|
117
|
+
expect(IronTitan::Configuration.default.timeout).to eq(0)
|
118
|
+
expect(config.timeout).to eq(0)
|
119
|
+
|
120
|
+
request = api_client.build_request(:get, '/test')
|
121
|
+
expect(request.options[:timeout]).to eq(0)
|
122
|
+
end
|
123
|
+
|
124
|
+
it "can be customized" do
|
125
|
+
config.timeout = 100
|
126
|
+
request = api_client.build_request(:get, '/test')
|
127
|
+
expect(request.options[:timeout]).to eq(100)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
describe "#deserialize" do
|
132
|
+
it "handles Array<Integer>" do
|
133
|
+
api_client = IronTitan::ApiClient.new
|
134
|
+
headers = {'Content-Type' => 'application/json'}
|
135
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
136
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
137
|
+
expect(data).to be_instance_of(Array)
|
138
|
+
expect(data).to eq([12, 34])
|
139
|
+
end
|
140
|
+
|
141
|
+
it "handles Array<Array<Integer>>" do
|
142
|
+
api_client = IronTitan::ApiClient.new
|
143
|
+
headers = {'Content-Type' => 'application/json'}
|
144
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
145
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
146
|
+
expect(data).to be_instance_of(Array)
|
147
|
+
expect(data).to eq([[12, 34], [56]])
|
148
|
+
end
|
149
|
+
|
150
|
+
it "handles Hash<String, String>" do
|
151
|
+
api_client = IronTitan::ApiClient.new
|
152
|
+
headers = {'Content-Type' => 'application/json'}
|
153
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
154
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
155
|
+
expect(data).to be_instance_of(Hash)
|
156
|
+
expect(data).to eq({:message => 'Hello'})
|
157
|
+
end
|
158
|
+
|
159
|
+
it "handles Hash<String, Pet>" do
|
160
|
+
api_client = IronTitan::ApiClient.new
|
161
|
+
headers = {'Content-Type' => 'application/json'}
|
162
|
+
response = double('response', headers: headers, body: '{"pet": {"id": 1}}')
|
163
|
+
data = api_client.deserialize(response, 'Hash<String, Pet>')
|
164
|
+
expect(data).to be_instance_of(Hash)
|
165
|
+
expect(data.keys).to eq([:pet])
|
166
|
+
|
167
|
+
pet = data[:pet]
|
168
|
+
expect(pet).to be_instance_of(IronTitan::Pet)
|
169
|
+
expect(pet.id).to eq(1)
|
170
|
+
end
|
171
|
+
|
172
|
+
it "handles Hash<String, Hash<String, Pet>>" do
|
173
|
+
api_client = IronTitan::ApiClient.new
|
174
|
+
headers = {'Content-Type' => 'application/json'}
|
175
|
+
response = double('response', headers: headers, body: '{"data": {"pet": {"id": 1}}}')
|
176
|
+
result = api_client.deserialize(response, 'Hash<String, Hash<String, Pet>>')
|
177
|
+
expect(result).to be_instance_of(Hash)
|
178
|
+
expect(result.keys).to match_array([:data])
|
179
|
+
|
180
|
+
data = result[:data]
|
181
|
+
expect(data).to be_instance_of(Hash)
|
182
|
+
expect(data.keys).to match_array([:pet])
|
183
|
+
|
184
|
+
pet = data[:pet]
|
185
|
+
expect(pet).to be_instance_of(IronTitan::Pet)
|
186
|
+
expect(pet.id).to eq(1)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
describe "#object_to_hash" do
|
191
|
+
it "ignores nils and includes empty arrays" do
|
192
|
+
api_client = IronTitan::ApiClient.new
|
193
|
+
pet = IronTitan::Pet.new
|
194
|
+
pet.id = 1
|
195
|
+
pet.name = ''
|
196
|
+
pet.status = nil
|
197
|
+
pet.photo_urls = nil
|
198
|
+
pet.tags = []
|
199
|
+
expected = {id: 1, name: '', tags: []}
|
200
|
+
expect(api_client.object_to_hash(pet)).to eq(expected)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
describe "#build_collection_param" do
|
205
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
206
|
+
let(:api_client) { IronTitan::ApiClient.new }
|
207
|
+
|
208
|
+
it "works for csv" do
|
209
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
210
|
+
end
|
211
|
+
|
212
|
+
it "works for ssv" do
|
213
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
214
|
+
end
|
215
|
+
|
216
|
+
it "works for tsv" do
|
217
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
218
|
+
end
|
219
|
+
|
220
|
+
it "works for pipes" do
|
221
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
222
|
+
end
|
223
|
+
|
224
|
+
it "works for multi" do
|
225
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
226
|
+
end
|
227
|
+
|
228
|
+
it "fails for invalid collection format" do
|
229
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
describe "#json_mime?" do
|
234
|
+
let(:api_client) { IronTitan::ApiClient.new }
|
235
|
+
|
236
|
+
it "works" do
|
237
|
+
expect(api_client.json_mime?(nil)).to eq false
|
238
|
+
expect(api_client.json_mime?('')).to eq false
|
239
|
+
|
240
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
241
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
242
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
243
|
+
|
244
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
245
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
246
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
describe "#select_header_accept" do
|
251
|
+
let(:api_client) { IronTitan::ApiClient.new }
|
252
|
+
|
253
|
+
it "works" do
|
254
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
255
|
+
expect(api_client.select_header_accept([])).to be_nil
|
256
|
+
|
257
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
258
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
259
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
260
|
+
|
261
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
262
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
describe "#select_header_content_type" do
|
267
|
+
let(:api_client) { IronTitan::ApiClient.new }
|
268
|
+
|
269
|
+
it "works" do
|
270
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
271
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
272
|
+
|
273
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
274
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
275
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
276
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
277
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
describe "#sanitize_filename" do
|
282
|
+
let(:api_client) { IronTitan::ApiClient.new }
|
283
|
+
|
284
|
+
it "works" do
|
285
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
286
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
287
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
288
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
289
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
290
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
291
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
292
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
293
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.4.0
|
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
|
+
|
26
|
+
describe IronTitan::Configuration do
|
27
|
+
let(:config) { IronTitan::Configuration.default }
|
28
|
+
|
29
|
+
before(:each) do
|
30
|
+
IronTitan.configure do |c|
|
31
|
+
c.host = 'petstore.swagger.io'
|
32
|
+
c.base_path = 'v2'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#base_url' do
|
37
|
+
it 'should have the default value' do
|
38
|
+
expect(config.base_url).to eq('http://petstore.swagger.io/v2')
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'should remove trailing slashes' do
|
42
|
+
[nil, '', '/', '//'].each do |base_path|
|
43
|
+
config.base_path = base_path
|
44
|
+
expect(config.base_url).to eq('http://petstore.swagger.io')
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,36 +40,24 @@ describe 'Complete' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of Complete' do
|
31
42
|
it 'should create an instact of Complete' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::Complete)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "completed_at"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "reason"' do
|
46
53
|
it 'should work' do
|
47
|
-
# assertion here
|
48
|
-
# should be_a()
|
49
|
-
# should be_nil
|
50
|
-
# should ==
|
51
|
-
# should_not ==
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
55
|
end
|
53
56
|
end
|
54
57
|
|
55
58
|
describe 'test attribute "error"' do
|
56
59
|
it 'should work' do
|
57
|
-
# assertion here
|
58
|
-
# should be_a()
|
59
|
-
# should be_nil
|
60
|
-
# should ==
|
61
|
-
# should_not ==
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
61
|
end
|
63
62
|
end
|
64
63
|
|
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,26 +40,18 @@ describe 'ErrorBody' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of ErrorBody' do
|
31
42
|
it 'should create an instact of ErrorBody' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::ErrorBody)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "message"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "fields"' do
|
46
53
|
it 'should work' do
|
47
|
-
# assertion here
|
48
|
-
# should be_a()
|
49
|
-
# should be_nil
|
50
|
-
# should ==
|
51
|
-
# should_not ==
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
55
|
end
|
53
56
|
end
|
54
57
|
|
data/spec/models/error_spec.rb
CHANGED
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,16 +40,12 @@ describe 'Error' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of Error' do
|
31
42
|
it 'should create an instact of Error' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::Error)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "error"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
data/spec/models/group_spec.rb
CHANGED
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,26 +40,36 @@ describe 'Group' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of Group' do
|
31
42
|
it 'should create an instact of Group' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::Group)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "name"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "created_at"' do
|
46
53
|
it 'should work' do
|
47
|
-
# assertion here
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "image"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "env_vars"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "max_concurrency"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
73
|
end
|
53
74
|
end
|
54
75
|
|
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,16 +40,12 @@ describe 'GroupWrapper' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of GroupWrapper' do
|
31
42
|
it 'should create an instact of GroupWrapper' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::GroupWrapper)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "group"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
@@ -3,10 +3,21 @@ 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.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
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.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -29,16 +40,12 @@ describe 'GroupsWrapper' do
|
|
29
40
|
|
30
41
|
describe 'test an instance of GroupsWrapper' do
|
31
42
|
it 'should create an instact of GroupsWrapper' do
|
32
|
-
@instance.
|
43
|
+
expect(@instance).to be_instance_of(IronTitan::GroupsWrapper)
|
33
44
|
end
|
34
45
|
end
|
35
46
|
describe 'test attribute "groups"' do
|
36
47
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|