=== Test case: inbox_SUITE:timestamp_is_updated_on_new_message/1 (click for source code)

=== Config value:

    [{watchdog,<0.35866.0>},
     {inbox_opts,#{iqdisc => no_queue,
                   groupchat => [muclight],
                   max_result_limit => infinity,backend => rdbms_async,
                   boxes => [<<"inbox">>,<<"archive">>,<<"bin">>,<<"other">>],
                   bin_ttl => 30,bin_clean_after => 3600000,
                   async_writer => #{pool_size => 1},
                   delete_domain_limit => infinity,
                   reset_markers => [<<"displayed">>],
                   aff_changes => true,remove_on_kicked => true}},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/inbox_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.inbox_SUITE.logs/run.2024-03-13_08.23.19/inbox_suite.timestamp_is_updated_on_new_message.59395.html"},
     {tc_group_properties,[{name,timestamps},parallel]},
     {tc_group_path,[[{name,async_pools}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/inbox_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07/big_tests.tests.inbox_SUITE.logs/run.2024-03-13_08.23.19/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@05491d0c2b35.2024-03-13_08.15.07"

=== Started at 2024-03-13 08:23:28


*** CT 2024-03-13 08:23:28.538 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1793.html

*** User 2024-03-13 08:23:28.561 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-13 08:23:28.564 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b915bc450477d3e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-13 08:23:28.564 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-13 08:23:28.564 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3RpbWVzdGFtcF9pc191cGRhdGVkX29uX25ld19tZXNzYWdlXzE1MjYAbWF0eWdyeXNh</auth>



*** User 2024-03-13 08:23:28.566 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-13 08:23:28.566 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-13 08:23:28.566 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='98818be343f4a3a3' from='localhost' version='1.0' xml:lang='en' to='alice_timestamp_is_updated_on_new_message_1526@localhost'>

*** User 2024-03-13 08:23:28.567 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-13 08:23:28.567 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='156292a3b9419845ff6c1842fac6fe49'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-13 08:23:28.567 ***🔗
alicE_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq id='156292a3b9419845ff6c1842fac6fe49' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_timestamp_is_updated_on_new_message_1526@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-13 08:23:28.568 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='30acd90418f8578d95444ee43e771801'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-13 08:23:28.572 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq from='localhost' to='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' id='30acd90418f8578d95444ee43e771801' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-13 08:23:28.574 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<presence/>



*** User 2024-03-13 08:23:28.590 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<presence from='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' to='alice_timestamp_is_updated_on_new_message_1526@localhost/res1'/>



*** User 2024-03-13 08:23:28.591 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-13 08:23:28.591 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59ae6097323c0dd3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-13 08:23:28.591 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-13 08:23:28.591 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl90aW1lc3RhbXBfaXNfdXBkYXRlZF9vbl9uZXdfbWVzc2FnZV8xNTI2AG1ha3JvbGlrYQ==</auth>



*** User 2024-03-13 08:23:28.592 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-13 08:23:28.593 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-13 08:23:28.594 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64a93f6bf0b791b8' from='localhost' version='1.0' xml:lang='en' to='bob_timestamp_is_updated_on_new_message_1526@localhost'>

*** User 2024-03-13 08:23:28.594 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-13 08:23:28.594 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='7ce6897592481ea0b9fc94d5a3122c20'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-13 08:23:28.595 ***🔗
bOb_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq id='7ce6897592481ea0b9fc94d5a3122c20' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_timestamp_is_updated_on_new_message_1526@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-13 08:23:28.595 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='73fc3b4c9206f0976c8967cca88057c7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-13 08:23:28.596 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq from='localhost' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' id='73fc3b4c9206f0976c8967cca88057c7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-13 08:23:28.596 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<presence/>



*** User 2024-03-13 08:23:28.604 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<presence from='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1'/>



*** User 2024-03-13 08:23:28.604 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<message type='chat' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1'>
	<body>Hello Bob</body>
</message>



*** User 2024-03-13 08:23:28.609 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<message from='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' type='chat'>
	<body>Hello Bob</body>
</message>



*** User 2024-03-13 08:23:28.609 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='ce5ae498a8cff4a66102f181c7b02308'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2024-03-13 08:23:28.615 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<message from='bob_timestamp_is_updated_on_new_message_1526@localhost' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' id='1710-318208-612182'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='1' queryid='ce5ae498a8cff4a66102f181c7b02308'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-13T08:23:28.604960Z'/>
			<message from='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' type='chat' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1'>
				<body>Hello Bob</body>
			</message>
		</forwarded>
		<read>false</read>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2024-03-13 08:23:28.615 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq from='bob_timestamp_is_updated_on_new_message_1526@localhost' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' id='ce5ae498a8cff4a66102f181c7b02308' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first>1710318208604960/YWxpY2VfdGltZXN0YW1wX2lzX3VwZGF0ZWRfb25fbmV3X21lc3NhZ2VfMTUyNkBsb2NhbGhvc3Q=</first>
			<last>1710318208604960/YWxpY2VfdGltZXN0YW1wX2lzX3VwZGF0ZWRfb25fbmV3X21lc3NhZ2VfMTUyNkBsb2NhbGhvc3Q=</last>
		</set>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>1</unread-messages>
	</fin>
</iq>



*** User 2024-03-13 08:23:28.616 ***🔗
waiting for inbox_size is done in 0 miliseconds

*** User 2024-03-13 08:23:28.616 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<message type='chat' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1'>
	<body>Are you there?</body>
</message>



*** User 2024-03-13 08:23:28.623 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<message from='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' type='chat'>
	<body>Are you there?</body>
</message>



*** User 2024-03-13 08:23:28.624 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 out
<iq type='set' id='96ef9cca35f8127c6ab7f737516e34ac'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2024-03-13 08:23:28.626 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<message from='bob_timestamp_is_updated_on_new_message_1526@localhost' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' id='1710-318208-625520'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='2' queryid='96ef9cca35f8127c6ab7f737516e34ac'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-13T08:23:28.616566Z'/>
			<message from='alice_timestamp_is_updated_on_new_message_1526@localhost/res1' type='chat' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1'>
				<body>Are you there?</body>
			</message>
		</forwarded>
		<read>false</read>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2024-03-13 08:23:28.626 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
<iq from='bob_timestamp_is_updated_on_new_message_1526@localhost' to='bob_timestamp_is_updated_on_new_message_1526@localhost/res1' id='96ef9cca35f8127c6ab7f737516e34ac' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first>1710318208616566/YWxpY2VfdGltZXN0YW1wX2lzX3VwZGF0ZWRfb25fbmV3X21lc3NhZ2VfMTUyNkBsb2NhbGhvc3Q=</first>
			<last>1710318208616566/YWxpY2VfdGltZXN0YW1wX2lzX3VwZGF0ZWRfb25fbmV3X21lc3NhZ2VfMTUyNkBsb2NhbGhvc3Q=</last>
		</set>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>2</unread-messages>
	</fin>
</iq>



*** User 2024-03-13 08:23:28.629 ***🔗
waiting for inbox_size is done in 0 miliseconds

*** User 2024-03-13 08:23:28.629 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 out
</stream:stream>

*** User 2024-03-13 08:23:28.629 ***🔗
bob_timestamp_is_updated_on_new_message_1526@localhost/res1 in
</stream:stream>

*** User 2024-03-13 08:23:28.630 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 out
</stream:stream>

*** User 2024-03-13 08:23:28.631 ***🔗
alice_timestamp_is_updated_on_new_message_1526@localhost/res1 in
</stream:stream>
*** CT 2024-03-13 08:23:28.637 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1793.html



=== Ended at 2024-03-13 08:23:28
=== successfully completed test case
=== === Returned value: ok