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

=== Config value:

    [{watchdog,<0.6265.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.presence_SUITE.logs/run.2024-03-07_11.12.53/presence_suite.subscribe.101124.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.presence_SUITE.logs/run.2024-03-07_11.12.53/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@a458c4eb991a.2024-03-07_11.00.02"

=== Started at 2024-03-07 11:12:55


*** CT 2024-03-07 11:12:55.707 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2544.html

*** User 2024-03-07 11:12:55.721 ***🔗
alicE_subscribe_2847@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 2024-03-07 11:12:55.721 ***🔗
alicE_subscribe_2847@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e72aab48347eeee' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-07 11:12:55.721 ***🔗
alicE_subscribe_2847@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 2024-03-07 11:12:55.721 ***🔗
alicE_subscribe_2847@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODQ3AG1hdHlncnlzYQ==</auth>



*** User 2024-03-07 11:12:55.722 ***🔗
alicE_subscribe_2847@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-07 11:12:55.722 ***🔗
alicE_subscribe_2847@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 2024-03-07 11:12:55.723 ***🔗
alicE_subscribe_2847@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f1bb3ecbe4e850cb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2847@domain.example.com'>

*** User 2024-03-07 11:12:55.723 ***🔗
alicE_subscribe_2847@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 2024-03-07 11:12:55.723 ***🔗
alicE_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='d2a52b842b9ac752e4c7ecf365af1d4c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-07 11:12:55.723 ***🔗
alicE_subscribe_2847@domain.example.com/res1 in
<iq id='d2a52b842b9ac752e4c7ecf365af1d4c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2847@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-07 11:12:55.724 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='8ce57d6b40261793cc36c0b744c6d18f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-07 11:12:55.724 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' id='8ce57d6b40261793cc36c0b744c6d18f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-07 11:12:55.724 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<presence/>



*** User 2024-03-07 11:12:55.725 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<presence from='alice_subscribe_2847@domain.example.com/res1' to='alice_subscribe_2847@domain.example.com/res1'/>



*** User 2024-03-07 11:12:55.726 ***🔗
bOb_subscribe_2847@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 2024-03-07 11:12:55.726 ***🔗
bOb_subscribe_2847@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ae9346419ff3ba8' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-07 11:12:55.726 ***🔗
bOb_subscribe_2847@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 2024-03-07 11:12:55.726 ***🔗
bOb_subscribe_2847@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg0NwBtYWtyb2xpa2E=</auth>



*** User 2024-03-07 11:12:55.727 ***🔗
bOb_subscribe_2847@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-07 11:12:55.727 ***🔗
bOb_subscribe_2847@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 2024-03-07 11:12:55.728 ***🔗
bOb_subscribe_2847@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='466f9aca47a604e9' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2847@domain.example.com'>

*** User 2024-03-07 11:12:55.728 ***🔗
bOb_subscribe_2847@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 2024-03-07 11:12:55.728 ***🔗
bOb_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='55241f2eb69d54e268925e7dd2551055'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-07 11:12:55.728 ***🔗
bOb_subscribe_2847@domain.example.com/res1 in
<iq id='55241f2eb69d54e268925e7dd2551055' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2847@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-07 11:12:55.728 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='a8ef9b06ad5c7e0ce86fa33b6efc08f6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-07 11:12:55.729 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='a8ef9b06ad5c7e0ce86fa33b6efc08f6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-07 11:12:55.729 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<presence/>



*** User 2024-03-07 11:12:55.730 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<presence from='bob_subscribe_2847@domain.example.com/res1' to='bob_subscribe_2847@domain.example.com/res1'/>



*** User 2024-03-07 11:12:55.730 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='595fd51bfd18a0f798463121b3a8e9ae'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2847@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.732 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<iq from='alice_subscribe_2847@domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' id='push559e1a2d1fcd44a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2847@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.732 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<iq from='alice_subscribe_2847@domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' id='595fd51bfd18a0f798463121b3a8e9ae' type='result'/>



*** User 2024-03-07 11:12:55.732 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<iq to='alice_subscribe_2847@domain.example.com' id='push559e1a2d1fcd44a4' type='result'/>



*** User 2024-03-07 11:12:55.733 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2847@domain.example.com'/>



*** User 2024-03-07 11:12:55.738 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<iq from='alice_subscribe_2847@domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' id='push314ad1024fd0eb73' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2847@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.738 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
<iq to='alice_subscribe_2847@domain.example.com' id='push314ad1024fd0eb73' type='result'/>



*** User 2024-03-07 11:12:55.738 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<presence from='alice_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' type='subscribe'/>



*** User 2024-03-07 11:12:55.738 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<iq type='get' id='fcfb192078c9a491761c21a8d06f3610'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-07 11:12:55.764 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='bob_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='fcfb192078c9a491761c21a8d06f3610' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-07 11:12:55.765 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2847@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2847@domain.example.com/res1">>},
                {<<"id">>,<<"fcfb192078c9a491761c21a8d06f3610">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-03-07 11:12:55.765 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<iq type='set' id='d5eb0e058521033e8a29815dacbb02f0'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2847@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.768 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='bob_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='push080c6fa8e602a8f1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2847@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.768 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<iq to='bob_subscribe_2847@domain.example.com' id='push080c6fa8e602a8f1' type='result'/>



*** User 2024-03-07 11:12:55.768 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='bob_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='d5eb0e058521033e8a29815dacbb02f0' type='result'/>



*** User 2024-03-07 11:12:55.768 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2847@domain.example.com'/>



*** User 2024-03-07 11:12:55.772 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<iq from='alice_subscribe_2847@domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' id='push8dcff67e9e0e75d8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2847@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.772 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<presence from='bob_subscribe_2847@domain.example.com' to='alice_subscribe_2847@domain.example.com/res1' type='subscribed'/>



*** User 2024-03-07 11:12:55.772 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<presence from='bob_subscribe_2847@domain.example.com/res1' to='alice_subscribe_2847@domain.example.com/res1'/>



*** User 2024-03-07 11:12:55.772 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='bob_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='push0e5c33bf8b877cc3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2847@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.772 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<iq type='get' id='f2dc0204ad38fc7b6905de3ad7a74fcd'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-07 11:12:55.773 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
<iq from='bob_subscribe_2847@domain.example.com' to='bob_subscribe_2847@domain.example.com/res1' id='f2dc0204ad38fc7b6905de3ad7a74fcd' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2847@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-07 11:12:55.774 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2847@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2847@domain.example.com/res1">>},
             {<<"id">>,<<"f2dc0204ad38fc7b6905de3ad7a74fcd">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2847@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-03-07 11:12:55.774 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<presence/>



*** User 2024-03-07 11:12:55.776 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<presence from='bob_subscribe_2847@domain.example.com/res1' to='alice_subscribe_2847@domain.example.com/res1'/>



*** User 2024-03-07 11:12:55.776 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-03-07 11:12:55.776 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
<presence from='bob_subscribe_2847@domain.example.com/res1' to='alice_subscribe_2847@domain.example.com/res1' type='unavailable'/>



*** User 2024-03-07 11:12:55.776 ***🔗
bob_subscribe_2847@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-07 11:12:55.777 ***🔗
bob_subscribe_2847@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-07 11:12:55.777 ***🔗
alice_subscribe_2847@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-07 11:12:55.777 ***🔗
alice_subscribe_2847@domain.example.com/res1 in
</stream:stream>
*** CT 2024-03-07 11:12:55.786 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2544.html



=== Ended at 2024-03-07 11:12:55
=== successfully completed test case
=== === Returned value: ok