nixpkgs/nixos/tests/prowlarr.nix
Wolfgang Walther 1c6af9ba0a
treewide: remove unused with
Auto-fixed by nixf-diagnose.

(cherry picked from commit c283f32d29)
2025-10-05 12:38:28 +02:00

23 lines
537 B
Nix

import ./make-test-python.nix (
{ lib, ... }:
{
name = "prowlarr";
meta.maintainers = [ ];
nodes.machine =
{ pkgs, ... }:
{
services.prowlarr.enable = true;
};
testScript = ''
machine.wait_for_unit("prowlarr.service")
machine.wait_for_open_port(9696)
response = machine.succeed("curl --fail http://localhost:9696/")
assert '<title>Prowlarr</title>' in response, "Login page didn't load successfully"
machine.succeed("[ -d /var/lib/prowlarr ]")
'';
}
)