summary refs log tree commit diff
path: root/nixos/tests/peerflix.nix
blob: 4800413783b1b333e8d1e2d37970db9233ea30d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This test runs peerflix and checks if peerflix starts

import ./make-test-python.nix ({ pkgs, ...} : {
  name = "peerflix";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ offline ];
  };

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

  testScript = ''
    start_all()

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