dkron-rb 0.10.0 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +1 -5
- data/config.json +1 -1
- data/dkron-rb.gemspec +2 -2
- data/lib/dkron-rb.rb +1 -5
- data/lib/dkron-rb/api/default_api.rb +1 -1
- data/lib/dkron-rb/api/executions_api.rb +1 -1
- data/lib/dkron-rb/api/jobs_api.rb +1 -1
- data/lib/dkron-rb/api/members_api.rb +1 -1
- data/lib/dkron-rb/api_client.rb +1 -1
- data/lib/dkron-rb/api_error.rb +1 -1
- data/lib/dkron-rb/configuration.rb +1 -1
- data/lib/dkron-rb/models/execution.rb +1 -1
- data/lib/dkron-rb/models/executor_config.rb +1 -1
- data/lib/dkron-rb/models/job.rb +1 -1
- data/lib/dkron-rb/models/member.rb +1 -1
- data/lib/dkron-rb/models/processors.rb +1 -1
- data/lib/dkron-rb/models/status.rb +1 -1
- data/lib/dkron-rb/version.rb +2 -2
- data/node_modules/isarray/build/build.js +209 -0
- data/node_modules/mime/build/build.js +11 -0
- data/node_modules/mime/build/test.js +57 -0
- data/spec/api/default_api_spec.rb +12 -24
- data/spec/api/executions_api_spec.rb +8 -12
- data/spec/api/jobs_api_spec.rb +16 -36
- data/spec/api/members_api_spec.rb +8 -12
- data/spec/api_client_spec.rb +2 -13
- data/spec/configuration_spec.rb +2 -13
- data/spec/models/execution_spec.rb +12 -36
- data/spec/models/executor_config_spec.rb +1 -1
- data/spec/models/job_spec.rb +45 -87
- data/spec/models/member_spec.rb +17 -61
- data/spec/models/processors_spec.rb +1 -1
- data/spec/models/status_spec.rb +6 -6
- data/spec/spec_helper.rb +2 -13
- metadata +10 -27
- data/pkg/dkron-rb-0.9.2.gem +0 -0
- data/seeds.rb +0 -21
- data/spec/api/main_api_spec.rb +0 -65
- data/spec/models/agent_spec.rb +0 -36
- data/spec/models/executor_shell_spec.rb +0 -54
- data/spec/models/inline_response_200_spec.rb +0 -66
- data/spec/models/processor_files_spec.rb +0 -48
- data/spec/models/processor_log_spec.rb +0 -42
- data/spec/models/processor_syslog_spec.rb +0 -42
- data/spec/models/serf_spec.rb +0 -36
- data/spec/models/tags_spec.rb +0 -36
data/pkg/dkron-rb-0.9.2.gem
DELETED
Binary file
|
data/seeds.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
Dkron.configure do
|
2
|
-
|c| c.host = "localhost:8080"
|
3
|
-
end
|
4
|
-
|
5
|
-
5.times do |i|
|
6
|
-
j = Dkron::Job.new
|
7
|
-
j.name = "job_#{i}"
|
8
|
-
j.executor = "shell"
|
9
|
-
j.executor_config = {
|
10
|
-
"command": "date"
|
11
|
-
}
|
12
|
-
j.schedule = "@every 5s"
|
13
|
-
j.tags = {
|
14
|
-
role: "web"
|
15
|
-
}
|
16
|
-
j.disabled = false
|
17
|
-
|
18
|
-
ja = Dkron::JobsApi.new
|
19
|
-
ja.create_or_update_job(j)
|
20
|
-
end
|
21
|
-
|
data/spec/api/main_api_spec.rb
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Dkron REST API
|
3
|
-
|
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`.\n\nDkron 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.\n\nDefault API responses are unformatted JSON add the `pretty=true` param to format the response.\n
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.7.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
|
-
|
16
|
-
# Unit tests for Dkron::MainApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'MainApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = Dkron::MainApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of MainApi' do
|
30
|
-
it 'should create an instact of MainApi' do
|
31
|
-
@instance.should be_a(Dkron::MainApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for get_leader
|
36
|
-
#
|
37
|
-
# List members.\n
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Member]
|
40
|
-
describe 'get_leader test' do
|
41
|
-
it "should work" do
|
42
|
-
# assertion here
|
43
|
-
# should be_a()
|
44
|
-
# should be_nil
|
45
|
-
# should ==
|
46
|
-
# should_not ==
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
# unit tests for status
|
51
|
-
#
|
52
|
-
# Gets `Status` object.\n
|
53
|
-
# @param [Hash] opts the optional parameters
|
54
|
-
# @return [InlineResponse200]
|
55
|
-
describe 'status test' 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
|
data/spec/models/agent_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Dkron REST API
|
3
|
-
|
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`.\n\nDkron 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.\n\nDefault API responses are unformatted JSON add the `pretty=true` param to format the response.\n
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.7.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 Dkron::Agent
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Agent' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::Agent.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Agent' do
|
31
|
-
it 'should create an instact of Agent' do
|
32
|
-
@instance.should be_a(Dkron::Agent)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
@@ -1,54 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Dkron REST API
|
3
|
-
|
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
|
-
|
6
|
-
OpenAPI spec version: 0.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Dkron::ExecutorShell
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ExecutorShell' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::ExecutorShell.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ExecutorShell' do
|
31
|
-
it 'should create an instance of ExecutorShell' do
|
32
|
-
expect(@instance).to be_instance_of(Dkron::ExecutorShell)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "command"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "env"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "shell"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Dkron REST API
|
3
|
-
|
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`.\n\nDkron 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.\n\nDefault API responses are unformatted JSON add the `pretty=true` param to format the response.\n
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.7.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 Dkron::InlineResponse200
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse200' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::InlineResponse200.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse200' do
|
31
|
-
it 'should create an instact of InlineResponse200' do
|
32
|
-
@instance.should be_a(Dkron::InlineResponse200)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "agent"' 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 "serf"' 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 "tags"' 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
|
-
|
@@ -1,48 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Dkron REST API
|
3
|
-
|
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
|
-
|
6
|
-
OpenAPI spec version: 0.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Dkron::ProcessorFiles
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ProcessorFiles' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::ProcessorFiles.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ProcessorFiles' do
|
31
|
-
it 'should create an instance of ProcessorFiles' do
|
32
|
-
expect(@instance).to be_instance_of(Dkron::ProcessorFiles)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "forward"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "log_dir"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Dkron REST API
|
3
|
-
|
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
|
-
|
6
|
-
OpenAPI spec version: 0.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Dkron::ProcessorLog
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ProcessorLog' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::ProcessorLog.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ProcessorLog' do
|
31
|
-
it 'should create an instance of ProcessorLog' do
|
32
|
-
expect(@instance).to be_instance_of(Dkron::ProcessorLog)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "forward"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Dkron REST API
|
3
|
-
|
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
|
-
|
6
|
-
OpenAPI spec version: 0.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Dkron::ProcessorSyslog
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ProcessorSyslog' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::ProcessorSyslog.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ProcessorSyslog' do
|
31
|
-
it 'should create an instance of ProcessorSyslog' do
|
32
|
-
expect(@instance).to be_instance_of(Dkron::ProcessorSyslog)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "forward"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
|
data/spec/models/serf_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Dkron REST API
|
3
|
-
|
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`.\n\nDkron 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.\n\nDefault API responses are unformatted JSON add the `pretty=true` param to format the response.\n
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.7.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 Dkron::Serf
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Serf' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::Serf.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Serf' do
|
31
|
-
it 'should create an instact of Serf' do
|
32
|
-
@instance.should be_a(Dkron::Serf)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
data/spec/models/tags_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Dkron REST API
|
3
|
-
|
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`.\n\nDkron 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.\n\nDefault API responses are unformatted JSON add the `pretty=true` param to format the response.\n
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.7.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 Dkron::Tags
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Tags' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = Dkron::Tags.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Tags' do
|
31
|
-
it 'should create an instact of Tags' do
|
32
|
-
@instance.should be_a(Dkron::Tags)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|