mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix tests for 8679cfd2f
This commit is contained in:
parent
8679cfd2f3
commit
52525eb76d
@ -750,25 +750,25 @@ test_component_send(Config) ->
|
|||||||
disconnect(Config).
|
disconnect(Config).
|
||||||
|
|
||||||
s2s_dialback(Config) ->
|
s2s_dialback(Config) ->
|
||||||
ejabberd_s2s:stop_all_connections(),
|
ejabberd_s2s:stop_s2s_connections(),
|
||||||
ejabberd_config:add_option(s2s_use_starttls, false),
|
ejabberd_config:add_option(s2s_use_starttls, false),
|
||||||
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
||||||
s2s_ping(Config).
|
s2s_ping(Config).
|
||||||
|
|
||||||
s2s_optional(Config) ->
|
s2s_optional(Config) ->
|
||||||
ejabberd_s2s:stop_all_connections(),
|
ejabberd_s2s:stop_s2s_connections(),
|
||||||
ejabberd_config:add_option(s2s_use_starttls, optional),
|
ejabberd_config:add_option(s2s_use_starttls, optional),
|
||||||
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
||||||
s2s_ping(Config).
|
s2s_ping(Config).
|
||||||
|
|
||||||
s2s_required(Config) ->
|
s2s_required(Config) ->
|
||||||
ejabberd_s2s:stop_all_connections(),
|
ejabberd_s2s:stop_s2s_connections(),
|
||||||
ejabberd_config:add_option(s2s_use_starttls, required),
|
ejabberd_config:add_option(s2s_use_starttls, required),
|
||||||
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
ejabberd_config:add_option(domain_certfile, "self-signed-cert.pem"),
|
||||||
s2s_ping(Config).
|
s2s_ping(Config).
|
||||||
|
|
||||||
s2s_required_trusted(Config) ->
|
s2s_required_trusted(Config) ->
|
||||||
ejabberd_s2s:stop_all_connections(),
|
ejabberd_s2s:stop_s2s_connections(),
|
||||||
ejabberd_config:add_option(s2s_use_starttls, required),
|
ejabberd_config:add_option(s2s_use_starttls, required),
|
||||||
ejabberd_config:add_option(domain_certfile, "cert.pem"),
|
ejabberd_config:add_option(domain_certfile, "cert.pem"),
|
||||||
s2s_ping(Config).
|
s2s_ping(Config).
|
||||||
|
Loading…
Reference in New Issue
Block a user