=== 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}]}]}]},
          {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_fcm.142210.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


*** CT 2022-01-27 15:36:21.213 *** View log from node mongooseim@localhost when started mongooseim@localhost_5554.html
*** CT 2022-01-27 15:36:21.214 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

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

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



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

*** User 2022-01-27 15:36:21.223 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@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_fcm_2071@localhost/res1 out
<iq type='set' id='c59fe2242b203f35be742357e0d3754c'>
	<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_fcm_2071@localhost/res1 in
<iq id='c59fe2242b203f35be742357e0d3754c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



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

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



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

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



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



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



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



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



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



*** User 2022-01-27 15:36:21.230 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='bOb_inbox_msg_reset_unread_count_fcm_2071-pubsub.localhost-princely_musings_9Cu72FxWs9M=-create_node' from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create type='push' node='princely_musings_9Cu72FxWs9M='/>
		<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_fcm_2071@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' id='bOb_inbox_msg_reset_unread_count_fcm_2071-pubsub.localhost-princely_musings_9Cu72FxWs9M=-create_node' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create node='princely_musings_9Cu72FxWs9M='/>
	</pubsub>
</iq>



*** User 2022-01-27 15:36:21.234 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='4mwUgsY=' from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
		<affiliations node='princely_musings_9Cu72FxWs9M='>
			<affiliation jid='localhost' affiliation='publish-only'/>
		</affiliations>
	</pubsub>
</iq>



*** User 2022-01-27 15:36:21.235 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' id='4mwUgsY=' type='result'/>



*** User 2022-01-27 15:36:21.235 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<iq type='set' id='fc2d7e7a93ebb6898814174dc9106b99'>
	<enable xmlns='urn:xmpp:push:0' jid='pubsub.localhost' node='princely_musings_9Cu72FxWs9M='>
		<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>46K8254JK7AHB2F3D9249KLCAB6A</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-01-27 15:36:21.237 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' id='fc2d7e7a93ebb6898814174dc9106b99' type='result'/>



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



*** User 2022-01-27 15:36:21.645 ***
alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' type='chat' id='63012ad83d5ee9859a7508fc90ae2244'>
	<body>FIRST MESSAGE</body>
</message>



*** User 2022-01-27 15:36:21.655 ***
alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' type='chat' id='cf0788516ddff556f8d0d6f9c69858eb'>
	<body>SECOND MESSAGE</body>
</message>



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



*** User 2022-01-27 15:36:21.677 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' xml:lang='en' type='chat' id='63012ad83d5ee9859a7508fc90ae2244'>
	<body>FIRST MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.655601Z' from='localhost'>Offline Storage</delay>
</message>



*** User 2022-01-27 15:36:21.678 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<message from='alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' xml:lang='en' type='chat' id='cf0788516ddff556f8d0d6f9c69858eb'>
	<body>SECOND MESSAGE</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.660971Z' from='localhost'>Offline Storage</delay>
</message>



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



*** User 2022-01-27 15:36:21.678 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<iq type='set' id='f9c36c23c72d5af5f39828405a7150a5'>
	<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.683 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' id='42afb345-2ac6-4691-9757-33924a62a969'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='f9c36c23c72d5af5f39828405a7150a5'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T15:36:21.655661Z'/>
			<message from='alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' xml:lang='en' to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' type='chat' id='cf0788516ddff556f8d0d6f9c69858eb'>
				<body>SECOND MESSAGE</body>
			</message>
		</forwarded>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-01-27 15:36:21.684 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<iq from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost' to='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' id='f9c36c23c72d5af5f39828405a7150a5' 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.684 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<message to='alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='cf0788516ddff556f8d0d6f9c69858eb'/>
</message>



*** User 2022-01-27 15:36:22.008 ***
alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
<message from='bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' to='alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1' xml:lang='en'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='cf0788516ddff556f8d0d6f9c69858eb'/>
</message>



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



*** User 2022-01-27 15:36:22.210 ***
alicE_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 out
<message to='bob_inbox_msg_reset_unread_count_fcm_2071@localhost' type='chat' id='c82e975a60988f06169346f528bc8d2e'>
	<body>THIRD MESSAGE</body>
</message>



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

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

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

*** User 2022-01-27 15:36:22.219 ***
bOb_inbox_msg_reset_unread_count_fcm_2071@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:36:22.223 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:36:22.224 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5572.html



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