summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-03-19 12:41:50 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-03-19 15:26:44 +0100
commite9547d3eaf6f8fddbc1f8bebfe93eb0b3d804d3b (patch)
tree895cb69003bdc61e857d304f1a9818fd96ad1346 /test
parentabc0b522de83e36650e873d2065646dc1f4ae1d4 (diff)
downloadrabbitmq-server-git-e9547d3eaf6f8fddbc1f8bebfe93eb0b3d804d3b.tar.gz
rabbit_feature_flags: Add an API for testsuites to add their own feature flags
This should be more robust than relying the caller (through a forced exception). Way more robust considering that the latter seems to not work at all :)
Diffstat (limited to 'test')
-rw-r--r--test/feature_flags_SUITE.erl14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/feature_flags_SUITE.erl b/test/feature_flags_SUITE.erl
index 5e178bbd9b..24e4c36127 100644
--- a/test/feature_flags_SUITE.erl
+++ b/test/feature_flags_SUITE.erl
@@ -986,15 +986,17 @@ log_feature_flags_of_all_nodes(Config) ->
lines => false}]).
declare_arbitrary_feature_flag(Config) ->
- NewFeatureFlags = #{ff_from_testsuite =>
- #{desc => "My feature flag",
- provided_by => ?MODULE,
- stability => stable}},
+ FeatureFlags = [{ff_from_testsuite,
+ #{desc => "My feature flag",
+ stability => stable}}],
+ AppAttrs = [{?MODULE, % Application
+ ?MODULE, % Module,
+ FeatureFlags}],
rabbit_ct_broker_helpers:rpc_all(
Config,
rabbit_feature_flags,
- initialize_registry,
- [NewFeatureFlags]),
+ inject_test_feature_flags,
+ [AppAttrs]),
ok.
block(Pairs) -> [block(X, Y) || {X, Y} <- Pairs].