diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-05-17 13:24:23 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-05-17 13:24:23 +0300 |
commit | 82c42051c3b8f85e187c0ead4e66dfdfac2595a2 (patch) | |
tree | d4f8f2fe58173004f39b73fab42af18309524fd9 | |
parent | Add tests for mod_http_upload (diff) |
Correctly resolve upload.localhost for the test suite
-rw-r--r-- | test/ejabberd_SUITE.erl | 3 | ||||
-rw-r--r-- | test/suite.hrl | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 9d3224bba..e8e475554 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -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), diff --git a/test/suite.hrl b/test/suite.hrl index 00239f8cf..a92611145 100644 --- a/test/suite.hrl +++ b/test/suite.hrl @@ -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), |