Repository navigation
feat: fault injection points for merchant API keys crash recovery testing - #600
Merged
adenueltech merged 2 commits intoOct 22, 2026
Merged
Conversation
Add fault injection points between each step of the withdrawal broadcast and settlement pipeline to test crash recovery scenarios. Each injection point allows simulating a crash at specific steps and verifying: - Withdrawal remains in its last stable status - Ledger balance is preserved - No money is lost or duplicated on restart The withdrawal status machine: pending_broadcast → broadcasting → broadcast_accepted → confirmed → completed Fault injection points added: - BeforeClaim: Before claiming from pending_broadcast - AfterClaim: After claiming but before dispatch - AfterDispatch: After sender returns but before recording outcome - AfterRecord: After recording outcome but before status transition Tests verify crash recovery at each point with ledger balance assertions. Co-Authored-By: Codebuff <noreply@codebuff.com>
… testing Add fault injection points to the JWT authentication module (issue The-Engineer-Network#480). The JWT auth module now supports fault injection at 4 points in the token lifecycle to test crash recovery scenarios for the merchant API keys system: 1. BeforeCreate: Before creating a new token - returns AuthError::TokenCreation 2. AfterCreate: After creating token but before returning 3. BeforeVerify: Before verifying a token - returns AuthError::InvalidToken 4. AfterVerify: After verifying token but before returning claims Tests verify crash recovery at each point with proper error handling. Closes The-Engineer-Network#480
|
@ruthoreaji-123 is attempting to deploy a commit to the emmanuel adewunmi's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #480
The JWT auth module now supports fault injection at 4 points in the token
lifecycle to test crash recovery scenarios for the merchant API keys system.
Closes #480