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

=== Config value:

    [{watchdog,<0.2838.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.presence_SUITE.logs/run.2023-11-13_19.32.28/presence_suite.subscribe.209666.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.presence_SUITE.logs/run.2023-11-13_19.32.28/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@1d8001dd39bd.2023-11-13_19.21.09"

=== Started at 2023-11-13 19:32:30


*** CT 2023-11-13 19:32:30.100 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2514.html

*** User 2023-11-13 19:32:30.113 ***🔗
alicE_subscribe_2606@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-13 19:32:30.113 ***🔗
alicE_subscribe_2606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0249db5e49080d5f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-13 19:32:30.113 ***🔗
alicE_subscribe_2606@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-13 19:32:30.113 ***🔗
alicE_subscribe_2606@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjA2AG1hdHlncnlzYQ==</auth>



*** User 2023-11-13 19:32:30.114 ***🔗
alicE_subscribe_2606@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 19:32:30.114 ***🔗
alicE_subscribe_2606@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-13 19:32:30.114 ***🔗
alicE_subscribe_2606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c5da0cd7e7c8de2' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2606@domain.example.com'>

*** User 2023-11-13 19:32:30.114 ***🔗
alicE_subscribe_2606@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-13 19:32:30.114 ***🔗
alicE_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='ce08c0d342b1033a64d41280f220c7c1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 19:32:30.114 ***🔗
alicE_subscribe_2606@domain.example.com/res1 in
<iq id='ce08c0d342b1033a64d41280f220c7c1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2606@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 19:32:30.115 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='6a672dfc9f9efce9a74d7a0d782ebe65'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:32:30.115 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' id='6a672dfc9f9efce9a74d7a0d782ebe65' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:32:30.115 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<presence/>



*** User 2023-11-13 19:32:30.116 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<presence from='alice_subscribe_2606@domain.example.com/res1' to='alice_subscribe_2606@domain.example.com/res1'/>



*** User 2023-11-13 19:32:30.116 ***🔗
bOb_subscribe_2606@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-13 19:32:30.117 ***🔗
bOb_subscribe_2606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f7a33959ac98448' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-13 19:32:30.117 ***🔗
bOb_subscribe_2606@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-13 19:32:30.117 ***🔗
bOb_subscribe_2606@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjYwNgBtYWtyb2xpa2E=</auth>



*** User 2023-11-13 19:32:30.118 ***🔗
bOb_subscribe_2606@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 19:32:30.118 ***🔗
bOb_subscribe_2606@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-13 19:32:30.118 ***🔗
bOb_subscribe_2606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4728b00d2bae3468' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2606@domain.example.com'>

*** User 2023-11-13 19:32:30.118 ***🔗
bOb_subscribe_2606@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-13 19:32:30.118 ***🔗
bOb_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='a6a4a39e62800cfda27e8b34c385313b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 19:32:30.118 ***🔗
bOb_subscribe_2606@domain.example.com/res1 in
<iq id='a6a4a39e62800cfda27e8b34c385313b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2606@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 19:32:30.119 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='0e567e1ff6ee2d9b770f4104dcab3c0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:32:30.119 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='0e567e1ff6ee2d9b770f4104dcab3c0b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:32:30.119 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<presence/>



*** User 2023-11-13 19:32:30.120 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<presence from='bob_subscribe_2606@domain.example.com/res1' to='bob_subscribe_2606@domain.example.com/res1'/>



*** User 2023-11-13 19:32:30.120 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='50ce352f8201930e89072e02c4f8b092'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2606@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.124 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<iq from='alice_subscribe_2606@domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' id='pushe0a87d6c87e5293c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2606@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.124 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<iq from='alice_subscribe_2606@domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' id='50ce352f8201930e89072e02c4f8b092' type='result'/>



*** User 2023-11-13 19:32:30.124 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<iq to='alice_subscribe_2606@domain.example.com' id='pushe0a87d6c87e5293c' type='result'/>



*** User 2023-11-13 19:32:30.124 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2606@domain.example.com'/>



*** User 2023-11-13 19:32:30.129 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<iq from='alice_subscribe_2606@domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' id='push38506fac78f32b45' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2606@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.129 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
<iq to='alice_subscribe_2606@domain.example.com' id='push38506fac78f32b45' type='result'/>



*** User 2023-11-13 19:32:30.130 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<presence from='alice_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-13 19:32:30.130 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<iq type='get' id='5f1a6a6798245f6d92ef1b83a1fe0530'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 19:32:30.132 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='bob_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='5f1a6a6798245f6d92ef1b83a1fe0530' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 19:32:30.132 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2606@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2606@domain.example.com/res1">>},
                {<<"id">>,<<"5f1a6a6798245f6d92ef1b83a1fe0530">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-13 19:32:30.132 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<iq type='set' id='c2b1e3bf05109bd258952b45442388a7'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2606@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.134 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='bob_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='push29d5d5b12581f875' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2606@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.135 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<iq to='bob_subscribe_2606@domain.example.com' id='push29d5d5b12581f875' type='result'/>



*** User 2023-11-13 19:32:30.135 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='bob_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='c2b1e3bf05109bd258952b45442388a7' type='result'/>



*** User 2023-11-13 19:32:30.135 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2606@domain.example.com'/>



*** User 2023-11-13 19:32:30.137 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<iq from='alice_subscribe_2606@domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' id='push9ab908970d3e7593' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2606@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.137 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<presence from='bob_subscribe_2606@domain.example.com' to='alice_subscribe_2606@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-13 19:32:30.137 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<presence from='bob_subscribe_2606@domain.example.com/res1' to='alice_subscribe_2606@domain.example.com/res1'/>



*** User 2023-11-13 19:32:30.138 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='bob_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='push91b2c3f8376df6e6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2606@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.138 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<iq type='get' id='906b1e58ff5ad8db2498de6c265cedab'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 19:32:30.141 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
<iq from='bob_subscribe_2606@domain.example.com' to='bob_subscribe_2606@domain.example.com/res1' id='906b1e58ff5ad8db2498de6c265cedab' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2606@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 19:32:30.141 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2606@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2606@domain.example.com/res1">>},
             {<<"id">>,<<"906b1e58ff5ad8db2498de6c265cedab">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2606@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-13 19:32:30.141 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<presence/>



*** User 2023-11-13 19:32:30.141 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<presence from='bob_subscribe_2606@domain.example.com/res1' to='alice_subscribe_2606@domain.example.com/res1'/>



*** User 2023-11-13 19:32:30.141 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2023-11-13 19:32:30.142 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
<presence from='bob_subscribe_2606@domain.example.com/res1' to='alice_subscribe_2606@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-13 19:32:30.142 ***🔗
bob_subscribe_2606@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-13 19:32:30.142 ***🔗
bob_subscribe_2606@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-13 19:32:30.142 ***🔗
alice_subscribe_2606@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-13 19:32:30.142 ***🔗
alice_subscribe_2606@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-13 19:32:30.148 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2514.html



=== Ended at 2023-11-13 19:32:30
=== successfully completed test case
=== === Returned value: ok