spec/api/jobs_api_spec.rb in dkron-rb-1.0.0 vs spec/api/jobs_api_spec.rb in dkron-rb-1.1.0
- old
+ new
@@ -4,11 +4,11 @@
#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.
OpenAPI spec version: 1
Generated by: https://github.com/swagger-api/swagger-codegen.git
-Swagger Codegen version: 2.4.2
+Swagger Codegen version: 2.4.18
=end
require 'spec_helper'
require 'json'
@@ -34,10 +34,11 @@
# unit tests for create_or_update_job
# Create or updates a new job.
# @param body Updated job object
# @param [Hash] opts the optional parameters
+ # @option opts [BOOLEAN] :runoncreate If present, regardless of any value, causes the job to be run immediately after being succesfully created or updated.
# @return [Job]
describe 'create_or_update_job test' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
@@ -55,12 +56,28 @@
end
# unit tests for get_jobs
# List jobs.
# @param [Hash] opts the optional parameters
- # @option opts [Array<String>] :tags Filter jobs by tags
+ # @option opts [Array<String>] :metadata Filter jobs by metadata
+ # @option opts [String] :_sort Sorting field
+ # @option opts [String] :_order Sort order (ASC/DESC)
+ # @option opts [String] :q Filter query text
+ # @option opts [Integer] :_start Start index
+ # @option opts [Integer] :_end End index
# @return [Array<Job>]
describe 'get_jobs test' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ # unit tests for restore
+ # Restore jobs from json file.
+ # @param file Json file that needs to be restored.
+ # @param [Hash] opts the optional parameters
+ # @return [Array<Restore>]
+ describe 'restore test' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end