nixpkgs/nixos/tests/paisa.nix

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

27 lines
542 B
Nix
Raw Permalink Normal View History

2025-06-30 17:18:05 +02:00
{ ... }:
{
name = "paisa";
2025-07-02 16:25:39 +02:00
nodes.serviceEmptyConf =
{ ... }:
2025-06-30 17:18:05 +02:00
{
2025-07-02 16:25:39 +02:00
services.paisa = {
enable = true;
settings = { };
2025-06-30 17:18:05 +02:00
};
};
2025-07-02 16:25:39 +02:00
2025-06-30 17:18:05 +02:00
testScript = ''
start_all()
machine.systemctl("start network-online.target")
machine.wait_for_unit("network-online.target")
2025-07-02 16:25:39 +02:00
with subtest("empty/default config test"):
serviceEmptyConf.wait_for_unit("paisa.service")
serviceEmptyConf.wait_for_open_port(7500)
serviceEmptyConf.succeed("curl --location --fail http://localhost:7500")
2025-06-30 17:18:05 +02:00
'';
}