nixpkgs/nixos/tests/kimai.nix

22 lines
463 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
2024-11-02 05:50:17 +07:00
{
name = "kimai";
meta.maintainers = with lib.maintainers; [ peat-psuwit ];
2024-11-02 05:50:17 +07:00
nodes.machine =
{ ... }:
{
services.kimai.sites."localhost" = {
database.createLocally = true;
2024-11-02 05:50:17 +07:00
};
};
2024-11-02 05:50:17 +07:00
testScript = ''
machine.wait_for_unit("phpfpm-kimai-localhost.service")
machine.wait_for_unit("nginx.service")
machine.wait_for_open_port(80)
machine.succeed("curl -v --location --fail http://localhost/")
'';
}