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