Skip to content

test(saas_client): transport/retry/unhappy-path coverage (issue #34)#35

Merged
levleontiev merged 1 commit intomainfrom
feat/issue-34-saas-client-coverage
Mar 14, 2026
Merged

test(saas_client): transport/retry/unhappy-path coverage (issue #34)#35
levleontiev merged 1 commit intomainfrom
feat/issue-34-saas-client-coverage

Conversation

@levleontiev
Copy link
Contributor

Summary

  • 11 new scenarios covering transport error paths, register error statuses, event flush backoff suppression, circuit-open flush guard, config pull/ack unhappy paths, queue_event validation, periodic config poll
  • 534 unit + 65 integration tests passing, luacheck clean

Closes #34

Test plan

  • All CI checks pass (lua-quality, unit, integration)
  • Coverage increase for saas_client.lua verified

🤖 Generated with Claude Code

Adds 11 new scenarios covering branches not exercised by prior tests:
- Transport error paths for event flush, heartbeat, config pull, config ack
- Register non-retriable (401) and retriable (503) HTTP error statuses
- Event flush backoff suppression: second flush blocked until window expires
- Flush returns 0 when circuit breaker is open (before half-open window)
- Config pull non-retriable 403 does not apply bundle
- Config ack transport error does not prevent bundle from being applied
- queue_event with non-table argument returns validation error
- Heartbeat triggers periodic config pull when poll interval has elapsed

534 unit + 65 integration tests passing, luacheck clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@levleontiev levleontiev force-pushed the feat/issue-34-saas-client-coverage branch from c154af4 to 1bb02a3 Compare March 14, 2026 22:32
@levleontiev levleontiev merged commit ddeae96 into main Mar 14, 2026
8 checks passed
@levleontiev levleontiev deleted the feat/issue-34-saas-client-coverage branch March 14, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add targeted tests for remaining saas_client.lua transport and retry branches

2 participants