2015-07-21 11:16:18 +01:00
|
|
|
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!!
|
2015-08-04 02:48:29 +01:00
|
|
|
$master->succeed("riak ping 2>&1");
|
2015-07-21 11:16:18 +01:00
|
|
|
'';
|
|
|
|
}
|