nixpkgs-suyu/nixos/tests/riak.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
372 B
Nix
Raw Normal View History

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