-
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
[RHEL10,9,8] Cover restrict repos by host OS, RHEL major versions #17415
base: master
Are you sure you want to change the base?
Conversation
trigger: test-robottelo |
PRT Result
|
7ec44fd
to
400e1f4
Compare
400e1f4
to
e383b19
Compare
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.
Just one question, but generally ACK from an SME point of view.
e383b19
to
3aa0545
Compare
trigger: test-robottelo |
PRT Result
|
3aa0545
to
2fcd591
Compare
trigger: test-robottelo |
PRT Result
^ one Broker checkout error [RHEL9 chost] for
|
PRT Result
|
2fcd591
to
3090c35
Compare
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.
Left a couple of proposals to consider and a question.
module_sca_manifest_org, | ||
): | ||
"""Verify that you can specify OS restrictions on custom repos for registered host. | ||
parametrized: (3) newest supported RHEL distro (N), and two prior. | ||
|
||
:id: fd40842f-48c3-4505-a670-235d8a5f466b |
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.
:id: fd40842f-48c3-4505-a670-235d8a5f466b | |
:id: fd40842f-48c3-4505-a670-235d8a5f466b | |
:parametrized: yes |
for repo in custom_repos: | ||
assert repo.label in sub_man_repos |
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.
for repo in custom_repos: | |
assert repo.label in sub_man_repos | |
assert all(repo.label in sub_man_repos for repo in custom_repos) |
assert repo.label in sub_man_repos | ||
|
||
# restrict each repo to a different RHEL major version | ||
rhel_majors = [ver for ver in rhel_versions] |
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.
Aren't the rhel_versions
major already?
>>> rhel_versions = [
rhel_major_ver
for rhel_major_ver in settings.supportability.content_hosts.rhel.versions
if 'fips' not in str(rhel_major_ver)
][-3:]
>>> rhel_versions
[8, 9, 10]
rhel_majors = [ver for ver in rhel_versions] |
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.
yes they are I just made a copy list (rhel_majors
) to edit without editing the original list (rhel_versions
).
result = target_sat.execute( | ||
f'hammer repository update --os-versions "{formatted}"' | ||
f' --id {r.id} --organization-id {org.id}' | ||
) | ||
assert result.status == 0, f'{result.stdout}' |
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.
result = target_sat.execute( | |
f'hammer repository update --os-versions "{formatted}"' | |
f' --id {r.id} --organization-id {org.id}' | |
) | |
assert result.status == 0, f'{result.stdout}' | |
target_sat.cli.Repository.update({'os-version': formatted, 'id': r.id}) |
should throw exception for non-zero result
for label in disabled_repos_labels: | ||
assert label not in sub_man_repos |
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.
for label in disabled_repos_labels: | |
assert label not in sub_man_repos | |
assert all(label not in sub_man_repos for label in disabled_repos_labels) |
3090c35
to
50b0df2
Compare
trigger: test-robottelo |
PRT Result
|
Problem Statement
Cover [SAT-30636], which adds
rhel-10
option to the Repository OS Restrict flag.RHEL-10/9/8
, using one matching registered host of one the selected rhel versions.6.16.z
and6.15.z
, implicitly selected RHEL versions will be9/8/7
from supportability.yaml (N-2).Solution
Implement stubbed coverage, that could have discovered this missing option during initial automation runs.
PRT Case