about summary refs log tree commit diff
path: root/nixos/tests/bazarr.nix
blob: aa0550e243ae32acfc6f7df6595f547ba838b93e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import ./make-test-python.nix ({ lib, ... }:

let
  port = 42069;
in
{
  name = "bazarr";
  meta.maintainers = with lib.maintainers; [ d-xo ];

  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}/")
  '';
})