Skip to content

Commit

Permalink
Merge pull request #3278 from esl/dynamic-domains-login-tests
Browse files Browse the repository at this point in the history
Enable login_SUITE for dynamic domains
  • Loading branch information
vkatsuba authored Sep 17, 2021
2 parents 9e53098 + 641fab5 commit 498a4b1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
16 changes: 15 additions & 1 deletion big_tests/dynamic_domains.config
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,21 @@
{username, <<"john">>},
{server, <<"domain.example.com">>},
{host, <<"localhost">>},
{password, <<"cosontuma">>}]}
{password, <<"cosontuma">>}]},
{neustradamus, [
{username, <<"neustradamus">>},
{server, <<"domain.example.com">>},
{host, <<"localhost">>},
{password, <<"scramshaplus">>},
{starttls, required},
{tls_module, fast_tls}]},
{hacker, [
{username, <<"hacker">>},
{server, <<"domain.example.com">>},
{host, <<"localhost">>},
{password, <<"bringdowntheserver">>},
{compression, <<"zlib">>},
{port, 5223}]}
]}.

{escalus_anon_users, [
Expand Down
2 changes: 2 additions & 0 deletions big_tests/dynamic_domains.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

{suites, "tests", last_SUITE}.

{suites, "tests", login_SUITE}.

{suites, "tests", mam_SUITE}.

{suites, "tests", mam_send_message_SUITE}.
Expand Down
15 changes: 7 additions & 8 deletions big_tests/tests/login_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ all() ->
].

groups() ->
G = [{login, [parallel], all_tests()},
{login_digest, [sequence], digest_tests()},
{login_scram, [parallel], scram_tests()},
{login_scram_store_plain, [parallel], scram_tests()},
{login_scram_tls, [parallel], scram_tests()},
{login_specific_scram, [sequence], configure_specific_scram_test()},
{messages, [sequence], [messages_story, message_zlib_limit]}],
ct_helper:repeat_all_until_all_ok(G).
[{login, [parallel], all_tests()},
{login_digest, [sequence], digest_tests()},
{login_scram, [parallel], scram_tests()},
{login_scram_store_plain, [parallel], scram_tests()},
{login_scram_tls, [parallel], scram_tests()},
{login_specific_scram, [sequence], configure_specific_scram_test()},
{messages, [sequence], [messages_story, message_zlib_limit]}].

scram_tests() ->
[log_one,
Expand Down
4 changes: 2 additions & 2 deletions big_tests/tests/mongoose_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ wait_for_pid_to_die(Pid) ->
end.

supports_sasl_module(Module) ->
Host = ct:get_config({hosts, mim, domain}),
rpc(mim(), ejabberd_auth, supports_sasl_module, [Host, Module]).
HostType = domain_helper:host_type(),
rpc(mim(), ejabberd_auth, supports_sasl_module, [HostType, Module]).

backup_auth_config(Config) ->
HostType = domain_helper:host_type(),
Expand Down

0 comments on commit 498a4b1

Please sign in to comment.