Skip to content

Commit

Permalink
Fix test_positive_clone_backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jameerpathan111 committed Apr 17, 2024
1 parent 8476e50 commit 2256944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions robottelo/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/destructive/test_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2256944

Please sign in to comment.