at 22.05-pre 479 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 }; 20 21 testScript = '' 22 machine.wait_for_unit("bazarr.service") 23 machine.wait_for_open_port("${toString port}") 24 machine.succeed("curl --fail http://localhost:${toString port}/") 25 ''; 26})