Correctly resolve upload.localhost for the test suite

This commit is contained in:
Evgeniy Khramtsov 2018-05-17 13:24:23 +03:00
parent e4c106e0dd
commit 82c42051c3
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,8 @@ init_per_suite(Config) ->
{ok, _} = file:copy(ExtAuthScript, filename:join([CWD, "extauth.py"])),
{ok, _} = ldap_srv:start(LDIFFile),
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_lookup([file, native]),
start_ejabberd(NewConfig),

View File

@ -84,6 +84,7 @@
-define(EXTAUTH_VHOST, <<"extauth.localhost">>).
-define(RIAK_VHOST, <<"riak.localhost">>).
-define(S2S_VHOST, <<"s2s.localhost">>).
-define(UPLOAD_VHOST, <<"upload.localhost">>).
insert(Val, N, Tuple) ->
L = tuple_to_list(Tuple),