Skip to content

Commit

Permalink
Revert "[6.15.z] Fetch pre_upgrade data based on node properties" (#1…
Browse files Browse the repository at this point in the history
…6719)

Revert "[6.15.z] Fetch pre_upgrade data based on node properties (#16552)"

This reverts commit 2d08856.
  • Loading branch information
lpramuk authored Oct 21, 2024
1 parent 9896f12 commit f04e7c0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/upgrades/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def test_capsule_post_upgrade_skipped(pre_upgrade_data):
from box import Box
import pytest

from robottelo.config import settings
from robottelo.logging import logger
from robottelo.utils.decorators.func_locker import lock_function

Expand Down Expand Up @@ -261,13 +260,11 @@ def test_something_post_upgrade(pre_upgrade_data):
start_index = test_node_id.find('[') + 1
end_index = test_node_id.find(']')
extracted_value = test_node_id[start_index:end_index]
if request.param in extracted_value:
upgrade_data[extracted_value] = _read_test_data(test_node_id)
upgrade_data[extracted_value] = _read_test_data(test_node_id)
if len(upgrade_data) == 1:
param_value = next(iter(upgrade_data.values()))
else:
network_type = 'ipv6' if settings.server.is_ipv6 else 'ipv4'
param_value = upgrade_data.get(f'{request.param}-{network_type}')
param_value = upgrade_data.get(request.param)
if param_value is None:
pytest.fail(f"Invalid test parameter: {request.param}. Test data not found.")
return Box(param_value)
Expand Down

0 comments on commit f04e7c0

Please sign in to comment.