nixosTests.riak: port to python

This commit is contained in:
Oleksii Filonenko 2019-11-25 11:49:33 +02:00
parent a067458d65
commit f5746f9c0b
No known key found for this signature in database
GPG Key ID: F3510FE5691629A1

View File

@ -1,21 +1,15 @@
import ./make-test.nix {
import ./make-test-python.nix ({ lib, pkgs, ... }: {
name = "riak";
nodes = {
master =
{ pkgs, ... }:
{
services.riak.enable = true;
services.riak.package = pkgs.riak;
};
machine = {
services.riak.enable = true;
services.riak.package = pkgs.riak;
};
testScript = ''
startAll;
machine.start()
$master->waitForUnit("riak");
$master->sleep(20); # Hopefully this is long enough!!
$master->succeed("riak ping 2>&1");
machine.wait_for_unit("riak")
machine.wait_until_succeeds("riak ping 2>&1")
'';
}
})