blob: 3ba279603556df9b4f3c41517b5cec6b8e23337c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ ... }:
{
name = "paisa";
nodes.serviceEmptyConf =
{ ... }:
{
services.paisa = {
enable = true;
settings = { };
};
};
testScript = ''
start_all()
serviceEmptyConf.systemctl("start network-online.target")
serviceEmptyConf.wait_for_unit("network-online.target")
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")
'';
}
|