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

=== Config value:

    [{watchdog,<0.74754.0>},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.22.51/presence_suite.subscribe.151171.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.22.51/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@1c2ae12cdb1a.2023-11-17_15.10.15"

=== Started at 2023-11-17 15:22:53


*** CT 2023-11-17 15:22:53.477 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4553.html

*** User 2023-11-17 15:22:53.496 ***🔗
alicE_subscribe_2611@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-17 15:22:53.496 ***🔗
alicE_subscribe_2611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='38a6fc909091ef3b' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:22:53.496 ***🔗
alicE_subscribe_2611@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-17 15:22:53.496 ***🔗
alicE_subscribe_2611@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjExAG1hdHlncnlzYQ==</auth>



*** User 2023-11-17 15:22:53.497 ***🔗
alicE_subscribe_2611@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:22:53.497 ***🔗
alicE_subscribe_2611@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-17 15:22:53.497 ***🔗
alicE_subscribe_2611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d34fb899b3aa0b0' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2611@localhost'>

*** User 2023-11-17 15:22:53.497 ***🔗
alicE_subscribe_2611@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-17 15:22:53.497 ***🔗
alicE_subscribe_2611@localhost/res1 out
<iq type='set' id='ab85448c07b2d819006f80135d5418ae'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:22:53.498 ***🔗
alicE_subscribe_2611@localhost/res1 in
<iq id='ab85448c07b2d819006f80135d5418ae' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2611@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:22:53.498 ***🔗
alice_subscribe_2611@localhost/res1 out
<iq type='set' id='4ab63f76fff927d91466f45b6a2d462a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:22:53.499 ***🔗
alice_subscribe_2611@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2611@localhost/res1' id='4ab63f76fff927d91466f45b6a2d462a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:22:53.499 ***🔗
alice_subscribe_2611@localhost/res1 out
<presence/>



*** User 2023-11-17 15:22:53.500 ***🔗
alice_subscribe_2611@localhost/res1 in
<presence from='alice_subscribe_2611@localhost/res1' to='alice_subscribe_2611@localhost/res1'/>



*** User 2023-11-17 15:22:53.500 ***🔗
bOb_subscribe_2611@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-17 15:22:53.501 ***🔗
bOb_subscribe_2611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9d99cb808db430e1' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:22:53.501 ***🔗
bOb_subscribe_2611@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-17 15:22:53.501 ***🔗
bOb_subscribe_2611@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjYxMQBtYWtyb2xpa2E=</auth>



*** User 2023-11-17 15:22:53.502 ***🔗
bOb_subscribe_2611@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:22:53.502 ***🔗
bOb_subscribe_2611@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-17 15:22:53.502 ***🔗
bOb_subscribe_2611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eda78782afe648e3' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2611@localhost'>

*** User 2023-11-17 15:22:53.502 ***🔗
bOb_subscribe_2611@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-17 15:22:53.502 ***🔗
bOb_subscribe_2611@localhost/res1 out
<iq type='set' id='fede53f73b6ea1cd05711f382a642811'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:22:53.502 ***🔗
bOb_subscribe_2611@localhost/res1 in
<iq id='fede53f73b6ea1cd05711f382a642811' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2611@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:22:53.502 ***🔗
bob_subscribe_2611@localhost/res1 out
<iq type='set' id='0da0d99da3641669a9bc8bef3bd2778b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:22:53.503 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2611@localhost/res1' id='0da0d99da3641669a9bc8bef3bd2778b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:22:53.503 ***🔗
bob_subscribe_2611@localhost/res1 out
<presence/>



*** User 2023-11-17 15:22:53.504 ***🔗
bob_subscribe_2611@localhost/res1 in
<presence from='bob_subscribe_2611@localhost/res1' to='bob_subscribe_2611@localhost/res1'/>



*** User 2023-11-17 15:22:53.504 ***🔗
alice_subscribe_2611@localhost/res1 out
<iq type='set' id='cacdf2df596715436fa472fe2e4c1daa'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2611@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.509 ***🔗
alice_subscribe_2611@localhost/res1 in
<iq from='alice_subscribe_2611@localhost' to='alice_subscribe_2611@localhost/res1' id='push04281974edf3d868' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2611@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.509 ***🔗
alice_subscribe_2611@localhost/res1 in
<iq from='alice_subscribe_2611@localhost' to='alice_subscribe_2611@localhost/res1' id='cacdf2df596715436fa472fe2e4c1daa' type='result'/>



*** User 2023-11-17 15:22:53.509 ***🔗
alice_subscribe_2611@localhost/res1 out
<iq to='alice_subscribe_2611@localhost' id='push04281974edf3d868' type='result'/>



*** User 2023-11-17 15:22:53.509 ***🔗
alice_subscribe_2611@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2611@localhost'/>



*** User 2023-11-17 15:22:53.514 ***🔗
alice_subscribe_2611@localhost/res1 in
<iq from='alice_subscribe_2611@localhost' to='alice_subscribe_2611@localhost/res1' id='push4a2fa1f365d0453a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2611@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.514 ***🔗
alice_subscribe_2611@localhost/res1 out
<iq to='alice_subscribe_2611@localhost' id='push4a2fa1f365d0453a' type='result'/>



*** User 2023-11-17 15:22:53.514 ***🔗
bob_subscribe_2611@localhost/res1 in
<presence from='alice_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' type='subscribe'/>



*** User 2023-11-17 15:22:53.514 ***🔗
bob_subscribe_2611@localhost/res1 out
<iq type='get' id='2f9d9b48fbd96c21a40eac1dc8928f22'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:22:53.515 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='bob_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' id='2f9d9b48fbd96c21a40eac1dc8928f22' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:22:53.515 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2611@localhost">>},
                {<<"to">>,<<"bob_subscribe_2611@localhost/res1">>},
                {<<"id">>,<<"2f9d9b48fbd96c21a40eac1dc8928f22">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-17 15:22:53.516 ***🔗
bob_subscribe_2611@localhost/res1 out
<iq type='set' id='842d55263ef692cfe1f7c43fb79f8387'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2611@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.519 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='bob_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' id='push175e60f8b16a15f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2611@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.519 ***🔗
bob_subscribe_2611@localhost/res1 out
<iq to='bob_subscribe_2611@localhost' id='push175e60f8b16a15f4' type='result'/>



*** User 2023-11-17 15:22:53.519 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='bob_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' id='842d55263ef692cfe1f7c43fb79f8387' type='result'/>



*** User 2023-11-17 15:22:53.519 ***🔗
bob_subscribe_2611@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2611@localhost'/>



*** User 2023-11-17 15:22:53.522 ***🔗
alice_subscribe_2611@localhost/res1 in
<iq from='alice_subscribe_2611@localhost' to='alice_subscribe_2611@localhost/res1' id='push05d9b8c2e2db5292' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2611@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.522 ***🔗
alice_subscribe_2611@localhost/res1 in
<presence from='bob_subscribe_2611@localhost' to='alice_subscribe_2611@localhost/res1' type='subscribed'/>



*** User 2023-11-17 15:22:53.522 ***🔗
alice_subscribe_2611@localhost/res1 in
<presence from='bob_subscribe_2611@localhost/res1' to='alice_subscribe_2611@localhost/res1'/>



*** User 2023-11-17 15:22:53.522 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='bob_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' id='push1eed52b6c14d47dc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2611@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.522 ***🔗
bob_subscribe_2611@localhost/res1 out
<iq type='get' id='fa0ebe3d7a3b7d73623c93e42f911c1f'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-17 15:22:53.523 ***🔗
bob_subscribe_2611@localhost/res1 in
<iq from='bob_subscribe_2611@localhost' to='bob_subscribe_2611@localhost/res1' id='fa0ebe3d7a3b7d73623c93e42f911c1f' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2611@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-17 15:22:53.524 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2611@localhost">>},
             {<<"to">>,<<"bob_subscribe_2611@localhost/res1">>},
             {<<"id">>,<<"fa0ebe3d7a3b7d73623c93e42f911c1f">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2611@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-17 15:22:53.524 ***🔗
bob_subscribe_2611@localhost/res1 out
<presence/>



*** User 2023-11-17 15:22:53.525 ***🔗
alice_subscribe_2611@localhost/res1 in
<presence from='bob_subscribe_2611@localhost/res1' to='alice_subscribe_2611@localhost/res1'/>



*** User 2023-11-17 15:22:53.525 ***🔗
bob_subscribe_2611@localhost/res1 out
<presence type='unavailable'/>



*** User 2023-11-17 15:22:53.525 ***🔗
alice_subscribe_2611@localhost/res1 in
<presence from='bob_subscribe_2611@localhost/res1' to='alice_subscribe_2611@localhost/res1' type='unavailable'/>



*** User 2023-11-17 15:22:53.525 ***🔗
bob_subscribe_2611@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:22:53.526 ***🔗
bob_subscribe_2611@localhost/res1 in
</stream:stream>

*** User 2023-11-17 15:22:53.526 ***🔗
alice_subscribe_2611@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:22:53.526 ***🔗
alice_subscribe_2611@localhost/res1 in
</stream:stream>
*** CT 2023-11-17 15:22:53.532 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4553.html



=== Ended at 2023-11-17 15:22:53
=== successfully completed test case
=== === Returned value: ok