=== Test case: push_integration_SUITE:inbox_msg_reset_unread_count_apns/1 (click for source code)
=== Config value:
[{api_v,"v3"},
{required_modules,
[{mod_inbox,
[{aff_changes,false},
{remove_on_kicked,true},
{groupchat,[muclight]},
{markers,[displayed]}]},
{mod_offline,[]},
{mod_push_service_mongoosepush,
[{pool_name,mongoose_push_http},{api_version,"v3"}]},
{mod_event_pusher,[{backends,[{push,[{backend,rdbms}]}]}]},
{mod_pubsub,
[{plugins,[<<"dag">>,<<"push">>]},
{backend,rdbms},
{nodetree,<<"dag">>},
{host,{prefix,<<"pubsub.">>}}]}]},
{watchdog,<0.5307.2>},
{pubsub_host,real},
{mim_data_dir,
"/home/circleci/project/big_tests/tests/push_integration_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,
"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.push_integration_SUITE.logs/run.2022-01-27_15.36.19/push_integration_suite.inbox_msg_reset_unread_count_apns.142338.html"},
{tc_group_properties,[{name,pm_notifications_with_inbox},parallel]},
{tc_group_path,[[{name,pubsub_ful}]]},
{data_dir,
"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/push_integration_SUITE_data/"},
{priv_dir,
"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.push_integration_SUITE.logs/run.2022-01-27_15.36.19/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:36:21
*** User 2022-01-27 15:36:21.221 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:36:21.221 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='784f297013c4fd1e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:21.221 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:36:21.221 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfcmVzZXRfdW5yZWFkX2NvdW50X2FwbnNfMjA2OQBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:36:21.222 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eebc5ba9a251646c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='6afe07ccc86d95763be4682b4626b15d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq id='6afe07ccc86d95763be4682b4626b15d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='cf678dd075405bbfb0698a902f5c398a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:21.224 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq type='result' id='cf678dd075405bbfb0698a902f5c398a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:21.224 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:21.225 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2069@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:21.226 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:36:21.226 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='303c8ea2d7c65f4b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:21.226 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:36:21.226 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ19yZXNldF91bnJlYWRfY291bnRfYXBuc18yMDY5AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:36:21.227 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:21.227 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:36:21.227 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4e4b5f4c94964ef' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:21.227 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:36:21.228 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='c89ac86c739c0a089b3320b8b742b51c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:21.228 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq id='c89ac86c739c0a089b3320b8b742b51c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:21.228 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='2c82c9d757a01d1b35fda94b3d38d5ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:21.228 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq type='result' id='2c82c9d757a01d1b35fda94b3d38d5ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:21.228 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:21.230 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<presence from='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='alice_inbox_msg_reset_unread_count_apns_2069@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:21.230 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='bOb_inbox_msg_reset_unread_count_apns_2069-pubsub.localhost-princely_musings_cq+cq7t+Uqo=-create_node' from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<create type='push' node='princely_musings_cq+cq7t+Uqo='/>
<configure>
<x xmlns='jabber:x:data' type='submit'>
<field var='FORM_TYPE' type='hidden'>
<value>http://jabber.org/protocol/pubsub#node_config</value>
</field>
<field var='pubsub#access_model'>
<value>whitelist</value>
</field>
<field var='pubsub#publish_model'>
<value>publishers</value>
</field>
</x>
</configure>
</pubsub>
</iq>
*** User 2022-01-27 15:36:21.234 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' id='bOb_inbox_msg_reset_unread_count_apns_2069-pubsub.localhost-princely_musings_cq+cq7t+Uqo=-create_node' type='result'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<create node='princely_musings_cq+cq7t+Uqo='/>
</pubsub>
</iq>
*** User 2022-01-27 15:36:21.234 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='An98vIM=' from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
<affiliations node='princely_musings_cq+cq7t+Uqo='>
<affiliation jid='localhost' affiliation='publish-only'/>
</affiliations>
</pubsub>
</iq>
*** User 2022-01-27 15:36:21.236 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' id='An98vIM=' type='result'/>
*** User 2022-01-27 15:36:21.236 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='b291ed006a8acd85bdbd77409d632304'>
<enable xmlns='urn:xmpp:push:0' jid='pubsub.localhost' node='princely_musings_cq+cq7t+Uqo='>
<x xmlns='jabber:x:data' type='submit'>
<field var='FORM_TYPE'>
<value>http://jabber.org/protocol/pubsub#publish-options</value>
</field>
<field var='service'>
<value>apns</value>
</field>
<field var='device_id'>
<value>CMILC31GCCDFG7BF6393BBM41E5A</value>
</field>
<field var='silent'>
<value>true</value>
</field>
</x>
</enable>
</iq>
*** User 2022-01-27 15:36:21.238 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' id='b291ed006a8acd85bdbd77409d632304' type='result'/>
*** User 2022-01-27 15:36:21.241 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-01-27 15:36:21.645 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' type='chat' id='e2d1f131f557d4569a3d5502daaceaf8'>
<body>FIRST MESSAGE</body>
</message>
*** User 2022-01-27 15:36:21.659 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' type='chat' id='bb86477b7814f0a2920dd09ff04761e5'>
<body>SECOND MESSAGE</body>
</message>
*** User 2022-01-27 15:36:21.666 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:21.682 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' xml:lang='en' type='chat' id='e2d1f131f557d4569a3d5502daaceaf8'>
<body>FIRST MESSAGE</body>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.657943Z' from='localhost'>Offline Storage</delay>
</message>
*** User 2022-01-27 15:36:21.682 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' xml:lang='en' type='chat' id='bb86477b7814f0a2920dd09ff04761e5'>
<body>SECOND MESSAGE</body>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.664595Z' from='localhost'>Offline Storage</delay>
</message>
*** User 2022-01-27 15:36:21.682 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2069@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:21.682 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<iq type='set' id='c776876f1c577160bf4af861f6bb5221'>
<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 2022-01-27 15:36:21.688 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' id='6491fd1c-dc6b-4b88-b734-f92f8befd3ab'>
<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='c776876f1c577160bf4af861f6bb5221'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.659214Z'/>
<message from='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1' xml:lang='en' to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' type='chat' id='bb86477b7814f0a2920dd09ff04761e5'>
<body>SECOND MESSAGE</body>
</message>
</forwarded>
<archive>false</archive>
<mute>0</mute>
</result>
</message>
*** User 2022-01-27 15:36:21.689 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' id='c776876f1c577160bf4af861f6bb5221' type='result'>
<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
<active-conversations>1</active-conversations>
<count>1</count>
<unread-messages>2</unread-messages>
</fin>
</iq>
*** User 2022-01-27 15:36:21.689 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<message to='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1'>
<displayed xmlns='urn:xmpp:chat-markers:0' id='bb86477b7814f0a2920dd09ff04761e5'/>
</message>
*** User 2022-01-27 15:36:22.010 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1' to='alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1' xml:lang='en'>
<displayed xmlns='urn:xmpp:chat-markers:0' id='bb86477b7814f0a2920dd09ff04761e5'/>
</message>
*** User 2022-01-27 15:36:22.010 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-01-27 15:36:22.212 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2069@localhost' type='chat' id='190092de0d80c5cc606dd5864ae932eb'>
<body>THIRD MESSAGE</body>
</message>
*** User 2022-01-27 15:36:22.219 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:22.219 ***
alicE_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:36:22.219 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:22.219 ***
bOb_inbox_msg_reset_unread_count_apns_2069@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:36:22
=== successfully completed test case
=== === Returned value: ok