summary refs log blame commit diff
path: root/nixos/tests/riak.nix
blob: 68a9b7315b3501ef6b49c309fb8bf6e742f3c5ce (plain) (tree)
1
2
3
4
5
6
7
8
9




                        
                    


                                    
                                          







                                                         
                                       

     
import ./make-test.nix {
  name = "riak";

  nodes = {
    master =
      { pkgs, ... }:

      {
        services.riak.enable = true;
        services.riak.package = pkgs.riak;
      };
  };

  testScript = ''
    startAll;

    $master->waitForUnit("riak");
    $master->sleep(20); # Hopefully this is long enough!!
    $master->succeed("riak ping 2>&1");
  '';
}