From 8e3253b6464dea5c48f031196cf5961b38473cfb Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Tue, 15 Oct 2024 14:06:18 +0530 Subject: [PATCH] avoiding the ohsnap repo url incase of nightly --- tests/foreman/installer/test_installer.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/foreman/installer/test_installer.py b/tests/foreman/installer/test_installer.py index e0553bf2698..bed7fa87b29 100644 --- a/tests/foreman/installer/test_installer.py +++ b/tests/foreman/installer/test_installer.py @@ -1350,11 +1350,17 @@ def common_sat_install_assertions(satellite): def install_satellite(satellite, installer_args): # 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, + ) satellite.execute('dnf -y module enable satellite:el8 && dnf -y install satellite') # Configure Satellite firewall to open communication satellite.execute(