Closed dmitri-anghiloglu closed 7 years ago
I used this
CT_BACKENDS=mnesia,riak rebar ct -v suites=ejabberd
The error with mod_muc disappeared. But I got the result: 541 Ok, 1 Failed, 849 Skipped of 1391
I try to understand why the test has failed, I didn't change anything.
=== Test case: ejabberd_SUITE:test_connect_missing_to/1 (click for source code)
=== Config value:
[{anonymous,true},
{event_relay,<0.2430.0>},
{watchdog,<0.2429.0>},
{persistent_room,false},
{server_port,5222},
{server_host,"localhost"},
{component_port,5270},
{s2s_port,5269},
{server,<<"localhost">>},
{user,<<"test_single!#$%^*()`~+-;_=[]{}|\\">>},
{nick,<<"nick!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{master_nick,<<"master_nick!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{slave_nick,<<"slave_nick!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{room_subject,<<"hello, world!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{certfile,"/Users/Dima/Development/youchat/ej1/test/ejabberd_SUITE_data/cert.pem"},
{type,client},
{xmlns,<<"jabber:client">>},
{ns_stream,<<"http://etherx.jabber.org/streams">>},
{stream_version,{1,0}},
{stream_id,<<>>},
{stream_from,<<>>},
{db_xmlns,<<>>},
{mechs,[]},
{rosterver,false},
{lang,<<"en">>},
{base_dir,"/Users/Dima/Development/youchat/ej1"},
{socket,undefined},
{pubsub_node,<<"node!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{pubsub_node_title,<<"title!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{resource,<<"resource!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{master_resource,<<"master_resource!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{slave_resource,<<"slave_resource!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{password,<<"password!@#$%^&*()'\"`~<>+-/;:_=[]{}|\\">>},
{backends,["mnesia","riak"]},
{tc_logfile,"/Users/Dima/Development/youchat/ej1/logs/ct_run.test8698@Dimas-MBP.2017-09-25_14.20.11/youchat.ej1.ejabberd_SUITE.logs/run.2017-09-25_14.20.17/ejabberd_suite.test_connect_missing_to.452.html"},
{tc_group_properties,[{name,anonymous},parallel]},
{tc_group_path,[[{name,no_db},sequence]]},
{data_dir,"/Users/Dima/Development/youchat/ej1/test/ejabberd_SUITE_data/"},
{priv_dir,"/Users/Dima/Development/youchat/ej1/logs/ct_run.test8698@Dimas-MBP.2017-09-25_14.20.11/youchat.ej1.ejabberd_SUITE.logs/run.2017-09-25_14.20.17/log_private/"}]
=== Current directory is "/Users/Dima/Development/youchat/ej1/logs/ct_run.test8698@Dimas-MBP.2017-09-25_14.20.11"
=== Started at 2017-09-25 14:20:19
*** CT Error Notification 2017-09-25 14:20:19.783 ***
suite:tcp_connect failed on line 200
Reason: {badmatch,{error,econnreset}}
Full error description and stacktrace
=== Ended at 2017-09-25 14:20:19
=== Location: [{suite,tcp_connect,200},
{suite,init_stream,212},
{ejabberd_SUITE,test_connect_missing_to,612},
{test_server,ts_tc,1533},
{test_server,run_test_case_eval1,1053},
{test_server,run_test_case_eval,985}]
=== Reason: no match of right hand side value {error,econnreset}
in function suite:tcp_connect/1 (suite.erl, line 200)
in call from suite:init_stream/1 (suite.erl, line 212)
in call from ejabberd_SUITE:test_connect_missing_to/1 (ejabberd_SUITE.erl, line 612)
in call from test_server:ts_tc/3 (test_server.erl, line 1533)
in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1053)
in call from test_server:run_test_case_eval/9 (test_server.erl, line 985)
Just checkout another version in different path and repeated steps. All tests passed.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
17.08
macOS Sierra 10.12.4
source, OTP 18.3.4
I try to run tests for ejabberd on localhost. What i did? Step by step: I checked out ejabberd version 17.08.
Checked out riak 2.2.3 source and setup local cluster 3 nodes. riak is setup to use leveldb backend. Added to each riak advanced.config path to ejabberd beam files. riak db is clean and tested, it works as well.
Run test for riak db
CT_BACKENDS=riak rebar ct -v suites=ejabberd groups=riak
Common Test v1.12.1 starting (cwd is /Users/Dima/Development/youchat/ej1)
Common Test: Running make in test directories... Including the following directories: "/Users/Dima/Development/youchat/ej1/include" "/Users/Dima/Development/youchat/ej1/tools" "/Users/Dima/Development/youchat/ej1/include" "/Users/Dima/Development/youchat/ej1/deps/p1_utils/include" "/Users/Dima/Development/youchat/ej1/deps/fast_xml/include" "/Users/Dima/Development/youchat/ej1/deps/xmpp/include"
CWD set to: "/Users/Dima/Development/youchat/ej1/logs/ct_run.test6849@Dimas-MBP.2017-09-22_16.14.36"
TEST INFO: 1 test(s), 166 case(s) in 1 suite(s)
Cover compiling 262 modules - this may take some time... done
Testing youchat.ej1.ejabberd_SUITE.groups: Starting test, 166 test cases
=INFO REPORT==== 22-Sep-2017::16:14:43 === LDIF tree loaded, ready to accept connections16:14:43.836 [info] Application lager started on node 'test6849@Dimas-MBP' 16:14:43.834 [notice] Changed loghwm of /Users/Dima/Development/youchat/ej1/logs/ct_run.test6849@Dimas-MBP.2017-09-22_16.14.36/youchat.ej1.ejabberd_SUITE.groups.logs/run.2017-09-22_16.14.43/log_private/error.log to 100 16:14:43.834 [notice] Changed loghwm of /Users/Dima/Development/youchat/ej1/logs/ct_run.test6849@Dimas-MBP.2017-09-22_16.14.36/youchat.ej1.ejabberd_SUITE.groups.logs/run.2017-09-22_16.14.43/log_private/ejabberd.log to 100 16:14:43.844 [info] Application crypto started on node 'test6849@Dimas-MBP' 16:14:43.859 [info] Application sasl started on node 'test6849@Dimas-MBP' 16:14:43.878 [info] Application asn1 started on node 'test6849@Dimas-MBP' 16:14:43.878 [info] Application public_key started on node 'test6849@Dimas-MBP' 16:14:43.898 [info] Application ssl started on node 'test6849@Dimas-MBP' 16:14:43.908 [info] Application p1_utils started on node 'test6849@Dimas-MBP' 16:14:43.920 [info] Application fast_yaml started on node 'test6849@Dimas-MBP' 16:14:43.934 [info] Application fast_tls started on node 'test6849@Dimas-MBP' 16:14:43.955 [info] Application fast_xml started on node 'test6849@Dimas-MBP' 16:14:43.966 [info] Application stringprep started on node 'test6849@Dimas-MBP' 16:14:43.971 [info] Application xmpp started on node 'test6849@Dimas-MBP' 16:14:43.981 [info] Application cache_tab started on node 'test6849@Dimas-MBP' 16:14:43.996 [info] Application elixir started on node 'test6849@Dimas-MBP' 16:14:44.010 [info] Loading configuration from /Users/Dima/Development/youchat/ej1/logs/ct_run.test6849@Dimas-MBP.2017-09-22_16.14.36/ejabberd.yml 16:14:44.283 [info] Application mnesia started on node 'test6849@Dimas-MBP' 16:14:44.294 [info] FQDN used to check DIGEST-MD5 SASL authentication: localhost 16:14:44.298 [info] Building translation cache, this may take a while 16:14:44.863 [info] Creating Mnesia table 'ejabberd_commands' 16:14:44.927 [info] Creating Mnesia table 's2s' 16:14:44.935 [info] Creating Mnesia table 'temporarily_blocked' 16:14:44.945 [info] Creating Mnesia table 'acl' 16:14:44.951 [info] Creating Mnesia table 'access' 16:14:44.959 [info] Creating Mnesia table 'shaper' 16:14:44.976 [info] Application protobuffs started on node 'test6849@Dimas-MBP' 16:14:44.976 [info] Application riak_pb started on node 'test6849@Dimas-MBP' 16:14:44.976 [info] Application riakc started on node 'test6849@Dimas-MBP' 16:14:45.024 [info] Creating Mnesia table 'route' 16:14:45.029 [info] Creating Mnesia table 'route_multicast' 16:14:45.036 [info] Creating Mnesia table 'iq_response' 16:14:45.047 [info] Creating Mnesia table 'session' 16:14:45.055 [info] Creating Mnesia table 'session_counter' 16:14:45.304 [info] Application inets started on node 'test6849@Dimas-MBP' 16:14:45.305 [warning] module 'mod_mam' is recommended for module 'mod_muc' but is not found in the config 16:14:45.309 [info] Creating Mnesia table 'mod_register_ip' 16:14:45.316 [info] Creating Mnesia table 'muc_online_room' 16:14:45.324 [warning] No certificate found matching 'conference.riak.localhost': strictly configured clients or servers will reject connections with this host 16:14:45.428 [info] Creating Mnesia table 'bytestream' 16:14:45.436 [warning] No certificate found matching 'proxy.riak.localhost': strictly configured clients or servers will reject connections with this host 16:14:45.452 [warning] module 'mod_last' is recommended for module 'mod_configure' but is not found in the config 16:14:45.452 [warning] module 'mod_mam' is recommended for module 'mod_muc' but is not found in the config 16:14:45.453 [error] CRASH REPORT Process <0.2232.0> with 0 neighbours exited with reason: {aborted,{no_exists,[muc_room,[{{mucroom,{'',<<"conference.localhost">>},''},[],['$']}]]}} in gen_server:init_it/6 line 352 16:14:45.454 [critical] Problem starting the module mod_muc for host localhost options: [] error: {error, {{aborted, {no_exists, [muc_room, [{{mucroom,{'',<<"conference.localhost">>},''}, [], ['$']}]]}}, {child,undefined,mod_muc_localhost, {gen_server,start_link, [{local,mod_muc_localhost}, mod_muc, [<<"localhost">>,[]], []]}, transient,60000,worker, [mod_muc]}}} [{gen_mod,start_module,4,[{file,"src/gen_mod.erl"},{line,203}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1337}]}, {gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,79}]}, {supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,358}]}, {supervisor,start_children,3,[{file,"supervisor.erl"},{line,341}]}, {supervisor,init_children,2,[{file,"supervisor.erl"},{line,307}]}, {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}] 16:14:45.454 [critical] ejabberd initialization was aborted because a module start failed.
DONE.