HomePhabricator

[electrum] add command line option to test the update_checker

Description

[electrum] add command line option to test the update_checker

Summary: Previously the only way to test that everything worked as expected (correct signature, proper JSON format...) with the version checker was to update the JSON file and push to the main repository. This adds a --test-release-notification command line argument to electrum-abc to test it locally, without relying on the GitHub url to already work.

Test Plan:
Run ./electrum-abc -v --test-release-notification
Modify the release file in various ways and repeat, to test for wrong signatures, wrong JSON format.

Also check without the --test-release-notification option, first without touching the code, then after downgrading the version below 5.2.1 in version.py, to check the remote URL still works as expected.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14147

Details

Provenance
PiRKAuthored on Jun 28 2023, 15:43
PiRKPushed on Jun 28 2023, 17:23
Reviewer
Restricted Project
Differential Revision
D14147: [electrum] add command line option to test the update_checker
Parents
rABCeda9fdf2cfcc: [ecash-herald] Improve error handling comments in token id info function
Branches
Unknown
Tags
Unknown