=== 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,
              #{async_writer => #{pool_size => 8},
                iqdisc => no_queue,
                groupchat => [muclight],
                backend => rdbms,max_result_limit => infinity,
                boxes => [<<"inbox">>,<<"archive">>,<<"bin">>],
                bin_ttl => 30,bin_clean_after => 3600000,
                delete_domain_limit => infinity,
                reset_markers => [<<"displayed">>],
                aff_changes => false,remove_on_kicked => true}},
          {mod_offline,
              #{backend => rdbms,
                access_max_user_messages => max_user_offline_messages,
                store_groupchat_messages => false}},
          {mod_push_service_mongoosepush,
              #{pool_name => mongoose_push_http,max_http_connections => 100,
                api_version => <<"v3">>}},
          {mod_event_pusher,
              #{push =>
                    #{iqdisc => one_queue,backend => rdbms,
                      wpool =>
                          #{strategy => available_worker,workers => 10,
                            call_timeout => 5000},
                      plugin_module => mod_event_pusher_push_plugin_defaults,
                      virtual_pubsub_hosts => [{prefix,<<"virtual.">>}]}}}]},
     {watchdog,<0.83235.0>},
     {pubsub_host,virtual},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,
         "/home/circleci/project/big_tests/tests/push_integration_SUITE_data"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@3709086d5689.2024-02-27_12.00.42/big_tests.tests.push_integration_SUITE.logs/run.2024-02-27_12.16.24/push_integration_suite.inbox_msg_reset_unread_count_apns.233474.html"},
     {tc_group_properties,[{name,pm_notifications_with_inbox}]},
     {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@3709086d5689.2024-02-27_12.00.42/big_tests.tests.push_integration_SUITE.logs/run.2024-02-27_12.16.24/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 =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3709086d5689.2024-02-27_12.00.42"

=== Started at 2024-02-27 12:16:42


*** CT 2024-02-27 12:16:42.798 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4813.html

*** User 2024-02-27 12:16:42.839 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.840 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5eb5d1371ffa401' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:16:42.840 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.840 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfcmVzZXRfdW5yZWFkX2NvdW50X2FwbnNfMzIwNQBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:16:42.841 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:16:42.841 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.842 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af999441767cdb6a' from='localhost' version='1.0' xml:lang='en' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost'>

*** User 2024-02-27 12:16:42.842 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.842 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='5cf1130d6fad319454a5112d24d621de'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:16:42.842 ***🔗
bOb_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq id='5cf1130d6fad319454a5112d24d621de' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:16:42.843 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='2f758833d9a59c7c571698c0dc8474e5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:16:42.843 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq from='localhost' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' id='2f758833d9a59c7c571698c0dc8474e5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:16:42.843 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<presence/>



*** User 2024-02-27 12:16:42.846 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<presence from='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1'/>



*** User 2024-02-27 12:16:42.847 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.847 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5001a7e41a8ec96' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:16:42.847 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.847 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ19yZXNldF91bnJlYWRfY291bnRfYXBuc18zMjA1AG1hdHlncnlzYQ==</auth>



*** User 2024-02-27 12:16:42.849 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:16:42.849 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.849 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e68201133ec27cb' from='localhost' version='1.0' xml:lang='en' to='alice_inbox_msg_reset_unread_count_apns_3205@localhost'>

*** User 2024-02-27 12:16:42.849 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@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-02-27 12:16:42.849 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='3d3a87dd31b4ca330425f6a231590d2f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:16:42.850 ***🔗
alicE_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq id='3d3a87dd31b4ca330425f6a231590d2f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:16:42.850 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='46ed2c3ae91b698635cd7e4174523c5b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:16:42.851 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq from='localhost' to='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1' id='46ed2c3ae91b698635cd7e4174523c5b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:16:42.851 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<presence/>



*** User 2024-02-27 12:16:42.854 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<presence from='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1'/>



*** User 2024-02-27 12:16:42.854 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='2eff20ddb69e032e71865ea7f0f358a5'>
	<enable xmlns='urn:xmpp:push:0' jid='virtual.localhost' node='princely_musings_3p3UPBiReZo='>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' 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>1EJG268B02JI7DJBEM2KDDFHLJH7</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2024-02-27 12:16:42.856 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq from='bob_inbox_msg_reset_unread_count_apns_3205@localhost' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' id='2eff20ddb69e032e71865ea7f0f358a5' type='result'/>



*** User 2024-02-27 12:16:42.857 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-02-27 12:16:42.958 ***🔗
waiting for wait_for_user_offline is done in 100 miliseconds

*** User 2024-02-27 12:16:42.958 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<message type='chat' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' id='d36b2d4514962385151b6b1ddc37242b'>
	<body>FIRST MESSAGE</body>
</message>



*** User 2024-02-27 12:16:42.963 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<message type='chat' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' id='ac9f7db866f7f5de3cf7d24bcfc8253b'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2024-02-27 12:16:43.071 ***🔗
waiting for timeout is done in 100 miliseconds

*** User 2024-02-27 12:16:43.071 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<presence/>



*** User 2024-02-27 12:16:43.076 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<message from='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' type='chat' id='d36b2d4514962385151b6b1ddc37242b'>
	<body>FIRST MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2024-02-27T12:16:42.964610Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2024-02-27 12:16:43.076 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<message from='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' type='chat' id='ac9f7db866f7f5de3cf7d24bcfc8253b'>
	<body>SECOND MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2024-02-27T12:16:42.970762Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2024-02-27 12:16:43.076 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<presence from='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1'/>



*** User 2024-02-27 12:16:43.077 ***🔗
waiting for is_online is done in 0 miliseconds

*** User 2024-02-27 12:16:43.077 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<iq type='set' id='4dfa4c50e7085fabcfb8f06aa236ea8e'>
	<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-02-27 12:16:43.081 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<message from='bob_inbox_msg_reset_unread_count_apns_3205@localhost' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' id='1709-36203-80576'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='4dfa4c50e7085fabcfb8f06aa236ea8e'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-02-27T12:16:42.964722Z'/>
			<message from='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1' type='chat' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' id='ac9f7db866f7f5de3cf7d24bcfc8253b'>
				<body>SECOND MESSAGE</body>
			</message>
		</forwarded>
		<read>false</read>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2024-02-27 12:16:43.082 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<iq from='bob_inbox_msg_reset_unread_count_apns_3205@localhost' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' id='4dfa4c50e7085fabcfb8f06aa236ea8e' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first>1709036202964722/YWxpY2VfaW5ib3hfbXNnX3Jlc2V0X3VucmVhZF9jb3VudF9hcG5zXzMyMDVAbG9jYWxob3N0</first>
			<last>1709036202964722/YWxpY2VfaW5ib3hfbXNnX3Jlc2V0X3VucmVhZF9jb3VudF9hcG5zXzMyMDVAbG9jYWxob3N0</last>
		</set>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>2</unread-messages>
	</fin>
</iq>



*** User 2024-02-27 12:16:43.082 ***🔗
waiting for inbox_size is done in 0 miliseconds

*** User 2024-02-27 12:16:43.082 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<message to='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='ac9f7db866f7f5de3cf7d24bcfc8253b'/>
</message>



*** User 2024-02-27 12:16:43.085 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
<message from='bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1' to='alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='ac9f7db866f7f5de3cf7d24bcfc8253b'/>
</message>



*** User 2024-02-27 12:16:43.085 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-02-27 12:16:43.086 ***🔗
waiting for wait_for_user_offline is done in 0 miliseconds

*** User 2024-02-27 12:16:43.086 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
<message type='chat' to='bob_inbox_msg_reset_unread_count_apns_3205@localhost' id='f5ade1376f05d2cd8224b6af45027f8c'>
	<body>THIRD MESSAGE</body>
</message>



*** User 2024-02-27 12:16:43.090 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:16:43.090 ***🔗
alice_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
</stream:stream>

*** User 2024-02-27 12:16:43.090 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:16:43.091 ***🔗
bob_inbox_msg_reset_unread_count_apns_3205@localhost/res1 in
</stream:stream>
*** CT 2024-02-27 12:16:43.118 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4819.html



=== Ended at 2024-02-27 12:16:43
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result