nixpkgs/nixos/tests/peerflix.nix

25 lines
425 B
Nix
Raw Permalink Normal View History

2014-12-01 16:40:42 +01:00
# This test runs peerflix and checks if peerflix starts
{ pkgs, ... }:
{
name = "peerflix";
meta = with pkgs.lib.maintainers; {
maintainers = [ offline ];
};
2014-12-01 16:40:42 +01:00
nodes = {
peerflix =
{ ... }:
{
services.peerflix.enable = true;
};
};
2014-12-01 16:40:42 +01:00
testScript = ''
start_all()
2014-12-01 16:40:42 +01:00
peerflix.wait_for_unit("peerflix.service")
peerflix.wait_until_succeeds("curl -f localhost:9000")
'';
}