2014-04-14 12:02:44 +00:00
|
|
|
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
2014-03-10 10:10:32 +00:00
|
|
|
|
2014-04-14 12:02:44 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ... }: {
|
2014-06-28 14:04:49 +00:00
|
|
|
name = "rabbitmq";
|
2015-07-12 10:09:40 +00:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
2019-02-22 15:14:13 +00:00
|
|
|
maintainers = [ eelco offline ];
|
2015-07-12 10:09:40 +00:00
|
|
|
};
|
2014-03-10 10:10:32 +00:00
|
|
|
|
|
|
|
nodes = {
|
2018-07-20 20:56:59 +00:00
|
|
|
one = { ... }: {
|
2014-03-10 10:10:32 +00:00
|
|
|
services.rabbitmq.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
2014-04-14 12:02:44 +00:00
|
|
|
|
2014-03-10 10:10:32 +00:00
|
|
|
$one->waitForUnit("rabbitmq.service");
|
|
|
|
$one->waitUntilSucceeds("su -s ${pkgs.stdenv.shell} rabbitmq -c \"rabbitmqctl status\"");
|
|
|
|
'';
|
2014-04-14 12:02:44 +00:00
|
|
|
})
|