iron_titan 0.0.1

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.
@@ -0,0 +1,131 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
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::JobsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'JobsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = IronTitan::JobsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of JobsApi' do
30
+ it 'should create an instact of JobsApi' do
31
+ @instance.should be_a(IronTitan::JobsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for job_id_get
36
+ # Gets job by id
37
+ # Gets a job by id.
38
+ # @param id Job id
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [JobWrapper]
41
+ describe 'job_id_get test' do
42
+ it "should work" do
43
+ # assertion here
44
+ # should be_a()
45
+ # should be_nil
46
+ # should ==
47
+ # should_not ==
48
+ end
49
+ end
50
+
51
+ # unit tests for job_id_patch
52
+ # Update a job
53
+ # Typically used to update status on error/completion. TODO: only allow 'status' field.
54
+ # @param id Job id
55
+ # @param body Job data to post
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [JobWrapper]
58
+ describe 'job_id_patch test' do
59
+ it "should work" do
60
+ # assertion here
61
+ # should be_a()
62
+ # should be_nil
63
+ # should ==
64
+ # should_not ==
65
+ end
66
+ end
67
+
68
+ # unit tests for job_id_cancel_post
69
+ # Cancel a job.
70
+ # This will prevent a job from running. TODO: should we attempt to kill a running job?
71
+ # @param id Job id
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [JobWrapper]
74
+ describe 'job_id_cancel_post test' do
75
+ it "should work" do
76
+ # assertion here
77
+ # should be_a()
78
+ # should be_nil
79
+ # should ==
80
+ # should_not ==
81
+ end
82
+ end
83
+
84
+ # unit tests for job_id_retry_post
85
+ # Retry a job.
86
+ # If a job fails, you can retry the job with the original payload.
87
+ # @param id Job id
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [JobWrapper]
90
+ describe 'job_id_retry_post test' do
91
+ it "should work" do
92
+ # assertion here
93
+ # should be_a()
94
+ # should be_nil
95
+ # should ==
96
+ # should_not ==
97
+ end
98
+ end
99
+
100
+ # unit tests for jobs_get
101
+ # Get next job.
102
+ # Gets the next job in the queue, ready for processing.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<JobArray>]
105
+ describe 'jobs_get test' do
106
+ it "should work" do
107
+ # assertion here
108
+ # should be_a()
109
+ # should be_nil
110
+ # should ==
111
+ # should_not ==
112
+ end
113
+ end
114
+
115
+ # unit tests for jobs_post
116
+ # Enqueue Job
117
+ # Enqueues a job.
118
+ # @param body Array of jobs to post.
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [JobArray]
121
+ describe 'jobs_post test' do
122
+ it "should work" do
123
+ # assertion here
124
+ # should be_a()
125
+ # should be_nil
126
+ # should ==
127
+ # should_not ==
128
+ end
129
+ end
130
+
131
+ end
@@ -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.0.1
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 'ErrorBody' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::ErrorBody.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of ErrorBody' do
31
+ it 'should create an instact of ErrorBody' do
32
+ @instance.should be_a(IronTitan::ErrorBody)
33
+ end
34
+ end
35
+ describe 'test attribute "message"' 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 "fields"' 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.0.1
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 'Error' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::Error.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Error' do
31
+ it 'should create an instact of Error' do
32
+ @instance.should be_a(IronTitan::Error)
33
+ end
34
+ end
35
+ describe 'test attribute "error"' 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.1
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 'JobArray' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::JobArray.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of JobArray' do
31
+ it 'should create an instact of JobArray' do
32
+ @instance.should be_a(IronTitan::JobArray)
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,46 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
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 'JobWrapper' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::JobWrapper.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of JobWrapper' do
31
+ it 'should create an instact of JobWrapper' do
32
+ @instance.should be_a(IronTitan::JobWrapper)
33
+ end
34
+ end
35
+ describe 'test attribute "job"' 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,146 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
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 'Job' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::Job.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Job' do
31
+ it 'should create an instact of Job' do
32
+ @instance.should be_a(IronTitan::Job)
33
+ end
34
+ end
35
+ describe 'test attribute "image"' 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 "retries"' 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 "completed_at"' 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 "payload"' 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 "name"' 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
+ describe 'test attribute "created_at"' do
96
+ it 'should work' do
97
+ # assertion here
98
+ # should be_a()
99
+ # should be_nil
100
+ # should ==
101
+ # should_not ==
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "started_at"' do
106
+ it 'should work' do
107
+ # assertion here
108
+ # should be_a()
109
+ # should be_nil
110
+ # should ==
111
+ # should_not ==
112
+ end
113
+ end
114
+
115
+ describe 'test attribute "id"' do
116
+ it 'should work' do
117
+ # assertion here
118
+ # should be_a()
119
+ # should be_nil
120
+ # should ==
121
+ # should_not ==
122
+ end
123
+ end
124
+
125
+ describe 'test attribute "timeout"' do
126
+ it 'should work' do
127
+ # assertion here
128
+ # should be_a()
129
+ # should be_nil
130
+ # should ==
131
+ # should_not ==
132
+ end
133
+ end
134
+
135
+ describe 'test attribute "status"' 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
+
145
+ end
146
+
@@ -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.1
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.1
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
+