rabbitmq_ct_helpers: Fix how we set $RABBITMQ_FEATURE_FLAGS in tests
#13077
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
In order to make
khepri_dbthe default in the future, the handling of$RABBITMQ_FEATURE_FLAGShad to be adapted to be able to disable Khepri instead.Unfortunately I broke the behavior with stable feature flags that are only available in the primary umbrella. In this case, they were automatically enabled and thus, clustering with an old umbrella that did not have these feature flags failed with
incompatible_feature_flags.How
The solution is to always use an absolute list of feature flags, not the new relative list.
V2: Allow a testsuite to skip the configuration of the metadata store. This is needed for the feature_flags_SUITE testsuite because it tests the default behavior and the configuration of the metadata store changes that behavior. While here, fix a ct log message where variables were swapped compared to the format strieg expectation.
V3: Enable
rabbitmq_4.0.0feature flag inrabbit_mgmt_http_SUITE. This testsuite apparently requires it and if it's not enabled, it fails.