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 = {
21 url = "wss://example.com";
22 };
23 environment = {
24 "FM_REL_NOTES_ACK" = "0_4_xyz";
25 };
26 };
27 };
28
29 testScript =
30 { nodes, ... }:
31 ''
32 start_all()
33
34 machine.wait_for_unit("fedimintd-mainnet.service")
35 machine.wait_for_open_port(${toString nodes.machine.services.fedimintd.mainnet.api.port})
36 '';
37}