=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87331.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/rest_client_suite.messages_with_user_are_archived.114308.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@96ddc50d3205.2024-04-23_10.53.40"
=== Started at 2024-04-23 11:12:43
*** User 2024-04-23 11:12:43.408 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.409 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d3f65447e0310b02' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:12:43.409 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.409 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM4NgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 11:12:43.411 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:12:43.411 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.411 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='237c6c85b268d658' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3386@localhost'>
*** User 2024-04-23 11:12:43.412 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.412 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='4355c4b200dcb484c8185056b9028d54'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:12:43.412 ***🔗
alicE_messages_with_user_are_archived_3386@localhost/res1 in
<iq id='4355c4b200dcb484c8185056b9028d54' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3386@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:12:43.412 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='fea41b0a1eb3dff96c7bc0231fb64586'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.413 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3386@localhost/res1' id='fea41b0a1eb3dff96c7bc0231fb64586' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.413 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 out
<presence/>
*** User 2024-04-23 11:12:43.416 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3386@localhost/res1' to='alice_messages_with_user_are_archived_3386@localhost/res1'/>
*** User 2024-04-23 11:12:43.416 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.417 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5daede29ea8d0eef' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:12:43.417 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.417 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzODYAbWFrcm9saWth</auth>
*** User 2024-04-23 11:12:43.419 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:12:43.419 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.420 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15c180f4bfc6e3ac' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3386@localhost'>
*** User 2024-04-23 11:12:43.420 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.420 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='24ccaa186391ffc54974e96f32738b26'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:12:43.420 ***🔗
bOb_messages_with_user_are_archived_3386@localhost/res1 in
<iq id='24ccaa186391ffc54974e96f32738b26' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3386@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:12:43.420 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='6ba6cac8d17ce65114e540c026684a48'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.420 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3386@localhost/res1' id='6ba6cac8d17ce65114e540c026684a48' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.420 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 out
<presence/>
*** User 2024-04-23 11:12:43.423 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3386@localhost/res1' to='bob_messages_with_user_are_archived_3386@localhost/res1'/>
*** User 2024-04-23 11:12:43.424 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.425 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='93d9545b47ef8112' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:12:43.426 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.426 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzg2AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56882fe141a7ec11' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3386@localhost'>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='8be5fc4d0f550d18794bcde7f6dfec4c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<iq id='8be5fc4d0f550d18794bcde7f6dfec4c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3386@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:12:43.428 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<iq type='set' id='48dd264147b839216b2eb4cb70bb6940'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.429 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3386@localhost/res1' id='48dd264147b839216b2eb4cb70bb6940' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:12:43.429 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
<presence/>
*** User 2024-04-23 11:12:43.431 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3386@localhost/res1' to='kate_messages_with_user_are_archived_3386@localhost/res1'/>
*** User 2024-04-23 11:12:43.510 ***🔗
REST request:
Code: 200
Req: {<0.87450.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"adc9bcaabd470bb6">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM4NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3386@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:12:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"e9a071dee003c18d\"}">>,149,73424}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_with_user_are_archived_3386@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3386@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:12:43.523 ***🔗
REST request:
Code: 200
Req: {<0.87486.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3017841f60d0ba5">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzg2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3386@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:12:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"82bce1d34c16f92a\"}">>,149,5483}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3386@localhost">>,
<<"matygrysa">>},
role => client,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3386@localhost\"}">>,
method => <<"POST">>,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-23 11:12:43.541 ***🔗
REST request:
Code: 200
Req: {<0.87501.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c13a3d5bc755fe43">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzODZAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3386@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:12:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"8cc9bf47c3460c6d\"}">>,149,11525}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_messages_with_user_are_archived_3386@localhost">>,
<<"makrowe;p">>},
role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3386@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3386@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:12:43.603 ***🔗
REST request:
Code: 200
Req: {<0.87528.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3386@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5ec505b785e5dab">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzg2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:12:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3386@localhost\",\"timestamp\":1713870763531,\"id\":\"8cc9bf47c3460c6d\",\"from\":\"kate_messages_with_user_are_archived_3386@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3386@localhost it's me\"}]">>,
376,3966}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3386@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3386@localhost">>,
<<"matygrysa">>},
role => client,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 11:12:43.603 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:12:43.603 ***🔗
kate_messages_with_user_are_archived_3386@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:12:43.604 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:12:43.604 ***🔗
bob_messages_with_user_are_archived_3386@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:12:43.604 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:12:43.604 ***🔗
alice_messages_with_user_are_archived_3386@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:12:43
=== successfully completed test case
=== === Returned value: ok