2022-07-22 02:55:38 +02:00
|
|
|
//go:build rpctest
|
|
|
|
// +build rpctest
|
|
|
|
|
|
|
|
package itest
|
|
|
|
|
|
|
|
import "github.com/lightningnetwork/lnd/lntemp"
|
|
|
|
|
|
|
|
// TODO(yy): remove the temp.
|
2022-07-22 11:34:36 +02:00
|
|
|
var allTestCasesTemp = []*lntemp.TestCase{
|
|
|
|
{
|
|
|
|
Name: "update channel status",
|
|
|
|
TestFunc: testUpdateChanStatus,
|
|
|
|
},
|
2022-07-26 06:12:18 +02:00
|
|
|
{
|
|
|
|
Name: "basic funding flow",
|
|
|
|
TestFunc: testBasicChannelFunding,
|
|
|
|
},
|
2022-07-28 14:15:22 +02:00
|
|
|
{
|
2022-08-15 13:03:14 +02:00
|
|
|
Name: "multi hop htlc local timeout",
|
|
|
|
TestFunc: testMultiHopHtlcLocalTimeout,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop receiver chain claim",
|
|
|
|
TestFunc: testMultiHopReceiverChainClaim,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop local force close on-chain htlc timeout",
|
|
|
|
TestFunc: testMultiHopLocalForceCloseOnChainHtlcTimeout,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop remote force close on-chain htlc timeout",
|
|
|
|
TestFunc: testMultiHopRemoteForceCloseOnChainHtlcTimeout,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop htlc local chain claim",
|
|
|
|
TestFunc: testMultiHopHtlcLocalChainClaim,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop htlc remote chain claim",
|
|
|
|
TestFunc: testMultiHopHtlcRemoteChainClaim,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "multi hop htlc aggregation",
|
|
|
|
TestFunc: testMultiHopHtlcAggregation,
|
2022-07-28 14:15:22 +02:00
|
|
|
},
|
2022-07-26 11:00:27 +02:00
|
|
|
{
|
|
|
|
Name: "external channel funding",
|
|
|
|
TestFunc: testExternalFundingChanPoint,
|
|
|
|
},
|
2022-07-28 11:44:23 +02:00
|
|
|
{
|
2022-08-17 10:53:07 +02:00
|
|
|
Name: "channel backup restore basic",
|
|
|
|
TestFunc: testChannelBackupRestoreBasic,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "channel backup restore unconfirmed",
|
|
|
|
TestFunc: testChannelBackupRestoreUnconfirmed,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "channel backup restore commit types",
|
|
|
|
TestFunc: testChannelBackupRestoreCommitTypes,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "channel backup restore force close",
|
|
|
|
TestFunc: testChannelBackupRestoreForceClose,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "channel backup restore legacy",
|
|
|
|
TestFunc: testChannelBackupRestoreLegacy,
|
2022-07-28 11:44:23 +02:00
|
|
|
},
|
2022-07-28 12:25:06 +02:00
|
|
|
{
|
|
|
|
Name: "data loss protection",
|
|
|
|
TestFunc: testDataLossProtection,
|
|
|
|
},
|
2022-08-02 14:56:13 +02:00
|
|
|
{
|
|
|
|
Name: "sweep coins",
|
|
|
|
TestFunc: testSweepAllCoins,
|
|
|
|
},
|
2022-08-02 15:15:49 +02:00
|
|
|
{
|
|
|
|
Name: "disconnecting target peer",
|
|
|
|
TestFunc: testDisconnectingTargetPeer,
|
|
|
|
},
|
2022-08-02 18:25:19 +02:00
|
|
|
{
|
|
|
|
Name: "sphinx replay persistence",
|
|
|
|
TestFunc: testSphinxReplayPersistence,
|
|
|
|
},
|
2022-08-02 19:00:20 +02:00
|
|
|
{
|
|
|
|
Name: "list channels",
|
|
|
|
TestFunc: testListChannels,
|
|
|
|
},
|
2022-08-03 15:29:25 +02:00
|
|
|
{
|
|
|
|
Name: "max pending channel",
|
|
|
|
TestFunc: testMaxPendingChannels,
|
|
|
|
},
|
2022-07-22 11:34:36 +02:00
|
|
|
}
|