Skip to content

Commit

Permalink
capsule upgrade playbook -- don't specify target version
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk committed Aug 8, 2024
1 parent 1730af2 commit afe40b6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/foreman/api/test_remoteexecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
import pytest

from robottelo.config import settings
from robottelo.hosts import get_sat_version
from robottelo.utils import ohsnap
from robottelo.utils.issue_handlers import is_open

CAPSULE_TARGET_VERSION = f'6.{get_sat_version().minor}.z'


@pytest.mark.tier4
Expand All @@ -38,9 +34,7 @@ def test_positive_run_capsule_upgrade_playbook(module_capsule_configured, target
:CaseImportance: Medium
"""
template_name = (
'Smart Proxy Upgrade Playbook' if is_open('BZ:2152951') else 'Capsule Upgrade Playbook'
)
template_name = 'Capsule Update Playbook'
template_id = (
target_sat.api.JobTemplate().search(query={'search': f'name="{template_name}"'})[0].id
)
Expand All @@ -50,7 +44,6 @@ def test_positive_run_capsule_upgrade_playbook(module_capsule_configured, target
data={
'job_template_id': template_id,
'inputs': {
'target_version': CAPSULE_TARGET_VERSION,
'whitelist_options': 'repositories-validate,repositories-setup,non-rh-packages',
},
'targeting_type': 'static_query',
Expand All @@ -68,7 +61,7 @@ def test_positive_run_capsule_upgrade_playbook(module_capsule_configured, target
id=target_sat.api.SmartProxy(name=target_sat.hostname).search()[0].id
).refresh()
feature_set = {feat['name'] for feat in result['features']}
assert {'Ansible', 'Dynflow', 'Script', 'Pulpcore', 'Logs'}.issubset(feature_set)
assert {'Dynflow', 'Script', 'Pulpcore', 'Logs'}.issubset(feature_set)


@pytest.mark.tier3
Expand Down

0 comments on commit afe40b6

Please sign in to comment.