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
10
tests/fixtures/zpool_status_healthy.txt
vendored
Normal file
10
tests/fixtures/zpool_status_healthy.txt
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
pool: zpool1
|
||||
state: ONLINE
|
||||
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 ONLINE 0 0 0
|
||||
/dev/disk/by-id/wwn-0x5000cca2dfe2e414 ONLINE 0 0 0
|
||||
|
||||
errors: No known data errors
|
||||
Loading…
Add table
Add a link
Reference in a new issue