diff options
author | David Reaver <johndreaver@gmail.com> | 2021-10-10 08:54:22 -0700 |
---|---|---|
committer | David Reaver <johndreaver@gmail.com> | 2021-10-10 14:05:33 -0700 |
commit | 11ce48184547625a2a02a0902839481336c6134d (patch) | |
tree | 543011e7f15b92b781352ce172be421f9b947e8e /nixos/tests/prowlarr.nix | |
parent | 3d79c9250aadebe59dcdf43352d9128ddbff675c (diff) |
nixos/tests/prowlarr: init
Diffstat (limited to 'nixos/tests/prowlarr.nix')
-rw-r--r-- | nixos/tests/prowlarr.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/prowlarr.nix b/nixos/tests/prowlarr.nix new file mode 100644 index 0000000000000..4cbca107568f3 --- /dev/null +++ b/nixos/tests/prowlarr.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/") + ''; +}) |