Release NixOS 23.11
[NixPkgs.git] / nixos / tests / audiobookshelf.nix
blob64bd415160ee0b92c13b300c23261f709c482efa
1 import ./make-test-python.nix ({ lib, ... }:
3 with lib;
6   name = "audiobookshelf";
7   meta.maintainers = with maintainers; [ wietsedv ];
9   nodes.machine =
10     { pkgs, ... }:
11     {
12       services.audiobookshelf = {
13         enable = true;
14         port = 1234;
15       };
16     };
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   '';