=== 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.5905.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.push_integration_SUITE.logs/run.2022-02-03_16.39.51/push_integration_suite.inbox_msg_reset_unread_count_apns.163586.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.push_integration_SUITE.logs/run.2022-02-03_16.39.51/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@c0783a4ae5cf.2022-02-03_16.28.29"

=== Started at 2022-02-03 16:39:53


*** CT 2022-02-03 16:39:53.085 *** View log from node mongooseim@localhost when started mongooseim@localhost_5589.html
*** CT 2022-02-03 16:39:53.087 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2375.html

*** User 2022-02-03 16:39:53.132 ***
bOb_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.133 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b76c53cf6cf078ca' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.133 ***
bOb_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.133 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfcmVzZXRfdW5yZWFkX2NvdW50X2FwbnNfMjEzMwBtYWtyb2xpa2E=</auth>



*** User 2022-02-03 16:39:53.144 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:39:53.144 ***
bOb_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86fa3e43e3b72cba' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='595db67d8d3772b780c482b41ef935e2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq id='595db67d8d3772b780c482b41ef935e2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='5431531196f00e6d2c025db11791bb69'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.145 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq type='result' id='5431531196f00e6d2c025db11791bb69'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.146 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.160 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2133@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.161 ***
alicE_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.161 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf89af58dbc5b1a2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.162 ***
alicE_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.162 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ19yZXNldF91bnJlYWRfY291bnRfYXBuc18yMTMzAG1hdHlncnlzYQ==</auth>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04a157302b78ccd4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@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-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='995659885a5285e1eaead086114e0568'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq id='995659885a5285e1eaead086114e0568' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='691d456e148b6fa0ebf3615addc43121'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq type='result' id='691d456e148b6fa0ebf3615addc43121'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.164 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<presence from='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='alice_inbox_msg_reset_unread_count_apns_2133@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.165 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='bOb_inbox_msg_reset_unread_count_apns_2133-pubsub.localhost-princely_musings_8FjF8HQx+1k=-create_node' from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create type='push' node='princely_musings_8FjF8HQx+1k='/>
		<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-02-03 16:39:53.172 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' id='bOb_inbox_msg_reset_unread_count_apns_2133-pubsub.localhost-princely_musings_8FjF8HQx+1k=-create_node' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create node='princely_musings_8FjF8HQx+1k='/>
	</pubsub>
</iq>



*** User 2022-02-03 16:39:53.172 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='JFU5v3g=' from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
		<affiliations node='princely_musings_8FjF8HQx+1k='>
			<affiliation jid='localhost' affiliation='publish-only'/>
		</affiliations>
	</pubsub>
</iq>



*** User 2022-02-03 16:39:53.179 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' id='JFU5v3g=' type='result'/>



*** User 2022-02-03 16:39:53.179 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='a5f466cd9517c2533e2df207f9c696a2'>
	<enable xmlns='urn:xmpp:push:0' jid='pubsub.localhost' node='princely_musings_8FjF8HQx+1k='>
		<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>BM6MG99313K1GLI71640GD12N8G5</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-02-03 16:39:53.225 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' id='a5f466cd9517c2533e2df207f9c696a2' type='result'/>



*** User 2022-02-03 16:39:53.226 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-02-03 16:39:53.631 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' type='chat' id='8129799bdb0eb310ddef3ffd52ee1ad3'>
	<body>FIRST MESSAGE</body>
</message>



*** User 2022-02-03 16:39:53.638 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' type='chat' id='6655fd34fddd44a868971081da8d81e8'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2022-02-03 16:39:53.643 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.647 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' xml:lang='en' type='chat' id='8129799bdb0eb310ddef3ffd52ee1ad3'>
	<body>FIRST MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-02-03T16:39:53.636769Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2022-02-03 16:39:53.647 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' xml:lang='en' type='chat' id='6655fd34fddd44a868971081da8d81e8'>
	<body>SECOND MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-02-03T16:39:53.642012Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2022-02-03 16:39:53.647 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2133@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.648 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<iq type='set' id='9f1c794d5c8ec7ed09e788d548511be4'>
	<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-02-03 16:39:53.650 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' id='2300c9f1-7959-46be-9109-caceadb498f1'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='9f1c794d5c8ec7ed09e788d548511be4'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-03T16:39:53.638211Z'/>
			<message from='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1' xml:lang='en' to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' type='chat' id='6655fd34fddd44a868971081da8d81e8'>
				<body>SECOND MESSAGE</body>
			</message>
		</forwarded>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-02-03 16:39:53.650 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' id='9f1c794d5c8ec7ed09e788d548511be4' 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-02-03 16:39:53.650 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<message to='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='6655fd34fddd44a868971081da8d81e8'/>
</message>



*** User 2022-02-03 16:39:53.942 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1' to='alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1' xml:lang='en'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='6655fd34fddd44a868971081da8d81e8'/>
</message>



*** User 2022-02-03 16:39:53.942 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-02-03 16:39:54.144 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2133@localhost' type='chat' id='7f8084203fcbae0f714ebfab210828c7'>
	<body>THIRD MESSAGE</body>
</message>



*** User 2022-02-03 16:39:54.153 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:39:54.153 ***
alicE_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
</stream:stream>

*** User 2022-02-03 16:39:54.153 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:39:54.153 ***
bOb_inbox_msg_reset_unread_count_apns_2133@localhost/res1 in
</stream:stream>
*** CT 2022-02-03 16:39:54.156 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2375.html
*** CT 2022-02-03 16:39:54.157 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5620.html



=== Ended at 2022-02-03 16:39:54
=== successfully completed test case
=== === Returned value: ok