nixpkgs-immich/nixos/tests/fluidd.nix
2024-09-17 10:23:40 -06:00

20 lines
410 B
Nix

import ./make-test-python.nix ({ lib, ... }:
{
name = "fluidd";
meta.maintainers = with lib.maintainers; [ vtuan10 ];
nodes.machine = { pkgs, ... }: {
services.fluidd = {
enable = true;
};
};
testScript = ''
machine.start()
machine.wait_for_unit("nginx.service")
machine.wait_for_open_port(80)
machine.succeed("curl -sSfL http://localhost/ | grep 'fluidd'")
'';
})