My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/peerflix.nix

23 lines
465 B

# This test runs peerflix and checks if peerflix starts
import ./make-test-python.nix ({ pkgs, ...} : {
name = "peerflix";
meta = with pkgs.lib.maintainers; {
maintainers = [ offline ];
};
nodes = {
peerflix =
{ ... }:
{
services.peerflix.enable = true;
};
};
testScript = ''
start_all()
peerflix.wait_for_unit("peerflix.service")
peerflix.wait_until_succeeds("curl -f localhost:9000")
'';
})