2014-12-01 15:40:42 +00:00
|
|
|
# This test runs peerflix and checks if peerflix starts
|
|
|
|
|
2015-07-12 11:09:40 +01:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2014-12-01 15:40:42 +00:00
|
|
|
name = "peerflix";
|
2015-07-12 11:09:40 +01:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ offline ];
|
|
|
|
};
|
2014-12-01 15:40:42 +00:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
peerflix =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.peerflix.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
|
|
|
|
$peerflix->waitForUnit("peerflix.service");
|
|
|
|
$peerflix->waitUntilSucceeds("curl localhost:9000");
|
|
|
|
'';
|
2015-07-12 11:09:40 +01:00
|
|
|
})
|