Project

General

Profile

Bug #27171

Realms controller transient failures

Added by Tomer Brisker 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Appears like one of the tests is failing randomly for the past few days:

--- expected
+++ actual
@@ -1 +1 @@
-#<ActiveRecord::Relation [#<Realm id: 936160439, name: "yourrealm.net", realm_type: "FreeIPA", realm_proxy_id: 982965213, created_at: "2019-06-26 09:24:22", updated_at: "2019-06-26 09:24:22">, #<Realm id: 664044182, name: "myrealm.net", realm_type: "FreeIPA", realm_proxy_id: 982965213, created_at: "2019-06-26 09:24:22", updated_at: "2019-06-26 09:24:22">]>
+#<ActiveRecord::Associations::CollectionProxy [#<Realm id: 664044182, name: "myrealm.net", realm_type: "FreeIPA", realm_proxy_id: 982965213, created_at: "2019-06-26 09:24:22", updated_at: "2019-06-26 09:24:22">, #<Realm id: 936160439, name: "yourrealm.net", realm_type: "FreeIPA", realm_proxy_id: 982965213, created_at: "2019-06-26 09:24:22", updated_at: "2019-06-26 09:24:22">]>
 (Minitest::Assertion)
/home/jenkins/workspace/foreman-develop-source-release/test/controllers/api/v2/realms_controller_test.rb:66 

Related issues

Copied to Foreman - Bug #27265: Domains controller transient failuresClosed

Associated revisions

Revision dfc81523 (diff)
Added by Tomer Brisker 3 months ago

Fixes #27171 - Improve realms api controller test (#6886)

Clean up taxonomy testing in the controller and ensure when comparing a
list of realms it is sorted to avoid transient failures due to order.

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6886 added

#2 Updated by Marek Hulán 3 months ago

  • Fixed in Releases 1.23.0 added

#3 Updated by Tomer Brisker 3 months ago

  • Copied to Bug #27265: Domains controller transient failures added

#4 Updated by Tomer Brisker 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF