=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.26408.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/rest_client_suite.all_messages_are_archived.136834.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/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@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:15:09
*** User 2022-02-02 15:15:09.390 ***
alicE_all_messages_are_archived_1612@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-02-02 15:15:09.390 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ae5a2091a08f3c6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.390 ***
alicE_all_messages_are_archived_1612@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-02-02 15:15:09.391 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTYxMgBtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:15:09.391 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:09.391 ***
alicE_all_messages_are_archived_1612@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-02-02 15:15:09.392 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='31de87698646bac8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.392 ***
alicE_all_messages_are_archived_1612@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-02-02 15:15:09.392 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='319a909ceb86806bbbb0317d6b30005c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:09.392 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<iq id='319a909ceb86806bbbb0317d6b30005c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_all_messages_are_archived_1612@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:09.392 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='d0909bab4ec5ea40802d5c68f02bb135'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.393 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<iq type='result' id='d0909bab4ec5ea40802d5c68f02bb135'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.393 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:09.394 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
<presence from='alicE_all_messages_are_archived_1612@domain.example.com/res1' to='alice_all_messages_are_archived_1612@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:09.395 ***
bOb_all_messages_are_archived_1612@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-02-02 15:15:09.395 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ee85316dbf9b66b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.395 ***
bOb_all_messages_are_archived_1612@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-02-02 15:15:09.395 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE2MTIAbWFrcm9saWth</auth>
*** User 2022-02-02 15:15:09.396 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:09.396 ***
bOb_all_messages_are_archived_1612@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-02-02 15:15:09.396 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be5d0965fa5b05aa' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.396 ***
bOb_all_messages_are_archived_1612@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-02-02 15:15:09.399 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='3af572a48d93112239585bc9f0556d5f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:09.401 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<iq id='3af572a48d93112239585bc9f0556d5f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_all_messages_are_archived_1612@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:09.402 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='4cbf91346a155d2c9e8678bafcb5600b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.402 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<iq type='result' id='4cbf91346a155d2c9e8678bafcb5600b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.402 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:09.404 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
<presence from='bOb_all_messages_are_archived_1612@domain.example.com/res1' to='bob_all_messages_are_archived_1612@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:09.405 ***
kate_all_messages_are_archived_1612@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-02-02 15:15:09.405 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b04b45094025bb69' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.405 ***
kate_all_messages_are_archived_1612@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-02-02 15:15:09.405 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjEyAG1ha3Jvd2U7cA==</auth>
*** User 2022-02-02 15:15:09.406 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:09.406 ***
kate_all_messages_are_archived_1612@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-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7177777a8c72c3e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@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-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='468946bdf89cd4eef697005a2cd66634'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<iq id='468946bdf89cd4eef697005a2cd66634' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_1612@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 out
<iq type='set' id='4540da78458b3f2017a9c972b3220744'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.407 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<iq type='result' id='4540da78458b3f2017a9c972b3220744'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:09.408 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:09.409 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
<presence from='kate_all_messages_are_archived_1612@domain.example.com/res1' to='kate_all_messages_are_archived_1612@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:09.423 ***
REST request:
Code: 200
Req: {<0.26488.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c98dee3b83118eb4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTYxMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"8a06f97e-d847-4a9c-9603-da5de647360f\"}">>,169,5809}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"}">>,
creds =>
{<<"bob_all_messages_are_archived_1612@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:09.463 ***
REST request:
Code: 200
Req: {<0.26515.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"302321aa61dfaadf">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjEyQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1612@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"3c61cacf-ff05-4da7-b2a2-eeaf1d1394b2\"}">>,169,31119}
Params: #{body =>
<<"{\"to\":\"bob_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1612@domain.example.com it's me\"}">>,
creds =>
{<<"alice_all_messages_are_archived_1612@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.
Could not find element archive_wait in Config.
*** User 2022-02-02 15:15:09.477 ***
REST request:
Code: 200
Req: {<0.26533.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f9092d5a580bce10">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE2MTJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"0a4b089a-73cc-4683-8bd2-6ae3a55f80c4\"}">>,169,5389}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"}">>,
creds =>
{<<"kate_all_messages_are_archived_1612@domain.example.com">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:09.487 ***
REST request:
Code: 200
Req: {<0.26551.1>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39ad518ed26159bd">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjEyQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"834">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"timestamp\":1643814909418,\"id\":\"8a06f97e-d847-4a9c-9603-da5de647360f\",\"from\":\"bob_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"},{\"to\":\"bob_all_messages_are_archived_1612@domain.example.com\",\"timestamp\":1643814909433,\"id\":\"3c61cacf-ff05-4da7-b2a2-eeaf1d1394b2\",\"from\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, bob_all_messages_are_archived_1612@domain.example.com it's me\"},{\"to\":\"alice_all_messages_are_archived_1612@domain.example.com\",\"timestamp\":1643814909473,\"id\":\"0a4b089a-73cc-4683-8bd2-6ae3a55f80c4\",\"from\":\"kate_all_messages_are_archived_1612@domain.example.com\",\"body\":\"hello, alice_all_messages_are_archived_1612@domain.example.com it's me\"}]">>,
959,2148}
Params: #{body => <<>>,
creds =>
{<<"alice_all_messages_are_archived_1612@domain.example.com">>,
<<"matygrysa">>},
method => <<"GET">>,path => <<"/api/messages/">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:09.487 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:09.487 ***
kate_all_messages_are_archived_1612@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:09.487 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:09.488 ***
bOb_all_messages_are_archived_1612@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:09.488 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:09.489 ***
alicE_all_messages_are_archived_1612@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:15:09
=== successfully completed test case
=== === Returned value: ok