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

=== Config value:

    [{watchdog,<0.25626.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.presence_SUITE.logs/run.2022-03-07_16.04.59/presence_suite.subscribe_relog.94979.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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.presence_SUITE.logs/run.2022-03-07_16.04.59/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@333794cb5a72.2022-03-07_15.57.24"

=== Started at 2022-03-07 16:05:00


*** CT 2022-03-07 16:05:00.785 *** View log from node mongooseim@localhost when started mongooseim@localhost_1444.html
*** CT 2022-03-07 16:05:00.785 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-07 16:05:00.797 ***
alicE_subscribe_relog_1702@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 2022-03-07 16:05:00.798 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8696ddd0f7c407d7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.798 ***
alicE_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.798 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV9yZWxvZ18xNzAyAG1hdHlncnlzYQ==</auth>



*** User 2022-03-07 16:05:00.799 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:00.799 ***
alicE_subscribe_relog_1702@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 2022-03-07 16:05:00.800 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eeecc7b07fd761ee' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.800 ***
alicE_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.800 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<iq type='set' id='a5196676c42bc6f716f439081d6199da'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.800 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<iq id='a5196676c42bc6f716f439081d6199da' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_subscribe_relog_1702@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.800 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<iq type='set' id='e4be1ba732becdba4c8b4db78273af84'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.801 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<iq type='result' id='e4be1ba732becdba4c8b4db78273af84'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.801 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:00.802 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<presence from='alicE_subscribe_relog_1702@domain.example.com/res1' to='alice_subscribe_relog_1702@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:00.802 ***
bOb_subscribe_relog_1702@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 2022-03-07 16:05:00.803 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac48958dd21dfd8e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.803 ***
bOb_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.803 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTcwMgBtYWtyb2xpa2E=</auth>



*** User 2022-03-07 16:05:00.804 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:00.804 ***
bOb_subscribe_relog_1702@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 2022-03-07 16:05:00.804 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e0db577d4655696' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
<iq type='set' id='e982fa55525b3e25a41d523f2ba8c5cc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<iq id='e982fa55525b3e25a41d523f2ba8c5cc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_subscribe_relog_1702@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
<iq type='set' id='0c5127a1df143abacbfe084032e50e4c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<iq type='result' id='0c5127a1df143abacbfe084032e50e4c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.805 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:00.807 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<presence from='bOb_subscribe_relog_1702@domain.example.com/res1' to='bob_subscribe_relog_1702@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:00.807 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<iq type='set' id='817571b5be3869527fe95336a8374709'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb_subscribe_relog_1702@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-07 16:05:00.812 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<iq from='alicE_subscribe_relog_1702@domain.example.com' to='alicE_subscribe_relog_1702@domain.example.com/res1' id='push72787c089ce4bfc1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_relog_1702@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-07 16:05:00.812 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<iq from='alicE_subscribe_relog_1702@domain.example.com' to='alicE_subscribe_relog_1702@domain.example.com/res1' id='817571b5be3869527fe95336a8374709' type='result'/>



*** User 2022-03-07 16:05:00.812 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<iq to='alicE_subscribe_relog_1702@domain.example.com' id='push72787c089ce4bfc1' type='result'/>



*** User 2022-03-07 16:05:00.812 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<presence type='subscribe' to='bOb_subscribe_relog_1702@domain.example.com'/>



*** User 2022-03-07 16:05:00.817 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
<iq from='alicE_subscribe_relog_1702@domain.example.com' to='alicE_subscribe_relog_1702@domain.example.com/res1' id='pusha0e31b11b46c25e4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_relog_1702@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-07 16:05:00.817 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
<iq to='alicE_subscribe_relog_1702@domain.example.com' id='pusha0e31b11b46c25e4' type='result'/>



*** User 2022-03-07 16:05:00.818 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<presence from='alicE_subscribe_relog_1702@domain.example.com' to='bOb_subscribe_relog_1702@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-03-07 16:05:00.818 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:00.819 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c735b0c9b0c502bb' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.819 ***
bOb_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.819 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTcwMgBtYWtyb2xpa2E=</auth>



*** User 2022-03-07 16:05:00.821 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:00.821 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:00.821 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00417e0cb9add238' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/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-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<iq type='set' id='57ccf839d68adaa28a40d85c4f9f5baa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>newbob</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<iq id='57ccf839d68adaa28a40d85c4f9f5baa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_subscribe_relog_1702@domain.example.com/newbob</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<iq type='set' id='6359e35725ea2f33b56b84d555d28f16'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<iq type='result' id='6359e35725ea2f33b56b84d555d28f16'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:00.822 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
<presence/>



*** User 2022-03-07 16:05:00.824 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
<presence from='bOb_subscribe_relog_1702@domain.example.com/newbob' to='bob_subscribe_relog_1702@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:00.824 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<presence from='alice_subscribe_relog_1702@domain.example.com' to='bOb_subscribe_relog_1702@domain.example.com' type='subscribe'>
	<status/>
</presence>



*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<presence from='bOb_subscribe_relog_1702@domain.example.com/newbob' to='bob_subscribe_relog_1702@domain.example.com/newbob' xml:lang='en'/>



*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
<presence from='bob_subscribe_relog_1702@domain.example.com/res1' to='bOb_subscribe_relog_1702@domain.example.com/newbob' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-03-07T16:05:00Z' from='bob_subscribe_relog_1702@domain.example.com/res1'/>
</presence>



*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/newbob out
</stream:stream>

*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/newbob in
</stream:stream>

*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
<presence type='unsubscribed' to='alicE_subscribe_relog_1702@domain.example.com'/>



*** User 2022-03-07 16:05:00.825 ***
bOb_subscribe_relog_1702@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:00.830 ***
bOb_subscribe_relog_1702@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-07 16:05:00.830 ***
alicE_subscribe_relog_1702@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:00.830 ***
alicE_subscribe_relog_1702@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-07 16:05:00.837 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-07 16:05:00.838 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1444.html



=== Ended at 2022-03-07 16:05:00
=== successfully completed test case
=== === Returned value: ok