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

=== Config value:

    [{watchdog,<0.26726.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.presence_SUITE.logs/run.2022-03-18_10.57.59/presence_suite.negative_priority_presence.70788.html"},
     {tc_group_properties,[{name,presence_priority},
                           {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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.presence_SUITE.logs/run.2022-03-18_10.57.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@a072b68d2bee.2022-03-18_10.50.04"

=== Started at 2022-03-18 10:57:59


*** CT 2022-03-18 10:57:59.659 *** View log from node mongooseim@localhost when started mongooseim@localhost_1480.html
*** CT 2022-03-18 10:57:59.662 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-18 10:57:59.671 ***
alicE_negative_priority_presence_1924@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-18 10:57:59.671 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1d721378e44645d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.671 ***
alicE_negative_priority_presence_1924@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-18 10:57:59.671 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX25lZ2F0aXZlX3ByaW9yaXR5X3ByZXNlbmNlXzE5MjQAbWF0eWdyeXNh</auth>



*** User 2022-03-18 10:57:59.672 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:57:59.673 ***
alicE_negative_priority_presence_1924@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-18 10:57:59.673 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d76c160c5c9ad4c9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.673 ***
alicE_negative_priority_presence_1924@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-18 10:57:59.673 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
<iq type='set' id='e8b97fc24140baf468d6473c0c741ab6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.676 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<iq id='e8b97fc24140baf468d6473c0c741ab6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_negative_priority_presence_1924@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.677 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
<iq type='set' id='126fbad46079a0bd8b4a3005db7e5b90'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.677 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<iq type='result' id='126fbad46079a0bd8b4a3005db7e5b90'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.677 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
<presence/>



*** User 2022-03-18 10:57:59.679 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<presence from='alicE_negative_priority_presence_1924@domain.example.com/res1' to='alice_negative_priority_presence_1924@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:57:59.680 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 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-18 10:57:59.680 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='661ed41c40b893cf' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.681 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 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-18 10:57:59.681 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX25lZ2F0aXZlX3ByaW9yaXR5X3ByZXNlbmNlXzE5MjQAbWF0eWdyeXNh</auth>



*** User 2022-03-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 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-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='880043fa81426872' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 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-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 out
<iq type='set' id='251af930706b770c9a3ea20cc4653d38'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.682 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<iq id='251af930706b770c9a3ea20cc4653d38' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_negative_priority_presence_1924@domain.example.com/res2</jid>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.683 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 out
<iq type='set' id='1a2089776ee5811c82a121356dbfeba0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.683 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<iq type='result' id='1a2089776ee5811c82a121356dbfeba0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.683 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 out
<presence/>



*** User 2022-03-18 10:57:59.684 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<presence from='alicE_negative_priority_presence_1924@domain.example.com/res2' to='alice_negative_priority_presence_1924@domain.example.com/res2' xml:lang='en'/>



*** User 2022-03-18 10:57:59.684 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<presence from='alice_negative_priority_presence_1924@domain.example.com/res1' to='alicE_negative_priority_presence_1924@domain.example.com/res2' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-03-18T10:57:59Z' from='alice_negative_priority_presence_1924@domain.example.com/res1'/>
</presence>



*** User 2022-03-18 10:57:59.684 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<presence from='alicE_negative_priority_presence_1924@domain.example.com/res2' to='alice_negative_priority_presence_1924@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:57:59.685 ***
bOb_negative_priority_presence_1924@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-18 10:57:59.685 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d63759e36a1e9648' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.685 ***
bOb_negative_priority_presence_1924@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-18 10:57:59.686 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9uZWdhdGl2ZV9wcmlvcml0eV9wcmVzZW5jZV8xOTI0AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-18 10:57:59.686 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:57:59.686 ***
bOb_negative_priority_presence_1924@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-18 10:57:59.687 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7380041dbbde18c9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:57:59.687 ***
bOb_negative_priority_presence_1924@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-18 10:57:59.687 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
<iq type='set' id='e09a6f6ae9e7e9d6094917dfc9c5bcf1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.687 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<iq id='e09a6f6ae9e7e9d6094917dfc9c5bcf1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_negative_priority_presence_1924@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:57:59.687 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
<iq type='set' id='806a9a102a4a0cc83a9ea9128b4fb9e9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.688 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<iq type='result' id='806a9a102a4a0cc83a9ea9128b4fb9e9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:57:59.688 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
<presence/>



*** User 2022-03-18 10:57:59.689 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
<presence from='bOb_negative_priority_presence_1924@domain.example.com/res1' to='bob_negative_priority_presence_1924@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:57:59.689 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
<presence>
	<priority>-10</priority>
</presence>



*** User 2022-03-18 10:57:59.689 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
<presence from='alicE_negative_priority_presence_1924@domain.example.com/res1' to='alice_negative_priority_presence_1924@domain.example.com/res1' xml:lang='en'>
	<priority>-10</priority>
</presence>



*** User 2022-03-18 10:57:59.690 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
<presence from='alicE_negative_priority_presence_1924@domain.example.com/res1' to='alice_negative_priority_presence_1924@domain.example.com/res2' xml:lang='en'>
	<priority>-10</priority>
</presence>



*** User 2022-03-18 10:57:59.690 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
<message to='alicE_negative_priority_presence_1924@domain.example.com' type='chat'>
	<body>Hi.</body>
</message>



*** User 2022-03-18 10:58:00.691 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-18 10:58:00.691 ***
bOb_negative_priority_presence_1924@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-18 10:58:00.691 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 out
</stream:stream>

*** User 2022-03-18 10:58:00.692 ***
alicE_negative_priority_presence_1924@domain.example.com/res2 in
</stream:stream>

*** User 2022-03-18 10:58:00.692 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-18 10:58:00.692 ***
alicE_negative_priority_presence_1924@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-18 10:58:00.694 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-18 10:58:00.695 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1480.html



=== Ended at 2022-03-18 10:58:00
=== successfully completed test case
=== === Returned value: ok