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

=== Config value:

    [{watchdog,<0.77108.0>},
     {preset,"odbc_mssql_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@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.presence_SUITE.logs/run.2024-02-22_11.32.16/presence_suite.subscribe.200066.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@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.presence_SUITE.logs/run.2024-02-22_11.32.16/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@c4570d256f6e.2024-02-22_11.16.10"

=== Started at 2024-02-22 11:32:19


*** CT 2024-02-22 11:32:19.077 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4739.html

*** User 2024-02-22 11:32:19.098 ***🔗
alicE_subscribe_2908@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-02-22 11:32:19.098 ***🔗
alicE_subscribe_2908@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88596ebfe259461a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 11:32:19.098 ***🔗
alicE_subscribe_2908@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-02-22 11:32:19.099 ***🔗
alicE_subscribe_2908@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTA4AG1hdHlncnlzYQ==</auth>



*** User 2024-02-22 11:32:19.100 ***🔗
alicE_subscribe_2908@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 11:32:19.100 ***🔗
alicE_subscribe_2908@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-02-22 11:32:19.100 ***🔗
alicE_subscribe_2908@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef00e01ed3b4fcf9' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2908@localhost'>

*** User 2024-02-22 11:32:19.100 ***🔗
alicE_subscribe_2908@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-02-22 11:32:19.100 ***🔗
alicE_subscribe_2908@localhost/res1 out
<iq type='set' id='a21bc83d94b5f74abd09ea0c2df1a80c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 11:32:19.101 ***🔗
alicE_subscribe_2908@localhost/res1 in
<iq id='a21bc83d94b5f74abd09ea0c2df1a80c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2908@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 11:32:19.101 ***🔗
alice_subscribe_2908@localhost/res1 out
<iq type='set' id='ee537172d42c7839f56cbf8a4c64bba1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 11:32:19.101 ***🔗
alice_subscribe_2908@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2908@localhost/res1' id='ee537172d42c7839f56cbf8a4c64bba1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 11:32:19.101 ***🔗
alice_subscribe_2908@localhost/res1 out
<presence/>



*** User 2024-02-22 11:32:19.102 ***🔗
alice_subscribe_2908@localhost/res1 in
<presence from='alice_subscribe_2908@localhost/res1' to='alice_subscribe_2908@localhost/res1'/>



*** User 2024-02-22 11:32:19.103 ***🔗
bOb_subscribe_2908@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-02-22 11:32:19.103 ***🔗
bOb_subscribe_2908@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60d0a302cfc4b990' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 11:32:19.104 ***🔗
bOb_subscribe_2908@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-02-22 11:32:19.104 ***🔗
bOb_subscribe_2908@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkwOABtYWtyb2xpa2E=</auth>



*** User 2024-02-22 11:32:19.105 ***🔗
bOb_subscribe_2908@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 11:32:19.105 ***🔗
bOb_subscribe_2908@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-02-22 11:32:19.105 ***🔗
bOb_subscribe_2908@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c2f0ced662c4f6f' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2908@localhost'>

*** User 2024-02-22 11:32:19.106 ***🔗
bOb_subscribe_2908@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-02-22 11:32:19.106 ***🔗
bOb_subscribe_2908@localhost/res1 out
<iq type='set' id='0518314b2e62a8ef87f7823879a7c723'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 11:32:19.106 ***🔗
bOb_subscribe_2908@localhost/res1 in
<iq id='0518314b2e62a8ef87f7823879a7c723' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2908@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 11:32:19.106 ***🔗
bob_subscribe_2908@localhost/res1 out
<iq type='set' id='a4ee71bce0c4528c36187826437cc774'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 11:32:19.106 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2908@localhost/res1' id='a4ee71bce0c4528c36187826437cc774' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 11:32:19.107 ***🔗
bob_subscribe_2908@localhost/res1 out
<presence/>



*** User 2024-02-22 11:32:19.108 ***🔗
bob_subscribe_2908@localhost/res1 in
<presence from='bob_subscribe_2908@localhost/res1' to='bob_subscribe_2908@localhost/res1'/>



*** User 2024-02-22 11:32:19.108 ***🔗
alice_subscribe_2908@localhost/res1 out
<iq type='set' id='71fc3879959a8a5de4ef36a8d8fb48b4'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2908@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.116 ***🔗
alice_subscribe_2908@localhost/res1 in
<iq from='alice_subscribe_2908@localhost' to='alice_subscribe_2908@localhost/res1' id='push677a2a64b1050a5f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2908@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.116 ***🔗
alice_subscribe_2908@localhost/res1 in
<iq from='alice_subscribe_2908@localhost' to='alice_subscribe_2908@localhost/res1' id='71fc3879959a8a5de4ef36a8d8fb48b4' type='result'/>



*** User 2024-02-22 11:32:19.117 ***🔗
alice_subscribe_2908@localhost/res1 out
<iq to='alice_subscribe_2908@localhost' id='push677a2a64b1050a5f' type='result'/>



*** User 2024-02-22 11:32:19.117 ***🔗
alice_subscribe_2908@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2908@localhost'/>



*** User 2024-02-22 11:32:19.149 ***🔗
alice_subscribe_2908@localhost/res1 in
<iq from='alice_subscribe_2908@localhost' to='alice_subscribe_2908@localhost/res1' id='push945c405496237a52' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2908@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.150 ***🔗
alice_subscribe_2908@localhost/res1 out
<iq to='alice_subscribe_2908@localhost' id='push945c405496237a52' type='result'/>



*** User 2024-02-22 11:32:19.150 ***🔗
bob_subscribe_2908@localhost/res1 in
<presence from='alice_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' type='subscribe'/>



*** User 2024-02-22 11:32:19.150 ***🔗
bob_subscribe_2908@localhost/res1 out
<iq type='get' id='84cf3ccf45086733ae7a63fb42cf8d7b'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 11:32:19.162 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='bob_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' id='84cf3ccf45086733ae7a63fb42cf8d7b' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 11:32:19.162 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2908@localhost">>},
                {<<"to">>,<<"bob_subscribe_2908@localhost/res1">>},
                {<<"id">>,<<"84cf3ccf45086733ae7a63fb42cf8d7b">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-02-22 11:32:19.162 ***🔗
bob_subscribe_2908@localhost/res1 out
<iq type='set' id='92d4f6639604d8d10d6f01252b19a49f'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2908@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.171 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='bob_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' id='pusha8299747507d9a6c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2908@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.171 ***🔗
bob_subscribe_2908@localhost/res1 out
<iq to='bob_subscribe_2908@localhost' id='pusha8299747507d9a6c' type='result'/>



*** User 2024-02-22 11:32:19.171 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='bob_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' id='92d4f6639604d8d10d6f01252b19a49f' type='result'/>



*** User 2024-02-22 11:32:19.171 ***🔗
bob_subscribe_2908@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2908@localhost'/>



*** User 2024-02-22 11:32:19.182 ***🔗
alice_subscribe_2908@localhost/res1 in
<iq from='alice_subscribe_2908@localhost' to='alice_subscribe_2908@localhost/res1' id='push68823fdceda99700' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2908@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.182 ***🔗
alice_subscribe_2908@localhost/res1 in
<presence from='bob_subscribe_2908@localhost' to='alice_subscribe_2908@localhost/res1' type='subscribed'/>



*** User 2024-02-22 11:32:19.182 ***🔗
alice_subscribe_2908@localhost/res1 in
<presence from='bob_subscribe_2908@localhost/res1' to='alice_subscribe_2908@localhost/res1'/>



*** User 2024-02-22 11:32:19.182 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='bob_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' id='push36743eb3191fb83a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2908@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.182 ***🔗
bob_subscribe_2908@localhost/res1 out
<iq type='get' id='33b20b6d45dde68cba6f61dab85a93de'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 11:32:19.189 ***🔗
bob_subscribe_2908@localhost/res1 in
<iq from='bob_subscribe_2908@localhost' to='bob_subscribe_2908@localhost/res1' id='33b20b6d45dde68cba6f61dab85a93de' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2908@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 11:32:19.189 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2908@localhost">>},
             {<<"to">>,<<"bob_subscribe_2908@localhost/res1">>},
             {<<"id">>,<<"33b20b6d45dde68cba6f61dab85a93de">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2908@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-02-22 11:32:19.189 ***🔗
bob_subscribe_2908@localhost/res1 out
<presence/>



*** User 2024-02-22 11:32:19.190 ***🔗
alice_subscribe_2908@localhost/res1 in
<presence from='bob_subscribe_2908@localhost/res1' to='alice_subscribe_2908@localhost/res1'/>



*** User 2024-02-22 11:32:19.190 ***🔗
bob_subscribe_2908@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-02-22 11:32:19.190 ***🔗
alice_subscribe_2908@localhost/res1 in
<presence from='bob_subscribe_2908@localhost/res1' to='alice_subscribe_2908@localhost/res1' type='unavailable'/>



*** User 2024-02-22 11:32:19.191 ***🔗
bob_subscribe_2908@localhost/res1 out
</stream:stream>

*** User 2024-02-22 11:32:19.191 ***🔗
bob_subscribe_2908@localhost/res1 in
</stream:stream>

*** User 2024-02-22 11:32:19.191 ***🔗
alice_subscribe_2908@localhost/res1 out
</stream:stream>

*** User 2024-02-22 11:32:19.191 ***🔗
alice_subscribe_2908@localhost/res1 in
</stream:stream>
*** CT 2024-02-22 11:32:19.245 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4739.html



=== Ended at 2024-02-22 11:32:19
=== successfully completed test case
=== === Returned value: ok