=== Test case: push_integration_SUITE:muclight_inbox_msg_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_muc_light,
              [{host,{fqdn,<<"muclight.localhost">>}},
               {backend,rdbms},
               {rooms_in_rosters,true}]},
          {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.8397.2>},
     {pubsub_host,virtual},
     {mim_data_dir,
         "/home/circleci/project/big_tests/tests/push_integration_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.push_integration_SUITE.logs/run.2022-03-04_11.27.10/push_integration_suite.muclight_inbox_msg_unread_count_apns.157698.html"},
     {tc_group_properties,
         [{name,groupchat_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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.push_integration_SUITE.logs/run.2022-03-04_11.27.10/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@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:27:23


*** CT 2022-03-04 11:27:23.158 *** View log from node mongooseim@localhost when started mongooseim@localhost_5720.html
*** CT 2022-03-04 11:27:23.158 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2335.html

*** User 2022-03-04 11:27:23.169 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.169 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='12f02548394f8b13' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:23.170 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.170 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX211Y2xpZ2h0X2luYm94X21zZ191bnJlYWRfY291bnRfYXBuc18xOTc0AG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:27:23.171 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:27:23.171 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.171 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85230f2112712717' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:23.171 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.171 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='f0a37562cc206e49157dede7c2a06547'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:27:23.172 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq id='f0a37562cc206e49157dede7c2a06547' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:27:23.172 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='2b8a11690062516f78649123307b4f0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:23.172 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq type='result' id='2b8a11690062516f78649123307b4f0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:23.173 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<presence/>



*** User 2022-03-04 11:27:23.173 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<presence from='alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:27:23.174 ***
kate_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.175 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1dcf7239740dd69e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:23.175 ***
kate_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.175 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbXVjbGlnaHRfaW5ib3hfbXNnX3VucmVhZF9jb3VudF9hcG5zXzE5NzQAbWFrcm93ZTtw</auth>



*** User 2022-03-04 11:27:23.176 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:27:23.176 ***
kate_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.176 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d91f7f7dedeb41f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:23.176 ***
kate_muclight_inbox_msg_unread_count_apns_1974@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-03-04 11:27:23.176 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='dfbb237ecf791095f746b4f21662ba87'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:27:23.177 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq id='dfbb237ecf791095f746b4f21662ba87' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:27:23.177 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='256881bf210304845a4407310d7a990f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:23.177 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq type='result' id='256881bf210304845a4407310d7a990f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:23.177 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<presence/>



*** User 2022-03-04 11:27:23.178 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<presence from='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:27:23.178 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='afeb53f944e27f0f0c094545724febec' to='room-9592397f80@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration/>
		<occupants/>
	</query>
</iq>



*** User 2022-03-04 11:27:23.184 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost' id='afeb53f944e27f0f0c094545724febec' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393243-179361</version>
		<user affiliation='owner'>alice_muclight_inbox_msg_unread_count_apns_1974@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:27:23.184 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq from='room-9592397f80@muclight.localhost' to='alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' id='afeb53f944e27f0f0c094545724febec' type='result'/>



*** User 2022-03-04 11:27:23.184 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='a44e5a42d87121da59217528d6e4db33' to='room-9592397f80@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'>
		<user affiliation='member'>kate_muclight_inbox_msg_unread_count_apns_1974@localhost</user>
	</query>
</iq>



*** User 2022-03-04 11:27:23.189 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' id='a44e5a42d87121da59217528d6e4db33' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393243-185719</version>
		<user affiliation='member'>kate_muclight_inbox_msg_unread_count_apns_1974@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:27:23.189 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost' id='a44e5a42d87121da59217528d6e4db33' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-393243-179361</prev-version>
		<version>1646-393243-185719</version>
		<user affiliation='member'>kate_muclight_inbox_msg_unread_count_apns_1974@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:27:23.189 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq from='room-9592397f80@muclight.localhost' to='alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' id='a44e5a42d87121da59217528d6e4db33' type='result'/>



*** User 2022-03-04 11:27:23.189 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='009d151af1b0ed657941d3a3ab5652c2'>
	<enable xmlns='urn:xmpp:push:0' jid='virtual.localhost' node='princely_musings_3cA5JVmwHv0='>
		<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>C54G94GGFFC38N5KIF48MCEEC9N7</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-03-04 11:27:23.190 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq from='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' id='009d151af1b0ed657941d3a3ab5652c2' type='result'/>



*** User 2022-03-04 11:27:23.191 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-03-04 11:27:23.292 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<message to='room-9592397f80@muclight.localhost' type='groupchat'>
	<body>First!</body>
</message>



*** User 2022-03-04 11:27:23.298 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost/alice_muclight_inbox_msg_unread_count_apns_1974@localhost' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost' id='1646-393243-293800' type='groupchat'>
	<body>First!</body>
</message>



*** User 2022-03-04 11:27:23.298 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<message to='room-9592397f80@muclight.localhost' type='groupchat'>
	<body>Second!</body>
</message>



*** User 2022-03-04 11:27:23.304 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost/alice_muclight_inbox_msg_unread_count_apns_1974@localhost' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost' id='1646-393243-299906' type='groupchat'>
	<body>Second!</body>
</message>



*** User 2022-03-04 11:27:23.304 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<presence/>



*** User 2022-03-04 11:27:23.305 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<presence from='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:27:23.305 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<message to='room-9592397f80@muclight.localhost' type='groupchat'>
	<body>Third!</body>
</message>



*** User 2022-03-04 11:27:23.310 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost/alice_muclight_inbox_msg_unread_count_apns_1974@localhost' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' id='1646-393243-306717' type='groupchat'>
	<body>Third!</body>
</message>



*** User 2022-03-04 11:27:23.310 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='room-9592397f80@muclight.localhost/alice_muclight_inbox_msg_unread_count_apns_1974@localhost' to='alice_muclight_inbox_msg_unread_count_apns_1974@localhost' id='1646-393243-306717' type='groupchat'>
	<body>Third!</body>
</message>



*** User 2022-03-04 11:27:23.310 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
<iq type='set' id='8849239dcc041022521c7ce5f74c0a81'>
	<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-03-04 11:27:23.311 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<message from='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' id='66ad584e-37cb-48f1-8c4c-318038ceab1b'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='3' queryid='8849239dcc041022521c7ce5f74c0a81'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T11:27:23.308455Z'/>
			<message to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' id='1646-393243-306717' type='groupchat' from='room-9592397f80@muclight.localhost/alice_muclight_inbox_msg_unread_count_apns_1974@localhost'>
				<body>Third!</body>
			</message>
		</forwarded>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-03-04 11:27:23.311 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
<iq from='kate_muclight_inbox_msg_unread_count_apns_1974@localhost' to='kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1' id='8849239dcc041022521c7ce5f74c0a81' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>3</unread-messages>
	</fin>
</iq>



*** User 2022-03-04 11:27:23.311 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:27:23.312 ***
kate_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
</stream:stream>

*** User 2022-03-04 11:27:23.312 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:27:23.312 ***
alicE_muclight_inbox_msg_unread_count_apns_1974@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:27:23.315 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2335.html
*** CT 2022-03-04 11:27:23.316 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5720.html



=== Ended at 2022-03-04 11:27:23
=== successfully completed test case
=== === Returned value: ok