=== Test case: mam_SUITE:muc_light_chat_markers_are_archived_if_enabled/1 (click for source code)

=== Config value:

    [{basic_group,muc_light},
     {configuration,rdbms_async_cache},
     {wait_for_parallel_writer,[muc,pm]},
     {mam_meta_opts,#{cache =>
                          #{module => internal,strategy => fifo,
                            number_of_segments => 3,time_to_live => 480},
                      backend => rdbms,max_result_limit => 50,
                      send_message => mod_mam_utils,
                      muc => #{host => {prefix,<<"muclight.">>}},
                      pm =>
                          #{archive_groupchats => false,
                            same_mam_id_for_peers => false},
                      is_archivable_message => mod_mam_utils,
                      default_result_limit => 50,
                      enforce_simple_queries => false,
                      archive_chat_markers => false,full_text_search => true,
                      message_retraction => true,
                      async_writer =>
                          #{enabled => true,pool_size => 16,batch_size => 30,
                            flush_interval => 1},
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => true}},
     {watchdog,<0.52244.0>},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mam_SUITE.logs/run.2023-11-17_15.17.13/mam_suite.muc_light_chat_markers_are_archived_if_enabled.152578.html"},
     {tc_group_properties,[{name,rdbms_async_cache_muc_light}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.mam_SUITE.logs/run.2023-11-17_15.17.13/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"localhost">>},max_user_sessions] =>
                          {ok,[#{value => 10,acl => all}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_muc_log =>
            #{dirname => room_jid,outdir => "/tmp/muclogs",
              file_format => html,css_file => false,timezone => local,
              spam_prevention => true,
              top_link => {"/","Home"},
              access_log => muc,dirtype => subdirs},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => cets,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},
        mod_muc =>
            #{access => muc,
              host => {prefix,<<"muc.">>},
              backend => rdbms,online_backend => cets,max_users => 200,
              room_shaper => none,http_auth_pool => none,
              hibernate_timeout => 2000,history_size => 20,
              hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,access_create => muc_create,
              access_admin => none,access_persistent => all,
              default_room =>
                  #{public => true,description => <<>>,title => <<>>,
                    persistent => false,password => <<>>,subject => <<>>,
                    anonymous => true,affiliations => [],
                    allow_change_subj => true,allow_query_users => true,
                    allow_private_messages => true,
                    allow_visitor_status => true,
                    allow_visitor_nickchange => true,public_list => true,
                    moderated => true,members_by_default => true,
                    members_only => false,allow_user_invites => false,
                    allow_multiple_sessions => false,
                    password_protected => false,max_users => 200,
                    maygetmemberlist => [],logging => false,
                    subject_author => <<>>},
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity,min_presence_interval => 0,
              max_users_admin_threshold => 5,user_message_shaper => none,
              user_presence_shaper => none,min_message_interval => 0,
              max_user_conferences => 10,max_room_name => infinity,
              max_room_desc => infinity}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15"

=== Started at 2023-11-17 15:17:55


*** CT 2023-11-17 15:17:55.359 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2020.html

*** User 2023-11-17 15:17:55.405 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:17:55.405 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c756363020ecbeb2' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:17:55.406 ***🔗
alicE@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 2023-11-17 15:17:55.406 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2023-11-17 15:17:55.407 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:17:55.407 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:17:55.407 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bdc39064743a24a' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2023-11-17 15:17:55.408 ***🔗
alicE@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 2023-11-17 15:17:55.408 ***🔗
alicE@localhost/res1 out
<iq type='set' id='085c47daff6041c79768596405880d55'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:17:55.408 ***🔗
alicE@localhost/res1 in
<iq id='085c47daff6041c79768596405880d55' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:17:55.408 ***🔗
alice@localhost/res1 out
<iq type='set' id='a1899c4548ddc81278f2e8a27c6f4915'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:17:55.409 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='a1899c4548ddc81278f2e8a27c6f4915' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:17:55.410 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2023-11-17 15:17:55.411 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2023-11-17 15:17:55.412 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:17:55.412 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e83f4b0732f9896f' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:17:55.413 ***🔗
bOb@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 2023-11-17 15:17:55.413 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2023-11-17 15:17:55.414 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:17:55.414 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:17:55.414 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b368151507698e1' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2023-11-17 15:17:55.414 ***🔗
bOb@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 2023-11-17 15:17:55.414 ***🔗
bOb@localhost/res1 out
<iq type='set' id='e4848f81f8497b9f3227ac8152498cf1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:17:55.415 ***🔗
bOb@localhost/res1 in
<iq id='e4848f81f8497b9f3227ac8152498cf1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:17:55.415 ***🔗
bob@localhost/res1 out
<iq type='set' id='df869eea5155a816f786e95a87075bdc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:17:55.415 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='df869eea5155a816f786e95a87075bdc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:17:55.415 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2023-11-17 15:17:55.417 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2023-11-17 15:17:55.417 ***🔗
alice@localhost/res1 out
<iq type='set' id='77a27a85cfdb7987e9460d1af345e600' to='testroom_markers@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration/>
		<occupants>
			<user affiliation='member'>bob@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2023-11-17 15:17:55.420 ***🔗
alice@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='alice@localhost' id='77a27a85cfdb7987e9460d1af345e600' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1700-234275-418889</version>
		<user affiliation='owner'>alice@localhost</user>
	</x>
	<body/>
</message>



*** User 2023-11-17 15:17:55.420 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='bob@localhost' id='77a27a85cfdb7987e9460d1af345e600' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1700-234275-418889</version>
		<user affiliation='member'>bob@localhost</user>
	</x>
	<body/>
</message>



*** User 2023-11-17 15:17:55.420 ***🔗
alice@localhost/res1 in
<iq from='testroom_markers@muclight.localhost' to='alice@localhost/res1' id='77a27a85cfdb7987e9460d1af345e600' type='result'/>



*** User 2023-11-17 15:17:55.420 ***🔗
alice@localhost/res1 out
<message to='testroom_markers@muclight.localhost' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
</message>



*** User 2023-11-17 15:17:55.422 ***🔗
alice@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='alice@localhost' id='1700-234275-421150' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2NN0G0' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:17:55.422 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='bob@localhost' id='1700-234275-421150' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2NN0G0' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:17:55.422 ***🔗
alice@localhost/res1 out
<message to='testroom_markers@muclight.localhost' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
</message>



*** User 2023-11-17 15:17:55.424 ***🔗
alice@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='alice@localhost' id='1700-234275-422716' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2O3400' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:17:55.424 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='bob@localhost' id='1700-234275-422716' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2O3400' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:17:55.424 ***🔗
alice@localhost/res1 out
<message to='testroom_markers@muclight.localhost' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
</message>



*** User 2023-11-17 15:17:55.426 ***🔗
alice@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='alice@localhost' id='1700-234275-424522' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2OH480' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:17:55.426 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost/alice@localhost' to='bob@localhost' id='1700-234275-424522' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
	<stanza-id by='testroom_markers@muclight.localhost' id='C2IQKG2OH480' xmlns='urn:xmpp:sid:0'/>
</message>


Could not find element archive_wait in Config.

Could not find element props in Config.


*** User 2023-11-17 15:17:55.428 ***🔗
bob@localhost/res1 out
<iq type='set' id='dc730b33e035ccc8f0c5af9e8e83ef9e' to='testroom_markers@muclight.localhost'>
	<query xmlns='urn:xmpp:mam:1' queryid='q'/>
</iq>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='bob@localhost/res1' id='6961c123-2050-4f4a-b244-164c95ad91d9'>
	<result queryid='q' xmlns='urn:xmpp:mam:1' id='C2IQKG2N06O0'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2023-11-17T15:17:55.418139Z' from='testroom_markers@muclight.localhost'/>
			<message from='testroom_markers@muclight.localhost' xmlns='jabber:client' id='77a27a85cfdb7987e9460d1af345e600' type='groupchat'>
				<x xmlns='urn:xmpp:muclight:0#affiliations'>
					<user affiliation='owner'>alice@localhost</user>
					<user affiliation='member'>bob@localhost</user>
				</x>
				<body/>
			</message>
		</forwarded>
	</result>
</message>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='bob@localhost/res1' id='521492ea-b34c-45f8-8b91-79ebad248269'>
	<result queryid='q' xmlns='urn:xmpp:mam:1' id='C2IQKG2NN0G0'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2023-11-17T15:17:55.421058Z' from='testroom_markers@muclight.localhost/alice@localhost'/>
			<message from='testroom_markers@muclight.localhost/alice@localhost' xmlns='jabber:client' id='1700-234275-421150' type='groupchat'>
				<received xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
			</message>
		</forwarded>
	</result>
</message>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='bob@localhost/res1' id='a6071892-3082-4458-85c6-9cbceac36504'>
	<result queryid='q' xmlns='urn:xmpp:mam:1' id='C2IQKG2O3400'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2023-11-17T15:17:55.422608Z' from='testroom_markers@muclight.localhost/alice@localhost'/>
			<message from='testroom_markers@muclight.localhost/alice@localhost' xmlns='jabber:client' id='1700-234275-422716' type='groupchat'>
				<displayed xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
			</message>
		</forwarded>
	</result>
</message>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
<message from='testroom_markers@muclight.localhost' to='bob@localhost/res1' id='7fe58fd8-8508-490b-8feb-5342de8578d4'>
	<result queryid='q' xmlns='urn:xmpp:mam:1' id='C2IQKG2OH480'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2023-11-17T15:17:55.424401Z' from='testroom_markers@muclight.localhost/alice@localhost'/>
			<message from='testroom_markers@muclight.localhost/alice@localhost' xmlns='jabber:client' id='1700-234275-424522' type='groupchat'>
				<acknowledged xmlns='urn:xmpp:chat-markers:0' id='some-fake-id'/>
			</message>
		</forwarded>
	</result>
</message>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
<iq from='testroom_markers@muclight.localhost' to='bob@localhost/res1' id='dc730b33e035ccc8f0c5af9e8e83ef9e' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>C2IQKG2N06O0</first>
			<last>C2IQKG2OH480</last>
			<count>4</count>
		</set>
	</fin>
</iq>



*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:17:55.431 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2023-11-17 15:17:55.432 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:17:55.432 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2023-11-17 15:17:55.435 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2020.html



=== Ended at 2023-11-17 15:17:55
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result