-
Notifications
You must be signed in to change notification settings - Fork 131
[6.18.z] Fix AzureRM UI test host deletion assertion (#20466) #20573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.18.z] Fix AzureRM UI test host deletion assertion (#20466) #20573
Conversation
* Fix AzureRM UI test host deletion assertion --------- Co-authored-by: Arvind Jangir <[email protected]> (cherry picked from commit 7532ef3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- The
wait_forconditionsession.host_new.search(fqdn)[0].get('Name') == 'No Results'can raiseIndexErrorif the search returns an empty list; consider making the polling condition resilient to both an empty result set and the 'No Results' row (e.g., inspecting the full list safely before indexing). - Instead of hardcoding the
'No Results'string in the assertion, consider using a constant or helper method from the page object layer (if available) so the test is less brittle to UI text changes.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `wait_for` condition `session.host_new.search(fqdn)[0].get('Name') == 'No Results'` can raise `IndexError` if the search returns an empty list; consider making the polling condition resilient to both an empty result set and the 'No Results' row (e.g., inspecting the full list safely before indexing).
- Instead of hardcoding the `'No Results'` string in the assertion, consider using a constant or helper method from the page object layer (if available) so the test is less brittle to UI text changes.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
trigger: test-robottelo |
|
PRT Result |
|
trigger: test-robottelo |
|
PRT Result |
|
trigger: test-robottelo |
|
PRT Result |
(cherry picked from commit 7532ef3)
Problem Statement
Solution
Related Issues