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

=== Config value:

    [{watchdog,<0.13254.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/presence_suite.available_direct_then_unavailable.65410.html"},
     {tc_group_properties,[{name,presence},{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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09"

=== Started at 2022-05-25 10:49:16


*** CT 2022-05-25 10:49:16.796 *** View log from node mongooseim@localhost when started mongooseim@localhost_4887.html
*** CT 2022-05-25 10:49:16.797 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1997.html

*** User 2022-05-25 10:49:16.807 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:16.808 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5422e0cfdec93a4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:16.808 ***
alicE_available_direct_then_unavailable_1240@localhost/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 10:49:16.808 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2F2YWlsYWJsZV9kaXJlY3RfdGhlbl91bmF2YWlsYWJsZV8xMjQwAG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 10:49:16.810 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:16.810 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:16.810 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='393b73f09c7392c4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:16.810 ***
alicE_available_direct_then_unavailable_1240@localhost/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 10:49:16.810 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 out
<iq type='set' id='fcc0b26c395831442b151d78c6e6d39f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:16.811 ***
alicE_available_direct_then_unavailable_1240@localhost/res1 in
<iq id='fcc0b26c395831442b151d78c6e6d39f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_available_direct_then_unavailable_1240@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:16.811 ***
alice_available_direct_then_unavailable_1240@localhost/res1 out
<iq type='set' id='70ede2787031a6b0f1a59014929859d1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:16.811 ***
alice_available_direct_then_unavailable_1240@localhost/res1 in
<iq type='result' id='70ede2787031a6b0f1a59014929859d1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:16.811 ***
alice_available_direct_then_unavailable_1240@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:16.875 ***
alice_available_direct_then_unavailable_1240@localhost/res1 in
<presence from='alice_available_direct_then_unavailable_1240@localhost/res1' to='alice_available_direct_then_unavailable_1240@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:16.875 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:16.876 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e29dd43c006a92d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:16.876 ***
bOb_available_direct_then_unavailable_1240@localhost/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 10:49:16.876 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hdmFpbGFibGVfZGlyZWN0X3RoZW5fdW5hdmFpbGFibGVfMTI0MABtYWtyb2xpa2E=</auth>



*** User 2022-05-25 10:49:16.877 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:16.878 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 10:49:16.878 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e36a078d0152d68e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:16.878 ***
bOb_available_direct_then_unavailable_1240@localhost/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 10:49:16.878 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 out
<iq type='set' id='86826ba45e1ff21a6d343dac83c2fc9a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:16.879 ***
bOb_available_direct_then_unavailable_1240@localhost/res1 in
<iq id='86826ba45e1ff21a6d343dac83c2fc9a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_available_direct_then_unavailable_1240@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:16.879 ***
bob_available_direct_then_unavailable_1240@localhost/res1 out
<iq type='set' id='63fbaa08a87e2440237b5f63e6f52345'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:16.879 ***
bob_available_direct_then_unavailable_1240@localhost/res1 in
<iq type='result' id='63fbaa08a87e2440237b5f63e6f52345'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:16.879 ***
bob_available_direct_then_unavailable_1240@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:16.881 ***
bob_available_direct_then_unavailable_1240@localhost/res1 in
<presence from='bob_available_direct_then_unavailable_1240@localhost/res1' to='bob_available_direct_then_unavailable_1240@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:16.881 ***
alice_available_direct_then_unavailable_1240@localhost/res1 out
<presence to='bob_available_direct_then_unavailable_1240@localhost/res1'/>



*** User 2022-05-25 10:49:16.881 ***
bob_available_direct_then_unavailable_1240@localhost/res1 in
<presence from='alice_available_direct_then_unavailable_1240@localhost/res1' to='bob_available_direct_then_unavailable_1240@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:16.881 ***
alice_available_direct_then_unavailable_1240@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-05-25 10:49:16.882 ***
bob_available_direct_then_unavailable_1240@localhost/res1 in
<presence from='alice_available_direct_then_unavailable_1240@localhost/res1' to='bob_available_direct_then_unavailable_1240@localhost/res1' xml:lang='en' type='unavailable'/>



*** User 2022-05-25 10:49:16.882 ***
bob_available_direct_then_unavailable_1240@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:16.882 ***
bob_available_direct_then_unavailable_1240@localhost/res1 in
</stream:stream>

*** User 2022-05-25 10:49:16.882 ***
alice_available_direct_then_unavailable_1240@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:16.883 ***
alice_available_direct_then_unavailable_1240@localhost/res1 in
</stream:stream>
*** CT 2022-05-25 10:49:16.895 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1997.html
*** CT 2022-05-25 10:49:16.900 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4888.html



=== Ended at 2022-05-25 10:49:16
=== successfully completed test case
=== === Returned value: ok