core-lightning/tests
Christian Decker bd811fbd1a pyln: Add safe fallback results for hooks
Hooks do not tolerate failures at all. If we return a JSON-RPC error to a hook
call the only thing the main daemon can really do is to crash. This commit
adds a mapping of error to a safe fallback result, including a warning to the
node operator that this should be addressed in the plugin. The warning is
reported as a `**BROKEN**` message, and should therefore fail any testing done
on the plugin.

Changelog-Fixed: pyln: Fixed HTLCs hanging indefinitely if the hook function raises an exception. A safe fallback result is now returned instead.
2020-09-10 10:27:24 +09:30
..
data hsmd/db: backfill pubkey information so that psbts signing works 2020-07-29 13:13:46 +02:00
plugins pytest: Add a test to reproduce #3748 2020-09-10 10:27:24 +09:30
vectors pytest: Add tests for the sphinx onion generation and processing 2020-03-12 10:25:01 +10:30
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pytest: Add a compat() fixture allowing checks for specific flags 2020-07-07 23:25:45 +02:00
test_closing.py tests/test_closing.py: Test new onchaind earth-scorching behavior. 2020-09-09 12:38:19 +09:30
test_connection.py openingd: pull out common code, rename some things 2020-09-09 19:54:20 +09:30
test_db.py channel_id: save to database, dont derive from funding_txid 2020-09-09 19:54:20 +09:30
test_gossip.py pytest: increase channel sizes so they reach min capacity with option_anchor_outputs 2020-09-01 12:27:39 -05:00
test_invoices.py json_command: command_fail_badparam helper. 2020-09-02 09:46:37 +09:30
test_misc.py pytest: Skip test_feerates for elements 2020-09-09 20:17:26 +09:30
test_onion.py pytest: Actually make sure that the direcory exists 2020-03-24 09:52:33 +10:30
test_pay.py pytest: fix flake in test_mpp_interference_2 2020-09-08 19:47:11 +09:30
test_plugin.py pyln: Add safe fallback results for hooks 2020-09-10 10:27:24 +09:30
test_wallet.py tests/test_wallet.py: Simple multiwithdraw tests. 2020-09-09 20:36:08 +09:30
utils.py pytest: allow variable-order coin_moves, and give more information on failure. 2020-09-08 10:14:42 +09:30