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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +6 -5
  4. data/lib/iron_titan/api/groups_api.rb +34 -31
  5. data/lib/iron_titan/api/jobs_api.rb +140 -182
  6. data/lib/iron_titan/api/runner_api.rb +43 -47
  7. data/lib/iron_titan/api_client.rb +48 -8
  8. data/lib/iron_titan/api_error.rb +12 -1
  9. data/lib/iron_titan/configuration.rb +23 -0
  10. data/lib/iron_titan/models/complete.rb +63 -27
  11. data/lib/iron_titan/models/error.rb +59 -21
  12. data/lib/iron_titan/models/error_body.rb +61 -24
  13. data/lib/iron_titan/models/group.rb +112 -28
  14. data/lib/iron_titan/models/group_wrapper.rb +60 -21
  15. data/lib/iron_titan/models/groups_wrapper.rb +60 -21
  16. data/lib/iron_titan/models/id_status.rb +89 -28
  17. data/lib/iron_titan/models/job.rb +168 -90
  18. data/lib/iron_titan/models/job_wrapper.rb +60 -21
  19. data/lib/iron_titan/models/jobs_wrapper.rb +62 -24
  20. data/lib/iron_titan/models/new_job.rb +91 -42
  21. data/lib/iron_titan/models/new_jobs_wrapper.rb +60 -21
  22. data/lib/iron_titan/models/start.rb +59 -21
  23. data/lib/iron_titan/version.rb +13 -2
  24. data/lib/iron_titan.rb +12 -1
  25. data/spec/api/groups_api_spec.rb +16 -17
  26. data/spec/api/jobs_api_spec.rb +37 -78
  27. data/spec/api/runner_api_spec.rb +20 -21
  28. data/spec/api_client_spec.rb +296 -0
  29. data/spec/configuration_spec.rb +48 -0
  30. data/spec/models/complete_spec.rb +16 -17
  31. data/spec/models/error_body_spec.rb +15 -12
  32. data/spec/models/error_spec.rb +14 -7
  33. data/spec/models/group_spec.rb +33 -12
  34. data/spec/models/group_wrapper_spec.rb +14 -7
  35. data/spec/models/groups_wrapper_spec.rb +14 -7
  36. data/spec/models/id_status_spec.rb +18 -12
  37. data/spec/models/job_spec.rb +43 -88
  38. data/spec/models/job_wrapper_spec.rb +14 -7
  39. data/spec/models/jobs_wrapper_spec.rb +15 -12
  40. data/spec/models/new_job_spec.rb +20 -37
  41. data/spec/models/new_jobs_wrapper_spec.rb +14 -7
  42. data/spec/models/start_spec.rb +14 -7
  43. data/spec/spec_helper.rb +122 -0
  44. metadata +9 -2
@@ -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.3.10
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,21 @@ describe 'IdStatus' do
29
40
 
30
41
  describe 'test an instance of IdStatus' do
31
42
  it 'should create an instact of IdStatus' do
32
- @instance.should be_a(IronTitan::IdStatus)
43
+ expect(@instance).to be_instance_of(IronTitan::IdStatus)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "id"' 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 "status"' do
46
53
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
54
+ validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["delayed", "queued", "running", "success", "error", "cancelled"])
55
+ validator.allowable_values.each do |value|
56
+ expect { @instance.status = value }.not_to raise_error
57
+ end
52
58
  end
53
59
  end
54
60
 
@@ -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.3.10
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,176 +40,120 @@ describe 'Job' do
29
40
 
30
41
  describe 'test an instance of Job' do
31
42
  it 'should create an instact of Job' do
32
- @instance.should be_a(IronTitan::Job)
43
+ expect(@instance).to be_instance_of(IronTitan::Job)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "image"' 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 "payload"' 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 "delay"' 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
 
65
64
  describe 'test attribute "timeout"' do
66
65
  it 'should work' do
67
- # assertion here
68
- # should be_a()
69
- # should be_nil
70
- # should ==
71
- # should_not ==
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
67
  end
73
68
  end
74
69
 
75
70
  describe 'test attribute "priority"' do
76
71
  it 'should work' do
77
- # assertion here
78
- # should be_a()
79
- # should be_nil
80
- # should ==
81
- # should_not ==
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
73
  end
83
74
  end
84
75
 
85
76
  describe 'test attribute "max_retries"' do
86
77
  it 'should work' do
87
- # assertion here
88
- # should be_a()
89
- # should be_nil
90
- # should ==
91
- # should_not ==
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
79
  end
93
80
  end
94
81
 
95
82
  describe 'test attribute "retries_delay"' do
96
83
  it 'should work' do
97
- # assertion here
98
- # should be_a()
99
- # should be_nil
100
- # should ==
101
- # should_not ==
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
85
  end
103
86
  end
104
87
 
105
88
  describe 'test attribute "id"' do
106
89
  it 'should work' do
107
- # assertion here
108
- # should be_a()
109
- # should be_nil
110
- # should ==
111
- # should_not ==
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
91
  end
113
92
  end
114
93
 
115
94
  describe 'test attribute "status"' do
116
95
  it 'should work' do
117
- # assertion here
118
- # should be_a()
119
- # should be_nil
120
- # should ==
121
- # should_not ==
96
+ validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["delayed", "queued", "running", "success", "error", "cancelled"])
97
+ validator.allowable_values.each do |value|
98
+ expect { @instance.status = value }.not_to raise_error
99
+ end
122
100
  end
123
101
  end
124
102
 
125
- describe 'test attribute "name"' do
103
+ describe 'test attribute "group_name"' do
126
104
  it 'should work' do
127
- # assertion here
128
- # should be_a()
129
- # should be_nil
130
- # should ==
131
- # should_not ==
105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
106
  end
133
107
  end
134
108
 
135
109
  describe 'test attribute "error"' do
136
110
  it 'should work' do
137
- # assertion here
138
- # should be_a()
139
- # should be_nil
140
- # should ==
141
- # should_not ==
111
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
112
  end
143
113
  end
144
114
 
145
115
  describe 'test attribute "reason"' do
146
116
  it 'should work' do
147
- # assertion here
148
- # should be_a()
149
- # should be_nil
150
- # should ==
151
- # should_not ==
117
+ validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["timeout", "killed", "bad_exit", "client_request"])
118
+ validator.allowable_values.each do |value|
119
+ expect { @instance.reason = value }.not_to raise_error
120
+ end
152
121
  end
153
122
  end
154
123
 
155
124
  describe 'test attribute "created_at"' do
156
125
  it 'should work' do
157
- # assertion here
158
- # should be_a()
159
- # should be_nil
160
- # should ==
161
- # should_not ==
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
127
  end
163
128
  end
164
129
 
165
130
  describe 'test attribute "started_at"' do
166
131
  it 'should work' do
167
- # assertion here
168
- # should be_a()
169
- # should be_nil
170
- # should ==
171
- # should_not ==
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
172
133
  end
173
134
  end
174
135
 
175
136
  describe 'test attribute "completed_at"' do
176
137
  it 'should work' do
177
- # assertion here
178
- # should be_a()
179
- # should be_nil
180
- # should ==
181
- # should_not ==
138
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
139
  end
183
140
  end
184
141
 
185
142
  describe 'test attribute "retry_of"' do
186
143
  it 'should work' do
187
- # assertion here
188
- # should be_a()
189
- # should be_nil
190
- # should ==
191
- # should_not ==
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
145
  end
193
146
  end
194
147
 
195
148
  describe 'test attribute "retry_at"' do
196
149
  it 'should work' do
197
- # assertion here
198
- # should be_a()
199
- # should be_nil
200
- # should ==
201
- # should_not ==
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
154
+ describe 'test attribute "env_vars"' do
155
+ it 'should work' do
156
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
202
157
  end
203
158
  end
204
159
 
@@ -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.3.10
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 'JobWrapper' do
29
40
 
30
41
  describe 'test an instance of JobWrapper' do
31
42
  it 'should create an instact of JobWrapper' do
32
- @instance.should be_a(IronTitan::JobWrapper)
43
+ expect(@instance).to be_instance_of(IronTitan::JobWrapper)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "job"' 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.3.10
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 'JobsWrapper' do
29
40
 
30
41
  describe 'test an instance of JobsWrapper' do
31
42
  it 'should create an instact of JobsWrapper' do
32
- @instance.should be_a(IronTitan::JobsWrapper)
43
+ expect(@instance).to be_instance_of(IronTitan::JobsWrapper)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "jobs"' 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 "error"' 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
 
@@ -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.3.10
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,76 +40,48 @@ describe 'NewJob' do
29
40
 
30
41
  describe 'test an instance of NewJob' do
31
42
  it 'should create an instact of NewJob' do
32
- @instance.should be_a(IronTitan::NewJob)
43
+ expect(@instance).to be_instance_of(IronTitan::NewJob)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "image"' 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 "payload"' 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 "delay"' 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
 
65
64
  describe 'test attribute "timeout"' do
66
65
  it 'should work' do
67
- # assertion here
68
- # should be_a()
69
- # should be_nil
70
- # should ==
71
- # should_not ==
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
67
  end
73
68
  end
74
69
 
75
70
  describe 'test attribute "priority"' do
76
71
  it 'should work' do
77
- # assertion here
78
- # should be_a()
79
- # should be_nil
80
- # should ==
81
- # should_not ==
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
73
  end
83
74
  end
84
75
 
85
76
  describe 'test attribute "max_retries"' do
86
77
  it 'should work' do
87
- # assertion here
88
- # should be_a()
89
- # should be_nil
90
- # should ==
91
- # should_not ==
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
79
  end
93
80
  end
94
81
 
95
82
  describe 'test attribute "retries_delay"' do
96
83
  it 'should work' do
97
- # assertion here
98
- # should be_a()
99
- # should be_nil
100
- # should ==
101
- # should_not ==
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
85
  end
103
86
  end
104
87
 
@@ -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.3.10
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 'NewJobsWrapper' do
29
40
 
30
41
  describe 'test an instance of NewJobsWrapper' do
31
42
  it 'should create an instact of NewJobsWrapper' do
32
- @instance.should be_a(IronTitan::NewJobsWrapper)
43
+ expect(@instance).to be_instance_of(IronTitan::NewJobsWrapper)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "jobs"' 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.3.10
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 'Start' do
29
40
 
30
41
  describe 'test an instance of Start' do
31
42
  it 'should create an instact of Start' do
32
- @instance.should be_a(IronTitan::Start)
43
+ expect(@instance).to be_instance_of(IronTitan::Start)
33
44
  end
34
45
  end
35
46
  describe 'test attribute "started_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