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

=== Config value:

    [{watchdog,<0.30709.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.presence_SUITE.logs/run.2022-05-25_09.13.01/presence_suite.subscribe_relog.112131.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.presence_SUITE.logs/run.2022-05-25_09.13.01/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@f0b09cc3aef4.2022-05-25_09.03.38"

=== Started at 2022-05-25 09:13:03


*** CT 2022-05-25 09:13:03.390 *** View log from node mongooseim@localhost when started mongooseim@localhost_2328.html
*** CT 2022-05-25 09:13:03.391 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_520.html

*** User 2022-05-25 09:13:03.413 ***
alicE_subscribe_relog_1981@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-05-25 09:13:03.413 ***
alicE_subscribe_relog_1981@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eaa171679469b6c0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.413 ***
alicE_subscribe_relog_1981@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-05-25 09:13:03.413 ***
alicE_subscribe_relog_1981@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV9yZWxvZ18xOTgxAG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@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-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4caa95a85e3087c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@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-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@domain.example.com/res1 out
<iq type='set' id='eaa64ae2c1f08fa614271f3a89c70bfb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.415 ***
alicE_subscribe_relog_1981@domain.example.com/res1 in
<iq id='eaa64ae2c1f08fa614271f3a89c70bfb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_relog_1981@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.415 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<iq type='set' id='c25e9fddc964e82c29a94014fc20f2e5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.416 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
<iq type='result' id='c25e9fddc964e82c29a94014fc20f2e5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.416 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:03.417 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
<presence from='alice_subscribe_relog_1981@domain.example.com/res1' to='alice_subscribe_relog_1981@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:03.421 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.421 ***
bOb_subscribe_relog_1981@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ced122611c1c9482' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.422 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.422 ***
bOb_subscribe_relog_1981@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTk4MQBtYWtyb2xpa2E=</auth>



*** User 2022-05-25 09:13:03.422 ***
bOb_subscribe_relog_1981@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:03.422 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.423 ***
bOb_subscribe_relog_1981@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='571de58ff5b1e62e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.423 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.423 ***
bOb_subscribe_relog_1981@domain.example.com/res1 out
<iq type='set' id='74189bcd7e7ad033860392066c334294'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.423 ***
bOb_subscribe_relog_1981@domain.example.com/res1 in
<iq id='74189bcd7e7ad033860392066c334294' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_relog_1981@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.423 ***
bob_subscribe_relog_1981@domain.example.com/res1 out
<iq type='set' id='2579a27a45a4b2fbc43496ecb8aebf8d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.423 ***
bob_subscribe_relog_1981@domain.example.com/res1 in
<iq type='result' id='2579a27a45a4b2fbc43496ecb8aebf8d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.424 ***
bob_subscribe_relog_1981@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:03.425 ***
bob_subscribe_relog_1981@domain.example.com/res1 in
<presence from='bob_subscribe_relog_1981@domain.example.com/res1' to='bob_subscribe_relog_1981@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:03.425 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<iq type='set' id='229233a95f324613b8b370b4debb5a04'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_relog_1981@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 09:13:03.429 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
<iq from='alice_subscribe_relog_1981@domain.example.com' to='alice_subscribe_relog_1981@domain.example.com/res1' id='pushffd7e3bcc1bb23e9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_relog_1981@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 09:13:03.430 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
<iq from='alice_subscribe_relog_1981@domain.example.com' to='alice_subscribe_relog_1981@domain.example.com/res1' id='229233a95f324613b8b370b4debb5a04' type='result'/>



*** User 2022-05-25 09:13:03.430 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<iq to='alice_subscribe_relog_1981@domain.example.com' id='pushffd7e3bcc1bb23e9' type='result'/>



*** User 2022-05-25 09:13:03.430 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_relog_1981@domain.example.com'/>



*** User 2022-05-25 09:13:03.436 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
<iq from='alice_subscribe_relog_1981@domain.example.com' to='alice_subscribe_relog_1981@domain.example.com/res1' id='push0956008645e4d7f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_relog_1981@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 09:13:03.436 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
<iq to='alice_subscribe_relog_1981@domain.example.com' id='push0956008645e4d7f4' type='result'/>



*** User 2022-05-25 09:13:03.436 ***
bob_subscribe_relog_1981@domain.example.com/res1 in
<presence from='alice_subscribe_relog_1981@domain.example.com' to='bob_subscribe_relog_1981@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-05-25 09:13:03.436 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.463 ***
bOb_subscribe_relog_1981@domain.example.com/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49eb8158d3af3f81' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.463 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.463 ***
bOb_subscribe_relog_1981@domain.example.com/newbob out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfcmVsb2dfMTk4MQBtYWtyb2xpa2E=</auth>



*** User 2022-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@domain.example.com/newbob in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@domain.example.com/newbob in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2042dfa8d279d491' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@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-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@domain.example.com/newbob out
<iq type='set' id='2b330005ba033d3d5cd1e561aa2dc0f3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>newbob</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.464 ***
bOb_subscribe_relog_1981@domain.example.com/newbob in
<iq id='2b330005ba033d3d5cd1e561aa2dc0f3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_relog_1981@domain.example.com/newbob</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:03.464 ***
bob_subscribe_relog_1981@domain.example.com/newbob out
<iq type='set' id='f0d43b8a4ac4c4387ba91d70c9090210'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.465 ***
bob_subscribe_relog_1981@domain.example.com/newbob in
<iq type='result' id='f0d43b8a4ac4c4387ba91d70c9090210'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:03.465 ***
bob_subscribe_relog_1981@domain.example.com/newbob out
<presence/>



*** User 2022-05-25 09:13:03.467 ***
bob_subscribe_relog_1981@domain.example.com/res1 in
<presence from='bob_subscribe_relog_1981@domain.example.com/newbob' to='bob_subscribe_relog_1981@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:03.467 ***
bob_subscribe_relog_1981@domain.example.com/newbob in
<presence from='alice_subscribe_relog_1981@domain.example.com' to='bob_subscribe_relog_1981@domain.example.com' type='subscribe'>
	<status/>
</presence>



*** User 2022-05-25 09:13:03.467 ***
bob_subscribe_relog_1981@domain.example.com/newbob in
<presence from='bob_subscribe_relog_1981@domain.example.com/newbob' to='bob_subscribe_relog_1981@domain.example.com/newbob' xml:lang='en'/>



*** User 2022-05-25 09:13:03.467 ***
bob_subscribe_relog_1981@domain.example.com/newbob in
<presence from='bob_subscribe_relog_1981@domain.example.com/res1' to='bob_subscribe_relog_1981@domain.example.com/newbob' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-25T09:13:03Z' from='bob_subscribe_relog_1981@domain.example.com/res1'/>
</presence>



*** User 2022-05-25 09:13:03.467 ***
bob_subscribe_relog_1981@domain.example.com/newbob out
</stream:stream>

*** User 2022-05-25 09:13:03.468 ***
bob_subscribe_relog_1981@domain.example.com/newbob in
</stream:stream>

*** User 2022-05-25 09:13:03.468 ***
bob_subscribe_relog_1981@domain.example.com/res1 out
<presence type='unsubscribed' to='alice_subscribe_relog_1981@domain.example.com'/>



*** User 2022-05-25 09:13:03.468 ***
bob_subscribe_relog_1981@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:03.486 ***
bob_subscribe_relog_1981@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-25 09:13:03.486 ***
alice_subscribe_relog_1981@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:03.486 ***
alice_subscribe_relog_1981@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-25 09:13:03.489 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_520.html
*** CT 2022-05-25 09:13:03.490 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2328.html



=== Ended at 2022-05-25 09:13:03
=== successfully completed test case
=== === Returned value: ok