Project

General

Profile

Bug #20795

Katello redhat extension tests intermittently fail

Added by Eric Helms about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

20:42:50  10) Error:
20:42:50 Katello::RedhatExtensionsTest#test_distribution_repositories:
20:42:50 ActiveRecord::RecordInvalid: Validation failed: Name Operating system version already exists, Title has already been taken
20:42:50     test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
20:42:50     test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
20:42:50     /var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/app/models/katello/concerns/redhat_extensions.rb:34:in `create_operating_system'
20:42:50     /var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/concerns/redhat_extensions_test.rb:45:in `test_distribution_repositories'
20:42:50 
20:42:50  11) Failure:
20:42:50 Katello::RedhatExtensionsTest#test_find_or_create_operating_system [/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/concerns/redhat_extensions_test.rb:14]:
20:42:50 Expected #<Redhat id: 1073012850, major: "2", name: "RedHat", minor: "1", nameindicator: nil, created_at: "2017-08-25 20:38:07", updated_at: "2017-08-25 20:38:07", release_name: nil, type: "Redhat", description: nil, password_hash: "SHA256", title: "RedHat 2.1"> to be nil.
20:42:50 
20:42:50  12) Failure:
20:42:50 Katello::RedhatExtensionsTest#test_create_operating_system [/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/2.2/slave/fast/plugin/test/models/concerns/redhat_extensions_test.rb:28]:
20:42:50 Expected #<Redhat id: 1073012850, major: "2", name: "RedHat", minor: "1", nameindicator: nil, created_at: "2017-08-25 20:38:07", updated_at: "2017-08-25 20:38:07", release_name: nil, type: "Redhat", description: nil, password_hash: "SHA256", title: "RedHat 2.1"> to be nil.

Associated revisions

Revision ea6d4b56 (diff)
Added by Eric Helms about 4 years ago

Fixes #20795 - Run dynflow in thread during tests

History

#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Eric Helms
  • Pull request https://github.com/Katello/katello/pull/6927 added

#2 Updated by Eric Helms about 4 years ago

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

#3 Updated by The Foreman Bot about 4 years ago

  • Pull request https://github.com/Katello/katello/pull/6949 added

Also available in: Atom PDF