Skip to content

Commit

Permalink
Fix test_content_access_after_stopped_foreman (SatelliteQE#12013)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk authored Jul 26, 2023
1 parent fcd09d8 commit c98ae2f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/foreman/destructive/test_contenthost.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,14 @@ 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',
repositories=[
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
Expand Down

0 comments on commit c98ae2f

Please sign in to comment.