nixos/tests/prowlarr: init
This commit is contained in:
parent
3d79c9250a
commit
11ce481845
|
@ -375,6 +375,7 @@ in
|
||||||
prosody = handleTest ./xmpp/prosody.nix {};
|
prosody = handleTest ./xmpp/prosody.nix {};
|
||||||
prosodyMysql = handleTest ./xmpp/prosody-mysql.nix {};
|
prosodyMysql = handleTest ./xmpp/prosody-mysql.nix {};
|
||||||
proxy = handleTest ./proxy.nix {};
|
proxy = handleTest ./proxy.nix {};
|
||||||
|
prowlarr = handleTest ./prowlarr.nix {};
|
||||||
pt2-clone = handleTest ./pt2-clone.nix {};
|
pt2-clone = handleTest ./pt2-clone.nix {};
|
||||||
qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
|
qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
|
||||||
quorum = handleTest ./quorum.nix {};
|
quorum = handleTest ./quorum.nix {};
|
||||||
|
|
18
nixos/tests/prowlarr.nix
Normal file
18
nixos/tests/prowlarr.nix
Normal 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/")
|
||||||
|
'';
|
||||||
|
})
|
|
@ -48,6 +48,7 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = ./update.sh;
|
updateScript = ./update.sh;
|
||||||
|
tests.smoke-test = nixosTests.prowlarr;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue