nixpkgs/nixos/tests/peerflix.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
465 B
Nix
Raw Normal View History

2014-12-01 16:40:42 +01:00
# This test runs peerflix and checks if peerflix starts
import ./make-test-python.nix ({ pkgs, ...} : {
2014-12-01 16:40:42 +01:00
name = "peerflix";
meta = with pkgs.lib.maintainers; {
maintainers = [ offline ];
};
2014-12-01 16:40:42 +01:00
nodes = {
peerflix =
{ ... }:
2014-12-01 16:40:42 +01:00
{
services.peerflix.enable = true;
};
};
testScript = ''
start_all()
2014-12-01 16:40:42 +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
'';
})