2014-04-14 14:02:44 +02:00
|
|
|
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
2014-03-10 11:10:32 +01:00
|
|
|
|
2014-04-14 14:02:44 +02:00
|
|
|
import ./make-test.nix ({ pkgs, ... }: {
|
2014-06-28 16:04:49 +02:00
|
|
|
name = "rabbitmq";
|
2014-03-10 11:10:32 +01:00
|
|
|
|
|
|
|
nodes = {
|
|
|
|
one = { config, pkgs, ... }: {
|
|
|
|
services.rabbitmq.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
2014-04-14 14:02:44 +02:00
|
|
|
|
2014-03-10 11:10:32 +01:00
|
|
|
$one->waitForUnit("rabbitmq.service");
|
|
|
|
$one->waitUntilSucceeds("su -s ${pkgs.stdenv.shell} rabbitmq -c \"rabbitmqctl status\"");
|
|
|
|
'';
|
2014-04-14 14:02:44 +02:00
|
|
|
})
|