1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/nixos/tests/gokapi.nix

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

23 lines
421 B
Nix
Raw Normal View History

{ 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}/")
'';
}