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

=== Config value:

    [{watchdog,<0.71765.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.presence_SUITE.logs/run.2024-04-12_13.37.29/presence_suite.subscribe.114052.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.presence_SUITE.logs/run.2024-04-12_13.37.29/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@8a480c91a890.2024-04-12_13.25.32"

=== Started at 2024-04-12 13:37:31


*** CT 2024-04-12 13:37:31.464 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2287.html

*** User 2024-04-12 13:37:31.487 ***🔗
alicE_subscribe_2720@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-12 13:37:31.487 ***🔗
alicE_subscribe_2720@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94623099965cbc49' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 13:37:31.487 ***🔗
alicE_subscribe_2720@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-12 13:37:31.487 ***🔗
alicE_subscribe_2720@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNzIwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-12 13:37:31.488 ***🔗
alicE_subscribe_2720@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 13:37:31.488 ***🔗
alicE_subscribe_2720@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-12 13:37:31.489 ***🔗
alicE_subscribe_2720@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b90c9826315da7e2' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2720@domain.example.com'>

*** User 2024-04-12 13:37:31.489 ***🔗
alicE_subscribe_2720@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-12 13:37:31.489 ***🔗
alicE_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='8200e43c630b7974c9eabd358fa96467'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 13:37:31.489 ***🔗
alicE_subscribe_2720@domain.example.com/res1 in
<iq id='8200e43c630b7974c9eabd358fa96467' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2720@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 13:37:31.489 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='0b0320ac8977872d94dba595c38d44eb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 13:37:31.490 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' id='0b0320ac8977872d94dba595c38d44eb' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 13:37:31.490 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 13:37:31.493 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<presence from='alice_subscribe_2720@domain.example.com/res1' to='alice_subscribe_2720@domain.example.com/res1'/>



*** User 2024-04-12 13:37:31.493 ***🔗
bOb_subscribe_2720@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-12 13:37:31.494 ***🔗
bOb_subscribe_2720@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='147e536675d4b64b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 13:37:31.494 ***🔗
bOb_subscribe_2720@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-12 13:37:31.494 ***🔗
bOb_subscribe_2720@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjcyMABtYWtyb2xpa2E=</auth>



*** User 2024-04-12 13:37:31.495 ***🔗
bOb_subscribe_2720@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 13:37:31.495 ***🔗
bOb_subscribe_2720@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-12 13:37:31.495 ***🔗
bOb_subscribe_2720@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d60198d75289539' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2720@domain.example.com'>

*** User 2024-04-12 13:37:31.495 ***🔗
bOb_subscribe_2720@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-12 13:37:31.495 ***🔗
bOb_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='0167edc40ce6d087f369ffd072f4b222'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 13:37:31.496 ***🔗
bOb_subscribe_2720@domain.example.com/res1 in
<iq id='0167edc40ce6d087f369ffd072f4b222' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2720@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 13:37:31.496 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='faba38e6a1db36f80da0d54bb4258819'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 13:37:31.497 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='faba38e6a1db36f80da0d54bb4258819' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 13:37:31.497 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 13:37:31.499 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<presence from='bob_subscribe_2720@domain.example.com/res1' to='bob_subscribe_2720@domain.example.com/res1'/>



*** User 2024-04-12 13:37:31.499 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='c56059d89a0502fcf26a39c44e4abf3b'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2720@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.502 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<iq from='alice_subscribe_2720@domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' id='pushed554b4bab0875e9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2720@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.503 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<iq from='alice_subscribe_2720@domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' id='c56059d89a0502fcf26a39c44e4abf3b' type='result'/>



*** User 2024-04-12 13:37:31.503 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<iq to='alice_subscribe_2720@domain.example.com' id='pushed554b4bab0875e9' type='result'/>



*** User 2024-04-12 13:37:31.503 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2720@domain.example.com'/>



*** User 2024-04-12 13:37:31.508 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<iq from='alice_subscribe_2720@domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' id='pusha6981377273879c5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2720@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.508 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
<iq to='alice_subscribe_2720@domain.example.com' id='pusha6981377273879c5' type='result'/>



*** User 2024-04-12 13:37:31.509 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<presence from='alice_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-12 13:37:31.509 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<iq type='get' id='f8babcee550c4873078d0888de1a2d41'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 13:37:31.520 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='bob_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='f8babcee550c4873078d0888de1a2d41' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 13:37:31.520 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2720@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2720@domain.example.com/res1">>},
                {<<"id">>,<<"f8babcee550c4873078d0888de1a2d41">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-12 13:37:31.520 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<iq type='set' id='2e70863b15da1409f07bba7c142cd0eb'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2720@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.529 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='bob_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='push86ede5e60b4af73b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2720@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.529 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<iq to='bob_subscribe_2720@domain.example.com' id='push86ede5e60b4af73b' type='result'/>



*** User 2024-04-12 13:37:31.529 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='bob_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='2e70863b15da1409f07bba7c142cd0eb' type='result'/>



*** User 2024-04-12 13:37:31.529 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2720@domain.example.com'/>



*** User 2024-04-12 13:37:31.569 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<iq from='alice_subscribe_2720@domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' id='pushb34a1b6f44ba41f9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2720@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.570 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<presence from='bob_subscribe_2720@domain.example.com' to='alice_subscribe_2720@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-12 13:37:31.570 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<presence from='bob_subscribe_2720@domain.example.com/res1' to='alice_subscribe_2720@domain.example.com/res1'/>



*** User 2024-04-12 13:37:31.570 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='bob_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='pushab5084c23991f977' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2720@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.570 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<iq type='get' id='212810748d3c3dc5ec8c45c0c041e625'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 13:37:31.572 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
<iq from='bob_subscribe_2720@domain.example.com' to='bob_subscribe_2720@domain.example.com/res1' id='212810748d3c3dc5ec8c45c0c041e625' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2720@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 13:37:31.572 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2720@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2720@domain.example.com/res1">>},
             {<<"id">>,<<"212810748d3c3dc5ec8c45c0c041e625">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2720@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-12 13:37:31.572 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 13:37:31.575 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<presence from='bob_subscribe_2720@domain.example.com/res1' to='alice_subscribe_2720@domain.example.com/res1'/>



*** User 2024-04-12 13:37:31.575 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-12 13:37:31.576 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
<presence from='bob_subscribe_2720@domain.example.com/res1' to='alice_subscribe_2720@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-12 13:37:31.576 ***🔗
bob_subscribe_2720@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 13:37:31.577 ***🔗
bob_subscribe_2720@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 13:37:31.577 ***🔗
alice_subscribe_2720@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 13:37:31.577 ***🔗
alice_subscribe_2720@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-12 13:37:31.587 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2287.html



=== Ended at 2024-04-12 13:37:31
=== successfully completed test case
=== === Returned value: ok