-
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
Support dynamic domains in mod_last #3188
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #3188 +/- ##
=======================================
Coverage 80.29% 80.30%
=======================================
Files 397 397
Lines 32453 32459 +6
=======================================
+ Hits 26059 26066 +7
+ Misses 6394 6393 -1
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a6eaf5d
to
9676977
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reason: it is required to support the new IQ handler registration
6c8bb5c
to
9ee98c8
Compare
This comment has been minimized.
This comment has been minimized.
Also: update the index to allow counting users per server (as in the API) There was no such index for MSSQL yet.
Use the new 'server' column as well.
Do it in a simple way as it would require a significant rework to minimize the amount of 'get_domain_host_type' calls. the rework will be done later.
Also: use host types when testing modules that support them
9ee98c8
to
90d6156
Compare
This comment has been minimized.
This comment has been minimized.
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.
Simply neat, just one small comment 👌🏽
small_tests_24 / small_tests / 21c00e5 internal_mnesia_24 / internal_mnesia / 21c00e5 dynamic_domains_23 / pgsql_mnesia / 21c00e5 dynamic_domains_24 / pgsql_mnesia / 21c00e5 small_tests_22 / small_tests / 21c00e5 small_tests_23 / small_tests / 21c00e5 ldap_mnesia_24 / ldap_mnesia / 21c00e5 ldap_mnesia_22 / ldap_mnesia / 21c00e5 ldap_mnesia_23 / ldap_mnesia / 21c00e5 pgsql_mnesia_24 / pgsql_mnesia / 21c00e5 pgsql_mnesia_23 / pgsql_mnesia / 21c00e5 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 21c00e5 sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_send_message{error,
{{assertion_failed,assert,is_presence,
{xmlel,<<"message">>,
[{<<"from">>,
<<"bOb_resume_session_state_send_message_13.442196@localhost/escalus-default-resource">>},
{<<"to">>,
<<"alicE_resume_session_state_send_message_13.472899@localhost">>},
{<<"xml:lang">>,<<"en">>},
{<<"type">>,<<"chat">>}],
[{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-3">>}]},
{xmlel,<<"delay">>,
[{<<"xmlns">>,<<"urn:xmpp:delay">>},
{<<"stamp">>,<<"2021-07-28T06:48:33.555325Z">>},
{<<"from">>,<<"localhost">>}],
[{xmlcdata,<<"Offline Storage">>}]}]},
"<message from='bOb_resume_session_state_send_message_13.442196@localhost/escalus-default-resource' to='alicE_resume_session_state_send_message_13.472899@localhost' xml:lang='en' type='chat'><body>msg-3</body><delay xmlns='urn:xmpp:delay' stamp='2021-07-28T06:48:33.555325Z' from='localhost'>Offline Storage</delay></message>"},
[{escalus_new_assert,assert_true,2,
[{file,
"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{sm_SUITE,resume_session_state_send_message,1,
[{file,"/home/circleci/app/big_tests/tests/sm_SUITE.erl"},
{line,727}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_serve... mysql_redis_24 / mysql_redis / 21c00e5 pgsql_mnesia_22 / pgsql_mnesia / 21c00e5 mssql_mnesia_24 / odbc_mssql_mnesia / 21c00e5 carboncopy_SUITE:all:unavailable_resources_dont_get_carbons{error,{{assertion_failed,assert_many,false,[is_presence,is_presence],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,story,4,
[{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} riak_mnesia_24 / riak_mnesia / 21c00e5 |
Add support for dynamic domains to
mod_last
and its backends.Side changes:
badmatch
asAcc
was expected in both hooks.This PR does not include:
remove_domain
.Both tasks will be done separately.