Skip to content

Commit edba8e0

Browse files
committed
add test for soft space quota alert
1 parent 15da3bc commit edba8e0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/data/pixiu

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,24 @@ data = [
154154
"quota_space_limit": 1024000000,
155155
},
156156
},
157+
{
158+
"raw": "<187>Aug 20 19:40:26 C4STO01-Node1 alarm[2613490]: <186>2023-08-20 19:32:24 DST 2023-08-20 19:40:26 DST 172.19.104.10 OceanStor-Distributed-Storage 259045 0xFEA6A000F Major(2): The used space (6638MB) of quota (type user quota, user name, owner name vsc10042) of dtree (name 100, ID 8193) in namespace (name user, ID 70) reaches to the space soft quota of (6144MB).",
159+
"expected": {
160+
"@source_host": "C4STO01-Node1",
161+
"program": "alarm",
162+
"alarm_severity": "Major",
163+
"alarm_object": "OceanStor-Distributed-Storage",
164+
"alarm_id": "0xFEA6A000F",
165+
"used_space": 6638000000,
166+
"quota_used_type": "space",
167+
"quota_type": "user",
168+
"username": "vsc10042",
169+
"dtree": "100",
170+
"dtree_id": 8193,
171+
"namespace": "user",
172+
"namespace_id": 70,
173+
"quota_limit_type": "soft",
174+
"quota_space_limit": 6144000000,
175+
},
176+
},
157177
]

0 commit comments

Comments
 (0)