Skip to content

Commit 93430c3

Browse files
authored
NAS-135884 / 25.10 / fix zpool capacity tests (#16501)
Recent changes rendered these tests incorrect so this updates them to be inline with current logic.
1 parent 00285d7 commit 93430c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/api2/test_zpool_capacity_alert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test__emits_alert(request):
3232
]):
3333
alerts = call("alert.run_source", "ZpoolCapacity")
3434
assert len(alerts) == 1
35-
assert alerts[0]["klass"] == "ZpoolCapacityWarning"
35+
assert alerts[0]["klass"] == "ZpoolCapacityNotice"
3636
assert alerts[0]["key"] == f'["{pool}"]'
3737
assert alerts[0]["args"] == {"volume": pool, "capacity": 85}
3838

@@ -43,7 +43,7 @@ def test__does_not_flap_alert(request):
4343
"name": pool,
4444
"properties": {
4545
"capacity": {
46-
"parsed": "79",
46+
"parsed": "84",
4747
}
4848
},
4949
}

0 commit comments

Comments
 (0)