iron_titan 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -1
- data/lib/iron_titan/api/core_api.rb +12 -9
- data/lib/iron_titan/api/jobs_api.rb +94 -31
- data/lib/iron_titan/api_client.rb +2 -2
- data/lib/iron_titan/api_error.rb +1 -1
- data/lib/iron_titan/configuration.rb +1 -1
- data/lib/iron_titan/models/error.rb +2 -2
- data/lib/iron_titan/models/error_body.rb +2 -2
- data/lib/iron_titan/models/job.rb +18 -5
- data/lib/iron_titan/models/job_array.rb +2 -2
- data/lib/iron_titan/models/job_wrapper.rb +7 -7
- data/lib/iron_titan/models/log.rb +158 -0
- data/lib/iron_titan/models/new_job.rb +6 -4
- data/lib/iron_titan/models/new_job_array.rb +2 -2
- data/lib/iron_titan/version.rb +2 -2
- data/lib/iron_titan.rb +6 -5
- data/spec/api/core_api_spec.rb +100 -0
- data/spec/api/jobs_api_spec.rb +148 -0
- data/spec/models/Error_spec.rb +1 -1
- data/spec/models/Job_spec.rb +11 -1
- data/spec/models/error_body_spec.rb +56 -0
- data/spec/models/job_array_spec.rb +46 -0
- data/spec/models/job_wrapper_spec.rb +46 -0
- data/spec/models/log_spec.rb +46 -0
- data/spec/models/new_job_array_spec.rb +46 -0
- data/spec/models/new_job_spec.rb +96 -0
- metadata +22 -5
@@ -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.0.2
|
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::
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Log' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::Log.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Log' do
|
31
|
+
it 'should create an instact of Log' do
|
32
|
+
@instance.should be_a(IronTitan::Log)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "log"' 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.0.2
|
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::
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'NewJobArray' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::NewJobArray.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of NewJobArray' do
|
31
|
+
it 'should create an instact of NewJobArray' do
|
32
|
+
@instance.should be_a(IronTitan::NewJobArray)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "jobs"' 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,96 @@
|
|
1
|
+
=begin
|
2
|
+
Titan API
|
3
|
+
|
4
|
+
The ultimate, language agnostic, container based job processing framework.
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.2
|
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::
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'NewJob' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IronTitan::NewJob.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of NewJob' do
|
31
|
+
it 'should create an instact of NewJob' do
|
32
|
+
@instance.should be_a(IronTitan::NewJob)
|
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 "image"' 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
|
+
describe 'test attribute "payload"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here
|
58
|
+
# should be_a()
|
59
|
+
# should be_nil
|
60
|
+
# should ==
|
61
|
+
# should_not ==
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "delay"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here
|
68
|
+
# should be_a()
|
69
|
+
# should be_nil
|
70
|
+
# should ==
|
71
|
+
# should_not ==
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "timeout"' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here
|
78
|
+
# should be_a()
|
79
|
+
# should be_nil
|
80
|
+
# should ==
|
81
|
+
# should_not ==
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe 'test attribute "retries"' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here
|
88
|
+
# should be_a()
|
89
|
+
# should be_nil
|
90
|
+
# should ==
|
91
|
+
# should_not ==
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_titan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Travis Reeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -192,7 +192,7 @@ dependencies:
|
|
192
192
|
version: 0.2.11
|
193
193
|
description: ''
|
194
194
|
email:
|
195
|
-
-
|
195
|
+
- travis@iron.io
|
196
196
|
executables: []
|
197
197
|
extensions: []
|
198
198
|
extra_rdoc_files: []
|
@@ -209,11 +209,14 @@ files:
|
|
209
209
|
- lib/iron_titan/models/job.rb
|
210
210
|
- lib/iron_titan/models/job_array.rb
|
211
211
|
- lib/iron_titan/models/job_wrapper.rb
|
212
|
+
- lib/iron_titan/models/log.rb
|
212
213
|
- lib/iron_titan/models/new_job.rb
|
213
214
|
- lib/iron_titan/models/new_job_array.rb
|
214
215
|
- lib/iron_titan/version.rb
|
215
216
|
- spec/api/CoreApi_spec.rb
|
216
217
|
- spec/api/JobsApi_spec.rb
|
218
|
+
- spec/api/core_api_spec.rb
|
219
|
+
- spec/api/jobs_api_spec.rb
|
217
220
|
- spec/models/ErrorBody_spec.rb
|
218
221
|
- spec/models/Error_spec.rb
|
219
222
|
- spec/models/JobArray_spec.rb
|
@@ -221,7 +224,13 @@ files:
|
|
221
224
|
- spec/models/Job_spec.rb
|
222
225
|
- spec/models/NewJobArray_spec.rb
|
223
226
|
- spec/models/NewJob_spec.rb
|
224
|
-
|
227
|
+
- spec/models/error_body_spec.rb
|
228
|
+
- spec/models/job_array_spec.rb
|
229
|
+
- spec/models/job_wrapper_spec.rb
|
230
|
+
- spec/models/log_spec.rb
|
231
|
+
- spec/models/new_job_array_spec.rb
|
232
|
+
- spec/models/new_job_spec.rb
|
233
|
+
homepage: https://github.com/iron-io/titan_ruby
|
225
234
|
licenses:
|
226
235
|
- ''
|
227
236
|
metadata: {}
|
@@ -246,12 +255,20 @@ signing_key:
|
|
246
255
|
specification_version: 4
|
247
256
|
summary: ''
|
248
257
|
test_files:
|
258
|
+
- spec/api/core_api_spec.rb
|
249
259
|
- spec/api/CoreApi_spec.rb
|
260
|
+
- spec/api/jobs_api_spec.rb
|
250
261
|
- spec/api/JobsApi_spec.rb
|
262
|
+
- spec/models/error_body_spec.rb
|
251
263
|
- spec/models/Error_spec.rb
|
252
264
|
- spec/models/ErrorBody_spec.rb
|
265
|
+
- spec/models/job_array_spec.rb
|
253
266
|
- spec/models/Job_spec.rb
|
267
|
+
- spec/models/job_wrapper_spec.rb
|
254
268
|
- spec/models/JobArray_spec.rb
|
255
269
|
- spec/models/JobWrapper_spec.rb
|
270
|
+
- spec/models/log_spec.rb
|
271
|
+
- spec/models/new_job_array_spec.rb
|
272
|
+
- spec/models/new_job_spec.rb
|
256
273
|
- spec/models/NewJob_spec.rb
|
257
274
|
- spec/models/NewJobArray_spec.rb
|