diff options
Diffstat (limited to 'nixpkgs/nixos/tests/sonarr.nix')
-rw-r--r-- | nixpkgs/nixos/tests/sonarr.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/sonarr.nix b/nixpkgs/nixos/tests/sonarr.nix new file mode 100644 index 000000000000..764a4d05b381 --- /dev/null +++ b/nixpkgs/nixos/tests/sonarr.nix @@ -0,0 +1,18 @@ +import ./make-test-python.nix ({ lib, ... }: + +with lib; + +{ + name = "sonarr"; + meta.maintainers = with maintainers; [ etu ]; + + nodes.machine = + { pkgs, ... }: + { services.sonarr.enable = true; }; + + testScript = '' + machine.wait_for_unit("sonarr.service") + machine.wait_for_open_port("8989") + machine.succeed("curl --fail http://localhost:8989/") + ''; +}) |