summaryrefslogtreecommitdiffstats
path: root/nixos/tests/readarr.nix
blob: 6a0e25742632e7432f170b24f763f0bf1ef6604e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, ... }:
{
  name = "readarr";
  meta.maintainers = with lib.maintainers; [ jocelynthode ];

  nodes.machine =
    { pkgs, ... }:
    {
      services.readarr.enable = true;
    };

  testScript = ''
    machine.wait_for_unit("readarr.service")
    machine.wait_for_open_port(8787)
    machine.succeed("curl --fail http://localhost:8787/")
  '';
}