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

=== Config value:

    [{watchdog,<0.79800.0>},
     {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@6bd26896afa6.2024-04-22_14.32.22/big_tests.tests.presence_SUITE.logs/run.2024-04-22_14.48.25/presence_suite.subscribe.153347.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@6bd26896afa6.2024-04-22_14.32.22/big_tests.tests.presence_SUITE.logs/run.2024-04-22_14.48.25/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@6bd26896afa6.2024-04-22_14.32.22"

=== Started at 2024-04-22 14:48:27


*** CT 2024-04-22 14:48:27.015 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5509.html

*** User 2024-04-22 14:48:27.028 ***🔗
alicE_subscribe_3101@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-22 14:48:27.029 ***🔗
alicE_subscribe_3101@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad0bdad68f1b4c9e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 14:48:27.029 ***🔗
alicE_subscribe_3101@localhost/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 2024-04-22 14:48:27.029 ***🔗
alicE_subscribe_3101@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8zMTAxAG1hdHlncnlzYQ==</auth>



*** User 2024-04-22 14:48:27.030 ***🔗
alicE_subscribe_3101@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 14:48:27.030 ***🔗
alicE_subscribe_3101@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-22 14:48:27.030 ***🔗
alicE_subscribe_3101@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b72d58fc5e4f4d5' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_3101@localhost'>

*** User 2024-04-22 14:48:27.030 ***🔗
alicE_subscribe_3101@localhost/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 2024-04-22 14:48:27.030 ***🔗
alicE_subscribe_3101@localhost/res1 out
<iq type='set' id='f5a2becdb9705ef52ea68e89c45f3062'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 14:48:27.031 ***🔗
alicE_subscribe_3101@localhost/res1 in
<iq id='f5a2becdb9705ef52ea68e89c45f3062' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_3101@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 14:48:27.031 ***🔗
alice_subscribe_3101@localhost/res1 out
<iq type='set' id='e95fc6930ba97158ce524a452d2e892c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:48:27.031 ***🔗
alice_subscribe_3101@localhost/res1 in
<iq from='localhost' to='alice_subscribe_3101@localhost/res1' id='e95fc6930ba97158ce524a452d2e892c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:48:27.032 ***🔗
alice_subscribe_3101@localhost/res1 out
<presence/>



*** User 2024-04-22 14:48:27.033 ***🔗
alice_subscribe_3101@localhost/res1 in
<presence from='alice_subscribe_3101@localhost/res1' to='alice_subscribe_3101@localhost/res1'/>



*** User 2024-04-22 14:48:27.033 ***🔗
bOb_subscribe_3101@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-22 14:48:27.034 ***🔗
bOb_subscribe_3101@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='24727f9ab8214215' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 14:48:27.034 ***🔗
bOb_subscribe_3101@localhost/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 2024-04-22 14:48:27.034 ***🔗
bOb_subscribe_3101@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMzEwMQBtYWtyb2xpa2E=</auth>



*** User 2024-04-22 14:48:27.053 ***🔗
bOb_subscribe_3101@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 14:48:27.053 ***🔗
bOb_subscribe_3101@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-22 14:48:27.053 ***🔗
bOb_subscribe_3101@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6eb4f3d203ba34c3' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_3101@localhost'>

*** User 2024-04-22 14:48:27.053 ***🔗
bOb_subscribe_3101@localhost/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 2024-04-22 14:48:27.053 ***🔗
bOb_subscribe_3101@localhost/res1 out
<iq type='set' id='93661ef4a6a3ba910f18366931a0439a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 14:48:27.054 ***🔗
bOb_subscribe_3101@localhost/res1 in
<iq id='93661ef4a6a3ba910f18366931a0439a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_3101@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 14:48:27.054 ***🔗
bob_subscribe_3101@localhost/res1 out
<iq type='set' id='0496925d39bf80ce0382215fd13e75d2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:48:27.054 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='localhost' to='bob_subscribe_3101@localhost/res1' id='0496925d39bf80ce0382215fd13e75d2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:48:27.055 ***🔗
bob_subscribe_3101@localhost/res1 out
<presence/>



*** User 2024-04-22 14:48:27.055 ***🔗
bob_subscribe_3101@localhost/res1 in
<presence from='bob_subscribe_3101@localhost/res1' to='bob_subscribe_3101@localhost/res1'/>



*** User 2024-04-22 14:48:27.056 ***🔗
alice_subscribe_3101@localhost/res1 out
<iq type='set' id='7dcb1ff9debfd2a7b4b09a79fc7f0d30'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_3101@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.061 ***🔗
alice_subscribe_3101@localhost/res1 in
<iq from='alice_subscribe_3101@localhost' to='alice_subscribe_3101@localhost/res1' id='push9fb012b5abbc58fb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3101@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.061 ***🔗
alice_subscribe_3101@localhost/res1 in
<iq from='alice_subscribe_3101@localhost' to='alice_subscribe_3101@localhost/res1' id='7dcb1ff9debfd2a7b4b09a79fc7f0d30' type='result'/>



*** User 2024-04-22 14:48:27.061 ***🔗
alice_subscribe_3101@localhost/res1 out
<iq to='alice_subscribe_3101@localhost' id='push9fb012b5abbc58fb' type='result'/>



*** User 2024-04-22 14:48:27.061 ***🔗
alice_subscribe_3101@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_3101@localhost'/>



*** User 2024-04-22 14:48:27.066 ***🔗
alice_subscribe_3101@localhost/res1 in
<iq from='alice_subscribe_3101@localhost' to='alice_subscribe_3101@localhost/res1' id='push29496ea1c9fc9e2c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_3101@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.066 ***🔗
alice_subscribe_3101@localhost/res1 out
<iq to='alice_subscribe_3101@localhost' id='push29496ea1c9fc9e2c' type='result'/>



*** User 2024-04-22 14:48:27.066 ***🔗
bob_subscribe_3101@localhost/res1 in
<presence from='alice_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' type='subscribe'/>



*** User 2024-04-22 14:48:27.066 ***🔗
bob_subscribe_3101@localhost/res1 out
<iq type='get' id='fe17c34279be3fca2073f8b7bbfab3b5'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:48:27.070 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='bob_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' id='fe17c34279be3fca2073f8b7bbfab3b5' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:48:27.071 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_3101@localhost">>},
                {<<"to">>,<<"bob_subscribe_3101@localhost/res1">>},
                {<<"id">>,<<"fe17c34279be3fca2073f8b7bbfab3b5">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-22 14:48:27.071 ***🔗
bob_subscribe_3101@localhost/res1 out
<iq type='set' id='f1b97795d75b54d69366ac77f42a1d83'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_3101@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.074 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='bob_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' id='push1afc429fb108e979' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3101@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.074 ***🔗
bob_subscribe_3101@localhost/res1 out
<iq to='bob_subscribe_3101@localhost' id='push1afc429fb108e979' type='result'/>



*** User 2024-04-22 14:48:27.075 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='bob_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' id='f1b97795d75b54d69366ac77f42a1d83' type='result'/>



*** User 2024-04-22 14:48:27.075 ***🔗
bob_subscribe_3101@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_3101@localhost'/>



*** User 2024-04-22 14:48:27.080 ***🔗
alice_subscribe_3101@localhost/res1 in
<iq from='alice_subscribe_3101@localhost' to='alice_subscribe_3101@localhost/res1' id='push340af419ddb2c865' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3101@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.080 ***🔗
alice_subscribe_3101@localhost/res1 in
<presence from='bob_subscribe_3101@localhost' to='alice_subscribe_3101@localhost/res1' type='subscribed'/>



*** User 2024-04-22 14:48:27.080 ***🔗
alice_subscribe_3101@localhost/res1 in
<presence from='bob_subscribe_3101@localhost/res1' to='alice_subscribe_3101@localhost/res1'/>



*** User 2024-04-22 14:48:27.080 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='bob_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' id='push3e4645a9c28e13f6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3101@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.081 ***🔗
bob_subscribe_3101@localhost/res1 out
<iq type='get' id='7f979e0bfc2358a9de5e10b512be0f78'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:48:27.082 ***🔗
bob_subscribe_3101@localhost/res1 in
<iq from='bob_subscribe_3101@localhost' to='bob_subscribe_3101@localhost/res1' id='7f979e0bfc2358a9de5e10b512be0f78' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3101@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:48:27.082 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_3101@localhost">>},
             {<<"to">>,<<"bob_subscribe_3101@localhost/res1">>},
             {<<"id">>,<<"7f979e0bfc2358a9de5e10b512be0f78">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_3101@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-22 14:48:27.082 ***🔗
bob_subscribe_3101@localhost/res1 out
<presence/>



*** User 2024-04-22 14:48:27.083 ***🔗
alice_subscribe_3101@localhost/res1 in
<presence from='bob_subscribe_3101@localhost/res1' to='alice_subscribe_3101@localhost/res1'/>



*** User 2024-04-22 14:48:27.083 ***🔗
bob_subscribe_3101@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-22 14:48:27.084 ***🔗
alice_subscribe_3101@localhost/res1 in
<presence from='bob_subscribe_3101@localhost/res1' to='alice_subscribe_3101@localhost/res1' type='unavailable'/>



*** User 2024-04-22 14:48:27.084 ***🔗
bob_subscribe_3101@localhost/res1 out
</stream:stream>

*** User 2024-04-22 14:48:27.084 ***🔗
bob_subscribe_3101@localhost/res1 in
</stream:stream>

*** User 2024-04-22 14:48:27.085 ***🔗
alice_subscribe_3101@localhost/res1 out
</stream:stream>

*** User 2024-04-22 14:48:27.085 ***🔗
alice_subscribe_3101@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 14:48:27.094 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5509.html



=== Ended at 2024-04-22 14:48:27
=== successfully completed test case
=== === Returned value: ok