-
Notifications
You must be signed in to change notification settings - Fork 114
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 Support, test in Errata e2e parametrized registered hosts #16807
base: master
Are you sure you want to change the base?
Conversation
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
|
|
trigger: test-robottelo |
953a2e8
to
de4ebbc
Compare
|
PRT Result
|
|
|
|
fa7ea97
to
66d14e9
Compare
|
1 similar comment
|
|
PRT Result
|
|
PRT Result
|
|
PRT Result
|
695d922
to
6c26e83
Compare
|
^ Should include 17 Parametrized RHEL10 cases across Errata API, CLI, and UI |
6c26e83
to
b0ad975
Compare
|
PRT Result
|
^ Waiting on stream snap 78.0 to bring fix for
|
b0ad975
to
df27309
Compare
df27309
to
6376f6c
Compare
|
PRT Result
|
^ For tests checking out multiple contenthosts of the same RHEL version, Related Failure:
|
Fix CLI setup methodsetup_org_for_a_custom_repo
, where updating the activation-key requires the name.^This was a bug, wrapping up reverting those changes
Problem Statement:
('|10')
, or we use string matching for regex to get two-digit versions matched, see below.Solution
Pass the
rhel_ver_match
fixture a string to collect rhel8, 9, and 10 params for fixturerhel_contenthost
.@pytest.marker.rhel_ver_match(r'^(?!.*(7|fips)).*$')
< str match, exclude any with "7" or "fips"@pytest.marker.rhel_ver_match('8|9|10') or ('[^7]|10')
< pass "10" explicitly^ Above solutions will need regular bumping, when versions are added or dropped from
supportability.yaml
@pytest.marker.rhel_ver_match('N-2')
N is RHEL10 (newest version), additionally RHEL9, RHEL8Proposed Fixture change
For pytest marker
rhel_ver_match
, it would be useful to accept input of N-# (major rhel versions). This would be helpful because we won't have to change the fixtures for each and every test, everytime we add a new RHEL version or remove one fromsupportability.yaml
.ie: many tests use
('[^6]')
which is 'all single-char versions except 6' , RHEL6 is not in supportability anymore, and 10 is two digits and so will be all future versions. So we would need to pass explicitly, ie('10|11|12')
and bump with each added/removed version.Solution: Accept and check for a strict fixture argument of length 3,
"N-#"
, where N is always the latest supported version, and # is a single digit number of preceding supported versions to also collect, excluding fips. Existing test markers will not conflict and will be parsed as before, so their collection should not be impacted.Example:
@pytest.mark.rhel_ver_match('N-3')
would collect 4 params, N which in this PR is RHEL10, along with the 3 preceding supported versions, RHEL9, RHEL8 and RHEL7.To collect a single param for just N (latest version only, here is RHEL10);
simply pass the fixture
rhel_ver_match('N-0')
Effect: applicable test's fixtures can be changed to ('N-x') once and should not need changing with each version bump. Existing markers are not effected because they fail they check conditions, and will be parsed as before so should collect/function as before unless changed. Should always look for the latest supported version, and the other priors desired. When a new RHEL major ver is released, and we update supportability, we won't need to update each of these test's fixtures, they will just use the newly supported version N, and # of preceding versions.
PRT