=== Test case: rest_client_SUITE:chat_markers_are_archived_in_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.20494.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,riak},
     {archive_wait,2500},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/rest_client_suite.chat_markers_are_archived_in_room.html"},
     {tc_group_properties,[{name,muc},pararell]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => [],
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => [],mod_commands => [],
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              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 => riak,iqdisc => one_queue,
              riak =>
                  #{bucket_type => <<"rosters">>,
                    version_bucket_type => <<"roster_versions">>},
              store_current_id => false,versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => riak,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,
              riak =>
                  #{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
              search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19"

=== Started at 2022-04-05 07:57:18


*** CT 2022-04-05 07:57:18.343 *** View log from node mongooseim@localhost when started mongooseim@localhost_5066.html
*** CT 2022-04-05 07:57:18.344 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2005.html

*** User 2022-04-05 07:57:18.363 ***
alicE_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.364 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f13159a43870be19' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:57:18.364 ***
alicE_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.365 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNjI1AG1hdHlncnlzYQ==</auth>



*** User 2022-04-05 07:57:18.368 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-05 07:57:18.368 ***
alicE_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.369 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e46833588a35fa4b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:57:18.369 ***
alicE_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.369 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 out
<iq type='set' id='022934cdd4696d88d4f0629902c0c117'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-05 07:57:18.369 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<iq id='022934cdd4696d88d4f0629902c0c117' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_chat_markers_are_archived_in_room_1625@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-05 07:57:18.369 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 out
<iq type='set' id='4419a2b75b4b077690694a6a493eeef7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:57:18.370 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<iq type='result' id='4419a2b75b4b077690694a6a493eeef7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:57:18.370 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 out
<presence/>



*** User 2022-04-05 07:57:18.377 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<presence from='alicE_chat_markers_are_archived_in_room_1625@localhost/res1' to='alice_chat_markers_are_archived_in_room_1625@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:57:18.378 ***
bOb_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.379 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b33582ae79956d4d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:57:18.379 ***
bOb_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.379 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9jaGF0X21hcmtlcnNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMTYyNQBtYWtyb2xpa2E=</auth>



*** User 2022-04-05 07:57:18.381 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-05 07:57:18.382 ***
bOb_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.382 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='848f7b0304df7ec2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:57:18.382 ***
bOb_chat_markers_are_archived_in_room_1625@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-04-05 07:57:18.382 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 out
<iq type='set' id='3b4a76750034d0a6b8c6576cbf67b6cd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-05 07:57:18.382 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<iq id='3b4a76750034d0a6b8c6576cbf67b6cd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_chat_markers_are_archived_in_room_1625@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-05 07:57:18.383 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 out
<iq type='set' id='eacc32945df87bcf77279eaccafb91d4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:57:18.383 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<iq type='result' id='eacc32945df87bcf77279eaccafb91d4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:57:18.383 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 out
<presence/>



*** User 2022-04-05 07:57:18.391 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<presence from='bOb_chat_markers_are_archived_in_room_1625@localhost/res1' to='bob_chat_markers_are_archived_in_room_1625@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:18.394 ***
=WARNING REPORT==== 5-Apr-2022::07:57:18.394311 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:18.411 ***
REST request:
Code: 200
Req: {<0.20971.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"240f9c56b72e4cce">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE2MjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1649-145438-411178\"}">>,151,4082}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:18.414 ***
=WARNING REPORT==== 5-Apr-2022::07:57:18.414594 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:18.438 ***
REST request:
Code: 204
Req: {<0.20976.1>,<<"/api/rooms/1649-145438-411178/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"729f65cb3d7ed3a8">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE2MjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_chat_markers_are_archived_in_room_1625@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:18 GMT">>}],
         <<>>,80,12995}
Params: #{body =>
              <<"{\"user\":\"bob_chat_markers_are_archived_in_room_1625@localhost\"}">>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1649-145438-411178/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:57:18.438 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost' to='bob_chat_markers_are_archived_in_room_1625@localhost' id='87beb6ec-d6ee-4d7f-b839-3b995b4c82f7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1649-145438-429415</version>
		<user affiliation='member'>bob_chat_markers_are_archived_in_room_1625@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-04-05 07:57:18.439 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost' to='alice_chat_markers_are_archived_in_room_1625@localhost' id='87beb6ec-d6ee-4d7f-b839-3b995b4c82f7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1649-145438-411094</prev-version>
		<version>1649-145438-429415</version>
		<user affiliation='member'>bob_chat_markers_are_archived_in_room_1625@localhost</user>
	</x>
	<body/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J055NMO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:18.440 ***
=WARNING REPORT==== 5-Apr-2022::07:57:18.440631 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:18.477 ***
REST request:
Code: 200
Req: {<0.20981.1>,<<"/api/rooms/1649-145438-411178/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"42552a61dce64f77">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNjI1QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"4d1f3376-639f-4156-9b60-dc0148e05e8a\"}">>,169,23415}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1649-145438-411178/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:57:18.477 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='alice_chat_markers_are_archived_in_room_1625@localhost' id='4d1f3376-639f-4156-9b60-dc0148e05e8a' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J05DRGG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-04-05 07:57:18.477 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='bob_chat_markers_are_archived_in_room_1625@localhost' id='4d1f3376-639f-4156-9b60-dc0148e05e8a' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J05DRGG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:18.479 ***
=WARNING REPORT==== 5-Apr-2022::07:57:18.479576 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:18.509 ***
REST request:
Code: 200
Req: {<0.20986.1>,<<"/api/rooms/1649-145438-411178/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a97d39173a27632b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNjI1QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"09e58515-c511-463b-80cf-006bac7e4e96\"}">>,169,19173}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1649-145438-411178/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:57:18.509 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='alice_chat_markers_are_archived_in_room_1625@localhost' id='09e58515-c511-463b-80cf-006bac7e4e96' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J05MKTG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-04-05 07:57:18.509 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='bob_chat_markers_are_archived_in_room_1625@localhost' id='09e58515-c511-463b-80cf-006bac7e4e96' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J05MKTG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:18.523 ***
=WARNING REPORT==== 5-Apr-2022::07:57:18.523416 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:18.553 ***
REST request:
Code: 200
Req: {<0.20991.1>,<<"/api/rooms/1649-145438-411178/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f4fe6c01b924d598">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNjI1QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"82834a35-ee66-4697-bca0-04ba00d733c9\"}">>,169,15943}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1649-145438-411178/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:57:18.553 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='alice_chat_markers_are_archived_in_room_1625@localhost' id='82834a35-ee66-4697-bca0-04ba00d733c9' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J0613F01' xmlns='urn:xmpp:sid:0'/>
</message>


Could not find element wait_for_parallel_writer in Config.


*** User 2022-04-05 07:57:18.553 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
<message from='1649-145438-411178@muclight.localhost/bob_chat_markers_are_archived_in_room_1625@localhost' to='bob_chat_markers_are_archived_in_room_1625@localhost' id='82834a35-ee66-4697-bca0-04ba00d733c9' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1649-145438-411178@muclight.localhost' id='BMV3J0613F01' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:chat_markers_are_archived_in_room/1 in muc 2022-04-05 07:57:21.056 ***
=WARNING REPORT==== 5-Apr-2022::07:57:21.056436 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-04-05 07:57:21.086 ***
REST request:
Code: 200
Req: {<0.20996.1>,<<"/api/rooms/1649-145438-411178/messages">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f064d9b4f0ec0218">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE2MjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:57:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"858">>}],
         <<"[{\"user\":\"bob_chat_markers_are_archived_in_room_1625@localhost\",\"type\":\"affiliation\",\"timestamp\":1649145438428,\"id\":\"87beb6ec-d6ee-4d7f-b839-3b995b4c82f7\",\"from\":\"1649-145438-411178@muclight.localhost\",\"affiliation\":\"member\"},{\"type\":\"message\",\"timestamp\":1649145438461,\"id\":\"4d1f3376-639f-4156-9b60-dc0148e05e8a\",\"from\":\"bob_chat_markers_are_archived_in_room_1625@localhost\",\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}},{\"type\":\"message\",\"timestamp\":1649145438497,\"id\":\"09e58515-c511-463b-80cf-006bac7e4e96\",\"from\":\"bob_chat_markers_are_archived_in_room_1625@localhost\",\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}},{\"type\":\"message\",\"timestamp\":1649145438540,\"id\":\"82834a35-ee66-4697-bca0-04ba00d733c9\",\"from\":\"bob_chat_markers_are_archived_in_room_1625@localhost\",\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}]">>,
         983,20540}
Params: #{body => <<>>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1625@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1649-145438-411178/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:57:21.087 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 out
</stream:stream>

*** User 2022-04-05 07:57:21.087 ***
bOb_chat_markers_are_archived_in_room_1625@localhost/res1 in
</stream:stream>

*** User 2022-04-05 07:57:21.088 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 out
</stream:stream>

*** User 2022-04-05 07:57:21.090 ***
alicE_chat_markers_are_archived_in_room_1625@localhost/res1 in
</stream:stream>
*** CT 2022-04-05 07:57:21.093 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2005.html
*** CT 2022-04-05 07:57:21.094 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5066.html



=== Ended at 2022-04-05 07:57:21
=== successfully completed test case
=== === Returned value: ok


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