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

=== Config value:

    [{watchdog,<0.72367.0>},
     {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@a000afa994eb.2024-04-25_16.17.04/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.30.21/presence_suite.subscribe.168579.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@a000afa994eb.2024-04-25_16.17.04/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.30.21/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@a000afa994eb.2024-04-25_16.17.04"

=== Started at 2024-04-25 16:30:23


*** CT 2024-04-25 16:30:23.711 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2569.html

*** User 2024-04-25 16:30:23.732 ***🔗
alicE_subscribe_2875@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-04-25 16:30:23.732 ***🔗
alicE_subscribe_2875@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97080dd24494f757' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:30:23.732 ***🔗
alicE_subscribe_2875@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-04-25 16:30:23.733 ***🔗
alicE_subscribe_2875@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODc1AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 16:30:23.733 ***🔗
alicE_subscribe_2875@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:30:23.733 ***🔗
alicE_subscribe_2875@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-04-25 16:30:23.734 ***🔗
alicE_subscribe_2875@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80b3a27a1ad249b8' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2875@domain.example.com'>

*** User 2024-04-25 16:30:23.734 ***🔗
alicE_subscribe_2875@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-04-25 16:30:23.734 ***🔗
alicE_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='1dd82eb7e8c1c8510beab12065f6578a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:30:23.734 ***🔗
alicE_subscribe_2875@domain.example.com/res1 in
<iq id='1dd82eb7e8c1c8510beab12065f6578a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2875@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:30:23.734 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='62af28c3a143e76e3082f73465a1bc4a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:30:23.735 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' id='62af28c3a143e76e3082f73465a1bc4a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:30:23.735 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:30:23.737 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<presence from='alice_subscribe_2875@domain.example.com/res1' to='alice_subscribe_2875@domain.example.com/res1'/>



*** User 2024-04-25 16:30:23.737 ***🔗
bOb_subscribe_2875@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-04-25 16:30:23.738 ***🔗
bOb_subscribe_2875@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebe1ae1a4133a545' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:30:23.738 ***🔗
bOb_subscribe_2875@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-04-25 16:30:23.738 ***🔗
bOb_subscribe_2875@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg3NQBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 16:30:23.739 ***🔗
bOb_subscribe_2875@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:30:23.739 ***🔗
bOb_subscribe_2875@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-04-25 16:30:23.739 ***🔗
bOb_subscribe_2875@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d45f8563f163c21b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2875@domain.example.com'>

*** User 2024-04-25 16:30:23.739 ***🔗
bOb_subscribe_2875@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-04-25 16:30:23.739 ***🔗
bOb_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='8a38cb992e6a0bb535e43bc18d579b9d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:30:23.740 ***🔗
bOb_subscribe_2875@domain.example.com/res1 in
<iq id='8a38cb992e6a0bb535e43bc18d579b9d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2875@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:30:23.740 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='7f0d98dcd450df07de1ec933c41f01cd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:30:23.740 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='7f0d98dcd450df07de1ec933c41f01cd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:30:23.740 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:30:23.741 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<presence from='bob_subscribe_2875@domain.example.com/res1' to='bob_subscribe_2875@domain.example.com/res1'/>



*** User 2024-04-25 16:30:23.742 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='6964250582383849f3d593936554f933'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2875@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.748 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<iq from='alice_subscribe_2875@domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' id='push94f4a669d139e606' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2875@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.748 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<iq from='alice_subscribe_2875@domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' id='6964250582383849f3d593936554f933' type='result'/>



*** User 2024-04-25 16:30:23.748 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<iq to='alice_subscribe_2875@domain.example.com' id='push94f4a669d139e606' type='result'/>



*** User 2024-04-25 16:30:23.748 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2875@domain.example.com'/>



*** User 2024-04-25 16:30:23.770 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<iq from='alice_subscribe_2875@domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' id='push6f439447a1b96ee2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2875@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.770 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
<iq to='alice_subscribe_2875@domain.example.com' id='push6f439447a1b96ee2' type='result'/>



*** User 2024-04-25 16:30:23.770 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<presence from='alice_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-25 16:30:23.770 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<iq type='get' id='591be39fd7157f47914729cf9e121560'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:30:23.779 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='bob_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='591be39fd7157f47914729cf9e121560' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:30:23.779 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2875@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2875@domain.example.com/res1">>},
                {<<"id">>,<<"591be39fd7157f47914729cf9e121560">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-25 16:30:23.780 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<iq type='set' id='380dc2ef8d430f301b7d3ee2d37e3caf'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2875@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.789 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='bob_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='pushf59b92993b63740f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2875@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.789 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<iq to='bob_subscribe_2875@domain.example.com' id='pushf59b92993b63740f' type='result'/>



*** User 2024-04-25 16:30:23.789 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='bob_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='380dc2ef8d430f301b7d3ee2d37e3caf' type='result'/>



*** User 2024-04-25 16:30:23.790 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2875@domain.example.com'/>



*** User 2024-04-25 16:30:23.800 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<iq from='alice_subscribe_2875@domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' id='pushdb39399be5f471f6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2875@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.800 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<presence from='bob_subscribe_2875@domain.example.com' to='alice_subscribe_2875@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-25 16:30:23.800 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<presence from='bob_subscribe_2875@domain.example.com/res1' to='alice_subscribe_2875@domain.example.com/res1'/>



*** User 2024-04-25 16:30:23.801 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='bob_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='push6b4158b44cc48779' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2875@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.801 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<iq type='get' id='5038c5aa327fd651038790f5d748de3d'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:30:23.811 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
<iq from='bob_subscribe_2875@domain.example.com' to='bob_subscribe_2875@domain.example.com/res1' id='5038c5aa327fd651038790f5d748de3d' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2875@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:30:23.811 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2875@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2875@domain.example.com/res1">>},
             {<<"id">>,<<"5038c5aa327fd651038790f5d748de3d">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2875@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-25 16:30:23.812 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:30:23.812 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<presence from='bob_subscribe_2875@domain.example.com/res1' to='alice_subscribe_2875@domain.example.com/res1'/>



*** User 2024-04-25 16:30:23.813 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-25 16:30:23.813 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
<presence from='bob_subscribe_2875@domain.example.com/res1' to='alice_subscribe_2875@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-25 16:30:23.813 ***🔗
bob_subscribe_2875@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:30:23.814 ***🔗
bob_subscribe_2875@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 16:30:23.814 ***🔗
alice_subscribe_2875@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:30:23.814 ***🔗
alice_subscribe_2875@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-25 16:30:23.822 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2569.html



=== Ended at 2024-04-25 16:30:23
=== successfully completed test case
=== === Returned value: ok