Skip to content

Commit

Permalink
Fix upgrade errata scenario for 6.16.z
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Sep 20, 2024
1 parent 1d9c65e commit fd6f9ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/upgrades/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def test_pre_scenario_generate_errata_for_client(
:customerscenario: true
"""
rhel_contenthost._skip_context_checkin = True
# Orgs are SCA-enabled by default since 6.15
function_org.sca_disable()
environment = target_sat.api.LifecycleEnvironment(organization=function_org).search(
query={'search': f'name={constants.ENVIRONMENT}'}
)[0]
Expand All @@ -152,6 +154,15 @@ def test_pre_scenario_generate_errata_for_client(
query={'search': f'name={product.name}'}
)[0]
ak.add_subscriptions(data={'subscription_id': subscription.id})
# Override/enable all AK repos (disabled by default since 6.15)
c_labels = [
i['label'] for i in ak.product_content(data={'content_access_mode_all': '1'})['results']
]
ak.content_override(
data={
'content_overrides': [{'content_label': label, 'value': '1'} for label in c_labels]
}
)
rhel_contenthost.register(function_org, None, ak.name, target_sat)
rhel_contenthost.add_rex_key(satellite=target_sat)
rhel_contenthost.install_katello_host_tools()
Expand Down

0 comments on commit fd6f9ca

Please sign in to comment.