mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 20:59:36 +00:00
fix(tests): supply valid PBS datastore health fixture
The advanced proposal's complete backend shard exposed a shared PBS fixture that returned an array from the datastore-status endpoint. Supply the healthy datastore observation those node-metric lifecycle tests intend, preventing the live datastore evaluator from fabricating an unrelated connectivity incident. Change-source: pulse-maintainer
This commit is contained in:
parent
cd12b62bae
commit
35181d4c91
1 changed files with 9 additions and 0 deletions
|
|
@ -127,6 +127,15 @@ func newPBSHealthTestServer(t *testing.T) *pbsHealthTestServer {
|
|||
"avail": 750,
|
||||
}},
|
||||
})
|
||||
case "/api2/json/admin/datastore/backups/status":
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{
|
||||
"data": map[string]any{
|
||||
"status": "available",
|
||||
"total": 1000,
|
||||
"used": 250,
|
||||
"avail": 750,
|
||||
},
|
||||
})
|
||||
case "/api2/json/admin/datastore/backups/namespace":
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"data": []any{}})
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue