Bug #27171
Realms controller transient failures
Pull request:
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
Associated revisions
History
#1
Updated by The Foreman Bot 5 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 5 months ago
- Fixed in Releases 1.23.0 added
#3
Updated by Tomer Brisker 5 months ago
- Copied to Bug #27265: Domains controller transient failures added
#4
Updated by Tomer Brisker 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset dfc815232da6c2d9668bbf1ef853cf90fea8afba.
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.