diff --git a/robottelo/constants/__init__.py b/robottelo/constants/__init__.py index ab517bffb61..f9aa800017e 100644 --- a/robottelo/constants/__init__.py +++ b/robottelo/constants/__init__.py @@ -1739,6 +1739,7 @@ class Colored(Box): HAMMER_CONFIG = "~/.hammer/cli.modules.d/foreman.yml" HAMMER_SESSIONS = "~/.hammer/sessions" +INSTALLER_CONFIG_FILE = '/etc/foreman-installer/scenarios.d/satellite.yaml' SATELLITE_ANSWER_FILE = "/etc/foreman-installer/scenarios.d/satellite-answers.yaml" CAPSULE_ANSWER_FILE = "/etc/foreman-installer/scenarios.d/capsule-answers.yaml" MAINTAIN_HAMMER_YML = "/etc/foreman-maintain/foreman-maintain-hammer.yml" diff --git a/tests/foreman/maintain/test_upgrade.py b/tests/foreman/maintain/test_upgrade.py index 9fc02d39799..f92901a7104 100644 --- a/tests/foreman/maintain/test_upgrade.py +++ b/tests/foreman/maintain/test_upgrade.py @@ -21,6 +21,7 @@ import pytest from robottelo.config import settings +from robottelo.constants import INSTALLER_CONFIG_FILE from robottelo.constants import SATELLITE_VERSION @@ -146,11 +147,15 @@ def test_negative_pre_upgrade_tuning_profile_check(request, custom_host): ) custom_host.download_repofile(product='satellite', release=last_y_stream) custom_host.execute('dnf -y module enable satellite:el8 && dnf -y install satellite') - # Install without system checks to get around installer checks + # Install with development tuning profile to get around installer checks custom_host.execute( - f'satellite-installer --scenario satellite --disable-system-checks --tuning {profile}', + 'satellite-installer --scenario satellite --tuning development', timeout='30m', ) + # Change to correct tuning profile (default or medium) + custom_host.execute( + f'sed -i "s/tuning: development/tuning: {profile}/g" {INSTALLER_CONFIG_FILE}' + ) # Get current Satellite version's repofile custom_host.download_repofile( product='satellite', release=sat_version, snap=settings.server.version.snap