From aadb65c2fb8f6027a678859a000d650c4a3ddbd9 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Thu, 17 Aug 2023 22:15:38 +0200 Subject: [PATCH] Check if actually auth mechanims are supported for a given preset --- big_tests/tests/sasl2_SUITE.erl | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/big_tests/tests/sasl2_SUITE.erl b/big_tests/tests/sasl2_SUITE.erl index b5997154073..9f1e3781299 100644 --- a/big_tests/tests/sasl2_SUITE.erl +++ b/big_tests/tests/sasl2_SUITE.erl @@ -17,11 +17,16 @@ all() -> [ - {group, basic} + {group, all_tests} ]. groups() -> [ + {all_tests, [parallel], + [ + {group, basic}, + {group, scram} + ]}, {basic, [parallel], [ server_does_not_announce_if_not_tls, @@ -30,11 +35,14 @@ groups() -> user_agent_is_invalid, authenticate_with_plain, authenticate_with_plain_and_user_agent_without_id, + authenticate_again_results_in_stream_error + ]}, + {scram, [parallel], + [ authenticate_with_scram_abort, authenticate_with_scram_bad_abort, authenticate_with_scram_bad_response, - authenticate_with_scram, - authenticate_again_results_in_stream_error + authenticate_with_scram ]} ]. @@ -51,6 +59,13 @@ end_per_suite(Config) -> dynamic_modules:restore_modules(Config), escalus:end_per_suite(Config). +init_per_group(scram, Config) -> + case mongoose_helper:supports_sasl_module(cyrsasl_scram_sha256) of + false -> + {skip, "scram password type not supported"}; + true -> + Config + end; init_per_group(_GroupName, Config) -> Config.