1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/nixos/tests/rabbitmq.nix

22 lines
479 B
Nix
Raw Normal View History

# This test runs rabbitmq and checks if rabbitmq is up and running.
2019-11-25 09:35:19 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
2014-06-28 15:04:49 +01:00
name = "rabbitmq";
meta = with pkgs.lib.maintainers; {
maintainers = [ eelco offline ];
};
2019-11-25 09:35:19 +00:00
machine = {
services.rabbitmq.enable = true;
};
testScript = ''
2019-11-25 09:35:19 +00:00
machine.start()
2019-11-25 09:35:19 +00:00
machine.wait_for_unit("rabbitmq.service")
machine.wait_until_succeeds(
'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
2019-11-25 09:35:19 +00:00
)
'';
})