1
1
# Configuration file, to be adapted to one's needs
2
2
3
+ from __future__ import annotations
4
+
3
5
import legacycrypt as crypt # type: ignore
4
6
import os
5
- from typing import Any, Dict, TYPE_CHECKING
7
+ from typing import Any, TYPE_CHECKING
6
8
7
9
if TYPE_CHECKING:
8
10
from lib.typing import IsoImageDef
@@ -36,7 +38,7 @@ OBJECTS_NAME_PREFIX = None
36
38
# skip_xo_config allows to not touch XO's configuration regarding the host
37
39
# Else the default behaviour is to add the host to XO servers at the beginning
38
40
# of the testing session and remove it at the end.
39
- HOSTS: Dict [str, Dict [str, Any]] = {
41
+ HOSTS: dict [str, dict [str, Any]] = {
40
42
# "10.0.0.1": {"user": "root", "password": ""},
41
43
# "testhost1": {"user": "root", "password": "", 'skip_xo_config': True},
42
44
}
@@ -106,7 +108,7 @@ OTHER_GUEST_TOOLS = {
106
108
}
107
109
108
110
# Tools
109
- TOOLS: Dict [str, str] = {
111
+ TOOLS: dict [str, str] = {
110
112
# "iso-remaster": "/home/user/src/xcpng/xcp/scripts/iso-remaster/iso-remaster.sh",
111
113
}
112
114
@@ -126,7 +128,7 @@ ISO_IMAGES_CACHE = "/home/user/iso"
126
128
# for local-only ISO with things like "locally-built/my.iso" or "xs/8.3.iso".
127
129
# If 'net-only' is set to 'True' only source of type URL will be possible.
128
130
# By default the parameter is set to False.
129
- ISO_IMAGES: Dict [str, "IsoImageDef"] = {
131
+ ISO_IMAGES: dict [str, "IsoImageDef"] = {
130
132
'83nightly': {'path': os.environ.get("XCPNG83_NIGHTLY",
131
133
"http://unconfigured.iso"),
132
134
'unsigned': True},
@@ -181,44 +183,44 @@ DEFAULT_SR = 'default'
181
183
CACHE_IMPORTED_VM = False
182
184
183
185
# Default NFS device config:
184
- NFS_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
186
+ NFS_DEVICE_CONFIG: dict [str, dict [str, str]] = {
185
187
# 'server': '10.0.0.2', # URL/Hostname of NFS server
186
188
# 'serverpath': '/path/to/shared/mount' # Path to shared mountpoint
187
189
}
188
190
189
191
# Default NFS4+ only device config:
190
- NFS4_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
192
+ NFS4_DEVICE_CONFIG: dict [str, dict [str, str]] = {
191
193
# 'server': '10.0.0.2', # URL/Hostname of NFS server
192
194
# 'serverpath': '/path_to_shared_mount' # Path to shared mountpoint
193
195
# 'nfsversion': '4.1'
194
196
}
195
197
196
198
# Default NFS ISO device config:
197
- NFS_ISO_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
199
+ NFS_ISO_DEVICE_CONFIG: dict [str, dict [str, str]] = {
198
200
# 'location': '10.0.0.2:/path/to/shared/mount' # URL/Hostname of NFS server and path to shared mountpoint
199
201
}
200
202
201
203
# Default CIFS ISO device config:
202
- CIFS_ISO_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
204
+ CIFS_ISO_DEVICE_CONFIG: dict [str, dict [str, str]] = {
203
205
# 'location': r'\\10.0.0.2\<shared folder name>',
204
206
# 'username': '<user>',
205
207
# 'cifspassword': '<password>',
206
208
# 'type': 'cifs',
207
209
# 'vers': '<1.0> or <3.0>'
208
210
}
209
211
210
- CEPHFS_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
212
+ CEPHFS_DEVICE_CONFIG: dict [str, dict [str, str]] = {
211
213
# 'server': '10.0.0.2',
212
214
# 'serverpath': '/vms'
213
215
}
214
216
215
- MOOSEFS_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
217
+ MOOSEFS_DEVICE_CONFIG: dict [str, dict [str, str]] = {
216
218
# 'masterhost': 'mfsmaster',
217
219
# 'masterport': '9421',
218
220
# 'rootpath': '/vms'
219
221
}
220
222
221
- LVMOISCSI_DEVICE_CONFIG: Dict [str, Dict [str, str]] = {
223
+ LVMOISCSI_DEVICE_CONFIG: dict [str, dict [str, str]] = {
222
224
# 'target': '192.168.1.1',
223
225
# 'port': '3260',
224
226
# 'targetIQN': 'target.example',
@@ -247,7 +249,7 @@ BASE_ANSWERFILES = dict(
247
249
},
248
250
)
249
251
250
- IMAGE_EQUIVS: Dict [str, str] = {
252
+ IMAGE_EQUIVS: dict [str, str] = {
251
253
# 'install.test::Nested::install[bios-830-ext]-vm1-607cea0c825a4d578fa5fab56978627d8b2e28bb':
252
254
# 'install.test::Nested::install[bios-830-ext]-vm1-addb4ead4da49856e1d2fb3ddf4e31027c6b693b',
253
255
}
0 commit comments