2020-04-24 23:36:52 +00:00
|
|
|
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
|
|
|
|
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "rabbitmq";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ eelco offline ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = {
|
|
|
|
services.rabbitmq.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.start()
|
|
|
|
|
|
|
|
machine.wait_for_unit("rabbitmq.service")
|
|
|
|
machine.wait_until_succeeds(
|
|
|
|
'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|