KemalIdentity::Testing
Fixtures and pre-wired harnesses for specs.
Part of require "kemal_identity/testing", which is published for consumers rather than kept
in this repository's spec/ tree -- an adapter author needs the same doubles this shard's own
suite uses, and reaching into a shard's private spec directory to get them is what
blueprints/0025-maturity-validation-results.md recorded as DEV-02's failure.
Constants
A fixed instant every spec can anchor on, so no spec depends on the wall clock.
Class methods
session_id stays as a convenience here — the overwhelming majority of specs want a
session-backed principal and should not have to build a CredentialRef to say so. Pass
credential: explicitly for a bearer-backed one; it wins over session_id.
The same, for a second-factor check.
MFA::VerificationResult is Verified | Failed rather than an Outcome, so the overload
above does not accept it and a consumer's spec falls back to the cast this module exists to
replace. Found writing MFA-01 in blueprints/0025: a packaged assertion that covers three
of the four result unions is a packaged assertion somebody stops using.
Nested types
- KemalIdentity::Testing::AccountHarness
- KemalIdentity::Testing::CountingHasher
- KemalIdentity::Testing::DeterministicRandom
- KemalIdentity::Testing::FastTestHasher
- KemalIdentity::Testing::Harness
- KemalIdentity::Testing::JWTForge
- KemalIdentity::Testing::LegacyTestVerifier
- KemalIdentity::Testing::MemoryAccountRepository
- KemalIdentity::Testing::MemoryActionTokenRepository
- KemalIdentity::Testing::MemoryApiTokenRepository
- KemalIdentity::Testing::MemoryAuthzRepository
- KemalIdentity::Testing::MemoryLinkRepository
- KemalIdentity::Testing::MemoryMfaRepository
- KemalIdentity::Testing::MemoryRememberRepository
- KemalIdentity::Testing::MemoryRevocationStore
- KemalIdentity::Testing::MemorySessionRepository
- KemalIdentity::Testing::RSATestKey
- KemalIdentity::Testing::RecordingNotifier
- KemalIdentity::Testing::TestClock