mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
5803706662
Fix some fallout from de3e423
(PR #171280).
28 lines
689 B
Nix
28 lines
689 B
Nix
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "rabbitmq";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ eelco offline ];
|
|
};
|
|
|
|
nodes.machine = {
|
|
services.rabbitmq = {
|
|
enable = true;
|
|
managementPlugin.enable = true;
|
|
};
|
|
# Ensure there is sufficient extra disk space for rabbitmq to be happy
|
|
virtualisation.diskSize = 1024;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("rabbitmq.service")
|
|
machine.wait_until_succeeds(
|
|
'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
|
|
)
|
|
machine.wait_for_open_port(15672)
|
|
'';
|
|
})
|