1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/nixos/tests/riak.nix

19 lines
366 B
Nix
Raw Normal View History

2019-11-25 09:49:33 +00:00
import ./make-test-python.nix ({ lib, pkgs, ... }: {
2015-07-21 11:16:18 +01:00
name = "riak";
meta = with lib.maintainers; {
maintainers = [ Br1ght0ne ];
};
2015-07-21 11:16:18 +01:00
2019-11-25 09:49:33 +00:00
machine = {
services.riak.enable = true;
services.riak.package = pkgs.riak;
2015-07-21 11:16:18 +01:00
};
testScript = ''
2019-11-25 09:49:33 +00:00
machine.start()
2015-07-21 11:16:18 +01:00
2019-11-25 09:49:33 +00:00
machine.wait_for_unit("riak")
machine.wait_until_succeeds("riak ping 2>&1")
2015-07-21 11:16:18 +01:00
'';
2019-11-25 09:49:33 +00:00
})