=== Test case: inbox_SUITE:user_has_two_unread_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.35223.0>},
{inbox_opts,#{iqdisc => no_queue,
groupchat => [muclight],
max_result_limit => infinity,backend => rdbms_async,
boxes => [<<"inbox">>,<<"archive">>,<<"bin">>,<<"other">>],
bin_ttl => 30,bin_clean_after => 3600000,
async_writer => #{pool_size => 1},
delete_domain_limit => infinity,
reset_markers => [<<"displayed">>],
aff_changes => true,remove_on_kicked => true}},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/inbox_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.inbox_SUITE.logs/run.2024-03-13_08.23.19/inbox_suite.user_has_two_unread_messages.26501.html"},
{tc_group_properties,[{name,one_to_one},parallel]},
{tc_group_path,[[{name,async_pools}]]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/inbox_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.inbox_SUITE.logs/run.2024-03-13_08.23.19/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07"
=== Started at 2024-03-13 08:23:25
*** User 2024-03-13 08:23:25.195 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:23:25.196 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5f349db9dc694c9f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-13 08:23:25.196 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-13 08:23:25.197 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdXNlcl9oYXNfdHdvX3VucmVhZF9tZXNzYWdlc18xNDg4AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-13 08:23:25.201 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-13 08:23:25.201 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:23:25.201 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64ba1b9f0dc07ab6' from='localhost' version='1.0' xml:lang='en' to='kate_user_has_two_unread_messages_1488@localhost'>
*** User 2024-03-13 08:23:25.201 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-13 08:23:25.201 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='762d92323f8f8b9df434a357d0573f24'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-13 08:23:25.203 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<iq id='762d92323f8f8b9df434a357d0573f24' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_user_has_two_unread_messages_1488@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-13 08:23:25.203 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='33c060fd906c3909e5cd9b27e7c4216d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:23:25.206 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<iq from='localhost' to='kate_user_has_two_unread_messages_1488@localhost/res1' id='33c060fd906c3909e5cd9b27e7c4216d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:23:25.206 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<presence/>
*** User 2024-03-13 08:23:25.226 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<presence from='kate_user_has_two_unread_messages_1488@localhost/res1' to='kate_user_has_two_unread_messages_1488@localhost/res1'/>
*** User 2024-03-13 08:23:25.226 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:23:25.227 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a591065862090b85' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-13 08:23:25.227 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-13 08:23:25.227 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfdXNlcl9oYXNfdHdvX3VucmVhZF9tZXNzYWdlc18xNDg4AG5pY25pZW1h</auth>
*** User 2024-03-13 08:23:25.229 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-13 08:23:25.229 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-13 08:23:25.229 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7529aa62da60dec2' from='localhost' version='1.0' xml:lang='en' to='mike_user_has_two_unread_messages_1488@localhost'>
*** User 2024-03-13 08:23:25.230 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-13 08:23:25.230 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='a6401d1d83beb1ba02b74c3b8d0eab6d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-13 08:23:25.230 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<iq id='a6401d1d83beb1ba02b74c3b8d0eab6d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_user_has_two_unread_messages_1488@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-13 08:23:25.230 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='6f3020c34ea96a21e4874e25438c2766'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:23:25.231 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<iq from='localhost' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='6f3020c34ea96a21e4874e25438c2766' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:23:25.231 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<presence/>
*** User 2024-03-13 08:23:25.283 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<presence from='mike_user_has_two_unread_messages_1488@localhost/res1' to='mike_user_has_two_unread_messages_1488@localhost/res1'/>
*** User 2024-03-13 08:23:25.283 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<message type='chat' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='b383811b8efefd7cf029c0a4a5026017'>
<body>Hello</body>
</message>
*** User 2024-03-13 08:23:25.286 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<message from='kate_user_has_two_unread_messages_1488@localhost/res1' to='mike_user_has_two_unread_messages_1488@localhost/res1' type='chat' id='b383811b8efefd7cf029c0a4a5026017'>
<body>Hello</body>
</message>
*** User 2024-03-13 08:23:25.286 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<message type='chat' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='0b381c58f7dec1d7759eac621207fb3b'>
<body>How are you</body>
</message>
*** User 2024-03-13 08:23:25.287 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<message from='kate_user_has_two_unread_messages_1488@localhost/res1' to='mike_user_has_two_unread_messages_1488@localhost/res1' type='chat' id='0b381c58f7dec1d7759eac621207fb3b'>
<body>How are you</body>
</message>
*** User 2024-03-13 08:23:25.288 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='5bb3c6b776be1f9aced9ef6499c9e0ce'>
<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>erlang-solutions.com:xmpp:inbox:0</value>
</field>
<field type='text-single' var='hidden_read'>
<value>false</value>
</field>
</x>
</inbox>
</iq>
*** User 2024-03-13 08:23:25.290 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<message from='mike_user_has_two_unread_messages_1488@localhost' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='1710-318205-289530'>
<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='1' queryid='5bb3c6b776be1f9aced9ef6499c9e0ce'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2024-03-13T08:23:25.283605Z'/>
<message from='kate_user_has_two_unread_messages_1488@localhost/res1' type='chat' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='b383811b8efefd7cf029c0a4a5026017'>
<body>Hello</body>
</message>
</forwarded>
<read>false</read>
<box>inbox</box>
<archive>false</archive>
<mute>0</mute>
</result>
</message>
*** User 2024-03-13 08:23:25.290 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<iq from='mike_user_has_two_unread_messages_1488@localhost' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='5bb3c6b776be1f9aced9ef6499c9e0ce' type='result'>
<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first>1710318205283605/a2F0ZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</first>
<last>1710318205283605/a2F0ZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</last>
</set>
<active-conversations>1</active-conversations>
<count>1</count>
<unread-messages>1</unread-messages>
</fin>
</iq>
*** User 2024-03-13 08:23:25.390 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='5bb3c6b776be1f9aced9ef6499c9e0ce'>
<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>erlang-solutions.com:xmpp:inbox:0</value>
</field>
<field type='text-single' var='hidden_read'>
<value>false</value>
</field>
</x>
</inbox>
</iq>
*** User 2024-03-13 08:23:25.392 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<message from='mike_user_has_two_unread_messages_1488@localhost' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='1710-318205-392148'>
<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='5bb3c6b776be1f9aced9ef6499c9e0ce'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2024-03-13T08:23:25.286603Z'/>
<message from='kate_user_has_two_unread_messages_1488@localhost/res1' type='chat' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='0b381c58f7dec1d7759eac621207fb3b'>
<body>How are you</body>
</message>
</forwarded>
<read>false</read>
<box>inbox</box>
<archive>false</archive>
<mute>0</mute>
</result>
</message>
*** User 2024-03-13 08:23:25.393 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
<iq from='mike_user_has_two_unread_messages_1488@localhost' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='5bb3c6b776be1f9aced9ef6499c9e0ce' type='result'>
<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first>1710318205286603/a2F0ZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</first>
<last>1710318205286603/a2F0ZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</last>
</set>
<active-conversations>1</active-conversations>
<count>1</count>
<unread-messages>2</unread-messages>
</fin>
</iq>
*** User 2024-03-13 08:23:25.393 ***🔗
waiting for inbox_size is done in 100 miliseconds
*** User 2024-03-13 08:23:25.393 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
<iq type='set' id='c929da1c0ff4066aa0cc9a028d4ec68d'>
<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
<x xmlns='jabber:x:data' type='submit'>
<field type='hidden' var='FORM_TYPE'>
<value>erlang-solutions.com:xmpp:inbox:0</value>
</field>
<field type='text-single' var='hidden_read'>
<value>false</value>
</field>
</x>
</inbox>
</iq>
*** User 2024-03-13 08:23:25.398 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<message from='kate_user_has_two_unread_messages_1488@localhost' to='kate_user_has_two_unread_messages_1488@localhost/res1' id='1710-318205-397517'>
<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='0' queryid='c929da1c0ff4066aa0cc9a028d4ec68d'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2024-03-13T08:23:25.286603Z'/>
<message from='kate_user_has_two_unread_messages_1488@localhost/res1' type='chat' to='mike_user_has_two_unread_messages_1488@localhost/res1' id='0b381c58f7dec1d7759eac621207fb3b'>
<body>How are you</body>
</message>
</forwarded>
<read>true</read>
<box>inbox</box>
<archive>false</archive>
<mute>0</mute>
</result>
</message>
*** User 2024-03-13 08:23:25.398 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
<iq from='kate_user_has_two_unread_messages_1488@localhost' to='kate_user_has_two_unread_messages_1488@localhost/res1' id='c929da1c0ff4066aa0cc9a028d4ec68d' type='result'>
<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first>1710318205286603/bWlrZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</first>
<last>1710318205286603/bWlrZV91c2VyX2hhc190d29fdW5yZWFkX21lc3NhZ2VzXzE0ODhAbG9jYWxob3N0</last>
</set>
<active-conversations>0</active-conversations>
<count>1</count>
<unread-messages>0</unread-messages>
</fin>
</iq>
*** User 2024-03-13 08:23:25.399 ***🔗
waiting for inbox_size is done in 0 miliseconds
*** User 2024-03-13 08:23:25.399 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 out
</stream:stream>
*** User 2024-03-13 08:23:25.399 ***🔗
mike_user_has_two_unread_messages_1488@localhost/res1 in
</stream:stream>
*** User 2024-03-13 08:23:25.399 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 out
</stream:stream>
*** User 2024-03-13 08:23:25.400 ***🔗
kate_user_has_two_unread_messages_1488@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-13 08:23:25
=== successfully completed test case
=== === Returned value: ok