nixos/tests/prowlarr: init

This commit is contained in:
David Reaver 2021-10-10 08:54:22 -07:00
parent 3d79c9250a
commit 11ce481845
3 changed files with 20 additions and 0 deletions

View file

@ -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 {};

18
nixos/tests/prowlarr.nix Normal file
View file

@ -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/")
'';
})

View file

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