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

=== Config value:

    [{watchdog,<0.23236.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.negative_priority_presence.99459.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@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:44


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

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

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



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



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

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



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



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



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



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



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



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

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



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



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

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



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



*** User 2022-02-02 15:14:44.250 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 out
<iq type='set' id='41911146f537f3004119d87a705d68ab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:44.251 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 in
<iq type='result' id='41911146f537f3004119d87a705d68ab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:44.251 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 out
<presence/>



*** User 2022-02-02 15:14:44.252 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 in
<presence from='alicE_negative_priority_presence_1554@domain.example.com/res2' to='alice_negative_priority_presence_1554@domain.example.com/res2' xml:lang='en'/>



*** User 2022-02-02 15:14:44.252 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 in
<presence from='alice_negative_priority_presence_1554@domain.example.com/res1' to='alicE_negative_priority_presence_1554@domain.example.com/res2' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-02-02T15:14:44Z' from='alice_negative_priority_presence_1554@domain.example.com/res1'/>
</presence>



*** User 2022-02-02 15:14:44.252 ***
alicE_negative_priority_presence_1554@domain.example.com/res1 in
<presence from='alicE_negative_priority_presence_1554@domain.example.com/res2' to='alice_negative_priority_presence_1554@domain.example.com/res1' xml:lang='en'/>



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

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



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



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

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



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



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



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



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



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



*** User 2022-02-02 15:14:44.255 ***
alicE_negative_priority_presence_1554@domain.example.com/res1 out
<presence>
	<priority>-10</priority>
</presence>



*** User 2022-02-02 15:14:44.256 ***
alicE_negative_priority_presence_1554@domain.example.com/res1 in
<presence from='alicE_negative_priority_presence_1554@domain.example.com/res1' to='alice_negative_priority_presence_1554@domain.example.com/res1' xml:lang='en'>
	<priority>-10</priority>
</presence>



*** User 2022-02-02 15:14:44.256 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 in
<presence from='alicE_negative_priority_presence_1554@domain.example.com/res1' to='alice_negative_priority_presence_1554@domain.example.com/res2' xml:lang='en'>
	<priority>-10</priority>
</presence>



*** User 2022-02-02 15:14:44.256 ***
bOb_negative_priority_presence_1554@domain.example.com/res1 out
<message to='alicE_negative_priority_presence_1554@domain.example.com' type='chat'>
	<body>Hi.</body>
</message>



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

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

*** User 2022-02-02 15:14:45.257 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 out
</stream:stream>

*** User 2022-02-02 15:14:45.258 ***
alicE_negative_priority_presence_1554@domain.example.com/res2 in
</stream:stream>

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

*** User 2022-02-02 15:14:45.258 ***
alicE_negative_priority_presence_1554@domain.example.com/res1 in
</stream:stream>
*** CT 2022-02-02 15:14:45.259 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_628.html
*** CT 2022-02-02 15:14:45.260 *** 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