Configuration en variables + tests unitaires BATS
- Conversion config hardcodée en variables (CLUSTER_NODES) - Détection nœud distant data-driven (extensible à 3+ nœuds) - Tests unitaires BATS avec mocks complets (32 tests) - CI/CD Forgejo avec shellcheck et validation syntaxe - Mode test pour sourcing sans exécution du main
This commit is contained in:
parent
de4b630399
commit
dfa5078b47
8 changed files with 908 additions and 15 deletions
15
tests/fixtures/zpool_status_degraded.txt
vendored
Normal file
15
tests/fixtures/zpool_status_degraded.txt
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pool: zpool1
|
||||
state: DEGRADED
|
||||
status: One or more devices has been removed by the administrator.
|
||||
Sufficient replicas exist for the pool to continue functioning in a
|
||||
degraded state.
|
||||
action: Online the device using 'zpool online' or replace the device with
|
||||
'zpool replace'.
|
||||
scan: scrub repaired 0B in 0 days 02:15:32 with 0 errors on Sun Dec 15 02:39:32 2024
|
||||
config:
|
||||
|
||||
NAME STATE READ WRITE CKSUM
|
||||
zpool1 DEGRADED 0 0 0
|
||||
/dev/disk/by-id/wwn-0x5000cca2dfe2e414 UNAVAIL 0 0 0
|
||||
|
||||
errors: No known data errors
|
||||
Loading…
Add table
Add a link
Reference in a new issue