Update test_positive_all_hosts_check_status_icon#21521
Open
LadislavVasina1 wants to merge 3 commits into
Open
Conversation
Contributor
Reviewer's GuideExpands and refactors the All Hosts status icon UI test to use dedicated content hosts for each status (success, danger, warning), sets up their states more realistically via registration and package operations, and validates the dynamically recalculated status icons and details in the UI. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
Author
|
Collaborator
|
PRT Result |
Contributor
Author
|
Collaborator
|
PRT Result |
synkd
approved these changes
May 29, 2026
Contributor
synkd
left a comment
There was a problem hiding this comment.
Looks good, thanks for adding coverage for my change!
ColeHiggins2
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Statement
After the fix for SAT-42220 (https://redhat.atlassian.net/browse/SAT-42220) (host status dynamically recalculated on new All Hosts page), the existing
test_positive_all_hosts_check_status_iconstarted failing.The test previously asserted success status for the Satellite host, but that only worked because global_status was stale in the database — the exact bug SAT-42220 fixed.
Additionally, the test had misleading variable names (warning_host expected danger, error_host expected warning).
Solution
Related Issues
Needs: theforeman/foreman#10993
PRT test Cases example
Summary by Sourcery
Tests: