1# This test runs the fedimintd and verifies that it starts
2
3{ pkgs, ... }:
4
5{
6 name = "fedimintd";
7
8 meta = with pkgs.lib.maintainers; {
9 maintainers = [ dpc ];
10 };
11
12 nodes.machine =
13 { ... }:
14 {
15 services.fedimintd."mainnet" = {
16 enable = true;
17 p2p = {
18 url = "fedimint://example.com";
19 };
20 api_ws = {
21 url = "wss://example.com";
22 };
23 environment = { };
24 };
25 };
26
27 testScript =
28 { nodes, ... }:
29 ''
30 start_all()
31
32 machine.wait_for_unit("fedimintd-mainnet.service")
33 machine.wait_for_open_port(${toString nodes.machine.services.fedimintd.mainnet.api_ws.port})
34 '';
35}