about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2021-08-30 17:11:49 +0900
committerRaphael Megzari <raphael@megzari.com>2021-08-30 18:43:09 +0900
commitf091420c1d194ad398142959266f18493da1ff83 (patch)
tree3e6ca32cd1cb5a9487f364079faceb3b7617c1b5 /nixos/tests
parent36cf478468c707fa2e867227ce04b1a729fdf6f7 (diff)
rabbitmq: add option to enable management plugin
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/rabbitmq.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/rabbitmq.nix b/nixos/tests/rabbitmq.nix
index 69be29b0f9e54..03f1fa46d29e3 100644
--- a/nixos/tests/rabbitmq.nix
+++ b/nixos/tests/rabbitmq.nix
@@ -7,7 +7,10 @@ import ./make-test-python.nix ({ pkgs, ... }: {
   };
 
   machine = {
-    services.rabbitmq.enable = true;
+    services.rabbitmq = {
+      enable = true;
+      managementPlugin.enable = true;
+    };
     # Ensure there is sufficient extra disk space for rabbitmq to be happy
     virtualisation.diskSize = 1024;
   };
@@ -19,5 +22,6 @@ import ./make-test-python.nix ({ pkgs, ... }: {
     machine.wait_until_succeeds(
         'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
     )
+    machine.wait_for_open_port("15672")
   '';
 })