Skip to content

Commit

Permalink
Check if actually auth mechanims are supported for a given preset
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Aug 17, 2023
1 parent a07be8f commit 2a9b0ec
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions big_tests/tests/sasl_extensible_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
]}
].

Expand All @@ -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.

Expand Down

0 comments on commit 2a9b0ec

Please sign in to comment.