Skip to content

Commit

Permalink
small changes, style
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Oct 5, 2023
1 parent b6edaaa commit 5b0e960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/foreman/api/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def test_positive_install_multiple_in_host(
environment=function_lce, organization=function_org
).create()
content_view = module_target_sat.api.ContentView(organization=function_org).create()
# Associate custom repos with org, cv, lce, ak:
module_target_sat.cli_factory.setup_org_for_a_custom_repo(
{
'url': settings.repos.yum_9.url,
Expand All @@ -234,17 +235,20 @@ def test_positive_install_multiple_in_host(
'activationkey-id': activation_key.id,
}
)
rhel_contenthost.install_katello_ca(module_target_sat)
# Register content-host, enable all repos, install katello:
rhel_contenthost.register_contenthost(function_org.name, activation_key.name, function_lce.name)
rhel_contenthost.run(r'subscription-manager repos --enable \*')
rhel_contenthost.install_katello_ca(module_target_sat)

assert rhel_contenthost.subscribed
# Installing outdated YUM-9 pkgs
for package in constants.FAKE_9_YUM_OUTDATED_PACKAGES:
_install_package(clients=[rhel_contenthost], package_name=package)
applicable_errata_count = rhel_contenthost.applicable_errata_count
assert applicable_errata_count > 1
rhel_contenthost.add_rex_key(satellite=module_target_sat)

# Each applicable errata will be installed sequentially,
# after each install, applicable-errata-count should drop by one.
for errata in settings.repos.yum_9.errata:
task_id = module_target_sat.api.JobInvocation().run(
data={
Expand Down

0 comments on commit 5b0e960

Please sign in to comment.