Bug #16088
Test failures under Rails 4.2.7.1
Description
The following test failures are seen with #16085 under Rails 4.2.7.1:
08:53:32 7) Failure: 08:53:32 Katello::ErratumAvailableTest#test_installable_for_hosts_dev_environment_with_repos [/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/erratum_test.rb:163]: 08:53:32 Expected #<ActiveRecord::Relation []> to include #<Katello::Erratum id: 94098884, uuid: "partylikeits1999", errata_id: "RHSA-1999-1231", created_at: "2016-08-12 08:20:27", updated_at: "2016-08-12 08:20:27", issued: "2016-08-09", updated: "2016-08-09", errata_type: "security", severity: "Critical", title: "World is ending", solution: nil, description: nil, summary: nil, reboot_suggested: true>. 08:53:32 08:53:32 08:53:32 8) Failure: 08:53:32 Katello::ErratumAvailableTest#test_installable_for_hosts [/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/erratum_test.rb:148]: 08:53:32 Expected #<ActiveRecord::Relation []> to include #<Katello::Erratum id: 94098884, uuid: "partylikeits1999", errata_id: "RHSA-1999-1231", created_at: "2016-08-12 08:20:27", updated_at: "2016-08-12 08:20:27", issued: "2016-08-09", updated: "2016-08-09", errata_type: "security", severity: "Critical", title: "World is ending", solution: nil, description: nil, summary: nil, reboot_suggested: true>. 08:53:32 08:53:32 08:53:32 9) Failure: 08:53:32 Katello::ErratumAvailableTest#test_installable_for_hosts_dev_environment [/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/erratum_test.rb:155]: 08:53:32 Expected #<ActiveRecord::Relation []> to include #<Katello::Erratum id: 94098884, uuid: "partylikeits1999", errata_id: "RHSA-1999-1231", created_at: "2016-08-12 08:20:27", updated_at: "2016-08-12 08:20:27", issued: "2016-08-09", updated: "2016-08-09", errata_type: "security", severity: "Critical", title: "World is ending", solution: nil, description: nil, summary: nil, reboot_suggested: true>.
They may be introduced by 4.2.7 or the security fixes (which will appear in packages shortly).
Related issues
Associated revisions
History
#1
Updated by Dominic Cleal over 4 years ago
- Related to Refactor #16085: Update Rails to 4.2.7.1 added
#2
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/Katello/katello/pull/6244 added
#3
Updated by Anonymous over 4 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|db95d8676965d81cb5df35951d8f9edf117785e7.
#4
Updated by Justin Sherrill over 4 years ago
- Legacy Backlogs Release (now unused) set to 162
- Difficulty set to easy
#5
Updated by Daniel Lobato Garcia over 4 years ago
- Target version set to 1.6.2
Fixes #16088 - Compatibility with Rails 4.2.7 (#6244)
Fixes a deprecation that caused tests to fail
"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."