Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Oct 10, 2023
1 parent 16dc13e commit 97268ea
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/foreman/api/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ def test_positive_install_multiple_in_host(
:CaseLevel: System
"""
ak = target_sat.api.ActivationKey(
organization=function_org,
environment=function_lce,
).create()
ak = target_sat.api.ActivationKey(organization=function_org).create()
cv = target_sat.api.ContentView(organization=function_org).create()
# Associate custom repos with org, cv, lce, ak:
target_sat.cli_factory.setup_org_for_a_custom_repo(
Expand All @@ -202,9 +199,7 @@ def test_positive_install_multiple_in_host(
rhel_contenthost.register(
org=function_org,
activation_keys=ak.name,
lifecycle_environment=function_lce,
target=target_sat,
force=True,
loc=None,
)
assert rhel_contenthost.subscribed
Expand All @@ -213,7 +208,6 @@ def test_positive_install_multiple_in_host(
rhel_contenthost.run(f'yum remove -y {str(package.split("-", 1)[0])}')
assert rhel_contenthost.run(f'yum install -y {package}').status == 0
assert rhel_contenthost.run(f'rpm -q {package}').status == 0
rhel_contenthost.add_rex_key(satellite=target_sat)
# Each errata will be installed sequentially,
# after each install, applicable-errata-count should drop by one.
for errata in constants.FAKE_9_YUM_SECURITY_ERRATUM:
Expand All @@ -233,7 +227,7 @@ def test_positive_install_multiple_in_host(
search_rate=20,
max_tries=15,
)
sleep(20)
sleep(10)
assert rhel_contenthost.applicable_errata_count == pre_errata_count - 1


Expand Down

0 comments on commit 97268ea

Please sign in to comment.