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] [RHEL9,8,7] Cover restrict repos by host OS, RHEL major versions #17636

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #17415

Problem Statement

Cover [SAT-30636], which adds rhel-10 option to the Repository OS Restrict flag.

  • 3 repos restricted to RHEL-10/9/8 , using one matching registered host of one the selected rhel versions.
  • in 6.16.z and 6.15.z, implicitly selected RHEL versions will be 9/8/7 (N-2) from supportability.yaml.

Solution

Implement stubbed coverage, that could have discovered this missing option during initial automation runs.

PRT Case

trigger: test-robottelo
pytest: tests/foreman/api/test_subscription.py::test_positive_os_restriction_on_repos

…7415)

[RHEL10] Cover restrict repos by host OS, RHEL major versions

(cherry picked from commit b8471d2)
@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 Feb 20, 2025
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/api/test_subscription.py::test_positive_os_restriction_on_repos

@vsedmik
Copy link
Contributor

vsedmik commented Feb 25, 2025

trigger: test-robottelo
pytest: tests/foreman/api/test_subscription.py::test_positive_os_restriction_on_repos

@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 10305
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_subscription.py::test_positive_os_restriction_on_repos --external-logging
Test Result : ================= 3 passed, 133 warnings in 1145.82s (0:19:05) =================

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Feb 25, 2025
Copy link
Contributor

@vsedmik vsedmik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CPed correctly, PRT passed

@Gauravtalreja1 Gauravtalreja1 merged commit fd48c5d into 6.15.z Feb 25, 2025
17 checks passed
@Gauravtalreja1 Gauravtalreja1 deleted the cherry-pick-6.15.z-b8471d24240a7f6385045ed9da777e6b65f661fc branch February 25, 2025 10:06
@damoore044 damoore044 changed the title [6.15.z] [RHEL10,9,8] Cover restrict repos by host OS, RHEL major versions [6.15.z] [RHEL9,8,7] Cover restrict repos by host OS, RHEL major versions Feb 25, 2025
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 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.

4 participants