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

Remove the MultiCV hack since it's become available #16893

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Nov 11, 2024

Problem Statement

MultiCV has become available in 6.17 via setting, no hacks are needed anymore.

Solution

Just remove the helper from mixins and fixture.

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/cli/test_host.py -k multi_cv

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches Stream Introduced in or relating directly to Satellite Stream/Master labels Nov 11, 2024
@vsedmik vsedmik requested a review from a team November 11, 2024 16:38
@vsedmik vsedmik self-assigned this Nov 11, 2024
@vsedmik vsedmik requested a review from a team as a code owner November 11, 2024 16:38
@vsedmik
Copy link
Contributor Author

vsedmik commented Nov 11, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_host.py -k multi_cv

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9326
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/cli/test_host.py -k multi_cv --external-logging
Test Result : ==== 2 passed, 88 deselected, 322 warnings, 6 errors in 1613.89s (0:26:53) =====

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Nov 11, 2024
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jeremylenz
Copy link
Contributor

PRT will fail until foreman_theme_satellite is released and in Stream.

@chris1984
Copy link
Member

trigger: test-robottelo
pytest: tests/foreman/cli/test_host.py -k multi_cv

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9428
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/cli/test_host.py -k multi_cv --external-logging
Test Result : ==== 2 failed, 6 passed, 88 deselected, 454 warnings in 1865.23s (0:31:05) =====

@vsedmik
Copy link
Contributor Author

vsedmik commented Nov 21, 2024

Those 2 failures are one parametrized negative test case

test_negative_multi_cv_registration[rhel8-ipv4]
test_negative_multi_cv_registration[rhel9-ipv4]

failing here with Failed: DID NOT RAISE exception, which is expected since the setting has been exposed in 6.17

    # Verify that allow_multiple_content_views setting is not exposed
    with pytest.raises(CLIReturnCodeError):
        target_sat.cli.Settings.info({'name': 'allow_multiple_content_views'})

We should remove the assertion.

@vsedmik vsedmik requested a review from a team as a code owner November 21, 2024 09:38
@vsedmik
Copy link
Contributor Author

vsedmik commented Nov 21, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_host.py -k multi_cv

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9429
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_host.py -k multi_cv --external-logging
Test Result : ========= 8 passed, 88 deselected, 467 warnings in 1933.36s (0:32:13) ==========

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Nov 21, 2024
@sambible sambible merged commit b24d3d4 into SatelliteQE:master Nov 21, 2024
11 checks passed
@vsedmik vsedmik deleted the remove-multicv-hack branch November 22, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR Stream Introduced in or relating directly to Satellite Stream/Master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants