Commit graph

88 commits

Author SHA1 Message Date
Oliver Gugger
a3ff9f23fd
itest: add new strict forwarding test 2025-01-30 09:41:48 +01:00
Oliver Gugger
4761fe34d6
itest: refactor invoice payment helpers 2025-01-30 09:41:48 +01:00
Oliver Gugger
3bf15333ce
itest: fix formatting, use given context everywhere 2025-01-30 09:16:41 +01:00
jiangmencity
fb9d3f51f7 chore: fix some typos in comment
Signed-off-by: jiangmencity <jiangmen@52it.net>
2025-01-20 19:57:29 +08:00
Oliver Gugger
23039a92b0
itest: add custom channel integration test
Co-authored-by: Olaoluwa Osuntokun <laolu32@gmail.com>
Co-authored-by: Gijs van Dam <gijs@lightning.engineering>
Co-authored-by: George Tsagkarelis <george.tsagkarelis@gmail.com>
2024-12-19 21:21:39 +01:00
Olaoluwa Osuntokun
3be9f300ef
itest: log pid of new nodes 2024-12-19 21:21:39 +01:00
Oliver Gugger
d368f8a8fe
multi: bump to lnd/tapd/lndclient v0.18.4-beta/v0.5.0-alpha 2024-12-19 21:21:38 +01:00
Elle Mouton
e5e97f6708
config: add signet network option 2024-11-19 09:12:57 +02:00
Elle Mouton
b76832a92e
itest: add a stateless_init test
Extract some of the tests used for the integrated and remote mode tests
and re-use them in a new test that runs them against a node stareted in
state-less init mode.
2024-10-14 16:57:00 +02:00
Elle Mouton
70cacf0048
itest: add NewNodeWithSeed
This will be used in our stateless init tests to initialise a LiT node
in stateless init mode. This method handles the creation of the wallet
and returns the LND admin macaroon that we can use.
2024-10-14 16:57:00 +02:00
Elle Mouton
28b8f2abe1
itest: pass SkipUnlock to BaseNodeConfig
So that a node can be started without unlocking the wallet.
2024-10-14 15:48:18 +02:00
Elle Mouton
3a2cdbcce5
itest: update WaitUntilStarted to only use status server
This is so that we can use this Wait function to check the state of
sub-servers even when LiT is running in stateless init mode. As
currently, a macaroon is used to make a call to each sub-server which we
wont have access to in stateless init mode. This commit also adds a new
WaitForLNDWalletReady call which only waits for LND's wallet to be
ready. We'll use this during the set-up of a stateless init node in an
itest so that we can know when we are able to Create the wallet.
2024-10-14 15:48:18 +02:00
Elle Mouton
e4e68d021b
itest: use LiTs BakeSuperMacaroon endpoint for helper
Use LiT's new(ish) BakeSuperMacaroon endpoint instead of redefining all
the logic again.
2024-10-14 15:48:18 +02:00
Elle Mouton
52cab3b097
itest: cleanup bakeSuperMacaroon helper 2024-10-14 15:48:18 +02:00
Viktor Tigerström
b7fcaa50e8
build+itest: lnd & loop versions
Bump lnd to v0.18.3-beta & loop to v0.28.7-beta.
Also bump lnd/sqldb to v1.0.4, as it's required by lnd v0.18.3-beta.
2024-09-16 12:50:55 +07:00
Elle Mouton
c68daf5981
go.mod: bump tapd and loop
tapd to 2bf18437 and loop to v0.28.6-beta
2024-07-26 08:32:12 +02:00
Elle Mouton
b2c929c267
itest: add test for channel opening 2024-07-02 18:21:42 +02:00
Viktor Tigerström
f185378c42
mod: bump lnd, Go, lndclient, loop, pool and tapd
Bump lnd to `v0.18.0-beta`. This also bumps `lndclient` to `v0.18.0-1`
and loop to `v0.28.5-beta`. Note that since loop `v0.28.5-beta` depends
on the lnd  `v0.18.0-beta.1` tag, litd will also use that tag. That tag
is still referencing the same commit as lnd `v0.18.0-beta` though, so
that's not an issue.

We also need to bump the `pool` and
`taproot-assets` daemons to branch specific versions that support
lnd `v0.18.0-beta`. Finally, the `pool` auctioneerrpc package is also
bumped to `v1.1.2`.

We also adapt it itests for the new lnd version.

Finally as lnd `v0.18.0-beta` uses go 1.22.3, we also bump the Go
version in the go.mod file.
2024-06-06 13:45:16 -04:00
bitromortac
ef55e4396d
itest: add tests for privacy flags 2024-04-25 14:49:47 +02:00
bitromortac
9d50ddb1a5
itest: extract newAutopilotLndConn and assertPseudo 2024-04-25 14:49:47 +02:00
Elle Mouton
bab43e37ef
itest: use coop closes instead of force closes 2023-11-22 14:05:44 +02:00
Elle Mouton
dd0a7f55c2
itest: add session linking test 2023-11-22 14:05:44 +02:00
Elle Mouton
5817543ad9
itest: call the rate limit and priv map itest 2023-11-22 14:02:14 +02:00
Olaoluwa Osuntokun
77fcd431c3
multi: bump lnd, loop & taproot-assets versions
Bump lnd to `v0.17.1-beta`, loop to `v0.26.5-beta` and taproot-assets to
`v0.3.1-alpha`.

With commit `76862ed` in lnd v0.17.1-beta, lnd will return an
"invalid ID" error for any calls with an unknown macaroon version.
Therefore our itests that uses a dummy macaroon was also updated to
expect this error.

With tapd `v0.3.1-alpha`, the universerpc Info rpc response is changed,
which removes the `num_assets` field in the response.
This commit therefore also updates the `taprpc-whitelist` itest
successPattern to match the new response.
2023-11-16 16:03:14 +01:00
Oliver Gugger
322a96133d
multi: fix linter issues 2023-10-03 19:52:02 +02:00
Oliver Gugger
b3c0d0e9b1
multi: bump lnd to v0.17.0-beta 2023-10-03 19:51:57 +02:00
Viktor Tigerström
294e9d00b5
itest: add disable test for accounts endpoint 2023-09-28 13:09:33 +02:00
Elle Mouton
014140d442
itest: add test for Status server endpoint 2023-09-22 11:59:25 +02:00
Elle Mouton
a673dec347
itest: use status server to determine when Lit is ready 2023-09-22 11:59:25 +02:00
Elle Mouton
5f481baecb
itest: remove uneccessary log subscriptions
These logs were initially added for debugging LNC issues but now they
just spam the itest logs so let's remove them for now.
2023-09-22 11:55:16 +02:00
Elle Mouton
dc51e884de
terminal: register Proxy server with Lit's grpc server
We eventually want a few Lit grpc servers to continue functioning even
if LND did not start up properly. This means that we need to register
these servers with LiT's grpc server instead of using LND's.
Because of this change, we also need to update the itest a bit so that
calls to the proxy server are never expected to succeed if the call is
made via the LND port.
2023-09-22 11:55:16 +02:00
Elle Mouton
20a835cf42
itest: test the suite when sub-servers are disabled
Update the `testDisablingSubServers` test to also test the suite when
the loop, pool and faraday subservers are disabled.
2023-09-22 11:55:16 +02:00
Elle Mouton
e766e9a908
itest: Add tests for whitelisted LND and Taproot-assets URIs 2023-09-07 11:00:02 +02:00
Elle Mouton
15a69e0a11
perms+subservers: register subserver whitelisted urls with perms manager 2023-09-07 11:00:02 +02:00
Elle Mouton
d856616cec
rpc_proxy+itest: return uniform error for unhandled URI
Currently `basicAuthToMacaroon` returns a different error for an
un-handled URI than is returned for other funcions which first check the
permissions manager to see if a URI is handled. With this commit, we
ensure that the error returned is the same so that the error we assert
on in tests can just be one error.
2023-09-07 11:00:02 +02:00
Oliver Gugger
6c147e900c
itest: test account label 2023-07-26 18:37:49 +02:00
Oliver Gugger
568d7ad508
accounts+itest: fix linter and code style issues 2023-07-26 18:37:49 +02:00
positiveblue
219a9ccb85
multi: new disable mode for the taproot assets subserver
Enable to start litd with taproot asset subserver disabled.
The default mode for the new sub-server is "Disabled"
Add coverage in itests for flows with some subservers disabled (based on
Elle's #537)
2023-05-16 17:00:19 +02:00
positiveblue
e78d1cbd38
itest: add itests for the Taproot Assets new subserver 2023-05-16 17:00:13 +02:00
positiveblue
4be6ffb31f
multi: Add Taproot Assets subserver 2023-05-16 16:59:28 +02:00
Viktor Tigerström
b398205744 itest: export HarnessNode publicly 2023-05-11 00:55:23 +02:00
Viktor Tigerström
dfa3aee8bf itest: export ServerHarness publicly 2023-05-11 00:55:14 +02:00
Elle Mouton
06bb73f62d
perms+subservers: let subserver register perms 2023-05-03 08:51:45 +02:00
Elle Mouton
e698d709be
itest: test LiTd REST endpoints 2023-03-20 20:45:25 +02:00
Elle Mouton
4a132f16b7
itest: run full auth suite with UI disabled 2023-03-17 11:21:42 +02:00
Elle Mouton
15ccc09131
itest: make Litd arguments configurable on restart
Add new `WithoutLitArg` and `WithLitArg` functional options that can be
passed to `GenArgs` when a node is being restarted. This makes it easy
to change the arguments of a node on restart.
2023-03-17 11:21:14 +02:00
Elle Mouton
a566bfce48
itest: use Litd's new StopDaemon method
Let the itest framework make use of the new StopDaemon method. When
instructed to Stop the node, if it is running in remote mode then only
the litd node itself should be stopped and not the remote LND node.
2023-03-17 11:16:20 +02:00
Elle Mouton
dbe62e074a
multi: add StopDaemon method to Lit
In this commit, a new Proxy service is added with a StopDaemon method.
This method can be used to stop the Litd service. This will be useful in
remote-mode itests where we want to restart Litd without also restarting
LND. It also provides a nice way of shutting down Litd in remote-mode.
A GetInfo method is also added to the service which for now just returns
the Litd version. The reason for adding this method now is so that
access to the new Proxy service can be tested in the itests withouth
actually shutting down Litd.
2023-03-17 11:14:24 +02:00
positiveblue
c267ef64eb
multi: update lnd dependency to v0.16.0-beta.rc3
- Bump lnd and other module dependencies.
- Bump Go build version & RPCs
- Refactor itests to use the new lnd itest framework.
2023-03-15 08:36:23 -07:00
positiveblue
8e6ef3f567
itest: add default context timeout to all itests 2023-02-23 07:35:25 -08:00