@@ -882,11 +882,11 @@ clustering_ok_with_ff_disabled_everywhere(Config) ->
882
882
ok .
883
883
884
884
clustering_ok_with_ff_enabled_on_some_nodes (Config ) ->
885
- % % The test feature flag is enabled on node 1 , but not on node 2 .
885
+ % % The test feature flag is enabled on node 2 , but not on node 1 .
886
886
% % Clustering the two nodes should be accepted because they are
887
- % % compatible. Also, the feature flag will be enabled on node 2 as a
887
+ % % compatible. Also, the feature flag will be enabled on node 1 as a
888
888
% % consequence.
889
- enable_feature_flag_on (Config , 0 , ff_from_testsuite ),
889
+ enable_feature_flag_on (Config , 1 , ff_from_testsuite ),
890
890
891
891
FFSubsysOk = is_feature_flag_subsystem_available (Config ),
892
892
@@ -895,13 +895,13 @@ clustering_ok_with_ff_enabled_on_some_nodes(Config) ->
895
895
true ->
896
896
? assertEqual ([true , true ],
897
897
is_feature_flag_supported (Config , ff_from_testsuite )),
898
- ? assertEqual ([true , false ],
898
+ ? assertEqual ([false , true ],
899
899
is_feature_flag_enabled (Config , ff_from_testsuite ));
900
900
false ->
901
901
ok
902
902
end ,
903
903
904
- ? assertEqual (Config , rabbit_ct_broker_helpers :cluster_nodes (Config , 0 )),
904
+ ? assertEqual (Config , rabbit_ct_broker_helpers :cluster_nodes (Config , 1 )),
905
905
906
906
log_feature_flags_of_all_nodes (Config ),
907
907
case FFSubsysOk of
@@ -975,35 +975,35 @@ clustering_ok_with_new_ff_disabled(Config) ->
975
975
ok .
976
976
977
977
clustering_denied_with_new_ff_enabled (Config ) ->
978
- % % We declare a new (fake) feature flag on node 1 . Clustering the
979
- % % two nodes should then be forbidden because node 2 is sure it does
978
+ % % We declare a new (fake) feature flag on node 2 . Clustering the
979
+ % % two nodes should then be forbidden because node 1 is sure it does
980
980
% % not support it (because the application, `rabbit` is loaded and
981
981
% % it does not have it).
982
982
NewFeatureFlags = #{time_travel =>
983
983
#{desc => " Time travel with RabbitMQ" ,
984
984
provided_by => rabbit ,
985
985
stability => stable }},
986
- inject_ff_on_nodes (Config , [0 ], NewFeatureFlags ),
987
- enable_feature_flag_on (Config , 0 , time_travel ),
986
+ inject_ff_on_nodes (Config , [1 ], NewFeatureFlags ),
987
+ enable_feature_flag_on (Config , 1 , time_travel ),
988
988
989
989
FFSubsysOk = is_feature_flag_subsystem_available (Config ),
990
990
991
991
log_feature_flags_of_all_nodes (Config ),
992
992
case FFSubsysOk of
993
- true -> ? assertEqual ([true , false ],
993
+ true -> ? assertEqual ([false , true ],
994
994
is_feature_flag_supported (Config , time_travel )),
995
- ? assertEqual ([true , false ],
995
+ ? assertEqual ([false , true ],
996
996
is_feature_flag_enabled (Config , time_travel ));
997
997
false -> ok
998
998
end ,
999
999
1000
- ? assertMatch ({skip , _ }, rabbit_ct_broker_helpers :cluster_nodes (Config , 0 )),
1000
+ ? assertMatch ({skip , _ }, rabbit_ct_broker_helpers :cluster_nodes (Config , 1 )),
1001
1001
1002
1002
log_feature_flags_of_all_nodes (Config ),
1003
1003
case FFSubsysOk of
1004
- true -> ? assertEqual ([true , false ],
1004
+ true -> ? assertEqual ([false , true ],
1005
1005
is_feature_flag_supported (Config , time_travel )),
1006
- ? assertEqual ([true , false ],
1006
+ ? assertEqual ([false , true ],
1007
1007
is_feature_flag_enabled (Config , time_travel ));
1008
1008
false -> ok
1009
1009
end ,
@@ -1040,33 +1040,33 @@ clustering_ok_with_new_ff_disabled_from_plugin_on_some_nodes(Config) ->
1040
1040
ok .
1041
1041
1042
1042
clustering_ok_with_new_ff_enabled_from_plugin_on_some_nodes (Config ) ->
1043
- % % We first enable the test plugin on node 1 and enable its feature
1043
+ % % We first enable the test plugin on node 2 and enable its feature
1044
1044
% % flag, then we try to cluster them. Even though both nodes don't
1045
1045
% % share the same feature flags (the test plugin exposes one), they
1046
1046
% % should be considered compatible and the clustering should be
1047
1047
% % allowed.
1048
- rabbit_ct_broker_helpers :enable_plugin (Config , 0 , " my_plugin" ),
1049
- enable_feature_flag_on (Config , 0 , plugin_ff ),
1048
+ rabbit_ct_broker_helpers :enable_plugin (Config , 1 , " my_plugin" ),
1049
+ enable_feature_flag_on (Config , 1 , plugin_ff ),
1050
1050
1051
1051
FFSubsysOk = is_feature_flag_subsystem_available (Config ),
1052
1052
1053
1053
log_feature_flags_of_all_nodes (Config ),
1054
1054
case FFSubsysOk of
1055
- true -> ? assertEqual ([true , false ],
1055
+ true -> ? assertEqual ([false , true ],
1056
1056
is_feature_flag_supported (Config , plugin_ff )),
1057
- ? assertEqual ([true , false ],
1057
+ ? assertEqual ([false , true ],
1058
1058
is_feature_flag_enabled (Config , plugin_ff ));
1059
1059
false -> ok
1060
1060
end ,
1061
1061
1062
- ? assertEqual (Config , rabbit_ct_broker_helpers :cluster_nodes (Config , 0 )),
1062
+ ? assertEqual (Config , rabbit_ct_broker_helpers :cluster_nodes (Config , 1 )),
1063
1063
1064
1064
log_feature_flags_of_all_nodes (Config ),
1065
1065
case FFSubsysOk of
1066
1066
true ->
1067
1067
? assertEqual ([true , true ],
1068
1068
is_feature_flag_supported (Config , plugin_ff )),
1069
- ? assertEqual ([true , false ],
1069
+ ? assertEqual ([false , true ],
1070
1070
is_feature_flag_enabled (Config , plugin_ff ));
1071
1071
false ->
1072
1072
ok
0 commit comments