Skip to content

Commit

Permalink
Enable dynamic_domains_SUITE
Browse files Browse the repository at this point in the history
Ensure mod_presence is enabled by default for more host types
  • Loading branch information
NelsonVides committed Dec 28, 2022
1 parent c8699e6 commit 97635da
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion big_tests/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{suites, "tests", service_domain_db_SUITE}.
{suites, "tests", domain_isolation_SUITE}.
{suites, "tests", domain_removal_SUITE}.
% {suites, "tests", dynamic_domains_SUITE}.
{suites, "tests", dynamic_domains_SUITE}.
{suites, "tests", local_iq_SUITE}.
% {suites, "tests", tcp_listener_SUITE}.

Expand Down
1 change: 1 addition & 0 deletions big_tests/tests/mim_c2s_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ init_per_suite(Config) ->
{start_ready_clients, fun ?MODULE:escalus_start/2}],
Config1 = save_c2s_listener(Config),
Config2 = dynamic_modules:save_modules(HostType, Config1),
dynamic_modules:ensure_stopped(HostType, [mod_presence]),
Config3 = escalus_users:update_userspec(Config2, alice, connection_steps, Steps),
Config4 = escalus_users:update_userspec(Config3, bob, connection_steps, Steps),
configure_c2s_listener(Config4, #{backwards_compatible_session => false, max_stanza_size => 1024}),
Expand Down
3 changes: 1 addition & 2 deletions big_tests/tests/service_domain_db_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ end_per_testcase(TestcaseName, Config) ->
init_per_testcase2(TestcaseName, Config)
when TestcaseName =:= rest_delete_domain_cleans_data_from_mam ->
HostType = dummy_auth_host_type(),
Mods = [{mod_presence, #{}}, {mod_mam, mam_helper:config_opts(#{pm => #{}})}],
Mods = [{mod_mam, mam_helper:config_opts(#{pm => #{}})}],
dynamic_modules:ensure_modules(mim(), HostType, Mods),
dynamic_modules:ensure_modules(mim2(), HostType, [{mod_presence, #{}}]),
escalus:init_per_testcase(TestcaseName, Config);
init_per_testcase2(_, Config) ->
Config.
Expand Down
2 changes: 1 addition & 1 deletion rel/mim1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

[[host_config]]
host_type = \"dummy auth\"
modules = { }
[host_config.modules.mod_presence]

[host_config.auth.dummy]
base_time = 1
Expand Down
4 changes: 2 additions & 2 deletions rel/mim2.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
{host_config,
"[[host_config]]
host_type = \"dummy auth\"
modules = { }
auth.dummy = { }"}.
[host_config.modules.mod_presence]
[host_config.auth.dummy]"}.

%% Include common vars shared by all profiles
"./vars-toml.config".

0 comments on commit 97635da

Please sign in to comment.