summary refs log blame commit diff
path: root/nixos/tests/lidarr.nix
blob: 7fbaea62f80e63f0e40a6e3c31d9c6c099d984f3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                            


         
 







                                               


                                           
                                    
                                                         

     
import ./make-test-python.nix ({ lib, ... }:

with lib;

{
  name = "lidarr";
  meta.maintainers = with maintainers; [ etu ];

  nodes.machine =
    { pkgs, ... }:
    { services.lidarr.enable = true; };

  testScript = ''
    start_all()

    machine.wait_for_unit("lidarr.service")
    machine.wait_for_open_port(8686)
    machine.succeed("curl --fail http://localhost:8686/")
  '';
})