mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03: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");
|
|
'';
|
|
}
|