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

=== Config value:

    [{watchdog,<0.73282.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.presence_SUITE.logs/run.2024-04-23_23.33.52/presence_suite.subscribe.136579.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.presence_SUITE.logs/run.2024-04-23_23.33.52/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@81b4ed498ac1.2024-04-23_23.21.08"

=== Started at 2024-04-23 23:33:54


*** CT 2024-04-23 23:33:54.455 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5445.html

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

*** User 2024-04-23 23:33:54.468 ***🔗
alicE_subscribe_2660@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 23:33:54.468 ***🔗
alicE_subscribe_2660@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjYwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 23:33:54.469 ***🔗
alicE_subscribe_2660@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:33:54.469 ***🔗
alicE_subscribe_2660@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 23:33:54.469 ***🔗
alicE_subscribe_2660@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='466d59352b8fc391' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2660@localhost'>

*** User 2024-04-23 23:33:54.469 ***🔗
alicE_subscribe_2660@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 23:33:54.469 ***🔗
alicE_subscribe_2660@localhost/res1 out
<iq type='set' id='1cbbd0d197055762954a387282ddc548'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:33:54.470 ***🔗
alicE_subscribe_2660@localhost/res1 in
<iq id='1cbbd0d197055762954a387282ddc548' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2660@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:33:54.470 ***🔗
alice_subscribe_2660@localhost/res1 out
<iq type='set' id='b9c5971515d14ef6e9d0abbf65250e16'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:33:54.471 ***🔗
alice_subscribe_2660@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2660@localhost/res1' id='b9c5971515d14ef6e9d0abbf65250e16' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:33:54.471 ***🔗
alice_subscribe_2660@localhost/res1 out
<presence/>



*** User 2024-04-23 23:33:54.472 ***🔗
alice_subscribe_2660@localhost/res1 in
<presence from='alice_subscribe_2660@localhost/res1' to='alice_subscribe_2660@localhost/res1'/>



*** User 2024-04-23 23:33:54.473 ***🔗
bOb_subscribe_2660@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 23:33:54.473 ***🔗
bOb_subscribe_2660@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='108176e4a52c1500' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:33:54.473 ***🔗
bOb_subscribe_2660@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 23:33:54.473 ***🔗
bOb_subscribe_2660@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjY2MABtYWtyb2xpa2E=</auth>



*** User 2024-04-23 23:33:54.474 ***🔗
bOb_subscribe_2660@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:33:54.474 ***🔗
bOb_subscribe_2660@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 23:33:54.475 ***🔗
bOb_subscribe_2660@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e39eeb2036073074' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2660@localhost'>

*** User 2024-04-23 23:33:54.475 ***🔗
bOb_subscribe_2660@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 23:33:54.475 ***🔗
bOb_subscribe_2660@localhost/res1 out
<iq type='set' id='8ffbd9f5cbf717dc5c44482fe464e766'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:33:54.475 ***🔗
bOb_subscribe_2660@localhost/res1 in
<iq id='8ffbd9f5cbf717dc5c44482fe464e766' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2660@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:33:54.475 ***🔗
bob_subscribe_2660@localhost/res1 out
<iq type='set' id='6a4b80c94528ca3a649317381ca755d5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:33:54.476 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2660@localhost/res1' id='6a4b80c94528ca3a649317381ca755d5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:33:54.476 ***🔗
bob_subscribe_2660@localhost/res1 out
<presence/>



*** User 2024-04-23 23:33:54.478 ***🔗
bob_subscribe_2660@localhost/res1 in
<presence from='bob_subscribe_2660@localhost/res1' to='bob_subscribe_2660@localhost/res1'/>



*** User 2024-04-23 23:33:54.478 ***🔗
alice_subscribe_2660@localhost/res1 out
<iq type='set' id='83a34d6ce2808cd8c596e06456ae66d1'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2660@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.487 ***🔗
alice_subscribe_2660@localhost/res1 in
<iq from='alice_subscribe_2660@localhost' to='alice_subscribe_2660@localhost/res1' id='pushc653b9063551bbb7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2660@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.487 ***🔗
alice_subscribe_2660@localhost/res1 in
<iq from='alice_subscribe_2660@localhost' to='alice_subscribe_2660@localhost/res1' id='83a34d6ce2808cd8c596e06456ae66d1' type='result'/>



*** User 2024-04-23 23:33:54.488 ***🔗
alice_subscribe_2660@localhost/res1 out
<iq to='alice_subscribe_2660@localhost' id='pushc653b9063551bbb7' type='result'/>



*** User 2024-04-23 23:33:54.488 ***🔗
alice_subscribe_2660@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2660@localhost'/>



*** User 2024-04-23 23:33:54.526 ***🔗
alice_subscribe_2660@localhost/res1 in
<iq from='alice_subscribe_2660@localhost' to='alice_subscribe_2660@localhost/res1' id='push03e73995a0d05a4a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2660@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.527 ***🔗
alice_subscribe_2660@localhost/res1 out
<iq to='alice_subscribe_2660@localhost' id='push03e73995a0d05a4a' type='result'/>



*** User 2024-04-23 23:33:54.527 ***🔗
bob_subscribe_2660@localhost/res1 in
<presence from='alice_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' type='subscribe'/>



*** User 2024-04-23 23:33:54.527 ***🔗
bob_subscribe_2660@localhost/res1 out
<iq type='get' id='6cb395cbbd37c9d09ca936b78996478b'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 23:33:54.529 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='bob_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' id='6cb395cbbd37c9d09ca936b78996478b' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 23:33:54.529 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2660@localhost">>},
                {<<"to">>,<<"bob_subscribe_2660@localhost/res1">>},
                {<<"id">>,<<"6cb395cbbd37c9d09ca936b78996478b">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-23 23:33:54.529 ***🔗
bob_subscribe_2660@localhost/res1 out
<iq type='set' id='d7ce26f114b2fffe95c10f961397d0b2'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2660@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.532 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='bob_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' id='push5ff607a282098cfa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2660@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.532 ***🔗
bob_subscribe_2660@localhost/res1 out
<iq to='bob_subscribe_2660@localhost' id='push5ff607a282098cfa' type='result'/>



*** User 2024-04-23 23:33:54.532 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='bob_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' id='d7ce26f114b2fffe95c10f961397d0b2' type='result'/>



*** User 2024-04-23 23:33:54.532 ***🔗
bob_subscribe_2660@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2660@localhost'/>



*** User 2024-04-23 23:33:54.537 ***🔗
alice_subscribe_2660@localhost/res1 in
<iq from='alice_subscribe_2660@localhost' to='alice_subscribe_2660@localhost/res1' id='pushd539262cbd357457' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2660@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.537 ***🔗
alice_subscribe_2660@localhost/res1 in
<presence from='bob_subscribe_2660@localhost' to='alice_subscribe_2660@localhost/res1' type='subscribed'/>



*** User 2024-04-23 23:33:54.537 ***🔗
alice_subscribe_2660@localhost/res1 in
<presence from='bob_subscribe_2660@localhost/res1' to='alice_subscribe_2660@localhost/res1'/>



*** User 2024-04-23 23:33:54.537 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='bob_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' id='push0e0faf94f808031b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2660@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.537 ***🔗
bob_subscribe_2660@localhost/res1 out
<iq type='get' id='53624b87e9c07b20d9217e352a0cb8f8'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 23:33:54.538 ***🔗
bob_subscribe_2660@localhost/res1 in
<iq from='bob_subscribe_2660@localhost' to='bob_subscribe_2660@localhost/res1' id='53624b87e9c07b20d9217e352a0cb8f8' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2660@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 23:33:54.539 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2660@localhost">>},
             {<<"to">>,<<"bob_subscribe_2660@localhost/res1">>},
             {<<"id">>,<<"53624b87e9c07b20d9217e352a0cb8f8">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2660@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-23 23:33:54.539 ***🔗
bob_subscribe_2660@localhost/res1 out
<presence/>



*** User 2024-04-23 23:33:54.540 ***🔗
alice_subscribe_2660@localhost/res1 in
<presence from='bob_subscribe_2660@localhost/res1' to='alice_subscribe_2660@localhost/res1'/>



*** User 2024-04-23 23:33:54.540 ***🔗
bob_subscribe_2660@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-23 23:33:54.541 ***🔗
alice_subscribe_2660@localhost/res1 in
<presence from='bob_subscribe_2660@localhost/res1' to='alice_subscribe_2660@localhost/res1' type='unavailable'/>



*** User 2024-04-23 23:33:54.541 ***🔗
bob_subscribe_2660@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:33:54.542 ***🔗
bob_subscribe_2660@localhost/res1 in
</stream:stream>

*** User 2024-04-23 23:33:54.542 ***🔗
alice_subscribe_2660@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:33:54.542 ***🔗
alice_subscribe_2660@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 23:33:54.552 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5445.html



=== Ended at 2024-04-23 23:33:54
=== successfully completed test case
=== === Returned value: ok