Project

General

Profile

Bug #16088

Test failures under Rails 4.2.7.1

Added by Dominic Cleal over 2 years ago. Updated 7 months ago.

Status:
Closed
Priority:
High
Category:
Tests
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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

Related to Foreman - Refactor #16085: Update Rails to 4.2.7.1Closed2016-08-12

Associated revisions

Revision db95d867 (diff)
Added by Daniel Lobato GarcĂ­a over 2 years ago

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."

History

#1 Updated by Dominic Cleal over 2 years ago

#2 Updated by The Foreman Bot over 2 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 2 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 162
  • Difficulty set to easy

#5 Updated by Daniel Lobato Garcia over 2 years ago

  • Target version set to 1.6.2

Also available in: Atom PDF