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";
|
2019-11-25 10:51:39 +01:00
|
|
|
meta = with lib.maintainers; {
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = [ Br1ght0ne ];
|
2019-11-25 10:51:39 +01:00
|
|
|
};
|
2015-07-21 12:16:18 +02:00
|
|
|
|
2019-11-25 10:49:33 +01:00
|
|
|
machine = {
|
|
|
|
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
|
|
|
})
|