Skip to content

Commit a88f583

Browse files
authored
Merge pull request #22 from wpoely86/pixiu_more
Add more tests for pixiu
2 parents 5ab3bc9 + 8188984 commit a88f583

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

tests/data/pixiu

+37
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,23 @@ data = [
236236
"path": "/",
237237
},
238238
},
239+
{
240+
"raw": "<187>Jun 5 10:19:28 HKSTO03-Node1 alarm[2003199]: <186>2024-06-05 10:19:26 DST 172.19.96.130 OceanStor-Distributed-Storage 908704 0xFEA6A000E Major(1): The used space (8388608MB) of quota (type directory quota) of dtree (name --, ID 0) at / in namespace (name nasbackupfacs, ID 182) reaches or approaches to the space hard quota of (8388608MB). Data will fail to be written.",
241+
"expected": {
242+
"program": "alarm",
243+
"quota_used_type": "directory",
244+
"namespace": "nasbackupfacs",
245+
"namespace_id": 182,
246+
"dtree": "--",
247+
"dtree_id": 0,
248+
"used_space": 8388608000000,
249+
"quota_used_type": "space",
250+
"quota_type": "directory",
251+
"quota_limit_type": "hard",
252+
"quota_space_limit": 8388608000000,
253+
"path": "/",
254+
},
255+
},
239256
{
240257
"raw": "<190>Jun 5 11:19:57 C4STO01-Node1 alarm[4162768]: <189>2024-06-05 11:19:57 DST 172.19.104.10 OceanStor-Distributed-Storage 1140981 0x100F00C90022 Informational(9): User (user name adm_CV000080) succeeded in logging out upon timeout from source (172.18.252.67).",
241258
"expected": {
@@ -266,4 +283,24 @@ data = [
266283
"path": "/108",
267284
},
268285
},
286+
{
287+
"raw": "<187>Aug 10 00:32:43 C4STO01-Node1 alarm[4162768]: <186>2024-08-10 00:32:43 DST 172.19.104.10 OceanStor-Distributed-Storage 1465743 0xFEA6A000C Major(1): The used space (6108MB) of the quota (type user quota, user name, owner name vsc11010) of dtree (name 110, ID 4107) at /110 in namespace (name user, ID 70) reaches the soft space quota of (5851MB) and the grace period ended (7) days ago. The user or user group will fail to write data.",
288+
"expected": {
289+
"program": "alarm",
290+
"alarm_severity": "Major",
291+
"alarm_object": "OceanStor-Distributed-Storage",
292+
"alarm_id": "0xFEA6A000C",
293+
"username": "vsc11010",
294+
"quota_type": "user",
295+
"quota_used_type": "space",
296+
"dtree": "110",
297+
"dtree_id": 4107,
298+
"namespace": "user",
299+
"namespace_id": 70,
300+
"quota_limit_type": "soft",
301+
"path": "/110",
302+
"quota_space_limit": 5851000000,
303+
"used_space": 6108000000,
304+
},
305+
},
269306
]

0 commit comments

Comments
 (0)