nixpkgs/nixos/tests/peerflix.nix

24 lines
472 B
Nix
Raw Normal View History

2014-12-01 18:40:42 +03:00
# This test runs peerflix and checks if peerflix starts
import ./make-test-python.nix ({ pkgs, ...} : {
2014-12-01 18:40:42 +03:00
name = "peerflix";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ offline ];
};
2014-12-01 18:40:42 +03:00
nodes = {
peerflix =
{ ... }:
2014-12-01 18:40:42 +03:00
{
services.peerflix.enable = true;
};
};
testScript = ''
start_all()
2014-12-01 18:40:42 +03:00
peerflix.wait_for_unit("peerflix.service")
2020-09-16 17:50:13 +03:00
peerflix.wait_until_succeeds("curl -f localhost:9000")
2014-12-01 18:40:42 +03:00
'';
})