at 23.05-pre 727 B view raw
1import ./make-test-python.nix ({ lib, ... }: 2 3with lib; 4 5let 6 port = 42069; 7in 8{ 9 name = "bazarr"; 10 meta.maintainers = with maintainers; [ d-xo ]; 11 12 nodes.machine = 13 { pkgs, ... }: 14 { 15 services.bazarr = { 16 enable = true; 17 listenPort = port; 18 }; 19 nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["unrar"]; 20 # Workaround for https://github.com/morpheus65535/bazarr/issues/1983 21 # ("Crash when running without timezone info"). 22 time.timeZone = "UTC"; 23 }; 24 25 testScript = '' 26 machine.wait_for_unit("bazarr.service") 27 machine.wait_for_open_port(${toString port}) 28 machine.succeed("curl --fail http://localhost:${toString port}/") 29 ''; 30})