blob: 585424f6b9f37cc22ce1bf723d4bb8f99a45c2bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ lib, ... }:
let
port = 6000;
in
{
name = "gokapi";
meta.maintainers = with lib.maintainers; [ delliott ];
nodes.machine = {
services.gokapi = {
enable = true;
environment.GOKAPI_PORT = port;
};
};
testScript = ''
machine.wait_for_unit("gokapi.service")
machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail http://localhost:${toString port}/")
'';
}
|