From babb744b71819c4c3a412168e633958657805a2a Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Tue, 21 Jul 2015 06:16:18 -0400 Subject: riak: new nixos service --- nixos/tests/riak.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nixos/tests/riak.nix (limited to 'nixos/tests') diff --git a/nixos/tests/riak.nix b/nixos/tests/riak.nix new file mode 100644 index 000000000000..a56f51c4e50e --- /dev/null +++ b/nixos/tests/riak.nix @@ -0,0 +1,21 @@ +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"); + ''; +} -- cgit 1.4.1