diff --git a/robottelo/hosts.py b/robottelo/hosts.py index 21932336231..641472bb180 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -1739,7 +1739,7 @@ def cli(self): self._cli._configured = True return self._cli - def install_satellite_or_capsule_package(self): + def install_satellite_or_capsule_package(self, install_package=True): """Install Satellite/Capsule package. Note: Make sure required repos are enabled before using this. """ @@ -1750,7 +1750,8 @@ def install_satellite_or_capsule_package(self): ).status == 0 ) - assert self.execute(f'dnf -y install {self.product_rpm_name}').status == 0 + if install_package: + assert self.execute(f'dnf -y install {self.product_rpm_name}').status == 0 class Satellite(Capsule, SatelliteMixins): diff --git a/tests/foreman/destructive/test_clone.py b/tests/foreman/destructive/test_clone.py index 7100084b358..105dae83c9c 100644 --- a/tests/foreman/destructive/test_clone.py +++ b/tests/foreman/destructive/test_clone.py @@ -90,7 +90,7 @@ def test_positive_clone_backup( for repo in getattr(constants, f"OHSNAP_RHEL{rhel_version}_REPOS"): sat_ready_rhel.enable_repo(repo, force=True) # Enabling satellite module - sat_ready_rhel.install_satellite_or_capsule_package() + sat_ready_rhel.install_satellite_or_capsule_package(install_package=False) # Install satellite-clone assert sat_ready_rhel.execute('yum install satellite-clone -y').status == 0 # Disabling CDN repos as we install from dogfdood