2014-12-01 16:40:42 +01:00
|
|
|
# This test runs peerflix and checks if peerflix starts
|
|
|
|
|
2019-12-15 18:50:50 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2014-12-01 16:40:42 +01:00
|
|
|
name = "peerflix";
|
2021-01-10 20:08:30 +01:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2015-07-12 12:09:40 +02:00
|
|
|
maintainers = [ offline ];
|
|
|
|
};
|
2014-12-01 16:40:42 +01:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
peerflix =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2014-12-01 16:40:42 +01:00
|
|
|
{
|
|
|
|
services.peerflix.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-12-15 18:50:50 +01:00
|
|
|
start_all()
|
2014-12-01 16:40:42 +01:00
|
|
|
|
2019-12-15 18:50:50 +01:00
|
|
|
peerflix.wait_for_unit("peerflix.service")
|
2020-09-16 16:50:13 +02:00
|
|
|
peerflix.wait_until_succeeds("curl -f localhost:9000")
|
2014-12-01 16:40:42 +01:00
|
|
|
'';
|
2015-07-12 12:09:40 +02:00
|
|
|
})
|