From fb30ff2e1fa3eedf1ef83363d42fa1195e7c0cf9 Mon Sep 17 00:00:00 2001 From: jyejare Date: Thu, 31 Oct 2024 15:33:49 +0530 Subject: [PATCH] Nightly Capsule repos for 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 9d3c378852d..70286d8c246 100644 --- a/tests/foreman/installer/test_installer.py +++ b/tests/foreman/installer/test_installer.py @@ -1429,11 +1429,17 @@ def test_capsule_installation(pytestconfig, sat_default_install, cap_ready_rhel, pytest.capsule_sanity = True # Get Capsule repofile, and enable and download satellite-capsule cap_ready_rhel.register_to_cdn() - cap_ready_rhel.download_repofile( - product='capsule', - release=settings.server.version.release, - snap=settings.server.version.snap, - ) + if settings.server.version.source == 'nightly': + cap_ready_rhel.create_custom_repos( + capsule_repo=settings.repos.capsule_repo, + satmaintenance_repo=settings.repos.satmaintenance_repo, + ) + else: + cap_ready_rhel.download_repofile( + product='capsule', + release=settings.server.version.release, + snap=settings.server.version.snap, + ) cap_ready_rhel.execute( 'dnf -y module enable satellite-capsule:el8 && dnf -y install satellite-capsule' )