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

=== Config value:

    [{watchdog,<0.11349.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/rest_client_suite.messages_with_user_are_archived.165250.html"},
     {tc_group_properties,[{name,messages},parallel]},
     {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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/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},{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@fac56f14d8cf.2022-03-07_15.57.55"

=== Started at 2022-03-07 16:09:36


*** CT 2022-03-07 16:09:36.554 *** View log from node mongooseim@localhost when started mongooseim@localhost_4916.html
*** CT 2022-03-07 16:09:36.554 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1909.html

*** User 2022-03-07 16:09:36.568 ***
alicE_messages_with_user_are_archived_2220@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-03-07 16:09:36.569 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b98ed843d05148bf' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.569 ***
alicE_messages_with_user_are_archived_2220@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-03-07 16:09:36.569 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjIyMABtYXR5Z3J5c2E=</auth>



*** User 2022-03-07 16:09:36.570 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:36.570 ***
alicE_messages_with_user_are_archived_2220@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-03-07 16:09:36.570 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7aae6feac226041f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.570 ***
alicE_messages_with_user_are_archived_2220@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-03-07 16:09:36.570 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='319b47169ddb769fa6047c29fb688895'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.571 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<iq id='319b47169ddb769fa6047c29fb688895' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_with_user_are_archived_2220@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.571 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='feedf2160aa6e248dfb001bbc12d7b6a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.571 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<iq type='result' id='feedf2160aa6e248dfb001bbc12d7b6a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.571 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:36.574 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
<presence from='alicE_messages_with_user_are_archived_2220@localhost/res1' to='alice_messages_with_user_are_archived_2220@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:36.581 ***
bOb_messages_with_user_are_archived_2220@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-03-07 16:09:36.581 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0d7193e3b4f06771' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.581 ***
bOb_messages_with_user_are_archived_2220@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-03-07 16:09:36.581 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzIyMjAAbWFrcm9saWth</auth>



*** User 2022-03-07 16:09:36.582 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:36.582 ***
bOb_messages_with_user_are_archived_2220@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-03-07 16:09:36.582 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='104938e272c77a50' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.582 ***
bOb_messages_with_user_are_archived_2220@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-03-07 16:09:36.583 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='0496171c57d8184650e158e912c97065'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.583 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<iq id='0496171c57d8184650e158e912c97065' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_with_user_are_archived_2220@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.583 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='558127ae0ead5485b9077f435568cc40'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.583 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<iq type='result' id='558127ae0ead5485b9077f435568cc40'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.583 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:36.587 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
<presence from='bOb_messages_with_user_are_archived_2220@localhost/res1' to='bob_messages_with_user_are_archived_2220@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:36.587 ***
kate_messages_with_user_are_archived_2220@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-03-07 16:09:36.588 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd4a692cc1a92f18' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.588 ***
kate_messages_with_user_are_archived_2220@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-03-07 16:09:36.588 ***
kate_messages_with_user_are_archived_2220@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjIwAG1ha3Jvd2U7cA==</auth>



*** User 2022-03-07 16:09:36.589 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:36.589 ***
kate_messages_with_user_are_archived_2220@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-03-07 16:09:36.590 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='292a20d8cb96af32' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:36.590 ***
kate_messages_with_user_are_archived_2220@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-03-07 16:09:36.590 ***
kate_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='bb045b781d862b7614502b14f0ac9e26'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.590 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<iq id='bb045b781d862b7614502b14f0ac9e26' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_messages_with_user_are_archived_2220@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:36.590 ***
kate_messages_with_user_are_archived_2220@localhost/res1 out
<iq type='set' id='7aa1894d4974a170401d44cc4f4f9fa4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.591 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<iq type='result' id='7aa1894d4974a170401d44cc4f4f9fa4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:36.591 ***
kate_messages_with_user_are_archived_2220@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:36.595 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2220@localhost/res1' to='kate_messages_with_user_are_archived_2220@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:36.610 ***
REST request:
Code: 200
Req: {<0.11438.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f5d8c2c92825024f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjIyMEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to\":\"alice_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2220@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"cc518dea-fe38-4a01-acf3-0a2b5517a014\"}">>,169,7702}
Params: #{body =>
              <<"{\"to\":\"alice_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2220@localhost it's me\"}">>,
          creds =>
              {<<"bob_messages_with_user_are_archived_2220@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:36.666 ***
REST request:
Code: 200
Req: {<0.11459.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6193ce61657c156">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjIwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"to\":\"bob_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2220@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"1a6d23c5-5747-49e3-b133-623ebb2d6711\"}">>,169,4381}
Params: #{body =>
              <<"{\"to\":\"bob_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2220@localhost it's me\"}">>,
          creds =>
              {<<"alice_messages_with_user_are_archived_2220@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}

Could not find element wait_for_parallel_writer in Config.


*** User 2022-03-07 16:09:36.681 ***
REST request:
Code: 200
Req: {<0.11476.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"02977ba6b632b82e">>},
       {<<"authorization">>,
        <<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzIyMjBAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
      <<"{\"to\":\"alice_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2220@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"8b211a07-214d-4e8e-aeeb-7e9e8f95ca62\"}">>,169,5677}
Params: #{body =>
              <<"{\"to\":\"alice_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2220@localhost it's me\"}">>,
          creds =>
              {<<"kate_messages_with_user_are_archived_2220@localhost">>,
               <<"makrowe;p">>},
          method => <<"POST">>,path => <<"/api/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}

Could not find element archive_wait in Config.


*** User 2022-03-07 16:09:36.695 ***
REST request:
Code: 200
Req: {<0.11491.2>,
      <<"/api/messages/kate_messages_with_user_are_archived_2220@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"51b1d186afbf1e46">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjIwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"271">>}],
         <<"[{\"to\":\"alice_messages_with_user_are_archived_2220@localhost\",\"timestamp\":1646669376676,\"id\":\"8b211a07-214d-4e8e-aeeb-7e9e8f95ca62\",\"from\":\"kate_messages_with_user_are_archived_2220@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2220@localhost it's me\"}]">>,
         396,2552}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_with_user_are_archived_2220@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/messages/kate_messages_with_user_are_archived_2220@localhost">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:36.695 ***
kate_messages_with_user_are_archived_2220@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:36.695 ***
kate_messages_with_user_are_archived_2220@localhost/res1 in
</stream:stream>

*** User 2022-03-07 16:09:36.696 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:36.696 ***
bOb_messages_with_user_are_archived_2220@localhost/res1 in
</stream:stream>

*** User 2022-03-07 16:09:36.696 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:36.697 ***
alicE_messages_with_user_are_archived_2220@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 16:09:36.700 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1909.html
*** CT 2022-03-07 16:09:36.701 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4917.html



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