Page MenuHomePhabricator

[electrum] add command line option to test the update_checker
ClosedPublic

Authored by PiRK on Jun 28 2023, 15:50.

Details

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.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
test_update_checker
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24235
Build 48080: Build Diff
Build 48079: arc lint + arc unit