-
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
Stream fix errata:UI (test_end_to_end) #12978
Stream fix errata:UI (test_end_to_end) #12978
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
e4e2074
to
6e85ba1
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
92b7d68
to
8b82989
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
307ea77
to
5b72ec4
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
5b72ec4
to
5c7dbee
Compare
trigger: test-robottelo |
5c7dbee
to
dcfad83
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
8293c0d
to
4a8e566
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
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.
A couple thoughts below, for what they're worth :)
In general we're moving away from the term "content host" in favor of simply "host."
47eb1b2
to
459a1d0
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
459a1d0
to
00148f9
Compare
trigger: test-robottelo |
tests/foreman/ui/test_errata.py
Outdated
_remove_client_package(registered_contenthost, FAKE_1_CUSTOM_PACKAGE_NAME) | ||
assert _install_client_package(registered_contenthost, FAKE_1_CUSTOM_PACKAGE) | ||
assert ( | ||
appl_errata := registered_contenthost.applicable_errata_count |
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.
PRT just blows my mind here with E assert 1 == 1
I though I understood how the walrus operator works, also locally this works. No idea what's wrong in PRT's python version walrus implementation. Maybe try without walrus.
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.
@JacobCallahan and I had some discussion around this, there must be some sort of ambiguity in the assignment I am not seeing. I see success assigning the applicable_errata
count first, and then arresting on the next line
6d79acb
to
83cc4bc
Compare
robottelo/cli/factory.py
Outdated
assert len(cv_info['versions']) > 0 | ||
cvv = sorted(cvv['id'] for cvv in cv_info['versions'])[-1] |
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.
Non-blocking, Sorting is fine here, but why we're explicitly hitting this issue in stream(seen a couple of PRs for this), so just wondering if are you aware of any related changes in stream? @damoore044 @vsedmik @sambible
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.
@Gauravtalreja1 The issue is not specific to stream, I've seen it in older versions before and this BZ was reported already. However, it feels to happen more frequently in stream - same passes in z-streams but fails in stream.
83cc4bc
to
7c2fdf7
Compare
trigger: test-robottelo |
1 similar comment
trigger: test-robottelo |
e4fcc46
to
1ff2bc8
Compare
trigger: test-robottelo |
|
||
@request.addfinalizer | ||
# Cleanup for in between parameterized runs | ||
def cleanup(): |
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.
It looks that in this cleanup we just roll back all the changes so that we have the module-scoped fixtures (mostly module_cv
) ready for the next RHEL contenthost (via parametrization). What is the idea behind this need? Isn't it just fine to go with function-scoped fixtures instead module-scoped?
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.
I could switch them to function fixtures, but may not be a simple change.
Many of the errata tests already run using module scope fixtures, so was keeping those for consistency.
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.
Ok, no worries, merged already.
Future Notes: Will probably also work without extensive cleanup, by using function-scoped cv fixture or custom. Vlad made a good point today however- the teardown is nice testing to have, of a graceful cleanup of entities being used to host content w/ registered host. Could probably use some assertions at some point. I wonder if we have any other testing around cleanup for content & entities of a reg. host? Looking into that |
* Updates for UI errata e2e * Check bulk generate applicability task * Cleanup between parameterized runs * Addressing comments
Refactor errata e2e with updated standards, contenthost through Global Registration, enable repositories with subscription manager.
Remove
setting_update
of remote_execution_by_default:True (BZ 2029192), this user setting hasbeen removed for 6.15.0, and by default is set to True.
Used
request.addfinalizer
for cleanup of entities modified in the new fixtureregistered_contenthost
, to prevent conflicts between parameterized runs.Depends on navigation fix in airgun 1018.Merged