=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.27985.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,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.25.13/rest_client_suite.all_messages_are_archived.152450.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.25.13/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:25:13
*** User 2022-03-04 11:25:13.749 ***
alicE_all_messages_are_archived_1796@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-04 11:25:13.749 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dcd3e2a992250900' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.750 ***
alicE_all_messages_are_archived_1796@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-04 11:25:13.750 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTc5NgBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:25:13.750 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:13.750 ***
alicE_all_messages_are_archived_1796@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-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2eb54de9877a5032' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@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-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='223e81f59c3bf42f219a18bfe8c58d43'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<iq id='223e81f59c3bf42f219a18bfe8c58d43' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_all_messages_are_archived_1796@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='f1997bd6745af64a88ff7a2b614a7ef7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<iq type='result' id='f1997bd6745af64a88ff7a2b614a7ef7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.751 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:13.753 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
<presence from='alicE_all_messages_are_archived_1796@domain.example.com/res1' to='alice_all_messages_are_archived_1796@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:13.754 ***
bOb_all_messages_are_archived_1796@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-04 11:25:13.754 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d15daec45ae58a4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.754 ***
bOb_all_messages_are_archived_1796@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-04 11:25:13.754 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE3OTYAbWFrcm9saWth</auth>
*** User 2022-03-04 11:25:13.755 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:13.755 ***
bOb_all_messages_are_archived_1796@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-04 11:25:13.755 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5a60f2b68865900' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.755 ***
bOb_all_messages_are_archived_1796@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-04 11:25:13.756 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='d01d6af844273002e5743aeb98fed97f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:13.756 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<iq id='d01d6af844273002e5743aeb98fed97f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_all_messages_are_archived_1796@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:13.756 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='b9e4f4f6953df5a65810d23e2975932a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.756 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<iq type='result' id='b9e4f4f6953df5a65810d23e2975932a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.756 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:13.759 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
<presence from='bOb_all_messages_are_archived_1796@domain.example.com/res1' to='bob_all_messages_are_archived_1796@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:13.762 ***
kate_all_messages_are_archived_1796@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-04 11:25:13.762 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2fd5b7a287f69dd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.763 ***
kate_all_messages_are_archived_1796@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-04 11:25:13.763 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzk2AG1ha3Jvd2U7cA==</auth>
*** User 2022-03-04 11:25:13.763 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@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-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14f3ded05d856113' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@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-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='6f7c95fa1ffc1e8269851b85c21dfbc3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<iq id='6f7c95fa1ffc1e8269851b85c21dfbc3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_1796@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 out
<iq type='set' id='f37a646db2215f3cd68bf9ebfbd887aa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<iq type='result' id='f37a646db2215f3cd68bf9ebfbd887aa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:13.764 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:13.769 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
<presence from='kate_all_messages_are_archived_1796@domain.example.com/res1' to='kate_all_messages_are_archived_1796@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:13.792 ***
REST request:
Code: 200
Req: {<0.28063.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"487078091a67f4de">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTc5NkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"02fd596d-6eb4-4221-a317-427b90af168f\"}">>,169,15941}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"}">>,
creds =>
{<<"bob_all_messages_are_archived_1796@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:13.845 ***
REST request:
Code: 200
Req: {<0.28088.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52c74f4cf30c3ee9">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzk2QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1796@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"77831e46-2119-4d1c-8a01-7a7c2f95afc6\"}">>,169,38238}
Params: #{body =>
<<"{\"to\":\"bob_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1796@domain.example.com it's me\"}">>,
creds =>
{<<"alice_all_messages_are_archived_1796@domain.example.com">>,
<<"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-04 11:25:13.865 ***
REST request:
Code: 200
Req: {<0.28094.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c4ca51efa953248">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE3OTZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"dd05372d-b300-4d00-8075-9af80a507853\"}">>,169,11716}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"}">>,
creds =>
{<<"kate_all_messages_are_archived_1796@domain.example.com">>,
<<"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-04 11:25:13.882 ***
REST request:
Code: 200
Req: {<0.28117.1>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e81dc60a592297e0">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzk2QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"834">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"timestamp\":1646393113783,\"id\":\"02fd596d-6eb4-4221-a317-427b90af168f\",\"from\":\"bob_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"},{\"to\":\"bob_all_messages_are_archived_1796@domain.example.com\",\"timestamp\":1646393113839,\"id\":\"77831e46-2119-4d1c-8a01-7a7c2f95afc6\",\"from\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1796@domain.example.com it's me\"},{\"to\":\"alice_all_messages_are_archived_1796@domain.example.com\",\"timestamp\":1646393113855,\"id\":\"dd05372d-b300-4d00-8075-9af80a507853\",\"from\":\"kate_all_messages_are_archived_1796@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1796@domain.example.com it's me\"}]">>,
959,6023}
Params: #{body => <<>>,
creds =>
{<<"alice_all_messages_are_archived_1796@domain.example.com">>,
<<"matygrysa">>},
method => <<"GET">>,path => <<"/api/messages/">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:13.882 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:13.884 ***
kate_all_messages_are_archived_1796@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:13.884 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:13.884 ***
bOb_all_messages_are_archived_1796@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:13.884 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:13.884 ***
alicE_all_messages_are_archived_1796@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:13
=== successfully completed test case
=== === Returned value: ok