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

=== Config value:

    [{watchdog,<0.9268.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.all_messages_are_archived.149122.html"},
     {tc_group_properties,[{name,messages},{repeat_until_all_ok,3},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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{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}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:37:00


*** CT 2022-01-27 15:37:00.685 *** View log from node mongooseim@localhost when started mongooseim@localhost_5806.html
*** CT 2022-01-27 15:37:00.686 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:37:00.719 ***
alicE_all_messages_are_archived_2152@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-01-27 15:37:00.719 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0617b696c1074afe' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.719 ***
alicE_all_messages_are_archived_2152@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-01-27 15:37:00.719 ***
alicE_all_messages_are_archived_2152@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjE1MgBtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@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-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7129fe6b6c1c997b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@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-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='97c8147a8d719b120290d91d9dff4ae3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<iq id='97c8147a8d719b120290d91d9dff4ae3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_all_messages_are_archived_2152@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.721 ***
alicE_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='ac171b15b68d0e25882038c6a0946902'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.722 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<iq type='result' id='ac171b15b68d0e25882038c6a0946902'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.722 ***
alicE_all_messages_are_archived_2152@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:00.724 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
<presence from='alicE_all_messages_are_archived_2152@localhost/res1' to='alice_all_messages_are_archived_2152@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:00.730 ***
bOb_all_messages_are_archived_2152@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-01-27 15:37:00.730 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59b292d36b82cfad' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.731 ***
bOb_all_messages_are_archived_2152@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-01-27 15:37:00.731 ***
bOb_all_messages_are_archived_2152@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzIxNTIAbWFrcm9saWth</auth>



*** User 2022-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@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-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='003b0dab17b99d15' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@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-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='294a2c849105b10300c1679d8481e1e9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.732 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<iq id='294a2c849105b10300c1679d8481e1e9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_all_messages_are_archived_2152@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.733 ***
bOb_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='c7ab704d5021414504728aa1c38b6f66'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.733 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<iq type='result' id='c7ab704d5021414504728aa1c38b6f66'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.733 ***
bOb_all_messages_are_archived_2152@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:00.736 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
<presence from='bOb_all_messages_are_archived_2152@localhost/res1' to='bob_all_messages_are_archived_2152@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:00.737 ***
kate_all_messages_are_archived_2152@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-01-27 15:37:00.737 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fed62f668c05834c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.737 ***
kate_all_messages_are_archived_2152@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-01-27 15:37:00.737 ***
kate_all_messages_are_archived_2152@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yMTUyAG1ha3Jvd2U7cA==</auth>



*** User 2022-01-27 15:37:00.739 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:00.739 ***
kate_all_messages_are_archived_2152@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-01-27 15:37:00.740 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f06bc2ff3907ffb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:00.740 ***
kate_all_messages_are_archived_2152@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-01-27 15:37:00.740 ***
kate_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='9cec963181d5ea4d596fe45d4c86f2d5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.740 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<iq id='9cec963181d5ea4d596fe45d4c86f2d5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_all_messages_are_archived_2152@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:00.741 ***
kate_all_messages_are_archived_2152@localhost/res1 out
<iq type='set' id='74a448b631e89778956100376355d3cf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.741 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<iq type='result' id='74a448b631e89778956100376355d3cf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:00.741 ***
kate_all_messages_are_archived_2152@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:00.751 ***
kate_all_messages_are_archived_2152@localhost/res1 in
<presence from='kate_all_messages_are_archived_2152@localhost/res1' to='kate_all_messages_are_archived_2152@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:00.796 ***
REST request:
Code: 200
Req: {<0.9350.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e71a37f82595da90">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjE1MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"e56fbc27-958c-43e9-b9ba-ef4b65ed2651\"}">>,169,36287}
Params: #{body =>
              <<"{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"}">>,
          creds =>
              {<<"bob_all_messages_are_archived_2152@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:00.820 ***
REST request:
Code: 200
Req: {<0.9376.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce0bb9629fa356e9">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yMTUyQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"to\":\"bob_all_messages_are_archived_2152@localhost\",\"body\":\"hello, bob_all_messages_are_archived_2152@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"b752cf70-9c1d-47a1-a628-ea4137fa433a\"}">>,169,16909}
Params: #{body =>
              <<"{\"to\":\"bob_all_messages_are_archived_2152@localhost\",\"body\":\"hello, bob_all_messages_are_archived_2152@localhost it's me\"}">>,
          creds =>
              {<<"alice_all_messages_are_archived_2152@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.

Could not find element archive_wait in Config.


*** User 2022-01-27 15:37:00.907 ***
REST request:
Code: 200
Req: {<0.9381.2>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f9208f1e6157431">>},
       {<<"authorization">>,
        <<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzIxNTJAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
      <<"{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"b85fc613-c6b0-47b3-a2f3-cb49ac60d4b2\"}">>,169,79970}
Params: #{body =>
              <<"{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"}">>,
          creds =>
              {<<"kate_all_messages_are_archived_2152@localhost">>,
               <<"makrowe;p">>},
          method => <<"POST">>,path => <<"/api/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:00.926 ***
REST request:
Code: 200
Req: {<0.9398.2>,<<"/api/messages/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f83ba1fe4b41198e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yMTUyQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"753">>}],
         <<"[{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"timestamp\":1643297820762,\"id\":\"e56fbc27-958c-43e9-b9ba-ef4b65ed2651\",\"from\":\"bob_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_2152@localhost\",\"timestamp\":1643297820805,\"id\":\"b752cf70-9c1d-47a1-a628-ea4137fa433a\",\"from\":\"alice_all_messages_are_archived_2152@localhost\",\"body\":\"hello, bob_all_messages_are_archived_2152@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_2152@localhost\",\"timestamp\":1643297820840,\"id\":\"b85fc613-c6b0-47b3-a2f3-cb49ac60d4b2\",\"from\":\"kate_all_messages_are_archived_2152@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2152@localhost it's me\"}]">>,
         878,10070}
Params: #{body => <<>>,
          creds =>
              {<<"alice_all_messages_are_archived_2152@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,path => <<"/api/messages/">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:00.926 ***
kate_all_messages_are_archived_2152@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:00.926 ***
kate_all_messages_are_archived_2152@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:00.927 ***
bOb_all_messages_are_archived_2152@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:00.927 ***
bOb_all_messages_are_archived_2152@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:00.927 ***
alicE_all_messages_are_archived_2152@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:00.927 ***
alicE_all_messages_are_archived_2152@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:37:00.930 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:37:00.931 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5807.html



=== Ended at 2022-01-27 15:37:00
=== successfully completed test case
=== === Returned value: ok