add standalone clightning-rest service
- Rename `services.rtl.cl-rest` to `services.clightning-rest`. `clightning-rest` is generally useful for connecting external REST clients to clightning. - Add a dedicated network namespace in netns-isolation. - Add nodeinfo entry. - Add datadir (which contains REST auth data) to backups.
This commit is contained in:
parent
c30aa33c15
commit
acf5fe69ad
12 changed files with 166 additions and 86 deletions
|
|
@ -59,6 +59,8 @@ let
|
|||
systemd.services.clightning.serviceConfig.TimeoutStopSec =
|
||||
mkIf config.services.clightning.plugins.clboss.enable "500ms";
|
||||
|
||||
tests.clightning-rest = cfg.clightning-rest.enable;
|
||||
|
||||
tests.rtl = cfg.rtl.enable;
|
||||
services.rtl.nodes.lnd = mkDefault true;
|
||||
services.rtl.nodes.clightning = mkDefault true;
|
||||
|
|
@ -163,6 +165,7 @@ let
|
|||
test.features.clightningPlugins = true;
|
||||
services.rtl.enable = true;
|
||||
services.spark-wallet.enable = true;
|
||||
services.clightning-rest.enable = true;
|
||||
services.lnd.enable = true;
|
||||
services.lnd.restOnionService.enable = true;
|
||||
services.lightning-loop.enable = true;
|
||||
|
|
@ -206,6 +209,7 @@ let
|
|||
imports = [ scenarios.regtestBase ];
|
||||
services.clightning.enable = true;
|
||||
test.features.clightningPlugins = true;
|
||||
services.clightning-rest.enable = true;
|
||||
services.liquidd.enable = true;
|
||||
services.rtl.enable = true;
|
||||
services.spark-wallet.enable = true;
|
||||
|
|
|
|||
|
|
@ -211,9 +211,12 @@ def _():
|
|||
machine.wait_until_succeeds(
|
||||
log_has_string("rtl", "Server is up and running")
|
||||
)
|
||||
assert_running("cl-rest")
|
||||
|
||||
@test("clightning-rest")
|
||||
def _():
|
||||
assert_running("clightning-rest")
|
||||
machine.wait_until_succeeds(
|
||||
log_has_string("cl-rest", "cl-rest api server is ready and listening on port: 3001")
|
||||
log_has_string("clightning-rest", "cl-rest api server is ready and listening on port: 3001")
|
||||
)
|
||||
|
||||
@test("spark-wallet")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue