=== Test case: push_SUITE:muclight_no_msg_notifications_if_user_online/1 (click for source code)

=== Config value:

    [{push_opts,[{virtual_pubsub_hosts,[{fqdn,<<"virtual.domain">>}]},
                 {backend,rdbms}]},
     {watchdog,<0.3293.2>},
     {pubsub_host,real},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/push_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.push_SUITE.logs/run.2022-01-25_16.33.24/push_suite.muclight_no_msg_notifications_if_user_online.140930.html"},
     {tc_group_properties,[{name,muclight_msg_notifications},
                           {repeat_until_all_ok,3},
                           parallel]},
     {tc_group_path,[[{name,pubsub_ful},{repeat_until_all_ok,3}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/push_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.push_SUITE.logs/run.2022-01-25_16.33.24/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:33:30


*** CT 2022-01-25 16:33:30.805 *** View log from node mongooseim@localhost when started mongooseim@localhost_5499.html
*** CT 2022-01-25 16:33:30.806 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2377.html

*** User 2022-01-25 16:33:30.817 ***
alicE_unnamed_2088@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-25 16:33:30.818 ***
alicE_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cdc2ec4f9af14b08' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.818 ***
alicE_unnamed_2088@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-25 16:33:30.818 ***
alicE_unnamed_2088@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMjA4OABtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:33:30.819 ***
alicE_unnamed_2088@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:33:30.819 ***
alicE_unnamed_2088@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-25 16:33:30.819 ***
alicE_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f72d77390310bf81' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.819 ***
alicE_unnamed_2088@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-25 16:33:30.819 ***
alicE_unnamed_2088@localhost/res1 out
<iq type='set' id='147ec141047723bc203f0769a73a58e5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.820 ***
alicE_unnamed_2088@localhost/res1 in
<iq id='147ec141047723bc203f0769a73a58e5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_2088@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.820 ***
alicE_unnamed_2088@localhost/res1 out
<iq type='set' id='8f2e9592baf0423a5ed48260920ec219'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.820 ***
alicE_unnamed_2088@localhost/res1 in
<iq type='result' id='8f2e9592baf0423a5ed48260920ec219'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.820 ***
alicE_unnamed_2088@localhost/res1 out
<presence/>



*** User 2022-01-25 16:33:30.822 ***
alicE_unnamed_2088@localhost/res1 in
<presence from='alicE_unnamed_2088@localhost/res1' to='alice_unnamed_2088@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:33:30.822 ***
bOb_unnamed_2088@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-25 16:33:30.822 ***
bOb_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af30739f0f6a3213' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.823 ***
bOb_unnamed_2088@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-25 16:33:30.823 ***
bOb_unnamed_2088@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91bm5hbWVkXzIwODgAbWFrcm9saWth</auth>



*** User 2022-01-25 16:33:30.824 ***
bOb_unnamed_2088@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:33:30.824 ***
bOb_unnamed_2088@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-25 16:33:30.824 ***
bOb_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c67b7355d558983d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.824 ***
bOb_unnamed_2088@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-25 16:33:30.824 ***
bOb_unnamed_2088@localhost/res1 out
<iq type='set' id='de2573fd4af882bd247828c7f60908eb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.825 ***
bOb_unnamed_2088@localhost/res1 in
<iq id='de2573fd4af882bd247828c7f60908eb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_unnamed_2088@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.825 ***
bOb_unnamed_2088@localhost/res1 out
<iq type='set' id='a67ac19dde63190f364fb3876905987a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.825 ***
bOb_unnamed_2088@localhost/res1 in
<iq type='result' id='a67ac19dde63190f364fb3876905987a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.825 ***
bOb_unnamed_2088@localhost/res1 out
<presence/>



*** User 2022-01-25 16:33:30.827 ***
bOb_unnamed_2088@localhost/res1 in
<presence from='bOb_unnamed_2088@localhost/res1' to='bob_unnamed_2088@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:33:30.827 ***
kate_unnamed_2088@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-25 16:33:30.828 ***
kate_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3bdfbc6579176aa8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.828 ***
kate_unnamed_2088@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-25 16:33:30.828 ***
kate_unnamed_2088@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdW5uYW1lZF8yMDg4AG1ha3Jvd2U7cA==</auth>



*** User 2022-01-25 16:33:30.829 ***
kate_unnamed_2088@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:33:30.829 ***
kate_unnamed_2088@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-25 16:33:30.830 ***
kate_unnamed_2088@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d546d49e7eee476e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:33:30.830 ***
kate_unnamed_2088@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-25 16:33:30.830 ***
kate_unnamed_2088@localhost/res1 out
<iq type='set' id='ad871d7ae9b0883b9c1556bc8b379cdc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.830 ***
kate_unnamed_2088@localhost/res1 in
<iq id='ad871d7ae9b0883b9c1556bc8b379cdc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_unnamed_2088@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:33:30.830 ***
kate_unnamed_2088@localhost/res1 out
<iq type='set' id='cee65dd6d389fc546f73b177741b7955'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.831 ***
kate_unnamed_2088@localhost/res1 in
<iq type='result' id='cee65dd6d389fc546f73b177741b7955'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:33:30.832 ***
kate_unnamed_2088@localhost/res1 out
<presence/>



*** User 2022-01-25 16:33:30.834 ***
kate_unnamed_2088@localhost/res1 in
<presence from='kate_unnamed_2088@localhost/res1' to='kate_unnamed_2088@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:33:30.840 ***
alicE_unnamed_2088@localhost/res1 out
<iq type='set' id='f5bef5b32d44f0db6afa4bce5a8719b2'>
	<enable xmlns='urn:xmpp:push:0' jid='pub-sub@muclight_no_msg_notifications_if_user_online_10.815598' node='NodeId'/>
</iq>



*** User 2022-01-25 16:33:30.844 ***
alicE_unnamed_2088@localhost/res1 in
<iq from='alicE_unnamed_2088@localhost' to='alicE_unnamed_2088@localhost/res1' id='f5bef5b32d44f0db6afa4bce5a8719b2' type='result'/>



*** User 2022-01-25 16:33:30.844 ***
kate_unnamed_2088@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-25 16:33:30.844 ***
bOb_unnamed_2088@localhost/res1 out
<message to='room_muclight_no_msg_notifications_if_user_online@muclight.localhost' type='groupchat'>
	<body>Heyah!</body>
</message>



*** User 2022-01-25 16:33:35.845 ***
#{msg_inbox =>
      {messages,
          [{stanza,<0.3347.2>,
               {xmlel,<<"message">>,
                   [{<<"from">>,
                     <<"room_muclight_no_msg_notifications_if_user_online@muclight.localhost/bob_unnamed_2088@localhost">>},
                    {<<"to">>,<<"alice_unnamed_2088@localhost">>},
                    {<<"id">>,<<"1643-128410-845883">>},
                    {<<"type">>,<<"groupchat">>}],
                   [{xmlel,<<"body">>,[],[{xmlcdata,<<"Heyah!">>}]}]},
               #{recv_timestamp => 1643128410853629}},
           {stanza,<0.3352.2>,
               {xmlel,<<"message">>,
                   [{<<"from">>,
                     <<"room_muclight_no_msg_notifications_if_user_online@muclight.localhost/bob_unnamed_2088@localhost">>},
                    {<<"to">>,<<"bob_unnamed_2088@localhost">>},
                    {<<"id">>,<<"1643-128410-845883">>},
                    {<<"type">>,<<"groupchat">>}],
                   [{xmlel,<<"body">>,[],[{xmlcdata,<<"Heyah!">>}]}]},
               #{recv_timestamp => 1643128410855892}}]},
  result => nomatch}

*** User 2022-01-25 16:33:35.846 ***
kate_unnamed_2088@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:33:35.846 ***
kate_unnamed_2088@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:33:35.846 ***
bOb_unnamed_2088@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:33:35.846 ***
bOb_unnamed_2088@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:33:35.846 ***
alicE_unnamed_2088@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:33:35.847 ***
alicE_unnamed_2088@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:33:35.850 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2377.html
*** CT 2022-01-25 16:33:35.851 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5510.html



=== Ended at 2022-01-25 16:33:35
=== successfully completed test case
=== === Returned value: ok