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";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
})
|