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

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

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

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