2021-10-10 16:54:22 +01:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "prowlarr";
|
2023-04-30 15:26:19 +01:00
|
|
|
meta.maintainers = with lib.maintainers; [ jdreaver ];
|
2021-10-10 16:54:22 +01:00
|
|
|
|
|
|
|
nodes.machine =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{ services.prowlarr.enable = true; };
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("prowlarr.service")
|
2022-06-11 13:22:53 +01:00
|
|
|
machine.wait_for_open_port(9696)
|
2023-12-29 09:57:56 +00:00
|
|
|
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 ]")
|
2021-10-10 16:54:22 +01:00
|
|
|
'';
|
|
|
|
})
|