nixosTests.kimai: migrate to runTest

Part of #386873

Changed files
+18 -20
nixos
+1 -1
nixos/tests/all-tests.nix
···
keycloak = discoverTests (import ./keycloak.nix);
keyd = handleTest ./keyd.nix { };
keymap = handleTest ./keymap.nix { };
-
kimai = handleTest ./kimai.nix { };
+
kimai = runTest ./kimai.nix;
kmonad = runTest ./kmonad.nix;
knot = runTest ./knot.nix;
komga = handleTest ./komga.nix { };
+17 -19
nixos/tests/kimai.nix
···
-
import ./make-test-python.nix (
-
{ lib, ... }:
+
{ lib, ... }:
-
{
-
name = "kimai";
-
meta.maintainers = with lib.maintainers; [ peat-psuwit ];
+
{
+
name = "kimai";
+
meta.maintainers = with lib.maintainers; [ peat-psuwit ];
-
nodes.machine =
-
{ ... }:
-
{
-
services.kimai.sites."localhost" = {
-
database.createLocally = true;
-
};
+
nodes.machine =
+
{ ... }:
+
{
+
services.kimai.sites."localhost" = {
+
database.createLocally = true;
};
+
};
-
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/")
-
'';
-
}
-
)
+
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/")
+
'';
+
}