Project

General

Profile

Bug #17582

Bootdisk functional tests fails with Katello installed alongside.

Added by Swapnil Abnave over 5 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

History

#1 Updated by Justin Sherrill over 5 years ago

  • Project changed from Boot disk to Katello
  • Category set to Tests

#2 Updated by Swapnil Abnave over 5 years ago

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

#3 Updated by Swapnil Abnave over 5 years ago

  • Status changed from New to Rejected

Disabling Katello plugin and re-running the test worked.

#4 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF