Project

General

Profile

Actions

Bug #17582

closed

Bootdisk functional tests fails with Katello installed alongside.

Added by Swapnil Abnave over 7 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

rake test:foreman_bootdisk fails with error: ActiveRecord::RecordInvalid: Validation failed: Download policy must be one of the following: immediate, on_demand, background, inherit

download_policy is actually part of Katello which is causing the tests to fail (https://github.com/Katello/katello/search?l=Ruby&q=download_policy&utf8=%E2%9C%93)

## Command:

rake test:foreman_bootdisk TEST=/home/vagrant/foreman_bootdisk/test/functional/foreman_bootdisk/api/v2/disks_controller_test.rb

.EE

Finished in 2.331618s, 2.5733 runs/s, 1.7155 assertions/s.

  1) 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/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'

  2) 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/foreman_bootdisk/test/test_plugin_helper.rb:29:in `setup_subnet'

--

Expected results:
All foreman_bootdisk tests should pass with Katello installed.

Actions #1

Updated by Justin Sherrill over 7 years ago

  • Project changed from Boot disk to Katello
  • Category set to Tests
Actions #2

Updated by Swapnil Abnave over 7 years ago

  • Subject changed from Functional test fails with Katello installed alongside. to Bootdisk functional tests fails with Katello installed alongside.
Actions #3

Updated by Swapnil Abnave over 7 years ago

  • Status changed from New to Rejected

Disabling Katello plugin and re-running the test worked.

Actions #4

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF