test: BATS coverage for supporting scripts (dream-test-functional.sh resilience + sr_resolve prefix strip)
Consolidated from: #428 + #430
Scope
Pin two independent-but-related BATS regression shields for supporting scripts:
Files
- New:
dream-server/tests/bats-tests/test-functional-resilience.bats
- New:
dream-server/tests/bats-tests/test-sr-resolve.bats
Rationale for merge
Both are BATS, both target supporting scripts outside dream-cli itself, both small (≤10 cases each), both emerged from the same 23APR fix batch. No shared fixtures needed — they're fully independent files that fit one PR cleanly.
Discovery context
Filed during 23APR audit/fix cycle. PR-12 fixup repaired dream-test-functional.sh set -e traps; PR-10 fixup added dream- prefix strip to sr_resolve. Both live in 23APRdevelopments.
Closes #428, #430. Labels: test, bash
test: BATS coverage for supporting scripts (dream-test-functional.sh resilience + sr_resolve prefix strip)
Consolidated from: #428 + #430
Scope
Pin two independent-but-related BATS regression shields for supporting scripts:
dream-test-functional.shsurvives its ownset -euo pipefailtraps:((TESTS_FAILED+1))rewrites,|| trueon grep-in-command-substitution pipelines, boundedset +e/-eblocks around test-function calls. Script must emit full summary +__DREAM_RESULT__sentinel even when all underlying tests fail.sr_resolve(inlib/service-registry.sh) 8-case matrix: exact ID, alias,dream-<id>prefix strip,dream-<alias>prefix strip, unknowndream-*pass-through, unknown non-dream input pass-through, empty input, container name that happens to start withdream-but isn't our convention.Files
dream-server/tests/bats-tests/test-functional-resilience.batsdream-server/tests/bats-tests/test-sr-resolve.batsRationale for merge
Both are BATS, both target supporting scripts outside
dream-cliitself, both small (≤10 cases each), both emerged from the same 23APR fix batch. No shared fixtures needed — they're fully independent files that fit one PR cleanly.Discovery context
Filed during 23APR audit/fix cycle. PR-12 fixup repaired
dream-test-functional.shset -e traps; PR-10 fixup addeddream-prefix strip tosr_resolve. Both live in23APRdevelopments.Closes #428, #430. Labels: test, bash