1{ ... }:
2{
3 name = "paisa";
4 nodes.serviceEmptyConf =
5 { ... }:
6 {
7 services.paisa = {
8 enable = true;
9
10 settings = { };
11 };
12 };
13
14 testScript = ''
15 start_all()
16
17 machine.systemctl("start network-online.target")
18 machine.wait_for_unit("network-online.target")
19
20 with subtest("empty/default config test"):
21 serviceEmptyConf.wait_for_unit("paisa.service")
22 serviceEmptyConf.wait_for_open_port(7500)
23
24 serviceEmptyConf.succeed("curl --location --fail http://localhost:7500")
25 '';
26}