diff --git a/tests/foreman/installer/test_installer.py b/tests/foreman/installer/test_installer.py index f9aa419b10a..7ebbc2b0d12 100644 --- a/tests/foreman/installer/test_installer.py +++ b/tests/foreman/installer/test_installer.py @@ -1349,11 +1349,17 @@ def common_sat_install_assertions(satellite): def install_satellite(satellite, installer_args, enable_fapolicyd=False): # Register for RHEL8 repos, get Ohsnap repofile, and enable and download satellite satellite.register_to_cdn() - satellite.download_repofile( - product='satellite', - release=settings.server.version.release, - snap=settings.server.version.snap, - ) + if settings.server.version.source == 'nightly': + satellite.create_custom_repos( + satellite_repo=settings.repos.satellite_repo, + satmaintenance_repo=settings.repos.satmaintenance_repo, + ) + else: + satellite.download_repofile( + product='satellite', + release=settings.server.version.release, + snap=settings.server.version.snap, + ) if enable_fapolicyd: if satellite.execute('rpm -q satellite-maintain').status == 0: # Installing the rpm on existing sat needs sat-maintain perms