[6.19.z] update test for enable/disable recommendations (IoP) - #21006
[6.19.z] update test for enable/disable recommendations (IoP)#21006Satellite-QE wants to merge 2 commits into
Conversation
|
trigger: test-robottelo |
Reviewer's GuideUpdates the IOP recommendations UI test to target RHEL 10 only and to explicitly disable and re-enable a specific recommendation, validating its status transitions and new SAT requirement coverage. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The test now mixes the OPENSSH_RECOMMENDATION constant with hard-coded string values like 'Decreased security: OpenSSH config permissions'; consider using the constant (or another shared constant) consistently to avoid brittle string coupling.
- The RHEL version marker was changed from a regex to the literal '10', which seems less future-proof than the described N-1 selector; consider keeping a pattern-based selector so the test doesn't need updating for each new major RHEL release.
- After re-enabling the recommendation you call apply_filter('Status', 'Enabled') but ignore its result; wiring this into the subsequent assertions (or asserting on the status directly) would make the test intent clearer and avoid dead code.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The test now mixes the OPENSSH_RECOMMENDATION constant with hard-coded string values like 'Decreased security: OpenSSH config permissions'; consider using the constant (or another shared constant) consistently to avoid brittle string coupling.
- The RHEL version marker was changed from a regex to the literal '10', which seems less future-proof than the described N-1 selector; consider keeping a pattern-based selector so the test doesn't need updating for each new major RHEL release.
- After re-enabling the recommendation you call apply_filter('Status', 'Enabled') but ignore its result; wiring this into the subsequent assertions (or asserting on the status directly) would make the test intent clearer and avoid dead code.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
|
trigger: test-robottelo |
|
@ColeHiggins2 Could you resolve the merge conflicts on this PR? |
|
Hey @ColeHiggins2, this cherry-pick PR has merge conflicts that need to be resolved before it can be merged. Could you take a look? |
* update test for enable disable iop * Fix failing tests and fixture * pre-commit * update pytest marker * add enable functionality to iop * update pytest marker * update test with new entity * update to rhel 10 for recommendations (cherry picked from commit 0b9ef3c)
f74551a to
2402337
Compare
|
This pull request has not been updated in the past 45 days. |
|
This pull request is now being closed after stale warnings. |
Cherrypick of PR: #20520
Test for disabling/enabling recommendations on IOP.
SAT-38139
SatelliteQE/airgun#2247
Summary by Sourcery
Update IOP recommendations UI test to validate disabling and re-enabling a specific recommendation on RHEL 10.
Tests: