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

=== Config value:

    [{watchdog,<0.74935.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.presence_SUITE.logs/run.2023-11-16_09.47.29/presence_suite.subscribe.109444.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.presence_SUITE.logs/run.2023-11-16_09.47.29/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@079a843f8d8b.2023-11-16_09.33.39"

=== Started at 2023-11-16 09:47:30


*** CT 2023-11-16 09:47:30.919 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4733.html

*** User 2023-11-16 09:47:30.929 ***🔗
alicE_subscribe_2753@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:47:30.930 ***🔗
alicE_subscribe_2753@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6aca4239e18ca221' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:47:30.930 ***🔗
alicE_subscribe_2753@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 2023-11-16 09:47:30.930 ***🔗
alicE_subscribe_2753@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNzUzAG1hdHlncnlzYQ==</auth>



*** User 2023-11-16 09:47:30.931 ***🔗
alicE_subscribe_2753@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:47:30.931 ***🔗
alicE_subscribe_2753@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:47:30.931 ***🔗
alicE_subscribe_2753@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e2f9dcb18c5c2333' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2753@localhost'>

*** User 2023-11-16 09:47:30.931 ***🔗
alicE_subscribe_2753@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 2023-11-16 09:47:30.931 ***🔗
alicE_subscribe_2753@localhost/res1 out
<iq type='set' id='db586bcb1055048042d013a824739443'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:47:30.932 ***🔗
alicE_subscribe_2753@localhost/res1 in
<iq id='db586bcb1055048042d013a824739443' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2753@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:47:30.932 ***🔗
alice_subscribe_2753@localhost/res1 out
<iq type='set' id='ee9f62e299f93876ee550a790452ef7a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:47:30.932 ***🔗
alice_subscribe_2753@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2753@localhost/res1' id='ee9f62e299f93876ee550a790452ef7a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:47:30.932 ***🔗
alice_subscribe_2753@localhost/res1 out
<presence/>



*** User 2023-11-16 09:47:30.933 ***🔗
alice_subscribe_2753@localhost/res1 in
<presence from='alice_subscribe_2753@localhost/res1' to='alice_subscribe_2753@localhost/res1'/>



*** User 2023-11-16 09:47:30.934 ***🔗
bOb_subscribe_2753@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:47:30.934 ***🔗
bOb_subscribe_2753@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef4c87f564f16981' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:47:30.934 ***🔗
bOb_subscribe_2753@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 2023-11-16 09:47:30.934 ***🔗
bOb_subscribe_2753@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjc1MwBtYWtyb2xpa2E=</auth>



*** User 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8eeefaeab4a82857' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2753@localhost'>

*** User 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@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 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@localhost/res1 out
<iq type='set' id='baa6b9a5ff4415fdc44402e6fa4c1b18'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:47:30.935 ***🔗
bOb_subscribe_2753@localhost/res1 in
<iq id='baa6b9a5ff4415fdc44402e6fa4c1b18' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2753@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:47:30.936 ***🔗
bob_subscribe_2753@localhost/res1 out
<iq type='set' id='4b47e55a3255adf39dfec510f59efed6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:47:30.936 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2753@localhost/res1' id='4b47e55a3255adf39dfec510f59efed6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:47:30.936 ***🔗
bob_subscribe_2753@localhost/res1 out
<presence/>



*** User 2023-11-16 09:47:30.937 ***🔗
bob_subscribe_2753@localhost/res1 in
<presence from='bob_subscribe_2753@localhost/res1' to='bob_subscribe_2753@localhost/res1'/>



*** User 2023-11-16 09:47:30.937 ***🔗
alice_subscribe_2753@localhost/res1 out
<iq type='set' id='b82ede1f1b6efd380197fb3c44a20ef9'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2753@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.941 ***🔗
alice_subscribe_2753@localhost/res1 in
<iq from='alice_subscribe_2753@localhost' to='alice_subscribe_2753@localhost/res1' id='push95b395193130e732' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2753@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.941 ***🔗
alice_subscribe_2753@localhost/res1 in
<iq from='alice_subscribe_2753@localhost' to='alice_subscribe_2753@localhost/res1' id='b82ede1f1b6efd380197fb3c44a20ef9' type='result'/>



*** User 2023-11-16 09:47:30.941 ***🔗
alice_subscribe_2753@localhost/res1 out
<iq to='alice_subscribe_2753@localhost' id='push95b395193130e732' type='result'/>



*** User 2023-11-16 09:47:30.941 ***🔗
alice_subscribe_2753@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2753@localhost'/>



*** User 2023-11-16 09:47:30.945 ***🔗
alice_subscribe_2753@localhost/res1 in
<iq from='alice_subscribe_2753@localhost' to='alice_subscribe_2753@localhost/res1' id='push54b541d66abdf6d6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2753@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.945 ***🔗
alice_subscribe_2753@localhost/res1 out
<iq to='alice_subscribe_2753@localhost' id='push54b541d66abdf6d6' type='result'/>



*** User 2023-11-16 09:47:30.945 ***🔗
bob_subscribe_2753@localhost/res1 in
<presence from='alice_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' type='subscribe'/>



*** User 2023-11-16 09:47:30.945 ***🔗
bob_subscribe_2753@localhost/res1 out
<iq type='get' id='2e3e60c7dfae71bc87a8ac1e79776bd4'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:47:30.947 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='bob_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' id='2e3e60c7dfae71bc87a8ac1e79776bd4' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:47:30.947 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2753@localhost">>},
                {<<"to">>,<<"bob_subscribe_2753@localhost/res1">>},
                {<<"id">>,<<"2e3e60c7dfae71bc87a8ac1e79776bd4">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-16 09:47:30.947 ***🔗
bob_subscribe_2753@localhost/res1 out
<iq type='set' id='3b71663324a7e8b34299665df2ef8dbb'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2753@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.951 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='bob_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' id='push18e16e58103a0913' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2753@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.951 ***🔗
bob_subscribe_2753@localhost/res1 out
<iq to='bob_subscribe_2753@localhost' id='push18e16e58103a0913' type='result'/>



*** User 2023-11-16 09:47:30.951 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='bob_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' id='3b71663324a7e8b34299665df2ef8dbb' type='result'/>



*** User 2023-11-16 09:47:30.951 ***🔗
bob_subscribe_2753@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2753@localhost'/>



*** User 2023-11-16 09:47:30.954 ***🔗
alice_subscribe_2753@localhost/res1 in
<iq from='alice_subscribe_2753@localhost' to='alice_subscribe_2753@localhost/res1' id='push09e797811f7f4233' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2753@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.954 ***🔗
alice_subscribe_2753@localhost/res1 in
<presence from='bob_subscribe_2753@localhost' to='alice_subscribe_2753@localhost/res1' type='subscribed'/>



*** User 2023-11-16 09:47:30.954 ***🔗
alice_subscribe_2753@localhost/res1 in
<presence from='bob_subscribe_2753@localhost/res1' to='alice_subscribe_2753@localhost/res1'/>



*** User 2023-11-16 09:47:30.954 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='bob_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' id='push6fe63bb142b066b8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2753@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.954 ***🔗
bob_subscribe_2753@localhost/res1 out
<iq type='get' id='12dfda564a5661aeccf2066f998d9d58'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:47:30.956 ***🔗
bob_subscribe_2753@localhost/res1 in
<iq from='bob_subscribe_2753@localhost' to='bob_subscribe_2753@localhost/res1' id='12dfda564a5661aeccf2066f998d9d58' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2753@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:47:30.956 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2753@localhost">>},
             {<<"to">>,<<"bob_subscribe_2753@localhost/res1">>},
             {<<"id">>,<<"12dfda564a5661aeccf2066f998d9d58">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2753@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-16 09:47:30.956 ***🔗
bob_subscribe_2753@localhost/res1 out
<presence/>



*** User 2023-11-16 09:47:30.957 ***🔗
alice_subscribe_2753@localhost/res1 in
<presence from='bob_subscribe_2753@localhost/res1' to='alice_subscribe_2753@localhost/res1'/>



*** User 2023-11-16 09:47:30.957 ***🔗
bob_subscribe_2753@localhost/res1 out
<presence type='unavailable'/>



*** User 2023-11-16 09:47:30.957 ***🔗
alice_subscribe_2753@localhost/res1 in
<presence from='bob_subscribe_2753@localhost/res1' to='alice_subscribe_2753@localhost/res1' type='unavailable'/>



*** User 2023-11-16 09:47:30.958 ***🔗
bob_subscribe_2753@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:47:30.958 ***🔗
bob_subscribe_2753@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:47:30.958 ***🔗
alice_subscribe_2753@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:47:30.958 ***🔗
alice_subscribe_2753@localhost/res1 in
</stream:stream>
*** CT 2023-11-16 09:47:30.964 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4733.html



=== Ended at 2023-11-16 09:47:31
=== successfully completed test case
=== === Returned value: ok