summaryrefslogtreecommitdiff
path: root/test/rabbitmq-env.bats
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2018-02-23 17:58:47 +0000
committerGerhard Lazu <gerhard@lazu.co.uk>2018-02-23 18:05:49 +0000
commitb1e163fd6f385af03c65dbe421def3597ce01df2 (patch)
treef812ec277fb1343d54e7dc9a1cb9d2e36c7d94ad /test/rabbitmq-env.bats
parent2739b400a4500369b1762b0f82b68cf64047e451 (diff)
downloadrabbitmq-server-git-b1e163fd6f385af03c65dbe421def3597ce01df2.tar.gz
Make maximum number of Erlang atoms configurable via env
This was the only property in SERVER_ERL_ARGS that was not configurable. Even though it's unlikely that this will need to be increased above the existing 5 million default, we are consistent in allowing all properties in SERVER_ERL_ARGS to be cofigured.
Diffstat (limited to 'test/rabbitmq-env.bats')
-rw-r--r--test/rabbitmq-env.bats10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rabbitmq-env.bats b/test/rabbitmq-env.bats
index ac15e0dc06..ce0ece1cfa 100644
--- a/test/rabbitmq-env.bats
+++ b/test/rabbitmq-env.bats
@@ -27,3 +27,13 @@
echo "expected RABBITMQ_SERVER_ERL_ARGS to contain '+P 2000000', but got: $RABBITMQ_SERVER_ERL_ARGS"
[[ $RABBITMQ_SERVER_ERL_ARGS == *+P\ 2000000* ]]
}
+
+@test "can configure RABBITMQ_MAX_NUMBER_OF_ATOMS" {
+ declare -r scripts_dir="$BATS_TEST_DIRNAME/../scripts"
+ export RABBITMQ_SCRIPTS_DIR="$scripts_dir"
+ export RABBITMQ_CONF_ENV_FILE="$BATS_TMPDIR/rabbitmq-env.conf"
+ echo 'RABBITMQ_MAX_NUMBER_OF_ATOMS=10000000' > "$RABBITMQ_CONF_ENV_FILE"
+ source "$scripts_dir/rabbitmq-env"
+ echo "expected RABBITMQ_SERVER_ERL_ARGS to contain '+t 10000000', but got: $RABBITMQ_SERVER_ERL_ARGS"
+ [[ $RABBITMQ_SERVER_ERL_ARGS == *+t\ 10000000* ]]
+}