nixos/tests/prowlarr: init

main
David Reaver 3 years ago
parent 3d79c9250a
commit 11ce481845
  1. 1
      nixos/tests/all-tests.nix
  2. 18
      nixos/tests/prowlarr.nix
  3. 1
      pkgs/servers/prowlarr/default.nix

@ -375,6 +375,7 @@ in
prosody = handleTest ./xmpp/prosody.nix {};
prosodyMysql = handleTest ./xmpp/prosody-mysql.nix {};
proxy = handleTest ./proxy.nix {};
prowlarr = handleTest ./prowlarr.nix {};
pt2-clone = handleTest ./pt2-clone.nix {};
qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
quorum = handleTest ./quorum.nix {};

@ -0,0 +1,18 @@
import ./make-test-python.nix ({ lib, ... }:
with lib;
{
name = "prowlarr";
meta.maintainers = with maintainers; [ jdreaver ];
nodes.machine =
{ pkgs, ... }:
{ services.prowlarr.enable = true; };
testScript = ''
machine.wait_for_unit("prowlarr.service")
machine.wait_for_open_port("9696")
machine.succeed("curl --fail http://localhost:9696/")
'';
})

@ -48,6 +48,7 @@ in stdenv.mkDerivation rec {
passthru = {
updateScript = ./update.sh;
tests.smoke-test = nixosTests.prowlarr;
};
meta = with lib; {

Loading…
Cancel
Save