Batch B5: dead code removal and test gaps (#40–#43) #58
No reviewers
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra!58
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/b5-dead-code-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Batch B5 — #40, #41, #42 (part), #43.
Removed: Swoosh mailer (module, dep, config, dev mailbox route);
CoreComponents,Layouts.app/flash_group/theme_toggleand the inline theme script;NationalIDClient.renewal/2,3;ClientCredentials.list_clients;scripts/verify-issuer.sh; testIO.inspectnoise and thecerts/-writing test helper.Fixed along the way
:xmerladded toextra_applications(it only arrived transitively via Swoosh; SOAP parsing would fail in a release without it).:invalid_client2→:invalid_client(internal return value; HTTP responses unchanged).Added tests: RateLimiter unit tests (lockout threshold, per-IP/client isolation, success reset, lockout expiry + cleanup, window rollover, concurrency), 401 tests for
/revokeand/revoke-by-ic, OpenAPI/Swagger smoke tests.Not done (kept on purpose): daisyUI/heroicons CSS plugins and LiveView socket (no visual check possible here),
Renewal.process/2and data-storewrap_with/exec(:reset)(belong to #36/#37), unreferenced PEM fixtures, script numbering gap. The concurrency test does not fail if the per-identifier lock is removed (race too narrow). #40, #42 stay open.Verification:
mix precommit318 passed. Coverage: whole app 81.4%; RateLimiter 100%, ClientCredentials 87.1%, NationalIDClient 84.6%. Pass 1 and Pass 2 reviews: no must-fix/critical findings; the minor ones are fixed or listed above (no second Pass 1 after the last test/doc tweaks).🤖 Generated with Claude Code