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 20, 2025
1 parent 419267f commit 44f5190
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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
4 changes: 2 additions & 2 deletions tests/foreman/ui/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test_positive_end_to_end(session, module_org, module_location):
assert not session.reporttemplate.search(new_name)


@pytest.mark.rhel_ver_match('N-2')
@pytest.mark.rhel_ver_list([7, 8, 9])
@pytest.mark.upgrade
@pytest.mark.tier2
def test_positive_generate_registered_hosts_report(
Expand Down Expand Up @@ -480,7 +480,7 @@ def test_negative_nonauthor_of_report_cant_download_it(session):
"""


@pytest.mark.rhel_ver_match('N-2')
@pytest.mark.rhel_ver_list([7, 8, 9])
@pytest.mark.tier3
def test_positive_generate_all_installed_packages_report(
session, module_setup_content, rhel_contenthost, target_sat
Expand Down

0 comments on commit 44f5190

Please sign in to comment.