3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #74124 from filalex77/nixosTests.riak-python

nixosTests.riak: port to python
This commit is contained in:
worldofpeace 2020-01-30 19:21:37 -05:00 committed by GitHub
commit 758b1b9a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,21 +1,18 @@
import ./make-test.nix {
import ./make-test-python.nix ({ lib, pkgs, ... }: {
name = "riak";
meta = with lib.maintainers; {
maintainers = [ filalex77 ];
};
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")
'';
}
})