2020-04-24 23:36:52 +00:00
|
|
|
# This test runs peerflix and checks if peerflix starts
|
|
|
|
|
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
|
|
name = "peerflix";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ offline ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
peerflix =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.peerflix.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
|
|
|
|
peerflix.wait_for_unit("peerflix.service")
|
2020-10-27 00:29:36 +00:00
|
|
|
peerflix.wait_until_succeeds("curl -f localhost:9000")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
})
|