=== Test case: push_integration_SUITE:inbox_msg_reset_unread_count_fcm/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.5603.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.push_integration_SUITE.logs/run.2022-01-25_16.33.50/push_integration_suite.inbox_msg_reset_unread_count_fcm.75652.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.push_integration_SUITE.logs/run.2022-01-25_16.33.50/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:34:03


*** CT 2022-01-25 16:34:03.342 *** View log from node mongooseim@localhost when started mongooseim@localhost_5629.html
*** CT 2022-01-25 16:34:03.342 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2377.html

*** User 2022-01-25 16:34:03.362 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.363 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6cbddcac19bbb266' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:03.363 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.363 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfcmVzZXRfdW5yZWFkX2NvdW50X2ZjbV8yMTgwAG1ha3JvbGlrYQ==</auth>



*** User 2022-01-25 16:34:03.364 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:34:03.364 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.364 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ddf16e3860ab40ee' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:03.364 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.364 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='46f0d20de00e63f671cdf20224ce7d9d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:34:03.365 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq id='46f0d20de00e63f671cdf20224ce7d9d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:34:03.365 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='b46a27372ebff226e1255bec14360ef5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:03.365 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq type='result' id='b46a27372ebff226e1255bec14360ef5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:03.365 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<presence/>



*** User 2022-01-25 16:34:03.367 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:34:03.367 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.368 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='600b846b7d5d0a14' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:03.368 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.368 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ19yZXNldF91bnJlYWRfY291bnRfZmNtXzIxODAAbWF0eWdyeXNh</auth>



*** User 2022-01-25 16:34:03.369 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:34:03.369 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.369 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3545d3774b404390' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:03.369 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@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-25 16:34:03.369 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='d6585aeb3fd8a8b5044c0d455ea9ce80'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:34:03.370 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq id='d6585aeb3fd8a8b5044c0d455ea9ce80' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:34:03.370 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='19d064630240a5ae7e2a8d856e6fd562'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:03.370 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq type='result' id='19d064630240a5ae7e2a8d856e6fd562'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:03.370 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<presence/>



*** User 2022-01-25 16:34:03.372 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<presence from='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='alice_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:34:03.372 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='3f9ae0b3815a20ae0fbb2f614038774a'>
	<enable xmlns='urn:xmpp:push:0' jid='virtual.localhost' node='princely_musings_qsymFbksIaU='>
		<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>fcm</value>
			</field>
			<field var='device_id'>
				<value>31HHL053MK04DI9I7J4GE2L6GK8J</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-01-25 16:34:03.374 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' id='3f9ae0b3815a20ae0fbb2f614038774a' type='result'/>



*** User 2022-01-25 16:34:03.375 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-25 16:34:03.375 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' type='chat' id='d8b56990a4acd904f032901428cf0f8b'>
	<body>FIRST MESSAGE</body>
</message>



*** User 2022-01-25 16:34:03.380 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' type='chat' id='51123959471004a6c2a9359e1b615bd8'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2022-01-25 16:34:03.396 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<presence/>



*** User 2022-01-25 16:34:03.399 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' xml:lang='en' type='chat' id='51123959471004a6c2a9359e1b615bd8'>
	<body>SECOND MESSAGE</body>
</message>



*** User 2022-01-25 16:34:03.399 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' xml:lang='en' type='chat' id='d8b56990a4acd904f032901428cf0f8b'>
	<body>FIRST MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T16:34:03.382419Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2022-01-25 16:34:03.399 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<presence from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:34:03.400 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<iq type='set' id='89dc787dbe78af6484723d5f866d9113'>
	<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-25 16:34:03.401 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' id='9a358b41-cab9-4006-ad85-d11675238a47'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='89dc787dbe78af6484723d5f866d9113'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T16:34:03.382478Z'/>
			<message from='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' xml:lang='en' to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' type='chat' id='51123959471004a6c2a9359e1b615bd8'>
				<body>SECOND MESSAGE</body>
			</message>
		</forwarded>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-01-25 16:34:03.401 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' id='89dc787dbe78af6484723d5f866d9113' 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-25 16:34:03.401 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<message to='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='51123959471004a6c2a9359e1b615bd8'/>
</message>



*** User 2022-01-25 16:34:03.403 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' to='alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1' xml:lang='en'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='51123959471004a6c2a9359e1b615bd8'/>
</message>



*** User 2022-01-25 16:34:03.403 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-25 16:34:03.404 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2180@localhost' type='chat' id='1374ca2539368a74250bb9c77058727f'>
	<body>THIRD MESSAGE</body>
</message>



*** User 2022-01-25 16:34:03.418 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:34:03.421 ***
alicE_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:34:03.421 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:34:03.422 ***
bOb_inbox_msg_reset_unread_count_fcm_2180@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:34:03.424 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2377.html
*** CT 2022-01-25 16:34:03.424 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5629.html



=== Ended at 2022-01-25 16:34:03
=== successfully completed test case
=== === Returned value: ok