spec/models/job_spec.rb in iron_titan-0.3.10 vs spec/models/job_spec.rb in iron_titan-0.4.0
- old
+ new
@@ -1,15 +1,26 @@
=begin
Titan API
The ultimate, language agnostic, container based job processing framework.
-OpenAPI spec version: 0.3.10
+OpenAPI spec version: 0.4.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
=end
require 'spec_helper'
require 'json'
require 'date'
@@ -27,179 +38,123 @@
# run after each test
end
describe 'test an instance of Job' do
it 'should create an instact of Job' do
- @instance.should be_a(IronTitan::Job)
+ expect(@instance).to be_instance_of(IronTitan::Job)
end
end
describe 'test attribute "image"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "payload"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "delay"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "timeout"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "priority"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "max_retries"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "retries_delay"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "id"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "status"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["delayed", "queued", "running", "success", "error", "cancelled"])
+ validator.allowable_values.each do |value|
+ expect { @instance.status = value }.not_to raise_error
+ end
end
end
- describe 'test attribute "name"' do
+ describe 'test attribute "group_name"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "error"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "reason"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["timeout", "killed", "bad_exit", "client_request"])
+ validator.allowable_values.each do |value|
+ expect { @instance.reason = value }.not_to raise_error
+ end
end
end
describe 'test attribute "created_at"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "started_at"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "completed_at"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "retry_of"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
describe 'test attribute "retry_at"' do
it 'should work' do
- # assertion here
- # should be_a()
- # should be_nil
- # should ==
- # should_not ==
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "env_vars"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
end