=== Test case: presence_SUITE:subscribe/1 (click for source code)

=== Config value:

    [{watchdog,<0.3376.2>},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.21.35/presence_suite.subscribe.205442.html"},
     {tc_group_properties,[{name,subscribe_group},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/presence_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.21.35/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a557e8d70b1c.2023-11-17_15.09.37"

=== Started at 2023-11-17 15:21:37


*** CT 2023-11-17 15:21:37.235 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2620.html

*** User 2023-11-17 15:21:37.258 ***🔗
alicE_subscribe_2659@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:21:37.259 ***🔗
alicE_subscribe_2659@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90350253047fc7f5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:21:37.259 ***🔗
alicE_subscribe_2659@domain.example.com/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 2023-11-17 15:21:37.259 ***🔗
alicE_subscribe_2659@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjU5AG1hdHlncnlzYQ==</auth>



*** User 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c8d9f3e81a9e31b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2659@domain.example.com'>

*** User 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/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 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='a28a6f5de0386c0adbadf7a8bb4388fd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:21:37.260 ***🔗
alicE_subscribe_2659@domain.example.com/res1 in
<iq id='a28a6f5de0386c0adbadf7a8bb4388fd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2659@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:21:37.261 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='4a68bcb76434131986bbac57bf72f992'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:21:37.261 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' id='4a68bcb76434131986bbac57bf72f992' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:21:37.261 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<presence/>



*** User 2023-11-17 15:21:37.262 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<presence from='alice_subscribe_2659@domain.example.com/res1' to='alice_subscribe_2659@domain.example.com/res1'/>



*** User 2023-11-17 15:21:37.262 ***🔗
bOb_subscribe_2659@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:21:37.263 ***🔗
bOb_subscribe_2659@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fea388fb82483917' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:21:37.263 ***🔗
bOb_subscribe_2659@domain.example.com/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 2023-11-17 15:21:37.263 ***🔗
bOb_subscribe_2659@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjY1OQBtYWtyb2xpa2E=</auth>



*** User 2023-11-17 15:21:37.263 ***🔗
bOb_subscribe_2659@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:21:37.264 ***🔗
bOb_subscribe_2659@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:21:37.264 ***🔗
bOb_subscribe_2659@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='acba8e213bff1db6' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2659@domain.example.com'>

*** User 2023-11-17 15:21:37.264 ***🔗
bOb_subscribe_2659@domain.example.com/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 2023-11-17 15:21:37.264 ***🔗
bOb_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='3c798aa0ad1e40dbb7a46bfd552b5ee6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:21:37.264 ***🔗
bOb_subscribe_2659@domain.example.com/res1 in
<iq id='3c798aa0ad1e40dbb7a46bfd552b5ee6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2659@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:21:37.264 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='92bc0efd2536caeb1120b05553e64662'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:21:37.265 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='92bc0efd2536caeb1120b05553e64662' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:21:37.265 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<presence/>



*** User 2023-11-17 15:21:37.266 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<presence from='bob_subscribe_2659@domain.example.com/res1' to='bob_subscribe_2659@domain.example.com/res1'/>



*** User 2023-11-17 15:21:37.266 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='136251ff6dc6711e5fa687dc66141bd9'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2659@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.268 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<iq from='alice_subscribe_2659@domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' id='pushddfb2164cfe2e449' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2659@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.269 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<iq from='alice_subscribe_2659@domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' id='136251ff6dc6711e5fa687dc66141bd9' type='result'/>



*** User 2023-11-17 15:21:37.269 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<iq to='alice_subscribe_2659@domain.example.com' id='pushddfb2164cfe2e449' type='result'/>



*** User 2023-11-17 15:21:37.269 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2659@domain.example.com'/>



*** User 2023-11-17 15:21:37.275 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<iq from='alice_subscribe_2659@domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' id='pushedd1ef3134021776' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2659@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.275 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
<iq to='alice_subscribe_2659@domain.example.com' id='pushedd1ef3134021776' type='result'/>



*** User 2023-11-17 15:21:37.275 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<presence from='alice_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-17 15:21:37.275 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<iq type='get' id='3e7391dc3636319ee8a4cfe2694926a2'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:21:37.293 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='bob_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='3e7391dc3636319ee8a4cfe2694926a2' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:21:37.294 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2659@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2659@domain.example.com/res1">>},
                {<<"id">>,<<"3e7391dc3636319ee8a4cfe2694926a2">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-17 15:21:37.294 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<iq type='set' id='6c0ae29e6bdf055da7312208261cf1b2'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2659@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.307 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='bob_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='push255b9f6fe2a3fff3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2659@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.307 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<iq to='bob_subscribe_2659@domain.example.com' id='push255b9f6fe2a3fff3' type='result'/>



*** User 2023-11-17 15:21:37.308 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='bob_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='6c0ae29e6bdf055da7312208261cf1b2' type='result'/>



*** User 2023-11-17 15:21:37.308 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2659@domain.example.com'/>



*** User 2023-11-17 15:21:37.319 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<iq from='alice_subscribe_2659@domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' id='push1f4b3404dd14acc0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2659@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.319 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<presence from='bob_subscribe_2659@domain.example.com' to='alice_subscribe_2659@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-17 15:21:37.319 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<presence from='bob_subscribe_2659@domain.example.com/res1' to='alice_subscribe_2659@domain.example.com/res1'/>



*** User 2023-11-17 15:21:37.320 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='bob_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='push9f279ccb08cb4075' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2659@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.320 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<iq type='get' id='58c805e33b9f8bd63b76d97216de5f10'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:21:37.321 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
<iq from='bob_subscribe_2659@domain.example.com' to='bob_subscribe_2659@domain.example.com/res1' id='58c805e33b9f8bd63b76d97216de5f10' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2659@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:21:37.321 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2659@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2659@domain.example.com/res1">>},
             {<<"id">>,<<"58c805e33b9f8bd63b76d97216de5f10">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2659@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-17 15:21:37.321 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<presence/>



*** User 2023-11-17 15:21:37.322 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<presence from='bob_subscribe_2659@domain.example.com/res1' to='alice_subscribe_2659@domain.example.com/res1'/>



*** User 2023-11-17 15:21:37.322 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2023-11-17 15:21:37.323 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
<presence from='bob_subscribe_2659@domain.example.com/res1' to='alice_subscribe_2659@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-17 15:21:37.323 ***🔗
bob_subscribe_2659@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-17 15:21:37.323 ***🔗
bob_subscribe_2659@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-17 15:21:37.323 ***🔗
alice_subscribe_2659@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-17 15:21:37.324 ***🔗
alice_subscribe_2659@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-17 15:21:37.336 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2620.html



=== Ended at 2023-11-17 15:21:37
=== successfully completed test case
=== === Returned value: ok