=== 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,mnesia}]},
     {watchdog,<0.10163.1>},
     {pubsub_host,real},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/push_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.push_SUITE.logs/run.2022-01-27_15.34.51/push_suite.muclight_no_msg_notifications_if_user_online.44163.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.push_SUITE.logs/run.2022-01-27_15.34.51/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 => [],mod_sic => [],mod_stream_management => [],
        mod_vcard => [{host,{prefix,<<"vjud.">>}}]}}]

=== 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:34:57


*** CT 2022-01-27 15:34:57.449 *** View log from node mongooseim@localhost when started mongooseim@localhost_4971.html
*** CT 2022-01-27 15:34:57.449 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2357.html

*** User 2022-01-27 15:34:57.455 ***
alicE_unnamed_1236@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:34:57.456 ***
alicE_unnamed_1236@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d0c43e361bf8a0c' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 15:34:57.456 ***
alicE_unnamed_1236@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:34:57.457 ***
alicE_unnamed_1236@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e63fd145ebcd968' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:57.457 ***
alicE_unnamed_1236@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:34:57.457 ***
alicE_unnamed_1236@localhost/res1 out
<iq type='set' id='636352d9ad5e18cf9cda60c8cd18447c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:57.457 ***
alicE_unnamed_1236@localhost/res1 in
<iq id='636352d9ad5e18cf9cda60c8cd18447c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1236@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:57.457 ***
alicE_unnamed_1236@localhost/res1 out
<iq type='set' id='baae53d1c2736929c675e0ed80276b66'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.458 ***
alicE_unnamed_1236@localhost/res1 in
<iq type='result' id='baae53d1c2736929c675e0ed80276b66'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.458 ***
alicE_unnamed_1236@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:57.459 ***
alicE_unnamed_1236@localhost/res1 in
<presence from='alicE_unnamed_1236@localhost/res1' to='alice_unnamed_1236@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:57.459 ***
bOb_unnamed_1236@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:34:57.460 ***
bOb_unnamed_1236@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7210fa0a312726e6' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 15:34:57.460 ***
bOb_unnamed_1236@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:34:57.461 ***
bOb_unnamed_1236@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e13927259cb9833' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-01-27 15:34:57.461 ***
bOb_unnamed_1236@localhost/res1 in
<iq id='d9c61dbc65e578aa615de0f1a7f4360d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_unnamed_1236@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:57.461 ***
bOb_unnamed_1236@localhost/res1 out
<iq type='set' id='bf719eb882fc73afc71d1d4d70bd929d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.462 ***
bOb_unnamed_1236@localhost/res1 in
<iq type='result' id='bf719eb882fc73afc71d1d4d70bd929d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.462 ***
bOb_unnamed_1236@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:57.462 ***
bOb_unnamed_1236@localhost/res1 in
<presence from='bOb_unnamed_1236@localhost/res1' to='bob_unnamed_1236@localhost/res1' xml:lang='en'/>



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

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



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



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

*** User 2022-01-27 15:34:57.465 ***
kate_unnamed_1236@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:34:57.465 ***
kate_unnamed_1236@localhost/res1 out
<iq type='set' id='6c2270d55fcc3f26e07cb95c81bcfa6d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:57.465 ***
kate_unnamed_1236@localhost/res1 in
<iq id='6c2270d55fcc3f26e07cb95c81bcfa6d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_unnamed_1236@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:57.465 ***
kate_unnamed_1236@localhost/res1 out
<iq type='set' id='caf83d8199f23325b0816ed96a4d886e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.465 ***
kate_unnamed_1236@localhost/res1 in
<iq type='result' id='caf83d8199f23325b0816ed96a4d886e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:57.465 ***
kate_unnamed_1236@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:57.466 ***
kate_unnamed_1236@localhost/res1 in
<presence from='kate_unnamed_1236@localhost/res1' to='kate_unnamed_1236@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:57.468 ***
alicE_unnamed_1236@localhost/res1 out
<iq type='set' id='5648f2c2b84df1c2baf22842c918c6bb'>
	<enable xmlns='urn:xmpp:push:0' jid='pub-sub@muclight_no_msg_notifications_if_user_online_97.451796' node='NodeId'/>
</iq>



*** User 2022-01-27 15:34:57.468 ***
alicE_unnamed_1236@localhost/res1 in
<iq from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='5648f2c2b84df1c2baf22842c918c6bb' type='result'/>



*** User 2022-01-27 15:34:57.468 ***
kate_unnamed_1236@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-27 15:34:57.469 ***
bOb_unnamed_1236@localhost/res1 out
<message to='room_muclight_no_msg_notifications_if_user_online@muclight.localhost' type='groupchat'>
	<body>Heyah!</body>
</message>



*** User 2022-01-27 15:35:02.469 ***
#{msg_inbox =>
      {messages,
          [{stanza,<0.10219.1>,
               {xmlel,<<"message">>,
                   [{<<"from">>,
                     <<"room_muclight_no_msg_notifications_if_user_online@muclight.localhost/bob_unnamed_1236@localhost">>},
                    {<<"to">>,<<"alice_unnamed_1236@localhost">>},
                    {<<"id">>,<<"1643-297697-470247">>},
                    {<<"type">>,<<"groupchat">>}],
                   [{xmlel,<<"body">>,[],[{xmlcdata,<<"Heyah!">>}]}]},
               #{recv_timestamp => 1643297697470566}},
           {stanza,<0.10226.1>,
               {xmlel,<<"message">>,
                   [{<<"from">>,
                     <<"room_muclight_no_msg_notifications_if_user_online@muclight.localhost/bob_unnamed_1236@localhost">>},
                    {<<"to">>,<<"bob_unnamed_1236@localhost">>},
                    {<<"id">>,<<"1643-297697-470247">>},
                    {<<"type">>,<<"groupchat">>}],
                   [{xmlel,<<"body">>,[],[{xmlcdata,<<"Heyah!">>}]}]},
               #{recv_timestamp => 1643297697470852}}]},
  result => nomatch}

*** User 2022-01-27 15:35:02.469 ***
kate_unnamed_1236@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:02.469 ***
kate_unnamed_1236@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:35:02.469 ***
bOb_unnamed_1236@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:02.470 ***
bOb_unnamed_1236@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:35:02.470 ***
alicE_unnamed_1236@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:02.470 ***
alicE_unnamed_1236@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:35:02.474 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2357.html
*** CT 2022-01-27 15:35:02.474 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4982.html



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