summary refs log blame commit diff
path: root/nixos/tests/bazarr.nix
blob: c3337611aa29aff33d7c68ffbe3e7fdd6fc6a727 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                            
                                                















                                                                     
import ./make-test-python.nix ({ lib, ... }:

with lib;

let
  port = 42069;
in
{
  name = "bazarr";
  meta.maintainers = with 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}/")
  '';
})