Skip to content
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.15.z] CP: rhel_ver_match(N-x) Optional Format #17106

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #17090

Problem Statement

Partial cherry-pick of #16807 , adding ('N-x') format to parametrize marker rhel_ver_match for rhel contenthosts/clients.
Just CPing the fixture changes, as some new tests are also being CP'd to 6.16/6.15.z, with the N-x marker format.
Otherwise, the format is invalid for regex, so all distros are picked including fips.

Note: In 6.15.z and 6.16.z , RHEL9 is N (newest) in supportability.yaml. RHEL10 is only in Stream (6.17)

Example:

@pytest.mark.rhel_ver_match('N-2') # rhel9, 8, and 7  in 6.16 and 6.15
def test_case(rhel_contenthost, target_sat, ...):

PRT Case

trigger: test-robottelo
pytest: tests/foreman/cli/test_rhcloud_inventory.py -k 'test_positive_register_insights_client_host'

or tests/foreman/api/test_rhcloud_inventory.py -k 'test_rhcloud_scheduled_insights_sync'

CP rhel_ver_match(N-x) optional format

(cherry picked from commit 42edc55)
@Satellite-QE Satellite-QE requested a review from a team as a code owner December 6, 2024 15:31
@Satellite-QE Satellite-QE added 6.15.z Introduced in or relating directly to Satellite 6.15 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Dec 6, 2024
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/cli/test_rhcloud_inventory.py -k 'test_positive_register_insights_client_host'

@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Dec 6, 2024
@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 9551
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_rhcloud_inventory.py -k test_positive_register_insights_client_host --external-logging
Test Result : ========== 3 passed, 7 deselected, 109 warnings in 2070.62s (0:34:30) ==========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Dec 6, 2024
@Satellite-QE Satellite-QE merged commit 8d57087 into 6.15.z Dec 6, 2024
17 of 18 checks passed
@Satellite-QE Satellite-QE deleted the cherry-pick-6.15.z-42edc5554e9d05bc9cb6794732695b5e9ed740d8 branch December 6, 2024 16:11
@damoore044 damoore044 changed the title [6.15.z] [6.16.z] CP: rhel_ver_match(N-x) Optional Format [6.15.z] CP: rhel_ver_match(N-x) Optional Format Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Introduced in or relating directly to Satellite 6.15 Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants