mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixosTests.riak: port to python
This commit is contained in:
parent
a067458d65
commit
f5746f9c0b
@ -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")
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user