depot/third_party/nixpkgs/nixos/tests/peerflix.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

23 lines
465 B
Nix

# 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")
'';
})