Skip to content

Commit d4d781e

Browse files
add comprehensive integration tests for webhook protocols
- Add integration tests for LSPS5 covering: - Webhook registration flow with request ID matching. - Error handling for invalid URLs, app names, and protocol mismatches. - Notification delivery for different event types (payment_incoming, expiry_soon, liquidity_management_request). - Idempotency of webhook registrations and update detection. - Replay prevention, tampering, and out-of-window timestamp validations. - Extend LSPS2 integration tests to verify protocol message handling.
1 parent 308a268 commit d4d781e

File tree

2 files changed

+1486
-0
lines changed

2 files changed

+1486
-0
lines changed

lightning-liquidity/tests/lsps2_integration_tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ fn invoice_generation_flow() {
8888
#[cfg(lsps1_service)]
8989
lsps1_service_config: None,
9090
lsps2_service_config: Some(lsps2_service_config),
91+
lsps5_service_config: None,
9192
advertise_service: true,
9293
};
9394

9495
let lsps2_client_config = LSPS2ClientConfig::default();
9596
let client_config = LiquidityClientConfig {
9697
lsps1_client_config: None,
9798
lsps2_client_config: Some(lsps2_client_config),
99+
lsps5_client_config: None,
98100
};
99101

100102
let (service_node, client_node) =

0 commit comments

Comments
 (0)