forked from RedHatQE/openshift-virtualization-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal_config_aws.py
More file actions
66 lines (57 loc) · 1.82 KB
/
global_config_aws.py
File metadata and controls
66 lines (57 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from typing import Any
import pytest_testconfig
from ocp_resources.datavolume import DataVolume
from utilities.constants import Images, StorageClassNames
global config
global_config = pytest_testconfig.load_python(py_file="tests/global_config.py", encoding="utf-8")
Images.Windows.DEFAULT_DV_SIZE = "75Gi"
storage_class_matrix = [
{
StorageClassNames.CEPH_RBD_VIRTUALIZATION: {
"volume_mode": DataVolume.VolumeMode.BLOCK,
"access_mode": DataVolume.AccessMode.RWX,
"snapshot": True,
"online_resize": True,
"wffc": False,
"default": True,
}
},
{
StorageClassNames.PORTWORX_CSI_DB_SHARED: {
"volume_mode": DataVolume.VolumeMode.FILE,
"access_mode": DataVolume.AccessMode.RWX,
"snapshot": True,
"online_resize": True,
"wffc": False,
}
},
{
StorageClassNames.TRIDENT_CSI_FSX: {
"volume_mode": DataVolume.VolumeMode.FILE,
"access_mode": DataVolume.AccessMode.RWX,
"snapshot": True,
"online_resize": True,
"wffc": False,
}
},
{
StorageClassNames.IO2_CSI: {
"volume_mode": DataVolume.VolumeMode.BLOCK,
"access_mode": DataVolume.AccessMode.RWX,
"snapshot": True,
"online_resize": True,
"wffc": True,
}
},
]
storage_class_a = StorageClassNames.CEPH_RBD_VIRTUALIZATION
storage_class_b = StorageClassNames.CEPH_RBD_VIRTUALIZATION
for _dir in dir():
if not config: # noqa: F821
config: dict[str, Any] = {}
val = locals()[_dir]
if type(val) not in [bool, list, dict, str]:
continue
if _dir in ["encoding", "py_file"]:
continue
config[_dir] = locals()[_dir] # noqa: F821