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

=== Config value:

    [{watchdog,<0.28894.1>},
     {muc_light_host,<<"muclight2.domain.example.com">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.05.25/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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.05.25/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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},{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 => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24"

=== Started at 2022-03-07 16:05:26


*** CT 2022-03-07 16:05:26.662 *** View log from node mongooseim@localhost when started mongooseim@localhost_1569.html
*** CT 2022-03-07 16:05:26.662 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-07 16:05:26.666 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:26.667 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a3f13a08fc8be07' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:26.667 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/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-03-07 16:05:26.667 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNzY5AG1hdHlncnlzYQ==</auth>



*** User 2022-03-07 16:05:26.668 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:26.668 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:26.668 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb3668933c9ee4f5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:26.668 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/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-03-07 16:05:26.668 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<iq type='set' id='fa27cf1ded43202a13da86472ea75554'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:26.669 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<iq id='fa27cf1ded43202a13da86472ea75554' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:26.669 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<iq type='set' id='22ba0b1fb4def025d608861cd49c794c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:26.669 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<iq type='result' id='22ba0b1fb4def025d608861cd49c794c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:26.669 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:26.670 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<presence from='alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1' to='alice_chat_markers_are_archived_in_room_1769@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:26.671 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:26.671 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='acc7535cc5270a92' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:26.672 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/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-03-07 16:05:26.672 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9jaGF0X21hcmtlcnNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMTc2OQBtYWtyb2xpa2E=</auth>



*** User 2022-03-07 16:05:26.672 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:26.672 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='434a213f23b17c4c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/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-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<iq type='set' id='42c94a9ca1e1bd2c826ac384d08efa7e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<iq id='42c94a9ca1e1bd2c826ac384d08efa7e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<iq type='set' id='126eb7071566de66ef3c5de0a16d7e93'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<iq type='result' id='126eb7071566de66ef3c5de0a16d7e93'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:26.673 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:26.675 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<presence from='bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1' to='bob_chat_markers_are_archived_in_room_1769@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:26.683 ***
REST request:
Code: 200
Req: {<0.29413.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"917456a8eca169c6">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE3NjlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1646-669126-683197\"}">>,151,1226}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:26.697 ***
REST request:
Code: 204
Req: {<0.29419.1>,<<"/api/rooms/1646-669126-683197/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ceaab1066934ac23">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE3NjlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>}],
         <<>>,80,4830}
Params: #{body =>
              <<"{\"user\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\"}">>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669126-683197/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:26.697 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com' to='bob_chat_markers_are_archived_in_room_1769@domain.example.com' id='1d4db57d-4980-42a9-8bd2-1876be4b9b7e' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-669126-694609</version>
		<user affiliation='member'>bob_chat_markers_are_archived_in_room_1769@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 16:05:26.698 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com' to='alice_chat_markers_are_archived_in_room_1769@domain.example.com' id='1d4db57d-4980-42a9-8bd2-1876be4b9b7e' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-669126-683155</prev-version>
		<version>1646-669126-694609</version>
		<user affiliation='member'>bob_chat_markers_are_archived_in_room_1769@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311DV7VG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.709 ***
REST request:
Code: 200
Req: {<0.29425.1>,<<"/api/rooms/1646-669126-683197/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0733294638462122">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNzY5QGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"a1d1b921-9a87-4dc3-a293-88d7a2657e43\"}">>,169,3579}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669126-683197/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:26.710 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='alice_chat_markers_are_archived_in_room_1769@domain.example.com' id='a1d1b921-9a87-4dc3-a293-88d7a2657e43' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E2H7O1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.710 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='bob_chat_markers_are_archived_in_room_1769@domain.example.com' id='a1d1b921-9a87-4dc3-a293-88d7a2657e43' type='groupchat'>
	<received xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E2H7O1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.721 ***
REST request:
Code: 200
Req: {<0.29431.1>,<<"/api/rooms/1646-669126-683197/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4689a0bb77e6037a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNzY5QGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"4a58410c-9481-434b-9af8-02e14990c9ee\"}">>,169,2414}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669126-683197/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:26.722 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='alice_chat_markers_are_archived_in_room_1769@domain.example.com' id='4a58410c-9481-434b-9af8-02e14990c9ee' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E5NU01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.722 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='bob_chat_markers_are_archived_in_room_1769@domain.example.com' id='4a58410c-9481-434b-9af8-02e14990c9ee' type='groupchat'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E5NU01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.734 ***
REST request:
Code: 200
Req: {<0.29437.1>,<<"/api/rooms/1646-669126-683197/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c6722d50db0e570">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NoYXRfbWFya2Vyc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8xNzY5QGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"0059bea6-9e05-48d0-8d18-e1a8ca0b4d16\"}">>,169,3055}
Params: #{body =>
              <<"{\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}">>,
          creds =>
              {<<"bob_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669126-683197/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}

Could not find element wait_for_parallel_writer in Config.

Could not find element archive_wait in Config.


*** User 2022-03-07 16:05:26.734 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='alice_chat_markers_are_archived_in_room_1769@domain.example.com' id='0059bea6-9e05-48d0-8d18-e1a8ca0b4d16' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E8N5G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.734 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
<message from='1646-669126-683197@muclight2.domain.example.com/bob_chat_markers_are_archived_in_room_1769@domain.example.com' to='bob_chat_markers_are_archived_in_room_1769@domain.example.com' id='0059bea6-9e05-48d0-8d18-e1a8ca0b4d16' type='groupchat'>
	<acknowledged xmlns='urn:xmpp:chat-markers:0' id='RagnarokIsComing'/>
	<stanza-id by='1646-669126-683197@muclight2.domain.example.com' id='BMD311E8N5G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-07 16:05:26.745 ***
REST request:
Code: 200
Req: {<0.29443.1>,<<"/api/rooms/1646-669126-683197/messages">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e3a67499e2740ab8">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY2hhdF9tYXJrZXJzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzE3NjlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:05:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"904">>}],
         <<"[{\"user\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1646669126693,\"id\":\"1d4db57d-4980-42a9-8bd2-1876be4b9b7e\",\"from\":\"1646-669126-683197@muclight2.domain.example.com\",\"affiliation\":\"member\"},{\"type\":\"message\",\"timestamp\":1646669126707,\"id\":\"a1d1b921-9a87-4dc3-a293-88d7a2657e43\",\"from\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\",\"chat_marker\":{\"type\":\"received\",\"id\":\"RagnarokIsComing\"}},{\"type\":\"message\",\"timestamp\":1646669126720,\"id\":\"4a58410c-9481-434b-9af8-02e14990c9ee\",\"from\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\",\"chat_marker\":{\"type\":\"displayed\",\"id\":\"RagnarokIsComing\"}},{\"type\":\"message\",\"timestamp\":1646669126732,\"id\":\"0059bea6-9e05-48d0-8d18-e1a8ca0b4d16\",\"from\":\"bob_chat_markers_are_archived_in_room_1769@domain.example.com\",\"chat_marker\":{\"type\":\"acknowledged\",\"id\":\"RagnarokIsComing\"}}]">>,
         1029,1819}
Params: #{body => <<>>,
          creds =>
              {<<"alice_chat_markers_are_archived_in_room_1769@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1646-669126-683197/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:05:26.746 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:26.746 ***
bOb_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-07 16:05:26.746 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:26.747 ***
alicE_chat_markers_are_archived_in_room_1769@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-07 16:05:26.749 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-07 16:05:26.749 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1569.html



=== Ended at 2022-03-07 16:05:26
=== successfully completed test case
=== === Returned value: ok


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