nixpkgs/nixos/tests/bazarr.nix
Wolfgang Walther ef481bfb2b
maintainers: drop d-xo
No activity for at least this year (2025), possibly up to a year (mid
2024).
2025-07-11 22:47:09 +02:00

24 lines
385 B
Nix

{ lib, ... }:
let
port = 42069;
in
{
name = "bazarr";
nodes.machine =
{ pkgs, ... }:
{
services.bazarr = {
enable = true;
listenPort = port;
};
};
testScript = ''
machine.wait_for_unit("bazarr.service")
machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail http://localhost:${toString port}/")
'';
}