refactor(scripts): shared test helpers and rotation log helpers (#204 item B) #207

Merged
jfraeys merged 1 commit from jfraeys/refactor/shared-test-log-libs into main 2026-10-15 22:36:25 -04:00
Owner

scripts/tests/lib.sh (ok/bad/check/finish) replaces the copies in 8 tests; scripts/lib/log.sh (log_info/ok/warn/error) replaces the copies in rotate-secret.sh and rotate-ovh-s3-credentials.sh. Tests with their own check signature (approve-promotion, project-key-isolation, promotion, tofu-unlock, infra-cli) are unchanged. Local run: all pass except the two that need docker/promtool.

Part of #204.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ

scripts/tests/lib.sh (ok/bad/check/finish) replaces the copies in 8 tests; scripts/lib/log.sh (log_info/ok/warn/error) replaces the copies in rotate-secret.sh and rotate-ovh-s3-credentials.sh. Tests with their own check signature (approve-promotion, project-key-isolation, promotion, tofu-unlock, infra-cli) are unchanged. Local run: all pass except the two that need docker/promtool. Part of #204. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ
refactor(scripts): shared test helpers (tests/lib.sh) and rotation log helpers (lib/log.sh)
All checks were successful
Lint / lint (pull_request) Successful in 1m55s
Secret scan / scan (pull_request) Successful in 14s
70cea25d92
Replaces the ok/bad/check/finish copies in 8 tests and the log_* copies in the
two rotation scripts. Tests with their own check signature are unchanged.
Part of #204 item B.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfraeys/infra!207
No description provided.