nixpkgs/nixos/tests/riak.nix
2015-07-21 09:25:41 -04:00

22 lines
458 B
Nix

import ./make-test.nix {
name = "riak";
nodes = {
master =
{ pkgs, config, ... }:
{
services.riak.enable = true;
services.riak.package = pkgs.riak2;
};
};
testScript = ''
startAll;
$master->waitForUnit("riak");
$master->sleep(20); # Hopefully this is long enough!!
$master->succeed("RIAK_DATA_DIR='/var/db/riak' RIAK_LOG_DIR='/var/log/riak' RIAK_ETC_DIR='/etc/riak' riak ping 2>&1");
'';
}