Skip to content

Commit

Permalink
Moving errataname search
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed May 10, 2024
1 parent 88e50d9 commit b9dd7a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/foreman/api/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,6 @@ def test_positive_applied_errata_by_search(
).create()
cv = target_sat.api.ContentView(organization=function_org).create()
ERRATUM_ID = str(settings.repos.yum_6.errata[2])
errata_name = (
target_sat.api.Errata()
.search(query={'search': f'errata_id="{ERRATUM_ID}"'})[0]
.read()
.description
)
target_sat.cli_factory.setup_org_for_a_custom_repo(
{
'url': settings.repos.yum_9.url,
Expand All @@ -499,6 +493,12 @@ def test_positive_applied_errata_by_search(
'activationkey-id': activation_key.id,
}
)
errata_name = (
target_sat.api.Errata()
.search(query={'search': f'errata_id="{ERRATUM_ID}"'})[0]
.read()
.description
)
result = rhel_contenthost.register(
function_org, function_location, activation_key.name, target_sat
)
Expand Down

0 comments on commit b9dd7a1

Please sign in to comment.