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

=== Config value:

    [{watchdog,<0.46791.0>},
     {preset,"internal_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@05435e935dcc.2024-04-23_11.32.33/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.46.06/presence_suite.subscribe.37380.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@05435e935dcc.2024-04-23_11.32.33/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.46.06/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@05435e935dcc.2024-04-23_11.32.33"

=== Started at 2024-04-23 11:46:07


*** CT 2024-04-23 11:46:07.771 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4300.html

*** User 2024-04-23 11:46:07.830 ***🔗
alicE_subscribe_1557@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-23 11:46:07.830 ***🔗
alicE_subscribe_1557@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5cb3d899b4677a8' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:46:07.831 ***🔗
alicE_subscribe_1557@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-23 11:46:07.831 ***🔗
alicE_subscribe_1557@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNTU3AG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:46:07.831 ***🔗
alicE_subscribe_1557@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:46:07.831 ***🔗
alicE_subscribe_1557@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-23 11:46:07.832 ***🔗
alicE_subscribe_1557@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='743359f93195eb46' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1557@localhost'>

*** User 2024-04-23 11:46:07.832 ***🔗
alicE_subscribe_1557@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-23 11:46:07.832 ***🔗
alicE_subscribe_1557@localhost/res1 out
<iq type='set' id='99c5ffd6e9ff7abc5c6ce39e2c58ecfe'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:46:07.832 ***🔗
alicE_subscribe_1557@localhost/res1 in
<iq id='99c5ffd6e9ff7abc5c6ce39e2c58ecfe' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_1557@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:46:07.832 ***🔗
alice_subscribe_1557@localhost/res1 out
<iq type='set' id='8846360b472b337ff3ead54df8f519d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:07.833 ***🔗
alice_subscribe_1557@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1557@localhost/res1' id='8846360b472b337ff3ead54df8f519d3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:07.833 ***🔗
alice_subscribe_1557@localhost/res1 out
<presence/>



*** User 2024-04-23 11:46:07.836 ***🔗
alice_subscribe_1557@localhost/res1 in
<presence from='alice_subscribe_1557@localhost/res1' to='alice_subscribe_1557@localhost/res1'/>



*** User 2024-04-23 11:46:07.837 ***🔗
bOb_subscribe_1557@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-23 11:46:07.837 ***🔗
bOb_subscribe_1557@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c0f9650d13a741f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:46:07.837 ***🔗
bOb_subscribe_1557@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-23 11:46:07.837 ***🔗
bOb_subscribe_1557@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTU1NwBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:46:07.838 ***🔗
bOb_subscribe_1557@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:46:07.838 ***🔗
bOb_subscribe_1557@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-23 11:46:07.839 ***🔗
bOb_subscribe_1557@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7012c7d7224edd80' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1557@localhost'>

*** User 2024-04-23 11:46:07.839 ***🔗
bOb_subscribe_1557@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-23 11:46:07.839 ***🔗
bOb_subscribe_1557@localhost/res1 out
<iq type='set' id='ab5eee640767f0a2bae630175acb9b57'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:46:07.839 ***🔗
bOb_subscribe_1557@localhost/res1 in
<iq id='ab5eee640767f0a2bae630175acb9b57' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_1557@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:46:07.839 ***🔗
bob_subscribe_1557@localhost/res1 out
<iq type='set' id='e259e301785e39c9aa73446e0328e071'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:07.840 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1557@localhost/res1' id='e259e301785e39c9aa73446e0328e071' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:07.840 ***🔗
bob_subscribe_1557@localhost/res1 out
<presence/>



*** User 2024-04-23 11:46:07.840 ***🔗
bob_subscribe_1557@localhost/res1 in
<presence from='bob_subscribe_1557@localhost/res1' to='bob_subscribe_1557@localhost/res1'/>



*** User 2024-04-23 11:46:07.840 ***🔗
alice_subscribe_1557@localhost/res1 out
<iq type='set' id='3d52c592347adf4f5749a9193e0988b4'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_1557@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.841 ***🔗
alice_subscribe_1557@localhost/res1 in
<iq from='alice_subscribe_1557@localhost' to='alice_subscribe_1557@localhost/res1' id='pushf16f2f7461c76559' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1557@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.841 ***🔗
alice_subscribe_1557@localhost/res1 in
<iq from='alice_subscribe_1557@localhost' to='alice_subscribe_1557@localhost/res1' id='3d52c592347adf4f5749a9193e0988b4' type='result'/>



*** User 2024-04-23 11:46:07.841 ***🔗
alice_subscribe_1557@localhost/res1 out
<iq to='alice_subscribe_1557@localhost' id='pushf16f2f7461c76559' type='result'/>



*** User 2024-04-23 11:46:07.841 ***🔗
alice_subscribe_1557@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1557@localhost'/>



*** User 2024-04-23 11:46:07.843 ***🔗
alice_subscribe_1557@localhost/res1 in
<iq from='alice_subscribe_1557@localhost' to='alice_subscribe_1557@localhost/res1' id='push43c5cc9c42dcaafa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_1557@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.843 ***🔗
alice_subscribe_1557@localhost/res1 out
<iq to='alice_subscribe_1557@localhost' id='push43c5cc9c42dcaafa' type='result'/>



*** User 2024-04-23 11:46:07.843 ***🔗
bob_subscribe_1557@localhost/res1 in
<presence from='alice_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:46:07.843 ***🔗
bob_subscribe_1557@localhost/res1 out
<iq type='get' id='98951ec4260b6a93149282817efe5ff4'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:46:07.843 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='bob_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' id='98951ec4260b6a93149282817efe5ff4' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:46:07.844 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_1557@localhost">>},
                {<<"to">>,<<"bob_subscribe_1557@localhost/res1">>},
                {<<"id">>,<<"98951ec4260b6a93149282817efe5ff4">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-23 11:46:07.844 ***🔗
bob_subscribe_1557@localhost/res1 out
<iq type='set' id='b57d0d84af441624d0888a3161d015ca'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_1557@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.844 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='bob_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' id='push900957ab9ca875ac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1557@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.845 ***🔗
bob_subscribe_1557@localhost/res1 out
<iq to='bob_subscribe_1557@localhost' id='push900957ab9ca875ac' type='result'/>



*** User 2024-04-23 11:46:07.845 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='bob_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' id='b57d0d84af441624d0888a3161d015ca' type='result'/>



*** User 2024-04-23 11:46:07.845 ***🔗
bob_subscribe_1557@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1557@localhost'/>



*** User 2024-04-23 11:46:07.846 ***🔗
alice_subscribe_1557@localhost/res1 in
<iq from='alice_subscribe_1557@localhost' to='alice_subscribe_1557@localhost/res1' id='pushfa2469ae55ab9f12' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1557@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.846 ***🔗
alice_subscribe_1557@localhost/res1 in
<presence from='bob_subscribe_1557@localhost' to='alice_subscribe_1557@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:46:07.846 ***🔗
alice_subscribe_1557@localhost/res1 in
<presence from='bob_subscribe_1557@localhost/res1' to='alice_subscribe_1557@localhost/res1'/>



*** User 2024-04-23 11:46:07.846 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='bob_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' id='push2f0edcc3e52b2e3b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1557@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.846 ***🔗
bob_subscribe_1557@localhost/res1 out
<iq type='get' id='9839d6dfc0345d53f372eb036ca2673c'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:46:07.846 ***🔗
bob_subscribe_1557@localhost/res1 in
<iq from='bob_subscribe_1557@localhost' to='bob_subscribe_1557@localhost/res1' id='9839d6dfc0345d53f372eb036ca2673c' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1557@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:46:07.847 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_1557@localhost">>},
             {<<"to">>,<<"bob_subscribe_1557@localhost/res1">>},
             {<<"id">>,<<"9839d6dfc0345d53f372eb036ca2673c">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1557@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-23 11:46:07.847 ***🔗
bob_subscribe_1557@localhost/res1 out
<presence/>



*** User 2024-04-23 11:46:07.847 ***🔗
alice_subscribe_1557@localhost/res1 in
<presence from='bob_subscribe_1557@localhost/res1' to='alice_subscribe_1557@localhost/res1'/>



*** User 2024-04-23 11:46:07.847 ***🔗
bob_subscribe_1557@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-23 11:46:07.848 ***🔗
alice_subscribe_1557@localhost/res1 in
<presence from='bob_subscribe_1557@localhost/res1' to='alice_subscribe_1557@localhost/res1' type='unavailable'/>



*** User 2024-04-23 11:46:07.848 ***🔗
bob_subscribe_1557@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:46:07.848 ***🔗
bob_subscribe_1557@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:46:07.849 ***🔗
alice_subscribe_1557@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:46:07.849 ***🔗
alice_subscribe_1557@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:46:07.859 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4300.html



=== Ended at 2024-04-23 11:46:07
=== successfully completed test case
=== === Returned value: ok