1import ./make-test-python.nix (
2 { lib, ... }:
3
4 {
5 name = "prowlarr";
6 meta.maintainers = with lib.maintainers; [ ];
7
8 nodes.machine =
9 { pkgs, ... }:
10 {
11 services.prowlarr.enable = true;
12 };
13
14 testScript = ''
15 machine.wait_for_unit("prowlarr.service")
16 machine.wait_for_open_port(9696)
17 response = machine.succeed("curl --fail http://localhost:9696/")
18 assert '<title>Prowlarr</title>' in response, "Login page didn't load successfully"
19 machine.succeed("[ -d /var/lib/prowlarr ]")
20 '';
21 }
22)