mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
878e69c67c
Make exporting the RIAK_{ETC,LOG,DATA}_DIR variables optional; if they're not in the environment, we use the same default values as NixOS.
22 lines
375 B
Nix
22 lines
375 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 ping 2>&1");
|
|
'';
|
|
}
|