[6.19.z] Fix errata contenthost - #20841
Merged
Satellite-QE merged 1 commit intoFeb 23, 2026
Merged
Conversation
* Fix test_content_host_errata_search_commands * Fix test_positive_apply_for_all_hosts * Remove test_positive_content_host_previous_env * Fix test_positive_show_count_on_host_pages * Address comments (cherry picked from commit 3653f9b)
Collaborator
Author
|
Contributor
Reviewer's GuideUpdate errata UI tests to stop using the removed legacy Content Host page, switch them to the new Host/All Hosts UI, and relax/adjust assertions to match the new flows and data shapes, while removing one obsolete legacy-only test. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
test_positive_apply_for_all_hosts, changing the applicability task assertion fromlen(applicability_tasks) == num_hosts + 1to> 0makes the test much weaker; consider asserting a minimum relative tonum_hosts(e.g.>= num_hosts) or otherwise tightening the expectation to preserve coverage while still avoiding dependence on the legacy extra task. - In
test_positive_apply_for_all_hosts,session.host_new.search(client.hostname)is called without using the result; if this is only for navigation side effects, consider adding a short comment to clarify that, or refactor to a dedicated helper method to make the intent explicit.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `test_positive_apply_for_all_hosts`, changing the applicability task assertion from `len(applicability_tasks) == num_hosts + 1` to `> 0` makes the test much weaker; consider asserting a minimum relative to `num_hosts` (e.g. `>= num_hosts`) or otherwise tightening the expectation to preserve coverage while still avoiding dependence on the legacy extra task.
- In `test_positive_apply_for_all_hosts`, `session.host_new.search(client.hostname)` is called without using the result; if this is only for navigation side effects, consider adding a short comment to clarify that, or refactor to a dedicated helper method to make the intent explicit.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
|
Collaborator
Author
|
PRT Result |
Satellite-QE
deleted the
cherry-pick-6.19.z-3653f9b8d375715c137532b9a6025697c304089b
branch
February 23, 2026 20:06
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.
Cherrypick of PR: #20825
Problem Statement
The legacy "Content host" page has been removed as part of SAT-37927 but some errata UI tests were left behind, trying to reach removed
contenthostproperty, views and entities.Solution
Use "All hosts page" instead where possible, remove what is "Content host" page related.
Related Issues
https://issues.redhat.com/browse/SAT-42273
PRT test Cases example
Summary by Sourcery
Update UI errata tests to align with the new All Hosts interface and current errata/task behavior, removing legacy Content Host dependencies.
Bug Fixes:
Tests: