forked from mirrors/nixpkgs
nixosTests.rabbitmq: port to python
This commit is contained in:
parent
a067458d65
commit
248a3de948
|
@ -1,21 +1,21 @@
|
||||||
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
||||||
|
|
||||||
import ./make-test.nix ({ pkgs, ... }: {
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
name = "rabbitmq";
|
name = "rabbitmq";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ eelco offline ];
|
maintainers = [ eelco offline ];
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes = {
|
machine = {
|
||||||
one = { ... }: {
|
services.rabbitmq.enable = true;
|
||||||
services.rabbitmq.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
machine.start()
|
||||||
|
|
||||||
$one->waitForUnit("rabbitmq.service");
|
machine.wait_for_unit("rabbitmq.service")
|
||||||
$one->waitUntilSucceeds("su -s ${pkgs.stdenv.shell} rabbitmq -c \"rabbitmqctl status\"");
|
machine.wait_until_succeeds(
|
||||||
|
'su -s ${pkgs.stdenv.shell} rabbitmq -c "rabbitmqctl status"'
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue