joinmarket: add tests
This commit is contained in:
parent
cce27da2ec
commit
d6d3e8ff62
@ -34,6 +34,8 @@ env:
|
|||||||
- PKG=liquid-swap STABLE=1
|
- PKG=liquid-swap STABLE=1
|
||||||
- PKG=lightning-loop STABLE=0
|
- PKG=lightning-loop STABLE=0
|
||||||
- PKG=nixops19_09 STABLE=1
|
- PKG=nixops19_09 STABLE=1
|
||||||
|
- PKG=joinmarket STABLE=1
|
||||||
|
- PKG=joinmarket STABLE=0
|
||||||
script:
|
script:
|
||||||
- printf '%s (%s)\n' "$NIX_PATH" "$VER"
|
- printf '%s (%s)\n' "$NIX_PATH" "$VER"
|
||||||
- |
|
- |
|
||||||
|
@ -102,6 +102,14 @@ def run_tests(extra_tests):
|
|||||||
|
|
||||||
assert_running("onion-chef")
|
assert_running("onion-chef")
|
||||||
|
|
||||||
|
assert_running("joinmarket")
|
||||||
|
machine.wait_until_succeeds(
|
||||||
|
log_has_string("joinmarket", "P2EPDaemonServerProtocolFactory starting on 27184")
|
||||||
|
)
|
||||||
|
machine.wait_until_succeeds(
|
||||||
|
log_has_string("joinmarket-yieldgenerator", "Failed to open wallet",)
|
||||||
|
)
|
||||||
|
|
||||||
# FIXME: use 'wait_for_unit' because 'create-web-index' always fails during startup due
|
# FIXME: use 'wait_for_unit' because 'create-web-index' always fails during startup due
|
||||||
# to incomplete unit dependencies.
|
# to incomplete unit dependencies.
|
||||||
# 'create-web-index' implicitly tests 'nodeinfo'.
|
# 'create-web-index' implicitly tests 'nodeinfo'.
|
||||||
|
@ -56,6 +56,15 @@ import ./make-test.nix rec {
|
|||||||
services.btcpayserver.lightningBackend = "lnd";
|
services.btcpayserver.lightningBackend = "lnd";
|
||||||
# needed to test macaroon creation
|
# needed to test macaroon creation
|
||||||
environment.systemPackages = with pkgs; [ openssl xxd ];
|
environment.systemPackages = with pkgs; [ openssl xxd ];
|
||||||
|
|
||||||
|
services.joinmarket.enable = true;
|
||||||
|
services.joinmarket.yieldgenerator = {
|
||||||
|
enable = true;
|
||||||
|
customParameters = ''
|
||||||
|
txfee = 200
|
||||||
|
cjfee_a = 300
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# to test that unused secrets are made inaccessible by 'setup-secrets'
|
# to test that unused secrets are made inaccessible by 'setup-secrets'
|
||||||
systemd.services.generate-secrets.postStart = ''
|
systemd.services.generate-secrets.postStart = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user