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

=== Config value:

    [{watchdog,<0.23402.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.presence_SUITE.logs/run.2022-02-02_15.14.43/presence_suite.remove_unsubscribe.101123.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.presence_SUITE.logs/run.2022-02-02_15.14.43/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@7a520fcf4274.2022-02-02_15.07.36"

=== Started at 2022-02-02 15:14:45


*** CT 2022-02-02 15:14:45.654 *** View log from node mongooseim@localhost when started mongooseim@localhost_2316.html
*** CT 2022-02-02 15:14:45.655 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_628.html

*** User 2022-02-02 15:14:45.662 ***
alicE_remove_unsubscribe_1566@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-02-02 15:14:45.662 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e853e714646dee88' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:45.663 ***
alicE_remove_unsubscribe_1566@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-02-02 15:14:45.663 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3JlbW92ZV91bnN1YnNjcmliZV8xNTY2AG1hdHlncnlzYQ==</auth>



*** User 2022-02-02 15:14:45.663 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@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-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ece73297f6f318c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@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-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='81283b20b2fd40a17069064153933aa2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq id='81283b20b2fd40a17069064153933aa2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_remove_unsubscribe_1566@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:14:45.664 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='6ad046790160a654013a8e3e69e3a6ff'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:45.665 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq type='result' id='6ad046790160a654013a8e3e69e3a6ff'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:45.665 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:14:45.666 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='alicE_remove_unsubscribe_1566@domain.example.com/res1' to='alice_remove_unsubscribe_1566@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:14:45.667 ***
bOb_remove_unsubscribe_1566@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-02-02 15:14:45.667 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6e877c9c2f0749d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:45.667 ***
bOb_remove_unsubscribe_1566@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-02-02 15:14:45.667 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yZW1vdmVfdW5zdWJzY3JpYmVfMTU2NgBtYWtyb2xpa2E=</auth>



*** User 2022-02-02 15:14:45.668 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:14:45.668 ***
bOb_remove_unsubscribe_1566@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-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d4e94c565e45502' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@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-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='d729fb6d0dbe80ba64286cb3e8383653'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq id='d729fb6d0dbe80ba64286cb3e8383653' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_remove_unsubscribe_1566@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='eaf1b492d061efb5ab9dd5d815cff54d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq type='result' id='eaf1b492d061efb5ab9dd5d815cff54d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:45.669 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:14:45.672 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='bOb_remove_unsubscribe_1566@domain.example.com/res1' to='bob_remove_unsubscribe_1566@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:14:45.672 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='02a77771147d6a48e8a20b7880a70736'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb_remove_unsubscribe_1566@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.680 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='push1e1f3ebdd91afbe4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_remove_unsubscribe_1566@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.680 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='02a77771147d6a48e8a20b7880a70736' type='result'/>



*** User 2022-02-02 15:14:45.680 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq to='alicE_remove_unsubscribe_1566@domain.example.com' id='push1e1f3ebdd91afbe4' type='result'/>



*** User 2022-02-02 15:14:45.680 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<presence type='subscribe' to='bOb_remove_unsubscribe_1566@domain.example.com'/>



*** User 2022-02-02 15:14:45.683 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='push62e979458ffde7a6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_remove_unsubscribe_1566@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.683 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq to='alicE_remove_unsubscribe_1566@domain.example.com' id='push62e979458ffde7a6' type='result'/>



*** User 2022-02-02 15:14:45.683 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='alicE_remove_unsubscribe_1566@domain.example.com' to='bOb_remove_unsubscribe_1566@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-02-02 15:14:45.683 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='ad4747ddfdf601ceb30f2807f6b5a9a3'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_remove_unsubscribe_1566@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.685 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='bOb_remove_unsubscribe_1566@domain.example.com' to='bOb_remove_unsubscribe_1566@domain.example.com/res1' id='push84a65a0daf66a0b1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_remove_unsubscribe_1566@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.686 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<iq to='bOb_remove_unsubscribe_1566@domain.example.com' id='push84a65a0daf66a0b1' type='result'/>



*** User 2022-02-02 15:14:45.686 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='bOb_remove_unsubscribe_1566@domain.example.com' to='bOb_remove_unsubscribe_1566@domain.example.com/res1' id='ad4747ddfdf601ceb30f2807f6b5a9a3' type='result'/>



*** User 2022-02-02 15:14:45.686 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
<presence type='subscribed' to='alicE_remove_unsubscribe_1566@domain.example.com'/>



*** User 2022-02-02 15:14:45.691 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='pushcff8020def3c69c0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_remove_unsubscribe_1566@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.691 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='bOb_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' xml:lang='en' type='subscribed'/>



*** User 2022-02-02 15:14:45.691 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='bOb_remove_unsubscribe_1566@domain.example.com/res1' to='alice_remove_unsubscribe_1566@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:14:45.691 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='bOb_remove_unsubscribe_1566@domain.example.com' to='bOb_remove_unsubscribe_1566@domain.example.com/res1' id='push8d4eb3645e8a8a89' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_remove_unsubscribe_1566@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.691 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
<iq type='set' id='8550b193bfd8b797c71b2f6c4f9df2af'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb_remove_unsubscribe_1566@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2022-02-02 15:14:45.694 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='pushf0cb0a0c9cee1de9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' name='Bobby' jid='bob_remove_unsubscribe_1566@domain.example.com'/>
	</query>
</iq>



*** User 2022-02-02 15:14:45.697 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='bOb_remove_unsubscribe_1566@domain.example.com/res1' to='alice_remove_unsubscribe_1566@domain.example.com/res1' type='unavailable'/>



*** User 2022-02-02 15:14:45.697 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='alicE_remove_unsubscribe_1566@domain.example.com' to='alicE_remove_unsubscribe_1566@domain.example.com/res1' id='8550b193bfd8b797c71b2f6c4f9df2af' type='result'/>



*** User 2022-02-02 15:14:45.697 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<iq from='bob_remove_unsubscribe_1566@domain.example.com' to='bob_remove_unsubscribe_1566@domain.example.com/res1' id='push3508fc376a473106' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_remove_unsubscribe_1566@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-02-02 15:14:45.697 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
<presence from='alicE_remove_unsubscribe_1566@domain.example.com' to='bob_remove_unsubscribe_1566@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-02-02 15:14:45.697 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:14:45.697 ***
bOb_remove_unsubscribe_1566@domain.example.com/res1 in
</stream:stream>

*** User 2022-02-02 15:14:45.698 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:14:45.698 ***
alicE_remove_unsubscribe_1566@domain.example.com/res1 in
</stream:stream>
*** CT 2022-02-02 15:14:45.701 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_628.html
*** CT 2022-02-02 15:14:45.702 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2316.html



=== Ended at 2022-02-02 15:14:45
=== successfully completed test case
=== === Returned value: ok