=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.25744.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.all_messages_are_archived.121858.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:44
*** User 2022-01-27 12:36:44.492 ***
alicE_all_messages_are_archived_1740@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-01-27 12:36:44.493 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84a347694faddea9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.493 ***
alicE_all_messages_are_archived_1740@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-01-27 12:36:44.493 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTc0MABtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 12:36:44.494 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.494 ***
alicE_all_messages_are_archived_1740@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-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='271370129e7d0140' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@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-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='d6191a72808a5a6f9066c3cd89b1ec33'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<iq id='d6191a72808a5a6f9066c3cd89b1ec33' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_all_messages_are_archived_1740@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='89b9e1ce4ae50c502cd4affc695b5bbd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<iq type='result' id='89b9e1ce4ae50c502cd4affc695b5bbd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.495 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.504 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
<presence from='alicE_all_messages_are_archived_1740@domain.example.com/res1' to='alice_all_messages_are_archived_1740@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.509 ***
bOb_all_messages_are_archived_1740@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-01-27 12:36:44.509 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ca8fbc8c1fef058' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.510 ***
bOb_all_messages_are_archived_1740@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-01-27 12:36:44.510 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE3NDAAbWFrcm9saWth</auth>
*** User 2022-01-27 12:36:44.511 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.511 ***
bOb_all_messages_are_archived_1740@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-01-27 12:36:44.511 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a9ced0bb665a05a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.511 ***
bOb_all_messages_are_archived_1740@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-01-27 12:36:44.511 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='9c77be4438b3ae532ea3957236b38eab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<iq id='9c77be4438b3ae532ea3957236b38eab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_all_messages_are_archived_1740@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='e0e7d8aa410e8a7c0b05910f1492947f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<iq type='result' id='e0e7d8aa410e8a7c0b05910f1492947f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.520 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
<presence from='bOb_all_messages_are_archived_1740@domain.example.com/res1' to='bob_all_messages_are_archived_1740@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.521 ***
kate_all_messages_are_archived_1740@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-01-27 12:36:44.522 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e46b1496b01a0b6b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.522 ***
kate_all_messages_are_archived_1740@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-01-27 12:36:44.522 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzQwAG1ha3Jvd2U7cA==</auth>
*** User 2022-01-27 12:36:44.523 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@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-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d76d97155a2273d6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@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-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='ea9b88be868dcfb699a30ff55dad3c72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<iq id='ea9b88be868dcfb699a30ff55dad3c72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_1740@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.524 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 out
<iq type='set' id='7bda52abda58c2c0b7566fc89f93d7ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.525 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<iq type='result' id='7bda52abda58c2c0b7566fc89f93d7ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.525 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.547 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
<presence from='kate_all_messages_are_archived_1740@domain.example.com/res1' to='kate_all_messages_are_archived_1740@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.597 ***
REST request:
Code: 200
Req: {<0.25828.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3373a5ab0383dd6f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTc0MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"a67c3a1d-ba35-4b87-a3e5-e67ccf970320\"}">>,169,34506}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"}">>,
creds =>
{<<"bob_all_messages_are_archived_1740@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:44.633 ***
REST request:
Code: 200
Req: {<0.25847.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"94bf6d3ad4676117">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzQwQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1740@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"c2d52daa-8fb7-47ad-863e-b2eee79bd2e6\"}">>,169,26774}
Params: #{body =>
<<"{\"to\":\"bob_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1740@domain.example.com it's me\"}">>,
creds =>
{<<"alice_all_messages_are_archived_1740@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-01-27 12:36:44.679 ***
REST request:
Code: 200
Req: {<0.25861.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d78f359dac478c45">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE3NDBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"71b41ea4-bf34-4af6-b6c7-faef1ea713b1\"}">>,169,35781}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"}">>,
creds =>
{<<"kate_all_messages_are_archived_1740@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-01-27 12:36:44.708 ***
REST request:
Code: 200
Req: {<0.25881.1>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92114bd2b8db2527">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNzQwQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"834">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"timestamp\":1643287004565,\"id\":\"a67c3a1d-ba35-4b87-a3e5-e67ccf970320\",\"from\":\"bob_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"},{\"to\":\"bob_all_messages_are_archived_1740@domain.example.com\",\"timestamp\":1643287004608,\"id\":\"c2d52daa-8fb7-47ad-863e-b2eee79bd2e6\",\"from\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1740@domain.example.com it's me\"},{\"to\":\"alice_all_messages_are_archived_1740@domain.example.com\",\"timestamp\":1643287004645,\"id\":\"71b41ea4-bf34-4af6-b6c7-faef1ea713b1\",\"from\":\"kate_all_messages_are_archived_1740@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1740@domain.example.com it's me\"}]">>,
959,14356}
Params: #{body => <<>>,
creds =>
{<<"alice_all_messages_are_archived_1740@domain.example.com">>,
<<"matygrysa">>},
method => <<"GET">>,path => <<"/api/messages/">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:44.708 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.708 ***
kate_all_messages_are_archived_1740@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:44.708 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.709 ***
bOb_all_messages_are_archived_1740@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:44.709 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.710 ***
alicE_all_messages_are_archived_1740@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:44
=== successfully completed test case
=== === Returned value: ok