@@ -56,7 +56,7 @@ all() ->
5656 ].
5757
5858groups () ->
59- [
59+ [
6060 {all_tests_with_prefix , [], some_tests () ++ all_tests ()},
6161 {all_tests_without_prefix , [], some_tests ()},
6262 % % We have several groups because their interference is
@@ -104,7 +104,6 @@ definitions_group4_tests() ->
104104 definitions_vhost_test
105105 ].
106106
107-
108107all_tests () -> [
109108 cli_redirect_test ,
110109 api_redirect_test ,
@@ -205,7 +204,8 @@ all_tests() -> [
205204 amqp_sessions ,
206205 amqpl_sessions ,
207206 enable_plugin_amqp ,
208- cluster_and_node_tags_test
207+ cluster_and_node_tags_test ,
208+ version_test
209209].
210210
211211% % -------------------------------------------------------------------
@@ -3896,6 +3896,13 @@ oauth_test(Config) ->
38963896 % % cleanup
38973897 rpc (Config , application , unset_env , [rabbitmq_management , oauth_enabled ]).
38983898
3899+ version_test (Config ) ->
3900+ ActualVersion = http_get (Config , " /version" ),
3901+ ct :log (" ActualVersion : ~p " , [ActualVersion ]),
3902+ ExpectedVersion = rpc (Config , rabbit , base_product_version , []),
3903+ ct :log (" ExpectedVersion : ~p " , [ExpectedVersion ]),
3904+ ? assertEqual (ExpectedVersion , binary_to_list (ActualVersion )).
3905+
38993906login_test (Config ) ->
39003907 http_put (Config , " /users/myuser" , [{password , <<" myuser" >>},
39013908 {tags , <<" management" >>}], {group , '2xx' }),
0 commit comments