diff --git a/tests/foreman/api/test_errata.py b/tests/foreman/api/test_errata.py index 746910d9a56..a3100007869 100644 --- a/tests/foreman/api/test_errata.py +++ b/tests/foreman/api/test_errata.py @@ -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( @@ -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 @@ -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: @@ -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