Skip to content

[6.19.z] SAT-44548 coverage#22207

Open
Satellite-QE wants to merge 1 commit into
6.19.zfrom
cherry-pick-6.19.z-de607c0416a7a4f8b458c2ca65a271d12a173f8b
Open

[6.19.z] SAT-44548 coverage#22207
Satellite-QE wants to merge 1 commit into
6.19.zfrom
cherry-pick-6.19.z-de607c0416a7a4f8b458c2ca65a271d12a173f8b

Conversation

@Satellite-QE

Copy link
Copy Markdown
Collaborator

Cherrypick of PR: #22195

Problem Statement

Bulk "Change Location" via "Select All" on the All Hosts page ignored the current location context and applied the change to all hosts across the Satellite, not just the ones visible in the selected location.

Solution

Added a UI test that verifies the fix from theforeman/foreman#11033.
The test creates hosts in two different locations, performs a bulk location change using "Select All" while scoped to one location, and asserts that only hosts from that location are moved while hosts in the other location remain unaffected.

PRT test Cases example

image
trigger: test-robottelo
pytest: tests/foreman/ui/test_host.py -k 'test_positive_bulk_change_location_select_all_respects_context'

Summary by Sourcery

Tests:

  • Add a host UI test that verifies bulk 'Change Location' only moves hosts from the selected location while leaving hosts in other locations unchanged.

SAT-44548-coverage

(cherry picked from commit de607c0)
@Satellite-QE Satellite-QE added 6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Jul 22, 2026
@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Jul 22, 2026
@SatelliteQE SatelliteQE deleted a comment from Satellite-QE Jul 22, 2026
@LadislavVasina1

Copy link
Copy Markdown
Contributor
trigger: test-robottelo
pytest: tests/foreman/ui/test_host.py -k 'test_positive_bulk_change_location_select_all_respects_context'

@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 16195
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/ui/test_host.py -k test_positive_bulk_change_location_select_all_respects_context --external-logging
Test Result : ========== 1 failed, 96 deselected, 5 warnings in 1193.73s (0:19:53) ===========

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Jul 22, 2026
@LadislavVasina1

Copy link
Copy Markdown
Contributor

Fix for other branches was not yet decided; working on the resolution of this.
Keeping the PR for the future in case the fix is backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Failed Indicates that latest PRT run is failed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants