Skip to content

Commit

Permalink
fix AK bad request for test_positive_installable_errata
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Feb 19, 2025
1 parent eeb22c9 commit a5b8e13
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/foreman/api/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def test_positive_generate_job_report(setup_content, module_target_sat, content_
@pytest.mark.no_containers
@pytest.mark.rhel_ver_match('N-2')
def test_positive_installable_errata(
target_sat, function_org, function_lce, function_location, rhel_contenthost
target_sat, function_org, function_lce, function_activation_key, rhel_contenthost
):
"""Generate an Installable Errata report using the Report Template - Available Errata,
with the option of 'Installable'.
Expand All @@ -791,9 +791,6 @@ def test_positive_installable_errata(
:BZ: 1726504
"""
activation_key = target_sat.api.ActivationKey(
environment=function_lce, organization=function_org
).create()
custom_cv = target_sat.api.ContentView(organization=function_org).create()
ERRATUM_ID = str(settings.repos.yum_6.errata[2])
target_sat.cli_factory.setup_org_for_a_custom_repo(
Expand All @@ -802,11 +799,14 @@ def test_positive_installable_errata(
'organization-id': function_org.id,
'content-view-id': custom_cv.id,
'lifecycle-environment-id': function_lce.id,
'activationkey-id': activation_key.id,
'activationkey-id': function_activation_key.id,
}
)
result = rhel_contenthost.register(
function_org, function_location, activation_key.name, target_sat
activation_keys=function_activation_key.name,
org=function_org,
target=target_sat,
loc=None,
)
assert f'The registered system name is: {rhel_contenthost.hostname}' in result.stdout
assert rhel_contenthost.subscribed
Expand Down Expand Up @@ -879,7 +879,7 @@ def test_positive_installable_errata(


@pytest.mark.tier2
@pytest.mark.rhel_ver_match('N-2')
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_installed_products(
target_sat,
rhel_contenthost,
Expand Down

0 comments on commit a5b8e13

Please sign in to comment.