=== Test case: push_integration_SUITE: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_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.5905.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.push_integration_SUITE.logs/run.2022-02-03_16.39.51/push_integration_suite.inbox_msg_unread_count_apns.163330.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.push_integration_SUITE.logs/run.2022-02-03_16.39.51/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@c0783a4ae5cf.2022-02-03_16.28.29"

=== Started at 2022-02-03 16:39:53


*** CT 2022-02-03 16:39:53.082 *** View log from node mongooseim@localhost when started mongooseim@localhost_5589.html
*** CT 2022-02-03 16:39:53.083 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2375.html

*** User 2022-02-03 16:39:53.158 ***
bOb_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.158 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3dab9370821218ae' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.158 ***
bOb_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.158 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbmJveF9tc2dfdW5yZWFkX2NvdW50X2FwbnNfMjEzMgBtYWtyb2xpa2E=</auth>



*** User 2022-02-03 16:39:53.159 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:39:53.159 ***
bOb_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.160 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='db1d647c6bced116' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.160 ***
bOb_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.160 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='822d5fad4b3df5d8a0c596d9071c9058'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.160 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq id='822d5fad4b3df5d8a0c596d9071c9058' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_inbox_msg_unread_count_apns_2132@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.161 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='959508b6d91fe474c9348c77aa6479b3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.161 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq type='result' id='959508b6d91fe474c9348c77aa6479b3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.161 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.163 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<presence from='bOb_inbox_msg_unread_count_apns_2132@localhost/res1' to='bob_inbox_msg_unread_count_apns_2132@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.163 ***
alicE_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.163 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3b57b3e0e00740b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.164 ***
alicE_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.164 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2luYm94X21zZ191bnJlYWRfY291bnRfYXBuc18yMTMyAG1hdHlncnlzYQ==</auth>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6419a3be0466cf7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='ecb6a0e87a96823498a35c9db80dcf3a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq id='ecb6a0e87a96823498a35c9db80dcf3a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_inbox_msg_unread_count_apns_2132@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='718cccac6007a115aa292ae465c7c27d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.165 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq type='result' id='718cccac6007a115aa292ae465c7c27d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.166 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.172 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
<presence from='alicE_inbox_msg_unread_count_apns_2132@localhost/res1' to='alice_inbox_msg_unread_count_apns_2132@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.173 ***
kate_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.173 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f0c5753775e395cd' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.173 ***
kate_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.173 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW5ib3hfbXNnX3VucmVhZF9jb3VudF9hcG5zXzIxMzIAbWFrcm93ZTtw</auth>



*** User 2022-02-03 16:39:53.174 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:39:53.174 ***
kate_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.174 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d882b001771c875' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:39:53.174 ***
kate_inbox_msg_unread_count_apns_2132@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-02-03 16:39:53.174 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='fb1bf77b69ed273cd7aa4147fadb37a1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.175 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq id='fb1bf77b69ed273cd7aa4147fadb37a1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_inbox_msg_unread_count_apns_2132@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:39:53.175 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='1dff752c6bd177d10a3b95f423d2b754'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.175 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq type='result' id='1dff752c6bd177d10a3b95f423d2b754'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:39:53.175 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<presence/>



*** User 2022-02-03 16:39:53.176 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
<presence from='kate_inbox_msg_unread_count_apns_2132@localhost/res1' to='kate_inbox_msg_unread_count_apns_2132@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:39:53.176 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='bOb_inbox_msg_unread_count_apns_2132-pubsub.localhost-princely_musings_hXqpJ5ejWzM=-create_node' from='bOb_inbox_msg_unread_count_apns_2132@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create type='push' node='princely_musings_hXqpJ5ejWzM='/>
		<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-02-03 16:39:53.199 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_unread_count_apns_2132@localhost/res1' id='bOb_inbox_msg_unread_count_apns_2132-pubsub.localhost-princely_musings_hXqpJ5ejWzM=-create_node' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create node='princely_musings_hXqpJ5ejWzM='/>
	</pubsub>
</iq>



*** User 2022-02-03 16:39:53.199 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='uKUCH/o=' from='bOb_inbox_msg_unread_count_apns_2132@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
		<affiliations node='princely_musings_hXqpJ5ejWzM='>
			<affiliation jid='localhost' affiliation='publish-only'/>
		</affiliations>
	</pubsub>
</iq>



*** User 2022-02-03 16:39:53.209 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq from='pubsub.localhost' to='bOb_inbox_msg_unread_count_apns_2132@localhost/res1' id='uKUCH/o=' type='result'/>



*** User 2022-02-03 16:39:53.209 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<iq type='set' id='8d0f4fb1e2d7df1c933c0c4492ac1016'>
	<enable xmlns='urn:xmpp:push:0' jid='pubsub.localhost' node='princely_musings_hXqpJ5ejWzM='>
		<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>65JF7AL07HG2EHMCBH545M8N5DHG</value>
			</field>
			<field var='silent'>
				<value>true</value>
			</field>
		</x>
	</enable>
</iq>



*** User 2022-02-03 16:39:53.263 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
<iq from='bOb_inbox_msg_unread_count_apns_2132@localhost' to='bOb_inbox_msg_unread_count_apns_2132@localhost/res1' id='8d0f4fb1e2d7df1c933c0c4492ac1016' type='result'/>



*** User 2022-02-03 16:39:53.264 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-02-03 16:39:53.668 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<message to='bob_inbox_msg_unread_count_apns_2132@localhost' type='chat' id='074e34deee512b84be37508b46686cca'>
	<body>Private message</body>
</message>



*** User 2022-02-03 16:39:53.674 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<message to='bob_inbox_msg_unread_count_apns_2132@localhost' type='chat' id='f55d07c9dd61fe541dbedc94375c3864'>
	<body>Private message</body>
</message>



*** User 2022-02-03 16:39:53.680 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<message to='bob_inbox_msg_unread_count_apns_2132@localhost' type='chat' id='e58bd432dc8c7ca9d1679ddd63e7f7f7'>
	<body>Private message</body>
</message>



*** User 2022-02-03 16:39:53.685 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
<message to='bob_inbox_msg_unread_count_apns_2132@localhost' type='chat' id='50418b5fcce645d9fcd23992c17d104a'>
	<body>Private message</body>
</message>



*** User 2022-02-03 16:39:53.690 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
<message to='bob_inbox_msg_unread_count_apns_2132@localhost' type='chat' id='bc863fa9b58ee326709d7004045d4403'>
	<body>Private message</body>
</message>



*** User 2022-02-03 16:39:53.695 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:39:53.695 ***
kate_inbox_msg_unread_count_apns_2132@localhost/res1 in
</stream:stream>

*** User 2022-02-03 16:39:53.695 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:39:53.695 ***
alicE_inbox_msg_unread_count_apns_2132@localhost/res1 in
</stream:stream>

*** User 2022-02-03 16:39:53.695 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:39:53.695 ***
bOb_inbox_msg_unread_count_apns_2132@localhost/res1 in
</stream:stream>
*** CT 2022-02-03 16:39:53.698 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2375.html
*** CT 2022-02-03 16:39:53.699 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5606.html



=== Ended at 2022-02-03 16:39:53
=== successfully completed test case
=== === Returned value: ok