Skip to content

Commit

Permalink
Adds rabbitmq test script
Browse files Browse the repository at this point in the history
  • Loading branch information
alskipp committed Feb 3, 2024
1 parent 60cdb73 commit 9479b99
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/rabbitmq/.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -ex

devenv up &
DEVENV_PID=$!
export DEVENV_PID

devenv_stop() {
pkill -P "$DEVENV_PID"
}

trap devenv_stop EXIT

timeout 20 bash -c 'until rabbitmqctl -q status 2>/dev/null; do sleep 0.5; done'
8 changes: 8 additions & 0 deletions examples/rabbitmq/devenv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }:

{
services.rabbitmq = {
enable = true;
managementPlugin = { enable = true; };
};
}
3 changes: 3 additions & 0 deletions examples/rabbitmq/devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable

0 comments on commit 9479b99

Please sign in to comment.