0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-17 15:40:12 +03:00
nixpkgs/nixos/tests/fedimintd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
678 B
Nix
Raw Normal View History

2024-06-26 22:17:12 -07:00
# This test runs the fedimintd and verifies that it starts
{ pkgs, ... }:
{
name = "fedimintd";
meta = with pkgs.lib.maintainers; {
maintainers = [ dpc ];
};
nodes.machine =
{ ... }:
{
services.fedimintd."mainnet" = {
enable = true;
p2p = {
url = "fedimint://example.com";
};
api_ws = {
2024-06-26 22:17:12 -07:00
url = "wss://example.com";
};
environment = { };
2024-06-26 22:17:12 -07:00
};
};
testScript =
{ nodes, ... }:
''
start_all()
machine.wait_for_unit("fedimintd-mainnet.service")
machine.wait_for_open_port(${toString nodes.machine.services.fedimintd.mainnet.api_ws.port})
2024-06-26 22:17:12 -07:00
'';
}