8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
469 B
Nix
23 lines
469 B
Nix
# This test runs peerflix and checks if peerflix starts
|
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "peerflix";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ offline ];
|
|
};
|
|
|
|
nodes = {
|
|
peerflix =
|
|
{ ... }:
|
|
{
|
|
services.peerflix.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
peerflix.wait_for_unit("peerflix.service")
|
|
peerflix.wait_until_succeeds("curl localhost:9000")
|
|
'';
|
|
})
|