Skip to content

Commit

Permalink
fix test configuration: enable modules so ejabberd creates their sql …
Browse files Browse the repository at this point in the history
…tables

and later those tables can be updated without errors by mod_admin_update_sql
when ci.yml calls "make test"
  • Loading branch information
badlop committed Jan 12, 2025
1 parent 33ca118 commit 534db3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ejabberd_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ init_per_suite(Config) ->
inet_db:set_domain(binary_to_list(p1_rand:get_string())),
inet_db:set_lookup([file, native]),
start_ejabberd(NewConfig),
stop_temporary_modules(NewConfig),
NewConfig.

start_ejabberd(_) ->
{ok, _} = application:ensure_all_started(ejabberd, transient).

stop_temporary_modules(Config) ->
Host = ?config(server, Config),
Modules = [mod_shared_roster],
[gen_mod:stop_module(Host, M) || M <- Modules].

end_per_suite(_Config) ->
application:stop(ejabberd).

Expand Down
8 changes: 8 additions & 0 deletions test/ejabberd_SUITE_data/ejabberd.pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ Welcome to this XMPP server."
mod_stats: []
mod_time: []
mod_version: []
mod_mix:
db_type: sql
mod_mix_pam:
db_type: sql
mod_mqtt:
db_type: sql
mod_shared_roster:
db_type: sql

0 comments on commit 534db3e

Please sign in to comment.