Skip to content

Instantly share code, notes, and snippets.

@swapab
Last active December 5, 2016 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swapab/abe825973a6db64d7408ab0fb30050f8 to your computer and use it in GitHub Desktop.
Save swapab/abe825973a6db64d7408ab0fb30050f8 to your computer and use it in GitHub Desktop.

Rake:

centos7-devel :: ~/foreman ‹develop*› » rake test:foreman_bootdisk

.EEEE..EEE.......................

Finished in 6.314247s, 5.2263 runs/s, 9.5023 assertions/s.

  1) Error:
ForemanBootdisk::Api::V2::DisksControllerTest::#host#test_0001_should generate host image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'


  2) Error:
ForemanBootdisk::Api::V2::DisksControllerTest::#host#test_0002_should generate full host image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'


  3) Error:
ForemanBootdisk::Api::V2::DisksControllerTest::default API version 2#test_0001_path - /bootdisk/api routes to #index:
NoMethodError: undefined method `network' for nil:NilClass
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:37:in `setup_host'


  4) Error:
ForemanBootdisk::Api::V2::SubnetDisksControllerTest::#subnet_host#test_0001_should generate subnet generic host image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'


  5) Error:
ForemanBootdisk::DisksControllerTest::#host#test_0001_should generate host image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'


  6) Error:
ForemanBootdisk::DisksControllerTest::#host#test_0002_should generate full host image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'


  7) Error:
ForemanBootdisk::DisksControllerTest::#host#test_0003_should generate subnet image:
ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
    test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:87:in `save!'
    /home/vagrant/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'

33 runs, 60 assertions, 0 failures, 7 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -I"lib:test:/home/vagrant/foreman_bootdisk/lib/tasks/../../test" -I"/home/vagrant/.rvm/gems/ruby-2.2.4/gems/rake-11.3.0/lib" "/home/vagrant/.rvm/gems/ruby-2.2.4/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "/home/vagrant/foreman_bootdisk/lib/tasks/../../test/**/*_test.rb" ]
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
/home/vagrant/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test:foreman_bootdisk
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment