nixpkgs/nixos/tests/slimserver.nix

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

17 lines
493 B
Nix
Raw Normal View History

2023-11-05 01:43:15 +00:00
import ./make-test-python.nix ({ pkgs, ...} : {
name = "slimserver";
meta.maintainers = with pkgs.lib.maintainers; [ adamcstephens ];
nodes.machine = { ... }: {
services.slimserver.enable = true;
};
testScript =
''
machine.wait_for_unit("slimserver.service")
machine.wait_for_open_port(9000)
machine.succeed("curl http://localhost:9000")
machine.wait_until_succeeds("journalctl -eu slimserver.service | grep 'Completed dbOptimize Scan'")
'';
})