summaryrefslogtreecommitdiffstats
path: root/nixos/tests/peerflix.nix
blob: c71727e11f0869fbfdc083173798ed5fd9b97989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This test runs peerflix and checks if peerflix starts

{ pkgs, ... }:
{
  name = "peerflix";

  nodes = {
    peerflix =
      { ... }:
      {
        services.peerflix.enable = true;
      };
  };

  testScript = ''
    start_all()

    peerflix.wait_for_unit("peerflix.service")
    peerflix.wait_until_succeeds("curl -f localhost:9000")
  '';
}