Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
21 lines
503 B
Nix
21 lines
503 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
let
|
|
jackettPort = 9117;
|
|
in {
|
|
name = "jackett";
|
|
meta.maintainers = with lib.maintainers; [ etu ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }: {
|
|
services.jackett.enable = true;
|
|
services.jackett.port = jackettPort;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit("jackett.service")
|
|
machine.wait_for_open_port(${toString jackettPort})
|
|
machine.succeed("curl --fail http://localhost:${toString jackettPort}/")
|
|
'';
|
|
})
|