=== 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},
                         {virtual_pubsub_hosts,
                             [{prefix,<<"virtual.">>}]}]}]}]}]},
     {watchdog,<0.6221.2>},
     {pubsub_host,virtual},
     {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.74116.html"},
     {tc_group_properties,[{name,pm_notifications_with_inbox},parallel]},
     {tc_group_path,[[{name,pubsub_less}]]},
     {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:32


*** CT 2022-01-27 15:36:32.940 *** View log from node mongooseim@localhost when started mongooseim@localhost_5629.html
*** CT 2022-01-27 15:36:32.941 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:36:32.957 ***
bOb_inbox_msg_reset_unread_count_apns_2113@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:32.957 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21d238a7d7d47cf6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:32.958 ***
bOb_inbox_msg_reset_unread_count_apns_2113@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:32.958 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfcmVzZXRfdW5yZWFkX2NvdW50X2FwbnNfMjExMwBtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:36:32.959 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:32.959 ***
bOb_inbox_msg_reset_unread_count_apns_2113@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:32.959 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8a68e5fd9a9e554' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:32.959 ***
bOb_inbox_msg_reset_unread_count_apns_2113@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:32.959 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='cc452323975bf24de593798128062501'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:32.960 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq id='cc452323975bf24de593798128062501' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:32.960 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='559071f13c0cc5e49c639594c065ab0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:32.960 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq type='result' id='559071f13c0cc5e49c639594c065ab0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:32.960 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:32.962 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2113@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:32.962 ***
alicE_inbox_msg_reset_unread_count_apns_2113@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:32.963 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e484ae44224c984' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:32.963 ***
alicE_inbox_msg_reset_unread_count_apns_2113@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:32.963 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ19yZXNldF91bnJlYWRfY291bnRfYXBuc18yMTEzAG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:36:32.964 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:32.964 ***
alicE_inbox_msg_reset_unread_count_apns_2113@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:32.964 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26d0aa1996ef7d1d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:32.964 ***
alicE_inbox_msg_reset_unread_count_apns_2113@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:32.964 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='cbf335dd17426931da4ad73c0a3c71a5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:32.965 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq id='cbf335dd17426931da4ad73c0a3c71a5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:32.965 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='cb07f44402ccb8ef386985b8bf5a47f8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:32.965 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq type='result' id='cb07f44402ccb8ef386985b8bf5a47f8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:32.965 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:32.967 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<presence from='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='alice_inbox_msg_reset_unread_count_apns_2113@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:32.967 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='14ce0d295e98c71d9176aca7b6af51ca'>
	<enable xmlns='urn:xmpp:push:0' jid='virtual.localhost' node='princely_musings_5tYOBV6m+So='>
		<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>DE77G063139DJC59HFL0HL3CA2H6</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-01-27 15:36:32.975 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' id='14ce0d295e98c71d9176aca7b6af51ca' type='result'/>



*** User 2022-01-27 15:36:32.975 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-27 15:36:33.077 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' type='chat' id='6804784dd57b2cea8e0408bc868621d6'>
	<body>FIRST MESSAGE</body>
</message>



*** User 2022-01-27 15:36:33.126 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' type='chat' id='1a8ef20714c14936ccf802ddecc7c400'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2022-01-27 15:36:33.150 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:33.155 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' xml:lang='en' type='chat' id='1a8ef20714c14936ccf802ddecc7c400'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2022-01-27 15:36:33.155 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' xml:lang='en' type='chat' id='6804784dd57b2cea8e0408bc868621d6'>
	<body>FIRST MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:33.141404Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2022-01-27 15:36:33.155 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_2113@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:33.155 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<iq type='set' id='fb20005a05730005c9a4b671233ebed0'>
	<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:33.157 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' id='e66b0c19-90da-475d-a008-b24907a47f51'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='fb20005a05730005c9a4b671233ebed0'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:33.141471Z'/>
			<message from='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1' xml:lang='en' to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' type='chat' id='1a8ef20714c14936ccf802ddecc7c400'>
				<body>SECOND MESSAGE</body>
			</message>
		</forwarded>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-01-27 15:36:33.157 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost' to='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' id='fb20005a05730005c9a4b671233ebed0' 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:33.157 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<message to='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='1a8ef20714c14936ccf802ddecc7c400'/>
</message>



*** User 2022-01-27 15:36:33.161 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1' to='alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1' xml:lang='en'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='1a8ef20714c14936ccf802ddecc7c400'/>
</message>



*** User 2022-01-27 15:36:33.161 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-27 15:36:33.162 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_apns_2113@localhost' type='chat' id='8647cb72a5b9a9e48fc6892513b632ad'>
	<body>THIRD MESSAGE</body>
</message>



*** User 2022-01-27 15:36:33.166 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:33.168 ***
alicE_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:36:33.168 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:33.169 ***
bOb_inbox_msg_reset_unread_count_apns_2113@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:36:33.171 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:36:33.172 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5634.html



=== Ended at 2022-01-27 15:36:33
=== successfully completed test case
=== === Returned value: ok