-
Notifications
You must be signed in to change notification settings - Fork 115
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
Refactor and fix of some Errata UI tests #14773
Refactor and fix of some Errata UI tests #14773
Conversation
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
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.
Few nitpicks left, otherwise looks good to me. 👍
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.
Looks good to me
I am interested in airgun suggested changes, if the suggestion works locally/in CI then fine, otherwise keep this changes in as it is.
trigger: test-robottelo |
PRT Result
|
PRT Result
|
PRT Result
|
trigger: test-robottelo |
PRT Result
|
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.
co-reviewed with @jameerpathan111
One small change requested.
for errata_type in ('security', 'bug_fix', 'enhancement'): | ||
assert int(content_host_values['details'][errata_type]) == 0 | ||
read_errata = session.host_new.get_details(hostname, 'Content.Errata') | ||
assert int(len(read_errata['Content']['Errata']['pagination'])) == 0 |
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.
What is this assert supposed to assert/test? Can you please comment on this assertion?
Also, do we need to convert the result of len
to int?
After going through the whole test function I see what this assertion is good for, but a comment would not hurt. 😄
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.
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.
Ack. Merge pending actions from @ogajduse's comment.
trigger: test-robottelo |
PRT Result
|
6.16.0 stream 54: Local result running the 3 modified tests, combined in one session -
|
trigger: test-robottelo |
PRT Result
|
the excellent ErrataUI changes here, were squashed and included in MR #14822. |
Thank you very much @damoore044 for dealing with that while I am absent. 👍🏻 |
Problem Statement
I have fixed some failing Errata UI tests.
Tests were mainly failing because they were trying to test the old, no longer-used content_host page and used old fixtures.
Solution
After a discussion with @vsedmik I have rewritten the test that I have fixed so they test the similar/same thing on the new host page on Content-Errata Tab.
To reflect the changes made in test I have renamed the test in the following way
test_positive_content_host_library
->test_positive_check_errata
test_positive_content_host_search_type
->test_positive_errata_search_type
test_positive_show_count_on_content_host_details_page
->test_positive_check_errata_counts_by_type_on_host_details_page
Needs SatelliteQE/airgun#1337