Actions
Bug #17582
closedBootdisk functional tests fails with Katello installed alongside.
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.
Updated by Justin Sherrill over 8 years ago
- Project changed from Boot disk to Katello
- Category set to Tests
Updated by Swapnil Abnave over 8 years ago
- Subject changed from Functional test fails with Katello installed alongside. to Bootdisk functional tests fails with Katello installed alongside.
Updated by Swapnil Abnave over 8 years ago
- Status changed from New to Rejected
Disabling Katello plugin and re-running the test worked.
Updated by Justin Sherrill over 8 years ago
- Translation missing: en.field_release set to 166
Actions