-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MUC commands with dynamic domains #3248
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3248 +/- ##
==========================================
- Coverage 80.33% 80.32% -0.02%
==========================================
Files 398 398
Lines 32550 32549 -1
==========================================
- Hits 26150 26144 -6
- Misses 6400 6405 +5
Continue to review full report at Codecov.
|
small_tests_24 / small_tests / db507c8 internal_mnesia_24 / internal_mnesia / db507c8 small_tests_22 / small_tests / db507c8 dynamic_domains_23 / pgsql_mnesia / db507c8 dynamic_domains_24 / pgsql_mnesia / db507c8 small_tests_23 / small_tests / db507c8 ldap_mnesia_24 / ldap_mnesia / db507c8 ldap_mnesia_22 / ldap_mnesia / db507c8 ldap_mnesia_23 / ldap_mnesia / db507c8 pgsql_mnesia_23 / pgsql_mnesia / db507c8 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / db507c8 pgsql_mnesia_22 / pgsql_mnesia / db507c8 mysql_redis_24 / mysql_redis / db507c8 pgsql_mnesia_24 / pgsql_mnesia / db507c8 mssql_mnesia_24 / odbc_mssql_mnesia / db507c8 inbox_SUITE:muclight:groupchat_markers_one_reset_room_created{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alicE_groupchat_markers_one_reset_room_created_80.522333@localhost/res1">>,
escalus_tcp,<0.18075.0>,
[{event_manager,<0.18035.0>},
{server,<<"localhost">>},
{username,
<<"alicE_groupchat_markers_one_reset_room_created_80.522333">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.18035.0>},
{server,<<"localhost">>},
{username,
<<"alicE_groupchat_markers_one_reset_room_created_80.522333">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alicE_groupchat_markers_one_reset_room_created_80.522333">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"alicE_groupchat_markers_one_reset_room_created_80.522333">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"4f9ee342bb36cae6">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{muc_helper,'-foreach_recipient/2-fun-0-',2,
[{file,"/home/circleci/app/big_tests/tests/muc_helper.erl"},
{line,45}]},
... inbox_SUITE:muclight:create_groupchat{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"bOb_create_groupchat_80.527245@localhost/res1">>,
escalus_tcp,<0.18084.0>,
[{event_manager,<0.18049.0>},
{server,<<"localhost">>},
{username,<<"bOb_create_groupchat_80.527245">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.18049.0>},
{server,<<"localhost">>},
{username,<<"bOb_create_groupchat_80.527245">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"bOb_create_groupchat_80.527245">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"bOb_create_groupchat_80.527245">>},
{server,<<"localhost">>},
{password,<<"makrolika">>},
{stream_id,<<"2b9f2d4471839887">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{muc_helper,'-foreach_recipient/2-fun-0-',2,
[{file,"/home/circleci/app/big_tests/tests/muc_helper.erl"},
{line,45}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{muc_light_helper,verify_aff_bcast,3,
[{file,"/home/circleci/app/big_tests/tests/muc_light_helper.erl"},
{line,140}]},
{... inbox_SUITE:muclight:leave_and_remove_conversation{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alicE_leave_and_remove_conversation_80.527917@localhost/res1">>,
escalus_tcp,<0.18077.0>,
[{event_manager,<0.18056.0>},
{server,<<"localhost">>},
{username,
<<"alicE_leave_and_remove_conversation_80.527917">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.18056.0>},
{server,<<"localhost">>},
{username,
<<"alicE_leave_and_remove_conversation_80.527917">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alicE_leave_and_remove_conversation_80.527917">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"alicE_leave_and_remove_conversation_80.527917">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"f25047e79283d4e9">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{muc_light_helper,given_muc_light_room,3,
[{file,"/home/circleci/app/big_tests/tests/muc_light_helper.erl"},
{line,54}]},
{inbox_helper,create_room,3,
[{file,"/home/c... inbox_SUITE:muclight:non_reset_marker_should_not_affect_muclight_inbox{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"alicE_non_reset_marker_should_not_affect_muclight_inbox_80.531392@localhost/res1">>,
escalus_tcp,<0.18078.0>,
[{event_manager,<0.18070.0>},
{server,<<"localhost">>},
{username,
<<"alicE_non_reset_marker_should_not_affect_muclight_inbox_80.531392">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.18070.0>},
{server,<<"localhost">>},
{username,
<<"alicE_non_reset_marker_should_not_affect_muclight_inbox_80.531392">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"alicE_non_reset_marker_should_not_affect_muclight_inbox_80.531392">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"alicE_non_reset_marker_should_not_affect_muclight_inbox_80.531392">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"a79fe7835cc535a0">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{muc_light_helper,given_muc_light_room,3,
[{file,"/home/circleci/app/big_tests/tests/m... inbox_SUITE:muclight:groupchat_reset_stanza_resets_inbox{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bOb_groupchat_reset_stanza_resets_inbox_80.518184@localhost/res1">>,
escalus_tcp,<0.18085.0>,
[{event_manager,<0.18028.0>},
{server,<<"localhost">>},
{username,
<<"bOb_groupchat_reset_stanza_resets_inbox_80.518184">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.18028.0>},
{server,<<"localhost">>},
{username,
<<"bOb_groupchat_reset_stanza_resets_inbox_80.518184">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bOb_groupchat_reset_stanza_resets_inbox_80.518184">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bOb_groupchat_reset_stanza_resets_inbox_80.518184">>},
{server,<<"localhost">>},
{password,<<"makrolika">>},
{stream_id,<<"c22b4b6ed513c673">>}]},
5000],
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{inbox_helper,mark_last_muclight_system_message,3,
[{file,"/home/circleci/app/big_tests/tests/inbox_helper.erl"},
{line,579}]},
{inbox_helper,'-create_ro... riak_mnesia_24 / riak_mnesia / db507c8 mssql_mnesia_24 / odbc_mssql_mnesia / db507c8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Support dynamic domains in
mod_muc_commands
This module (just like the other command modules) would benefit from a more substantial rework, including:
jid:make
,jid:from_binary
etc can return an error. This is also relevant tomongoose_domain_api:get_domain_host_type
.Such changes are not done as a part of this PR, as they fall out of scope. They can be done with the command/admin API rework that we need to do separately.