at 23.11-pre 470 B view raw
1import ./make-test-python.nix ({ lib, ... }: 2 3let 4 port = 42069; 5in 6{ 7 name = "bazarr"; 8 meta.maintainers = with lib.maintainers; [ d-xo ]; 9 10 nodes.machine = 11 { pkgs, ... }: 12 { 13 services.bazarr = { 14 enable = true; 15 listenPort = port; 16 }; 17 }; 18 19 testScript = '' 20 machine.wait_for_unit("bazarr.service") 21 machine.wait_for_open_port(${toString port}) 22 machine.succeed("curl --fail http://localhost:${toString port}/") 23 ''; 24})