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.16.z] Fix upgrade errata scenario for 6.16.z #16430

Closed
wants to merge 1 commit into from

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Sep 20, 2024

Problem Statement

Errata upgrade scenario is failing in 6.16.z for two reasons:

  1. In 6.15 (pre_upgrade) new orgs are SCA-enabled by default.
  2. Custom products are disabled by default.

Solution

  1. Disable SCA in the pre_upgrade test (on 6.15).
  2. Override AK custom repos to enabled.

Local results

Pre:

(venv) [vsedmik@localhost robottelo]$ pytest -m pre_upgrade tests/upgrades/test_errata.py -k test_pre_scenario_generate_errata_for_client[rhel7-ipv4]
================================================= test session starts =================================================
collected 6 items / 5 deselected / 1 selected                                                                                                                                                                                          

tests/upgrades/test_errata.py .                                                                                 [100%]

=============================== 1 passed, 5 deselected, 7 warnings in 612.35s (0:10:12) ===============================

Post:

(venv) [vsedmik@fedora robottelo]$ pytest -m post_upgrade tests/upgrades/test_errata.py -k test_post_scenario_errata_count_installation[rhel7]
================================================= test session starts =================================================
collected 6 items / 5 deselected / 1 selected                                                                                                                                                                                          

tests/upgrades/test_errata.py .                                                                                 [100%]

=============================== 1 passed, 5 deselected, 7 warnings in 121.94s (0:02:01) ===============================

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches 6.16.z Introduced in or relating directly to Satellite 6.16 labels Sep 20, 2024
@vsedmik vsedmik self-assigned this Sep 20, 2024
@vsedmik vsedmik requested a review from a team as a code owner September 20, 2024 09:14
@vsedmik vsedmik marked this pull request as draft September 20, 2024 11:06
@vsedmik
Copy link
Contributor Author

vsedmik commented Sep 20, 2024

Closing in favour of #16432

@vsedmik vsedmik closed this Sep 20, 2024
@vsedmik vsedmik deleted the 6.16.z-fix-upg-errata branch September 20, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z Introduced in or relating directly to Satellite 6.16 No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant