-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: add debug endpoints and IAP debug logs for easier testing
This commit adds the following debug features: - A debug endpoint to allow deletion of an account (useful for starting over a test on the staging server) - A debug endpoint to force a UUID on a pubkey. This is useful when there is a mismatch of UUIDs in the staging/test server and the IAP purchased via the sandbox, and it is a pain to reset those IAPs - Several debug logs on the IAP receipt verification module. This helps, among other things, to easily find what UUID is associated with an IAP These were made to make testing and debugging on staging easier. This commit also adds some documentation about it Testing: 1. Used the admin endpoint to delete a test account. PASS 2. Restarted Damus and tried observing the IAP debug logs 3. Found the UUID on my Sandbox transactions 4. Used the new debug endpoint via cURL to force that UUID on the local database, and when I restarted Damus the receipt verification passed without resetting my Sandbox. Signed-off-by: Daniel D’Aquino <[email protected]> Reviewed-by: William Casarin <[email protected]> Link: [email protected] Signed-off-by: William Casarin <[email protected]>
- Loading branch information
1 parent
47475fc
commit 57863ec
Showing
4 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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