lnbits/tests/api
blackcoffeexbt 0e3246e6c0
Merge commit from fork
The public payment status endpoint returned the stored preimage in the
pending-payment fall-through, leaking valid preimages of unpaid invoices
to unauthenticated callers on funding sources that generate the preimage
at invoice creation (FakeWallet, CoreLightning, CLNRest, LndRest,
LndGrpc, Eclair).

Only expose the preimage once the payment is actually successful and
scrub it from details in the exception branch. Adds a regression test
covering unauthenticated, invalid-key, non-owning-key, expired-invoice
and paid-control cases.
2026-08-20 10:21:24 +03:00
..
__init__.py test: restructure tests (#2444) 2024-04-19 13:22:06 +02:00
test_admin_api.py feat: add wasm manifest (#4089) 2026-07-24 15:35:30 +03:00
test_api.py Merge commit from fork 2026-08-20 10:21:24 +03:00
test_asset_api.py fix: stricter asset upload (#3982) 2026-05-21 12:44:23 +02:00
test_audit_api.py [test] Codex tests (#3911) 2026-03-31 09:48:43 +03:00
test_auth.py feat: display expiration for ACL tokens (#4033) 2026-07-21 15:09:54 +03:00
test_auth_api.py fix: sso missing user id (#4082) 2026-07-22 11:54:23 +03:00
test_callback_api.py fix: revolut subscriptions (#3994) 2026-06-03 11:21:44 +03:00
test_extension_api.py fix: check extension type when installing (#4101) 2026-07-27 14:53:12 +03:00
test_extensions_builder_api.py [test] Codex tests (#3911) 2026-03-31 09:48:43 +03:00
test_fiat_api.py feat: square integration (#3962) 2026-05-22 12:37:51 +03:00
test_generic.py feat: move wallet.html to vue component. FINAL DynamicComponent pr (#3559) 2025-11-25 11:45:53 +01:00
test_lnurl_api.py Add lightning addresses for wallets in core (#4035) 2026-07-31 09:35:18 +03:00
test_node_api.py [test] Codex tests (#3911) 2026-03-31 09:48:43 +03:00
test_payment_api.py feat: payments breakdown wallet ui + api (#4027) 2026-07-21 18:26:00 +03:00
test_tinyurl_api.py [test] Codex tests (#3911) 2026-03-31 09:48:43 +03:00
test_user_api.py Add lightning addresses for wallets in core (#4035) 2026-07-31 09:35:18 +03:00
test_users.py fix: paypal subscriptions (#3797) 2026-02-25 07:54:31 +01:00
test_wallet_api.py Add lightning addresses for wallets in core (#4035) 2026-07-31 09:35:18 +03:00
test_webpush_api.py [feat] access control lists (with access tokens) (#2864) 2025-01-16 17:25:27 +02:00
test_websocket_api.py [test] Codex tests (#3911) 2026-03-31 09:48:43 +03:00