about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/jackett.nix
blob: c749c32ad04e19b1e8c41a6d5a9c3adc925ec3ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import ./make-test.nix ({ lib, ... }:

with lib;

{
  name = "jackett";
  meta.maintainers = with maintainers; [ etu ];

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

  testScript = ''
    $machine->waitForUnit('jackett.service');
    $machine->waitForOpenPort('9117');
    $machine->succeed("curl --fail http://localhost:9117/");
  '';
})