dkron-rb 0.11.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +0 -0
- data/README.md +8 -7
- data/Rakefile +0 -4
- data/dkron-rb.gemspec +10 -11
- data/docs/DefaultApi.md +0 -0
- data/docs/Execution.md +0 -0
- data/docs/ExecutionsApi.md +1 -1
- data/docs/ExecutorConfig.md +0 -0
- data/docs/Job.md +0 -0
- data/docs/JobsApi.md +60 -6
- data/docs/Member.md +0 -0
- data/docs/MembersApi.md +0 -0
- data/docs/Processors.md +0 -0
- data/docs/Status.md +3 -0
- data/git_push.sh +3 -3
- data/lib/dkron-rb.rb +2 -2
- data/lib/dkron-rb/api/default_api.rb +12 -21
- data/lib/dkron-rb/api/executions_api.rb +6 -9
- data/lib/dkron-rb/api/jobs_api.rb +73 -33
- data/lib/dkron-rb/api/members_api.rb +6 -9
- data/lib/dkron-rb/api_client.rb +10 -10
- data/lib/dkron-rb/api_error.rb +2 -2
- data/lib/dkron-rb/configuration.rb +3 -3
- data/lib/dkron-rb/models/execution.rb +7 -11
- data/lib/dkron-rb/models/executor_config.rb +7 -11
- data/lib/dkron-rb/models/job.rb +9 -13
- data/lib/dkron-rb/models/member.rb +7 -11
- data/lib/dkron-rb/models/processors.rb +7 -11
- data/lib/dkron-rb/models/status.rb +37 -11
- data/lib/dkron-rb/version.rb +3 -3
- data/spec/api/default_api_spec.rb +5 -8
- data/spec/api/executions_api_spec.rb +3 -4
- data/spec/api/jobs_api_spec.rb +19 -12
- data/spec/api/members_api_spec.rb +3 -4
- data/spec/api_client_spec.rb +36 -36
- data/spec/configuration_spec.rb +10 -10
- data/spec/models/execution_spec.rb +8 -9
- data/spec/models/executor_config_spec.rb +2 -3
- data/spec/models/job_spec.rb +20 -21
- data/spec/models/member_spec.rb +13 -14
- data/spec/models/processors_spec.rb +2 -3
- data/spec/models/status_spec.rb +20 -3
- data/spec/spec_helper.rb +2 -2
- metadata +18 -45
- data/Gemfile.lock +0 -67
- data/LICENSE +0 -201
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/config.json +0 -5
- data/docs/Agent.md +0 -7
- data/docs/ExecutorShell.md +0 -10
- data/docs/InlineResponse200.md +0 -10
- data/docs/MainApi.md +0 -90
- data/docs/ProcessorFiles.md +0 -9
- data/docs/ProcessorLog.md +0 -8
- data/docs/ProcessorSyslog.md +0 -8
- data/docs/Serf.md +0 -7
- data/docs/Tags.md +0 -7
- data/lib/dkron-rb/cron.rb +0 -152
- data/lib/dkron-rb/models/agent.rb +0 -152
- data/lib/dkron-rb/models/executor_shell.rb +0 -208
- data/lib/dkron-rb/models/inline_response_200.rb +0 -181
- data/lib/dkron-rb/models/processor_files.rb +0 -198
- data/lib/dkron-rb/models/processor_log.rb +0 -189
- data/lib/dkron-rb/models/processor_syslog.rb +0 -189
- data/lib/dkron-rb/models/serf.rb +0 -152
- data/lib/dkron-rb/models/tags.rb +0 -152
- data/lib/dkron-rb/numeric_seconds.rb +0 -48
- data/lib/dkron.rb +0 -9
- data/node_modules/isarray/build/build.js +0 -209
- data/node_modules/mime/build/build.js +0 -11
- data/node_modules/mime/build/test.js +0 -57
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,13 +33,12 @@ describe 'ExecutionsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for list_executions_by_job
|
36
|
-
#
|
37
36
|
# List executions.
|
38
37
|
# @param job_name The job that owns the executions to be fetched.
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [Array<Execution>]
|
41
40
|
describe 'list_executions_by_job test' do
|
42
|
-
it
|
41
|
+
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
43
|
end
|
45
44
|
end
|
data/spec/api/jobs_api_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,60 +33,67 @@ describe 'JobsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create_or_update_job
|
36
|
-
#
|
37
36
|
# Create or updates a new job.
|
38
37
|
# @param body Updated job object
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [Job]
|
41
40
|
describe 'create_or_update_job test' do
|
42
|
-
it
|
41
|
+
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
46
|
# unit tests for delete_job
|
48
|
-
#
|
49
47
|
# Delete a job.
|
50
48
|
# @param job_name The job that needs to be deleted.
|
51
49
|
# @param [Hash] opts the optional parameters
|
52
50
|
# @return [Job]
|
53
51
|
describe 'delete_job test' do
|
54
|
-
it
|
52
|
+
it 'should work' do
|
55
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
59
57
|
# unit tests for get_jobs
|
60
|
-
#
|
61
58
|
# List jobs.
|
62
59
|
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [Array<String>] :tags Filter jobs by tags
|
63
61
|
# @return [Array<Job>]
|
64
62
|
describe 'get_jobs test' do
|
65
|
-
it
|
63
|
+
it 'should work' do
|
66
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
65
|
end
|
68
66
|
end
|
69
67
|
|
70
68
|
# unit tests for run_job
|
71
|
-
#
|
72
69
|
# Executes a job.
|
73
70
|
# @param job_name The job that needs to be run.
|
74
71
|
# @param [Hash] opts the optional parameters
|
75
72
|
# @return [Job]
|
76
73
|
describe 'run_job test' do
|
77
|
-
it
|
74
|
+
it 'should work' do
|
78
75
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
76
|
end
|
80
77
|
end
|
81
78
|
|
82
79
|
# unit tests for show_job_by_name
|
83
|
-
#
|
84
80
|
# Show a job.
|
85
81
|
# @param job_name The job that needs to be fetched.
|
86
82
|
# @param [Hash] opts the optional parameters
|
87
83
|
# @return [Job]
|
88
84
|
describe 'show_job_by_name test' do
|
89
|
-
it
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for toggle_job
|
91
|
+
# Toggle a job.
|
92
|
+
# @param job_name The job that needs to be toggled.
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [Job]
|
95
|
+
describe 'toggle_job test' do
|
96
|
+
it 'should work' do
|
90
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
98
|
end
|
92
99
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,12 +33,11 @@ describe 'MembersApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_member
|
36
|
-
#
|
37
36
|
# List members.
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
38
|
# @return [Array<Member>]
|
40
39
|
describe 'get_member test' do
|
41
|
-
it
|
40
|
+
it 'should work' do
|
42
41
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
42
|
end
|
44
43
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,11 +51,11 @@ describe Dkron::ApiClient do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
55
|
let(:config) { Dkron::Configuration.new }
|
56
56
|
let(:api_client) { Dkron::ApiClient.new(config) }
|
57
57
|
|
58
|
-
it
|
58
|
+
it 'defaults to nil' do
|
59
59
|
expect(Dkron::Configuration.default.params_encoding).to eq(nil)
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
61
61
|
|
@@ -63,18 +63,18 @@ describe Dkron::ApiClient do
|
|
63
63
|
expect(request.options[:params_encoding]).to eq(nil)
|
64
64
|
end
|
65
65
|
|
66
|
-
it
|
66
|
+
it 'can be customized' do
|
67
67
|
config.params_encoding = :multi
|
68
68
|
request = api_client.build_request(:get, '/test')
|
69
69
|
expect(request.options[:params_encoding]).to eq(:multi)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
describe
|
73
|
+
describe 'timeout in #build_request' do
|
74
74
|
let(:config) { Dkron::Configuration.new }
|
75
75
|
let(:api_client) { Dkron::ApiClient.new(config) }
|
76
76
|
|
77
|
-
it
|
77
|
+
it 'defaults to 0' do
|
78
78
|
expect(Dkron::Configuration.default.timeout).to eq(0)
|
79
79
|
expect(config.timeout).to eq(0)
|
80
80
|
|
@@ -82,88 +82,88 @@ describe Dkron::ApiClient do
|
|
82
82
|
expect(request.options[:timeout]).to eq(0)
|
83
83
|
end
|
84
84
|
|
85
|
-
it
|
85
|
+
it 'can be customized' do
|
86
86
|
config.timeout = 100
|
87
87
|
request = api_client.build_request(:get, '/test')
|
88
88
|
expect(request.options[:timeout]).to eq(100)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
describe
|
92
|
+
describe '#deserialize' do
|
93
93
|
it "handles Array<Integer>" do
|
94
94
|
api_client = Dkron::ApiClient.new
|
95
|
-
headers = {'Content-Type' => 'application/json'}
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
96
96
|
response = double('response', headers: headers, body: '[12, 34]')
|
97
97
|
data = api_client.deserialize(response, 'Array<Integer>')
|
98
98
|
expect(data).to be_instance_of(Array)
|
99
99
|
expect(data).to eq([12, 34])
|
100
100
|
end
|
101
101
|
|
102
|
-
it
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
103
103
|
api_client = Dkron::ApiClient.new
|
104
|
-
headers = {'Content-Type' => 'application/json'}
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
105
105
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
106
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
107
107
|
expect(data).to be_instance_of(Array)
|
108
108
|
expect(data).to eq([[12, 34], [56]])
|
109
109
|
end
|
110
110
|
|
111
|
-
it
|
111
|
+
it 'handles Hash<String, String>' do
|
112
112
|
api_client = Dkron::ApiClient.new
|
113
|
-
headers = {'Content-Type' => 'application/json'}
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
114
114
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
115
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
116
116
|
expect(data).to be_instance_of(Hash)
|
117
|
-
expect(data).to eq(
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
121
|
describe "#object_to_hash" do
|
122
|
-
it
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
123
123
|
# uncomment below to test object_to_hash for model
|
124
|
-
#api_client = Dkron::ApiClient.new
|
125
|
-
#_model = Dkron::ModelName.new
|
124
|
+
# api_client = Dkron::ApiClient.new
|
125
|
+
# _model = Dkron::ModelName.new
|
126
126
|
# update the model attribute below
|
127
|
-
#_model.id = 1
|
127
|
+
# _model.id = 1
|
128
128
|
# update the expected value (hash) below
|
129
|
-
#expected = {id: 1, name: '', tags: []}
|
130
|
-
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
134
|
-
describe
|
134
|
+
describe '#build_collection_param' do
|
135
135
|
let(:param) { ['aa', 'bb', 'cc'] }
|
136
136
|
let(:api_client) { Dkron::ApiClient.new }
|
137
137
|
|
138
|
-
it
|
138
|
+
it 'works for csv' do
|
139
139
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
140
140
|
end
|
141
141
|
|
142
|
-
it
|
142
|
+
it 'works for ssv' do
|
143
143
|
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
144
144
|
end
|
145
145
|
|
146
|
-
it
|
146
|
+
it 'works for tsv' do
|
147
147
|
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
148
148
|
end
|
149
149
|
|
150
|
-
it
|
150
|
+
it 'works for pipes' do
|
151
151
|
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
152
152
|
end
|
153
153
|
|
154
|
-
it
|
154
|
+
it 'works for multi' do
|
155
155
|
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
156
156
|
end
|
157
157
|
|
158
|
-
it
|
158
|
+
it 'fails for invalid collection format' do
|
159
159
|
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
163
|
-
describe
|
163
|
+
describe '#json_mime?' do
|
164
164
|
let(:api_client) { Dkron::ApiClient.new }
|
165
165
|
|
166
|
-
it
|
166
|
+
it 'works' do
|
167
167
|
expect(api_client.json_mime?(nil)).to eq false
|
168
168
|
expect(api_client.json_mime?('')).to eq false
|
169
169
|
|
@@ -177,10 +177,10 @@ describe Dkron::ApiClient do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
-
describe
|
180
|
+
describe '#select_header_accept' do
|
181
181
|
let(:api_client) { Dkron::ApiClient.new }
|
182
182
|
|
183
|
-
it
|
183
|
+
it 'works' do
|
184
184
|
expect(api_client.select_header_accept(nil)).to be_nil
|
185
185
|
expect(api_client.select_header_accept([])).to be_nil
|
186
186
|
|
@@ -193,10 +193,10 @@ describe Dkron::ApiClient do
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
-
describe
|
196
|
+
describe '#select_header_content_type' do
|
197
197
|
let(:api_client) { Dkron::ApiClient.new }
|
198
198
|
|
199
|
-
it
|
199
|
+
it 'works' do
|
200
200
|
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
201
201
|
expect(api_client.select_header_content_type([])).to eq('application/json')
|
202
202
|
|
@@ -208,10 +208,10 @@ describe Dkron::ApiClient do
|
|
208
208
|
end
|
209
209
|
end
|
210
210
|
|
211
|
-
describe
|
211
|
+
describe '#sanitize_filename' do
|
212
212
|
let(:api_client) { Dkron::ApiClient.new }
|
213
213
|
|
214
|
-
it
|
214
|
+
it 'works' do
|
215
215
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
216
216
|
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
217
217
|
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
data/spec/configuration_spec.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,25 +17,25 @@ describe Dkron::Configuration do
|
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
|
-
#require 'URI'
|
21
|
-
#uri = URI.parse("http://localhost:8080/v1")
|
22
|
-
#Dkron.configure do |c|
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#end
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("http://localhost:8080/v1")
|
22
|
+
# Dkron.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
26
|
end
|
27
27
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
#expect(config.base_url).to eq("http://localhost:8080/v1")
|
31
|
+
# expect(config.base_url).to eq("http://localhost:8080/v1")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
#expect(config.base_url).to eq("http://localhost:8080/v1")
|
38
|
+
# expect(config.base_url).to eq("http://localhost:8080/v1")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,39 +34,38 @@ describe 'Execution' do
|
|
34
34
|
end
|
35
35
|
describe 'test attribute "job_name"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe 'test attribute "started_at"' do
|
42
42
|
it 'should work' do
|
43
|
-
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
describe 'test attribute "finished_at"' do
|
48
48
|
it 'should work' do
|
49
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
describe 'test attribute "success"' do
|
54
54
|
it 'should work' do
|
55
|
-
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
59
|
describe 'test attribute "output"' do
|
60
60
|
it 'should work' do
|
61
|
-
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
65
|
describe 'test attribute "node_name"' do
|
66
66
|
it 'should work' do
|
67
|
-
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
71
|
end
|
72
|
-
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,4 +33,3 @@ describe 'ExecutorConfig' do
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|