Skip to content

Commit

Permalink
Installer Assertions in test context rather than in helper (Satellite…
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Jun 20, 2024
1 parent 8c4f1a5 commit fbd983e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pytest_fixtures/core/sat_cap_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ def installer_satellite(request):
:params request: A pytest request object and this fixture is looking for
broker object of class satellite
"""
sat_version = settings.server.version.release
if 'sanity' in request.config.option.markexpr:
sat = Satellite(settings.server.hostname)
else:
Expand All @@ -346,9 +345,7 @@ def installer_satellite(request):
release=settings.server.version.release,
snap=settings.server.version.snap,
)
sat.execute('dnf -y module enable satellite:el8 && dnf -y install satellite')
installed_version = sat.execute('rpm --query satellite').stdout
assert sat_version in installed_version
sat.install_satellite_or_capsule_package()
# Install Satellite
sat.execute(
InstallerCommand(
Expand Down

0 comments on commit fbd983e

Please sign in to comment.