summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bakken <lbakken@pivotal.io>2019-11-14 09:01:12 -0800
committerLuke Bakken <lbakken@pivotal.io>2019-11-14 09:01:12 -0800
commit660dd29fc05e9188d51156b5e6560ce5dd360e52 (patch)
tree8ec3635ae8ce11158e800907be2754207eae0376
parent690062880407112e5c373c52f55e502d406cff82 (diff)
downloadrabbitmq-server-git-660dd29fc05e9188d51156b5e6560ce5dd360e52.tar.gz
Add schema test
-rw-r--r--priv/schema/rabbit.schema3
-rw-r--r--test/config_schema_SUITE_data/rabbit.snippets7
2 files changed, 9 insertions, 1 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index d56c58defb..793cee2144 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -1069,7 +1069,8 @@ end}.
[{datatype, {enum, [stop_node, continue, transient, persistent]}}]}.
%% Approximate maximum time a consumer can spend processing a message before
-%% the channel is terminated, in milliseconds.
+%% the channel is terminated, in milliseconds. Default is no timeout.
+%%
%% {consumer_timeout, 10000},
{mapping, "consumer_timeout", "rabbit.consumer_timeout", [
diff --git a/test/config_schema_SUITE_data/rabbit.snippets b/test/config_schema_SUITE_data/rabbit.snippets
index fc0c2b7000..078669abfe 100644
--- a/test/config_schema_SUITE_data/rabbit.snippets
+++ b/test/config_schema_SUITE_data/rabbit.snippets
@@ -588,6 +588,13 @@ credential_validator.regexp = ^abc\\d+",
]}],
[]},
+ {rabbit_consumer_timeout,
+ "consumer_timeout = 20000",
+ [{rabbit, [
+ {consumer_timeout, 20000}
+ ]}],
+ []},
+
{log_syslog_settings,
"log.syslog = true
log.syslog.identity = rabbitmq