blob: 8839d4bfc57f73d4c28857287d881c07392e2681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ ... }:
{
name = "koito";
nodes.machine = {
services.koito.enable = true;
};
testScript =
{ nodes, ... }:
let
port = toString nodes.machine.services.koito.environment.KOITO_LISTEN_PORT;
in
''
machine.wait_for_unit('koito.service')
machine.wait_for_open_port(${port})
machine.succeed('curl --fail http://localhost:${port}')
'';
}
|