iron_titan 0.3.1 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -7
  3. data/lib/iron_titan/api/groups_api.rb +61 -1
  4. data/lib/iron_titan/api/jobs_api.rb +54 -50
  5. data/lib/iron_titan/api/runner_api.rb +233 -0
  6. data/lib/iron_titan/api_client.rb +1 -1
  7. data/lib/iron_titan/api_error.rb +1 -1
  8. data/lib/iron_titan/models/complete.rb +184 -0
  9. data/lib/iron_titan/models/error.rb +1 -1
  10. data/lib/iron_titan/models/error_body.rb +1 -1
  11. data/lib/iron_titan/models/group.rb +1 -1
  12. data/lib/iron_titan/models/group_wrapper.rb +1 -1
  13. data/lib/iron_titan/models/groups_wrapper.rb +1 -1
  14. data/lib/iron_titan/models/id_status.rb +1 -1
  15. data/lib/iron_titan/models/job.rb +31 -12
  16. data/lib/iron_titan/models/job_wrapper.rb +1 -1
  17. data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
  18. data/lib/iron_titan/models/new_job.rb +2 -4
  19. data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
  20. data/lib/iron_titan/models/reason.rb +30 -18
  21. data/lib/iron_titan/models/start.rb +162 -0
  22. data/lib/iron_titan/version.rb +2 -2
  23. data/lib/iron_titan.rb +4 -2
  24. data/spec/api/groups_api_spec.rb +17 -1
  25. data/spec/api/jobs_api_spec.rb +14 -13
  26. data/spec/api/runner_api_spec.rb +89 -0
  27. data/spec/models/complete_spec.rb +66 -0
  28. data/spec/models/error_body_spec.rb +1 -1
  29. data/spec/models/{Error_spec.rb → error_spec.rb} +1 -1
  30. data/spec/models/group_spec.rb +1 -1
  31. data/spec/models/group_wrapper_spec.rb +1 -1
  32. data/spec/models/groups_wrapper_spec.rb +1 -1
  33. data/spec/models/id_status_spec.rb +1 -1
  34. data/spec/models/{Job_spec.rb → job_spec.rb} +12 -2
  35. data/spec/models/job_wrapper_spec.rb +1 -1
  36. data/spec/models/jobs_wrapper_spec.rb +1 -1
  37. data/spec/models/new_job_spec.rb +1 -1
  38. data/spec/models/new_jobs_wrapper_spec.rb +1 -1
  39. data/spec/models/reason_spec.rb +1 -1
  40. data/spec/models/start_spec.rb +46 -0
  41. metadata +15 -6
@@ -0,0 +1,162 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.3.7
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IronTitan
16
+ class Start
17
+ # Time when job started execution. Always in UTC.
18
+ attr_accessor :started_at
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+
24
+ :'started_at' => :'started_at'
25
+
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'started_at' => :'DateTime'
33
+
34
+ }
35
+ end
36
+
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
42
+
43
+
44
+ if attributes[:'started_at']
45
+ self.started_at = attributes[:'started_at']
46
+ end
47
+
48
+ end
49
+
50
+ # Check equality by comparing each attribute.
51
+ def ==(o)
52
+ return true if self.equal?(o)
53
+ self.class == o.class &&
54
+ started_at == o.started_at
55
+ end
56
+
57
+ # @see the `==` method
58
+ def eql?(o)
59
+ self == o
60
+ end
61
+
62
+ # Calculate hash code according to all attributes.
63
+ def hash
64
+ [started_at].hash
65
+ end
66
+
67
+ # build the object from hash
68
+ def build_from_hash(attributes)
69
+ return nil unless attributes.is_a?(Hash)
70
+ self.class.swagger_types.each_pair do |key, type|
71
+ if type =~ /^Array<(.*)>/i
72
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
73
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
74
+ else
75
+ #TODO show warning in debug mode
76
+ end
77
+ elsif !attributes[self.class.attribute_map[key]].nil?
78
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
79
+ else
80
+ # data not found in attributes(hash), not an issue as the data can be optional
81
+ end
82
+ end
83
+
84
+ self
85
+ end
86
+
87
+ def _deserialize(type, value)
88
+ case type.to_sym
89
+ when :DateTime
90
+ DateTime.parse(value)
91
+ when :Date
92
+ Date.parse(value)
93
+ when :String
94
+ value.to_s
95
+ when :Integer
96
+ value.to_i
97
+ when :Float
98
+ value.to_f
99
+ when :BOOLEAN
100
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
101
+ true
102
+ else
103
+ false
104
+ end
105
+ when :Object
106
+ # generic object (usually a Hash), return directly
107
+ value
108
+ when /\AArray<(?<inner_type>.+)>\z/
109
+ inner_type = Regexp.last_match[:inner_type]
110
+ value.map { |v| _deserialize(inner_type, v) }
111
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
112
+ k_type = Regexp.last_match[:k_type]
113
+ v_type = Regexp.last_match[:v_type]
114
+ {}.tap do |hash|
115
+ value.each do |k, v|
116
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
117
+ end
118
+ end
119
+ else # model
120
+ _model = IronTitan.const_get(type).new
121
+ _model.build_from_hash(value)
122
+ end
123
+ end
124
+
125
+ def to_s
126
+ to_hash.to_s
127
+ end
128
+
129
+ # to_body is an alias to to_body (backward compatibility))
130
+ def to_body
131
+ to_hash
132
+ end
133
+
134
+ # return the object in the form of hash
135
+ def to_hash
136
+ hash = {}
137
+ self.class.attribute_map.each_pair do |attr, param|
138
+ value = self.send(attr)
139
+ next if value.nil?
140
+ hash[param] = _to_hash(value)
141
+ end
142
+ hash
143
+ end
144
+
145
+ # Method to output non-array value in the form of hash
146
+ # For object, use to_hash. Otherwise, just return the value
147
+ def _to_hash(value)
148
+ if value.is_a?(Array)
149
+ value.compact.map{ |v| _to_hash(v) }
150
+ elsif value.is_a?(Hash)
151
+ {}.tap do |hash|
152
+ value.each { |k, v| hash[k] = _to_hash(v) }
153
+ end
154
+ elsif value.respond_to? :to_hash
155
+ value.to_hash
156
+ else
157
+ value
158
+ end
159
+ end
160
+
161
+ end
162
+ end
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
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.3.1"
14
+ VERSION = "0.3.7"
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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -17,6 +17,7 @@ require 'iron_titan/version'
17
17
  require 'iron_titan/configuration'
18
18
 
19
19
  # Models
20
+ require 'iron_titan/models/complete'
20
21
  require 'iron_titan/models/error'
21
22
  require 'iron_titan/models/error_body'
22
23
  require 'iron_titan/models/group'
@@ -28,11 +29,12 @@ require 'iron_titan/models/job_wrapper'
28
29
  require 'iron_titan/models/jobs_wrapper'
29
30
  require 'iron_titan/models/new_job'
30
31
  require 'iron_titan/models/new_jobs_wrapper'
31
- require 'iron_titan/models/reason'
32
+ require 'iron_titan/models/start'
32
33
 
33
34
  # APIs
34
35
  require 'iron_titan/api/groups_api'
35
36
  require 'iron_titan/api/jobs_api'
37
+ require 'iron_titan/api/runner_api'
36
38
 
37
39
  module IronTitan
38
40
  class << self
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -63,4 +63,20 @@ describe 'GroupsApi' do
63
63
  end
64
64
  end
65
65
 
66
+ # unit tests for groups_post
67
+ # Post new group
68
+ # Insert a new job group
69
+ # @param body Group to post.
70
+ # @param [Hash] opts the optional parameters
71
+ # @return [GroupWrapper]
72
+ describe 'groups_post test' do
73
+ it "should work" do
74
+ # assertion here
75
+ # should be_a()
76
+ # should be_nil
77
+ # should ==
78
+ # should_not ==
79
+ end
80
+ end
81
+
66
82
  end
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -52,7 +52,7 @@ describe 'JobsApi' do
52
52
 
53
53
  # unit tests for groups_group_name_jobs_id_cancel_post
54
54
  # Cancel a job.
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`.
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`. The job&#39;s completed_at field is set to the current time on the jobserver.
56
56
  # @param group_name Name of group for this set of jobs.
57
57
  # @param id Job id
58
58
  # @param [Hash] opts the optional parameters
@@ -86,10 +86,10 @@ describe 'JobsApi' do
86
86
 
87
87
  # unit tests for groups_group_name_jobs_id_error_post
88
88
  # Mark job as failed.
89
- # Job is marked as failed if it was in a valid state. Job&#39;s `completed_at` time is initialized.
89
+ # Job is marked as failed if it was in a valid state. Job&#39;s `finished_at` time is initialized.
90
90
  # @param group_name Name of group for this set of jobs.
91
91
  # @param id Job id
92
- # @param reason Reason for job failure.
92
+ # @param body
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [JobWrapper]
95
95
  describe 'groups_group_name_jobs_id_error_post test' do
@@ -154,15 +154,14 @@ describe 'JobsApi' do
154
154
  end
155
155
  end
156
156
 
157
- # unit tests for groups_group_name_jobs_id_patch
158
- # Update a job
159
- # Used to update status on job transitions. Eg: from &#39;running&#39; to &#39;success&#39;.
157
+ # unit tests for groups_group_name_jobs_id_retry_post
158
+ # Retry a job.
159
+ # \&quot;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.\&quot;\n
160
160
  # @param group_name Name of group for this set of jobs.
161
161
  # @param id Job id
162
- # @param body Job data to post
163
162
  # @param [Hash] opts the optional parameters
164
163
  # @return [JobWrapper]
165
- describe 'groups_group_name_jobs_id_patch test' do
164
+ describe 'groups_group_name_jobs_id_retry_post test' do
166
165
  it "should work" do
167
166
  # assertion here
168
167
  # should be_a()
@@ -172,14 +171,15 @@ describe 'JobsApi' do
172
171
  end
173
172
  end
174
173
 
175
- # unit tests for groups_group_name_jobs_id_retry_post
176
- # Retry a job.
177
- # \&quot;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.\&quot;\n
174
+ # unit tests for groups_group_name_jobs_id_start_post
175
+ # Mark job as started, ie: status = &#39;running&#39;
176
+ # Job status is changed to &#39;running&#39; if it was in a valid state before. Job&#39;s `started_at` time is initialized.
178
177
  # @param group_name Name of group for this set of jobs.
179
178
  # @param id Job id
179
+ # @param body
180
180
  # @param [Hash] opts the optional parameters
181
181
  # @return [JobWrapper]
182
- describe 'groups_group_name_jobs_id_retry_post test' do
182
+ describe 'groups_group_name_jobs_id_start_post test' do
183
183
  it "should work" do
184
184
  # assertion here
185
185
  # should be_a()
@@ -194,6 +194,7 @@ describe 'JobsApi' do
194
194
  # Job status is changed to succeeded if it was in a valid state before. Job&#39;s `completed_at` time is initialized.
195
195
  # @param group_name Name of group for this set of jobs.
196
196
  # @param id Job id
197
+ # @param body
197
198
  # @param [Hash] opts the optional parameters
198
199
  # @return [JobWrapper]
199
200
  describe 'groups_group_name_jobs_id_success_post test' do
@@ -0,0 +1,89 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.3.7
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::RunnerApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'RunnerApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = IronTitan::RunnerApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RunnerApi' do
30
+ it 'should create an instact of RunnerApi' do
31
+ @instance.should be_a(IronTitan::RunnerApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for groups_group_name_jobs_id_error_post
36
+ # Mark job as failed.
37
+ # Job is marked as failed if it was in a valid state. Job&#39;s `finished_at` time is initialized.
38
+ # @param group_name Name of group for this set of jobs.
39
+ # @param id Job id
40
+ # @param body
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [JobWrapper]
43
+ describe 'groups_group_name_jobs_id_error_post 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_start_post
54
+ # Mark job as started, ie: status = &#39;running&#39;
55
+ # Job status is changed to &#39;running&#39; if it was in a valid state before. Job&#39;s `started_at` time is initialized.
56
+ # @param group_name Name of group for this set of jobs.
57
+ # @param id Job id
58
+ # @param body
59
+ # @param [Hash] opts the optional parameters
60
+ # @return [JobWrapper]
61
+ describe 'groups_group_name_jobs_id_start_post test' do
62
+ it "should work" do
63
+ # assertion here
64
+ # should be_a()
65
+ # should be_nil
66
+ # should ==
67
+ # should_not ==
68
+ end
69
+ end
70
+
71
+ # unit tests for groups_group_name_jobs_id_success_post
72
+ # Mark job as succeeded.
73
+ # Job status is changed to succeeded if it was in a valid state before. Job&#39;s `completed_at` time is initialized.
74
+ # @param group_name Name of group for this set of jobs.
75
+ # @param id Job id
76
+ # @param body
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [JobWrapper]
79
+ describe 'groups_group_name_jobs_id_success_post test' do
80
+ it "should work" do
81
+ # assertion here
82
+ # should be_a()
83
+ # should be_nil
84
+ # should ==
85
+ # should_not ==
86
+ end
87
+ end
88
+
89
+ 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.3.7
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::Complete
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Complete' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::Complete.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Complete' do
31
+ it 'should create an instact of Complete' do
32
+ @instance.should be_a(IronTitan::Complete)
33
+ end
34
+ end
35
+ describe 'test attribute "completed_at"' 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 "reason"' 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 "error"' 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
+ end
66
+
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -132,6 +132,16 @@ describe 'Job' do
132
132
  end
133
133
  end
134
134
 
135
+ describe 'test attribute "error"' do
136
+ it 'should work' do
137
+ # assertion here
138
+ # should be_a()
139
+ # should be_nil
140
+ # should ==
141
+ # should_not ==
142
+ end
143
+ end
144
+
135
145
  describe 'test attribute "reason"' do
136
146
  it 'should work' do
137
147
  # assertion here
@@ -182,7 +192,7 @@ describe 'Job' do
182
192
  end
183
193
  end
184
194
 
185
- describe 'test attribute "retry_id"' do
195
+ describe 'test attribute "retry_at"' do
186
196
  it 'should work' do
187
197
  # assertion here
188
198
  # should be_a()
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.7
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.3.2
6
+ OpenAPI spec version: 0.3.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.7
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::Start
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Start' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::Start.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Start' do
31
+ it 'should create an instact of Start' do
32
+ @instance.should be_a(IronTitan::Start)
33
+ end
34
+ end
35
+ describe 'test attribute "started_at"' 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
+