From c98ae2f7cd4007ff6d7359090f7090a99e05f350 Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Wed, 26 Jul 2023 14:15:53 +0200 Subject: [PATCH] Fix test_content_access_after_stopped_foreman (#12013) --- tests/foreman/destructive/test_contenthost.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/foreman/destructive/test_contenthost.py b/tests/foreman/destructive/test_contenthost.py index 451e8ca6b35..1f624475026 100644 --- a/tests/foreman/destructive/test_contenthost.py +++ b/tests/foreman/destructive/test_contenthost.py @@ -46,13 +46,6 @@ def test_content_access_after_stopped_foreman(target_sat, rhel7_contenthost): """ org = target_sat.api.Organization().create() org.sca_disable() - # adding remote_execution_connect_by_ip=Yes at org level - target_sat.api.Parameter( - name='remote_execution_connect_by_ip', - value='Yes', - parameter_type='boolean', - organization=org.id, - ).create() lce = target_sat.api.LifecycleEnvironment(organization=org).create() repos_collection = target_sat.cli_factory.RepositoryCollection( distro='rhel7', @@ -60,7 +53,7 @@ def test_content_access_after_stopped_foreman(target_sat, rhel7_contenthost): target_sat.cli_factory.YumRepository(url=settings.repos.yum_1.url), ], ) - repos_collection.setup_content(org.id, lce.id, upload_manifest=False) + repos_collection.setup_content(org.id, lce.id, upload_manifest=False, override=True) repos_collection.setup_virtual_machine(rhel7_contenthost, install_katello_agent=False) result = rhel7_contenthost.execute(f'yum -y install {FAKE_1_CUSTOM_PACKAGE}') assert result.status == 0