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

=== Config value:

    [{watchdog,<0.13541.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/presence_suite.subscribe_relog.67714.html"},
     {tc_group_properties,[{name,subscribe_group},
                           {repeat_until_all_ok,3},
                           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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/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@901bd2a377ee.2022-05-25_10.38.09"

=== Started at 2022-05-25 10:49:18


*** CT 2022-05-25 10:49:18.635 *** View log from node mongooseim@localhost when started mongooseim@localhost_4888.html
*** CT 2022-05-25 10:49:18.635 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1997.html

*** User 2022-05-25 10:49:18.649 ***
alicE_subscribe_relog_1250@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.650 ***
alicE_subscribe_relog_1250@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7110e8bd653ddd03' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.650 ***
alicE_subscribe_relog_1250@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.650 ***
alicE_subscribe_relog_1250@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV9yZWxvZ18xMjUwAG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_relog_1250@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_relog_1250@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_relog_1250@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1bb801768f6f13e2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_relog_1250@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_relog_1250@localhost/res1 out
<iq type='set' id='a57f42f1fd5e2cb0fc2c96121431672d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.653 ***
alicE_subscribe_relog_1250@localhost/res1 in
<iq id='a57f42f1fd5e2cb0fc2c96121431672d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_relog_1250@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_relog_1250@localhost/res1 out
<iq type='set' id='af8a6a1d68ed1b4a404142fac3c4daeb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_relog_1250@localhost/res1 in
<iq type='result' id='af8a6a1d68ed1b4a404142fac3c4daeb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_relog_1250@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:18.674 ***
alice_subscribe_relog_1250@localhost/res1 in
<presence from='alice_subscribe_relog_1250@localhost/res1' to='alice_subscribe_relog_1250@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:18.675 ***
bOb_subscribe_relog_1250@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.675 ***
bOb_subscribe_relog_1250@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75289f8bb7c43bdb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.675 ***
bOb_subscribe_relog_1250@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.676 ***
bOb_subscribe_relog_1250@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTI1MABtYWtyb2xpa2E=</auth>



*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_relog_1250@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_relog_1250@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_relog_1250@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9581bd5b8f282a60' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_relog_1250@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_relog_1250@localhost/res1 out
<iq type='set' id='39947555e9fcb277a3a663e34289a248'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.678 ***
bOb_subscribe_relog_1250@localhost/res1 in
<iq id='39947555e9fcb277a3a663e34289a248' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_relog_1250@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_relog_1250@localhost/res1 out
<iq type='set' id='79f7a91aa80fff4145c8ae30713e02c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_relog_1250@localhost/res1 in
<iq type='result' id='79f7a91aa80fff4145c8ae30713e02c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_relog_1250@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:18.679 ***
bob_subscribe_relog_1250@localhost/res1 in
<presence from='bob_subscribe_relog_1250@localhost/res1' to='bob_subscribe_relog_1250@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:18.679 ***
alice_subscribe_relog_1250@localhost/res1 out
<iq type='set' id='d2cc64d1aa95fcf58321f0411bd0833d'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_relog_1250@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 10:49:18.682 ***
alice_subscribe_relog_1250@localhost/res1 in
<iq from='alice_subscribe_relog_1250@localhost' to='alice_subscribe_relog_1250@localhost/res1' id='push7bfe7f77ed8a5bfb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_relog_1250@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 10:49:18.682 ***
alice_subscribe_relog_1250@localhost/res1 in
<iq from='alice_subscribe_relog_1250@localhost' to='alice_subscribe_relog_1250@localhost/res1' id='d2cc64d1aa95fcf58321f0411bd0833d' type='result'/>



*** User 2022-05-25 10:49:18.682 ***
alice_subscribe_relog_1250@localhost/res1 out
<iq to='alice_subscribe_relog_1250@localhost' id='push7bfe7f77ed8a5bfb' type='result'/>



*** User 2022-05-25 10:49:18.682 ***
alice_subscribe_relog_1250@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_relog_1250@localhost'/>



*** User 2022-05-25 10:49:18.687 ***
alice_subscribe_relog_1250@localhost/res1 in
<iq from='alice_subscribe_relog_1250@localhost' to='alice_subscribe_relog_1250@localhost/res1' id='pushf41dd8326069d2bf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_relog_1250@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 10:49:18.687 ***
alice_subscribe_relog_1250@localhost/res1 out
<iq to='alice_subscribe_relog_1250@localhost' id='pushf41dd8326069d2bf' type='result'/>



*** User 2022-05-25 10:49:18.687 ***
bob_subscribe_relog_1250@localhost/res1 in
<presence from='alice_subscribe_relog_1250@localhost' to='bob_subscribe_relog_1250@localhost/res1' xml:lang='en' type='subscribe'/>



*** User 2022-05-25 10:49:18.693 ***
bOb_subscribe_relog_1250@localhost/newbob out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.693 ***
bOb_subscribe_relog_1250@localhost/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3979a18081532579' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.694 ***
bOb_subscribe_relog_1250@localhost/newbob in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.694 ***
bOb_subscribe_relog_1250@localhost/newbob out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTI1MABtYWtyb2xpa2E=</auth>



*** User 2022-05-25 10:49:18.774 ***
bOb_subscribe_relog_1250@localhost/newbob in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:18.775 ***
bOb_subscribe_relog_1250@localhost/newbob out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:18.775 ***
bOb_subscribe_relog_1250@localhost/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a4e1138cc21b530' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.775 ***
bOb_subscribe_relog_1250@localhost/newbob in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 10:49:18.775 ***
bOb_subscribe_relog_1250@localhost/newbob out
<iq type='set' id='f8836de83dd6487594f394a699a78816'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>newbob</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.775 ***
bOb_subscribe_relog_1250@localhost/newbob in
<iq id='f8836de83dd6487594f394a699a78816' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_relog_1250@localhost/newbob</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.775 ***
bob_subscribe_relog_1250@localhost/newbob out
<iq type='set' id='a2ddf5a3500692cba05234a508f5bd50'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.776 ***
bob_subscribe_relog_1250@localhost/newbob in
<iq type='result' id='a2ddf5a3500692cba05234a508f5bd50'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.776 ***
bob_subscribe_relog_1250@localhost/newbob out
<presence/>



*** User 2022-05-25 10:49:18.778 ***
bob_subscribe_relog_1250@localhost/res1 in
<presence from='bob_subscribe_relog_1250@localhost/newbob' to='bob_subscribe_relog_1250@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:18.778 ***
bob_subscribe_relog_1250@localhost/newbob in
<presence from='alice_subscribe_relog_1250@localhost' to='bob_subscribe_relog_1250@localhost' type='subscribe'>
	<status/>
</presence>



*** User 2022-05-25 10:49:18.778 ***
bob_subscribe_relog_1250@localhost/newbob in
<presence from='bob_subscribe_relog_1250@localhost/newbob' to='bob_subscribe_relog_1250@localhost/newbob' xml:lang='en'/>



*** User 2022-05-25 10:49:18.778 ***
bob_subscribe_relog_1250@localhost/newbob in
<presence from='bob_subscribe_relog_1250@localhost/res1' to='bob_subscribe_relog_1250@localhost/newbob' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-25T10:49:18Z' from='bob_subscribe_relog_1250@localhost/res1'/>
</presence>



*** User 2022-05-25 10:49:18.778 ***
bob_subscribe_relog_1250@localhost/newbob out
</stream:stream>

*** User 2022-05-25 10:49:18.779 ***
bob_subscribe_relog_1250@localhost/newbob in
</stream:stream>

*** User 2022-05-25 10:49:18.779 ***
bob_subscribe_relog_1250@localhost/res1 out
<presence type='unsubscribed' to='alice_subscribe_relog_1250@localhost'/>



*** User 2022-05-25 10:49:18.779 ***
bob_subscribe_relog_1250@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:18.792 ***
bob_subscribe_relog_1250@localhost/res1 in
</stream:stream>

*** User 2022-05-25 10:49:18.792 ***
alice_subscribe_relog_1250@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:18.792 ***
alice_subscribe_relog_1250@localhost/res1 in
</stream:stream>
*** CT 2022-05-25 10:49:18.880 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1997.html
*** CT 2022-05-25 10:49:18.892 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4888.html



=== Ended at 2022-05-25 10:49:18
=== successfully completed test case
=== === Returned value: ok