From be1124dafc0c57f51dc6d4aba8b028ffc5ec2bcd Mon Sep 17 00:00:00 2001 From: Petr Balogh Date: Mon, 6 Jan 2025 23:08:55 +0100 Subject: [PATCH] Fix config_index fixture for ocp upgrade Signed-off-by: Petr Balogh --- tests/functional/upgrade/test_upgrade_ocp.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/upgrade/test_upgrade_ocp.py b/tests/functional/upgrade/test_upgrade_ocp.py index 4258cdfac31..5a5c5e49a60 100644 --- a/tests/functional/upgrade/test_upgrade_ocp.py +++ b/tests/functional/upgrade/test_upgrade_ocp.py @@ -1,6 +1,8 @@ import logging import os +import pytest + from pkg_resources import parse_version from semantic_version import Version @@ -44,6 +46,11 @@ logger = logging.getLogger(__name__) +@pytest.fixture +def config_index(request): + return request.param if hasattr(request, "param") else None + + @ignore_leftovers @ocp_upgrade @purple_squad