-
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
Extend search in *_default_os fixtures for EL9 as default OS #14851
Conversation
Signed-off-by: Gaurav Talreja <[email protected]>
trigger: test-robottelo |
PRT Result
|
pytest_fixtures/component/os.py
Outdated
@@ -17,7 +17,7 @@ def default_os( | |||
""" | |||
os = getattr(request, 'param', None) | |||
if os is None: | |||
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")' | |||
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8" OR major="9")' |
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 maybe we should fix following occurrences too.
query={'search': 'name="RedHat" AND (major="6" OR major="7")'} .search(query={'search': 'name="RedHat" AND (major="6" OR major="7")'})[0]
OR we should add this query as a constant so we won't have to go through this in future, wdyt?
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 wonder how tests from test_contentview_old is working even when Foreman is on EL8, and second one from api_factory helper is unused so its expected we missed it for EL8 earlier.
@jameerpathan111 Good point, about moving this search query as robottelo contant, so we can update this at single place when OS version changes. I've made the changes, request to re-review, Thank you!
…efault_os fixture Signed-off-by: Gaurav Talreja <[email protected]>
trigger: test-robottelo |
@@ -17,7 +19,7 @@ def default_os( | |||
""" | |||
os = getattr(request, 'param', None) | |||
if os is None: | |||
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")' | |||
search_string = constants.DEFAULT_OS_SEARCH_QUERY |
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.
FYI, there is a discussion/PR in progress on how we retrieve the default OS.
We are to remove the need of search string especially for searching default os.
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.
@jyejare I don't see much progress on the discussion there. Do we want to hold off on this PR/fix? Is someone already assigned to work on it?
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.
@jameerpathan111 @Gauravtalreja1 can either choose to fix discussion/PR comment in this PR or merge this as is if its urgent.
Which we would you like to go ?
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.
@jyejare I'd prefer getting this merged as it is as its urgent for automation many tests are failing due to this, and we can discuss this in JPL call later to make this dynamically configurable later which can be handled in separate PR
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 ping would have been nice
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 Result
|
I would like to remind the audience of this PR that there is an open issue pointing to the need to add newly released versions to the list. My personal preference would be to address the issue rather than continue using the same pattern. |
@Gauravtalreja1 what do you want to do? do you want to take up this task or go with your current approach? |
…teQE#14851) * Extend search in *_default_os fixtures for EL9 as default OS Signed-off-by: Gaurav Talreja <[email protected]> * Move default os search query to constants and delete unused session_default_os fixture Signed-off-by: Gaurav Talreja <[email protected]> --------- Signed-off-by: Gaurav Talreja <[email protected]>
Problem Statement
When EL9 is default OS for Foreman, *_default_os fixtures returns below error
Solution
Add EL9 in search_string for *_default_os fixtures
Move default os search query to constants and delete unused session_default_os fixture (from review)
Related Issues