summaryrefslogtreecommitdiffstats
path: root/nixos/tests/yarr.nix
blob: a35d574a5af11d31163ecceb46a9a45a7bae017c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, pkgs, ... }:

{
  name = "yarr";
  meta.maintainers = with lib.maintainers; [ christoph-heiss ];

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

  testScript = ''
    machine.start()
    machine.wait_for_unit("yarr.service")
    machine.wait_for_open_port(7070)
    machine.succeed("curl -sSf http://localhost:7070 | grep '<title>yarr!</title>'")
  '';
}