test: add edge case tests for TotpService #67
Open
Charon
wants to merge 1 commit from
feat/totp-edge-case-tests into dev
pull from: feat/totp-edge-case-tests
merge into: core:dev
core:dev
core:feat/test-workspace-controller
core:feat/workspace-ownership-transfer
core:feat/ide-helper-annotations
core:feat/test-namespace-service
core:feat/artisan-provision-command
core:feat/workspace-activity-audit-log
core:feat/bulk-workspace-invitations
core:feat/openapi-docs
core:feat/add-infection-mutation-testing
core:feat/fix-readme-namespaces
core:feat/test-entitlement-webhook-service
core:feat/invitation-and-role-improvements
core:feat/workspace-lazy-loading
core:feat/invitation-soft-deletes
core:feat/standardise-error-responses
core:feat/entitlement-exception-hierarchy
core:feat/consolidate-user-relationships-v2
core:feat/clarify-workspace-scope-architecture
core:feat/validate-invitation-token-format
core:feat/constrain-feature-code-fk
core:feat/fix-usage-race-condition
core:feat/fix-token-timing-attack
core:feat/add-workspace-role-index
core:feat/add-phpstan-larastan
core:feat/complete-user-stats-stubs
core:feat/fix-namespace-n-plus-1
core:feat/fix-parent-feature-cascade
core:feat/namespace-cascade-delete
core:feat/pin-core-dependency
core:feat/remove-hardcoded-domain
core:feat/test-workspace-team-service
core:feat/workspace-return-types
core:main
1 commit
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5d8c68b2d8
|
test: add edge case tests for TotpService
Add 37 Pest tests covering TotpService edge cases that were previously untested: clock drift acceptance/rejection across time windows, malformed base32 secrets (lowercase, padding, invalid chars, empty), code format handling (spaces, dashes, too short/long, alphabetic, whitespace), replay behaviour documentation, cross-secret rejection, base32 encode/decode round-trips (binary, empty, boundary bytes), and RFC 6238 conformance (determinism, zero-padding, period variation). Fixes #17 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |