mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Correctly resolve upload.localhost for the test suite
This commit is contained in:
parent
e4c106e0dd
commit
82c42051c3
@ -55,7 +55,8 @@ init_per_suite(Config) ->
|
|||||||
{ok, _} = file:copy(ExtAuthScript, filename:join([CWD, "extauth.py"])),
|
{ok, _} = file:copy(ExtAuthScript, filename:join([CWD, "extauth.py"])),
|
||||||
{ok, _} = ldap_srv:start(LDIFFile),
|
{ok, _} = ldap_srv:start(LDIFFile),
|
||||||
inet_db:add_host({127,0,0,1}, [binary_to_list(?S2S_VHOST),
|
inet_db:add_host({127,0,0,1}, [binary_to_list(?S2S_VHOST),
|
||||||
binary_to_list(?MNESIA_VHOST)]),
|
binary_to_list(?MNESIA_VHOST),
|
||||||
|
binary_to_list(?UPLOAD_VHOST)]),
|
||||||
inet_db:set_domain(binary_to_list(randoms:get_string())),
|
inet_db:set_domain(binary_to_list(randoms:get_string())),
|
||||||
inet_db:set_lookup([file, native]),
|
inet_db:set_lookup([file, native]),
|
||||||
start_ejabberd(NewConfig),
|
start_ejabberd(NewConfig),
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
-define(EXTAUTH_VHOST, <<"extauth.localhost">>).
|
-define(EXTAUTH_VHOST, <<"extauth.localhost">>).
|
||||||
-define(RIAK_VHOST, <<"riak.localhost">>).
|
-define(RIAK_VHOST, <<"riak.localhost">>).
|
||||||
-define(S2S_VHOST, <<"s2s.localhost">>).
|
-define(S2S_VHOST, <<"s2s.localhost">>).
|
||||||
|
-define(UPLOAD_VHOST, <<"upload.localhost">>).
|
||||||
|
|
||||||
insert(Val, N, Tuple) ->
|
insert(Val, N, Tuple) ->
|
||||||
L = tuple_to_list(Tuple),
|
L = tuple_to_list(Tuple),
|
||||||
|
Loading…
Reference in New Issue
Block a user