Skip to content

Commit

Permalink
avoiding the ohsnap repo url incase of nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Oct 25, 2024
1 parent 989f303 commit 8e3253b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tests/foreman/installer/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8e3253b

Please sign in to comment.