summary refs log tree commit diff
path: root/nixos/tests/rabbitmq.nix
blob: ffcdde9d87f22c07175629060334be9919340e37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This test runs rabbitmq and checks if rabbitmq is up and running.

import ./make-test.nix ({ pkgs, ... }: {

  nodes = {
    one = { config, pkgs, ... }: {
      services.rabbitmq.enable = true;
    };
  };

  testScript = ''
    startAll;

    $one->waitForUnit("rabbitmq.service");
    $one->waitUntilSucceeds("su -s ${pkgs.stdenv.shell} rabbitmq -c \"rabbitmqctl status\"");
  '';
})