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

=== Config value:

    [{watchdog,<0.5203.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"internal_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.33.56/presence_suite.available_direct_then_unavailable.56066.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.33.56/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@34a9b6d2516c.2022-01-27_15.25.07"

=== Started at 2022-01-27 15:33:56


*** CT 2022-01-27 15:33:56.789 *** View log from node mongooseim@localhost when started mongooseim@localhost_4761.html
*** CT 2022-01-27 15:33:56.804 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2357.html

*** User 2022-01-27 15:33:56.858 ***
alicE_available_direct_then_unavailable_1040@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-01-27 15:33:56.859 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6a499ba779b7da25' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:56.859 ***
alicE_available_direct_then_unavailable_1040@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-01-27 15:33:56.859 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2F2YWlsYWJsZV9kaXJlY3RfdGhlbl91bmF2YWlsYWJsZV8xMDQwAG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:33:56.859 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:33:56.859 ***
alicE_available_direct_then_unavailable_1040@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-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6765639468472a71' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@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-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<iq type='set' id='fc3038adc14b47d0b35e3c8c864ee144'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<iq id='fc3038adc14b47d0b35e3c8c864ee144' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_available_direct_then_unavailable_1040@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<iq type='set' id='c741cf85ba755af73b61d3721a925b1d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:56.860 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<iq type='result' id='c741cf85ba755af73b61d3721a925b1d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:56.861 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<presence/>



*** User 2022-01-27 15:33:56.861 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
<presence from='alicE_available_direct_then_unavailable_1040@localhost/res1' to='alice_available_direct_then_unavailable_1040@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:56.862 ***
bOb_available_direct_then_unavailable_1040@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-01-27 15:33:56.862 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c319f731218e837' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:56.863 ***
bOb_available_direct_then_unavailable_1040@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-01-27 15:33:56.863 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hdmFpbGFibGVfZGlyZWN0X3RoZW5fdW5hdmFpbGFibGVfMTA0MABtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:33:56.863 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:33:56.863 ***
bOb_available_direct_then_unavailable_1040@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-01-27 15:33:56.863 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cf98067d68f7e497' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@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-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 out
<iq type='set' id='d821281084fa53d466f0dc0e92bfc614'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<iq id='d821281084fa53d466f0dc0e92bfc614' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_available_direct_then_unavailable_1040@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 out
<iq type='set' id='2397e8fe506bfe4a286f875b0887990e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<iq type='result' id='2397e8fe506bfe4a286f875b0887990e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:56.864 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 out
<presence/>



*** User 2022-01-27 15:33:56.865 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<presence from='bOb_available_direct_then_unavailable_1040@localhost/res1' to='bob_available_direct_then_unavailable_1040@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:56.865 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<presence to='bOb_available_direct_then_unavailable_1040@localhost/res1'/>



*** User 2022-01-27 15:33:56.865 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<presence from='alicE_available_direct_then_unavailable_1040@localhost/res1' to='bOb_available_direct_then_unavailable_1040@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:56.865 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-27 15:33:56.867 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
<presence from='alicE_available_direct_then_unavailable_1040@localhost/res1' to='bob_available_direct_then_unavailable_1040@localhost/res1' xml:lang='en' type='unavailable'/>



*** User 2022-01-27 15:33:56.867 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:33:56.867 ***
bOb_available_direct_then_unavailable_1040@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:33:56.867 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:33:56.868 ***
alicE_available_direct_then_unavailable_1040@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:33:56.901 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2357.html
*** CT 2022-01-27 15:33:56.904 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4762.html



=== Ended at 2022-01-27 15:33:56
=== successfully completed test case
=== === Returned value: ok