nixpkgs/nixos/tests/jackett.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
503 B
Nix
Raw Normal View History

2019-11-09 19:31:06 +00:00
import ./make-test-python.nix ({ lib, ... }:
2024-07-25 18:20:21 +00:00
let
jackettPort = 9117;
in {
name = "jackett";
meta.maintainers = with lib.maintainers; [ etu ];
nodes.machine =
2024-07-25 18:20:21 +00:00
{ pkgs, ... }: {
services.jackett.enable = true;
services.jackett.port = jackettPort;
};
testScript = ''
2019-11-09 19:31:06 +00:00
machine.start()
machine.wait_for_unit("jackett.service")
2024-07-25 18:20:21 +00:00
machine.wait_for_open_port(${toString jackettPort})
machine.succeed("curl --fail http://localhost:${toString jackettPort}/")
'';
})