From fc4ac6b01c74a34b5c5ecb8675333528908fd053 Mon Sep 17 00:00:00 2001 From: Rabin Yasharzadehe Date: Wed, 8 Jul 2026 16:48:15 +0300 Subject: [PATCH] Add arm64 storage class matrix with io2-csi to global_config_arm64 Smoke tests on arm64 crash with IndexError during pytest session start because --storage-class-matrix=io2-csi is passed but io2-csi is not defined in the arm64 global config storage_class_matrix. Signed-off-by: Rabin Yasharzadehe Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Rabin Yasharzadehe --- tests/global_config_arm64.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/global_config_arm64.py b/tests/global_config_arm64.py index a11fd37dfb..4f388eab3d 100644 --- a/tests/global_config_arm64.py +++ b/tests/global_config_arm64.py @@ -1,13 +1,17 @@ from typing import Any import pytest_testconfig +from ocp_resources.datavolume import DataVolume from utilities.constants import ( ARM_64, EXPECTED_CLUSTER_INSTANCE_TYPE_LABELS, + HPP_CAPABILITIES, PREFERENCE_STR, Images, + StorageClassNames, ) +from utilities.storage import HppCsiStorageClass global config global_config = pytest_testconfig.load_python(py_file="tests/global_config.py", encoding="utf-8") @@ -16,6 +20,24 @@ EXPECTED_CLUSTER_INSTANCE_TYPE_LABELS[PREFERENCE_STR] = f"rhel.9.{ARM_64}" +storage_class_matrix = [ + { + StorageClassNames.IO2_CSI: { + "volume_mode": DataVolume.VolumeMode.BLOCK, + "access_mode": DataVolume.AccessMode.RWX, + "snapshot": True, + "online_resize": True, + "wffc": True, + "default": True, + } + }, + {HppCsiStorageClass.Name.HOSTPATH_CSI_BASIC: HPP_CAPABILITIES}, +] + +storage_class_a = StorageClassNames.IO2_CSI +storage_class_b = StorageClassNames.IO2_CSI + + for _dir in dir(): if not config: # noqa: F821 config: dict[str, Any] = {}