]> granicus.if.org Git - ejabberd/commitdiff
Correctly resolve upload.localhost for the test suite
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 17 May 2018 10:24:23 +0000 (13:24 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 17 May 2018 10:24:23 +0000 (13:24 +0300)
test/ejabberd_SUITE.erl
test/suite.hrl

index 9d3224bba2e7c1f87ad6e659f8d11944637446ec..e8e47555477e4354dc83329afeeb9ef5f3c91c1e 100644 (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),
index 00239f8cf0413624554118e189159eec95b41232..a92611145a25d71c994ceaf6aca88ba839af3ca2 100644 (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),