=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.104343.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/rest_client_suite.messages_with_user_are_archived.233091.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/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_amp => #{},
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_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,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@d67ced1141dd.2024-04-16_10.12.40"
=== Started at 2024-04-16 10:31:23
*** User 2024-04-16 10:31:23.970 ***🔗
alicE_messages_with_user_are_archived_4150@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-16 10:31:23.970 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b4a64540dcfe9b1b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:23.970 ***🔗
alicE_messages_with_user_are_archived_4150@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-16 10:31:23.971 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfNDE1MABtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 10:31:23.973 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:23.973 ***🔗
alicE_messages_with_user_are_archived_4150@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-16 10:31:23.974 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3823fb0a2a12eeeb' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_4150@localhost'>
*** User 2024-04-16 10:31:23.974 ***🔗
alicE_messages_with_user_are_archived_4150@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-16 10:31:23.974 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='9ab490be71a07da88a6452b63f0fd81d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:23.974 ***🔗
alicE_messages_with_user_are_archived_4150@localhost/res1 in
<iq id='9ab490be71a07da88a6452b63f0fd81d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_4150@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:23.974 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='936beb3eda91927f91195fa52809ca8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:23.975 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_4150@localhost/res1' id='936beb3eda91927f91195fa52809ca8c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:23.975 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:23.979 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_4150@localhost/res1' to='alice_messages_with_user_are_archived_4150@localhost/res1'/>
*** User 2024-04-16 10:31:23.980 ***🔗
bOb_messages_with_user_are_archived_4150@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-16 10:31:23.981 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75d8cab10679e163' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:23.981 ***🔗
bOb_messages_with_user_are_archived_4150@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-16 10:31:23.982 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzQxNTAAbWFrcm9saWth</auth>
*** User 2024-04-16 10:31:23.983 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:23.983 ***🔗
bOb_messages_with_user_are_archived_4150@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-16 10:31:23.983 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e4396f4081256ae3' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_4150@localhost'>
*** User 2024-04-16 10:31:23.983 ***🔗
bOb_messages_with_user_are_archived_4150@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-16 10:31:23.983 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='5a8fccf6b85c24e50ac318d859f3d626'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:23.984 ***🔗
bOb_messages_with_user_are_archived_4150@localhost/res1 in
<iq id='5a8fccf6b85c24e50ac318d859f3d626' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_4150@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:23.984 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='038979e2ed16977d73dc480c566e52e8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:23.985 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_4150@localhost/res1' id='038979e2ed16977d73dc480c566e52e8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:23.985 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:23.987 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_4150@localhost/res1' to='bob_messages_with_user_are_archived_4150@localhost/res1'/>
*** User 2024-04-16 10:31:23.989 ***🔗
kate_messages_with_user_are_archived_4150@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-16 10:31:23.990 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2543330116516e30' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:23.990 ***🔗
kate_messages_with_user_are_archived_4150@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-16 10:31:23.990 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF80MTUwAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-16 10:31:24.001 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:24.001 ***🔗
kate_messages_with_user_are_archived_4150@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-16 10:31:24.002 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a419714b44615862' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_4150@localhost'>
*** User 2024-04-16 10:31:24.002 ***🔗
kate_messages_with_user_are_archived_4150@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-16 10:31:24.002 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='1fb53d6abb7a64f8af921f56c6bcaca9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:24.002 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<iq id='1fb53d6abb7a64f8af921f56c6bcaca9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_4150@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:24.003 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 out
<iq type='set' id='84147a8c5d0e6c81f9b11ab0c3e6721d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:24.003 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_4150@localhost/res1' id='84147a8c5d0e6c81f9b11ab0c3e6721d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:24.003 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:24.010 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_4150@localhost/res1' to='kate_messages_with_user_are_archived_4150@localhost/res1'/>
*** User 2024-04-16 10:31:24.097 ***🔗
REST request:
Code: 200
Req: {<0.104474.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbd28963d783feba">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfNDE1MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_4150@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"feaa94d881099d99\"}">>,149,28165}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_with_user_are_archived_4150@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_4150@localhost\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:24.113 ***🔗
REST request:
Code: 200
Req: {<0.104507.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f0bc10dd608b0377">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF80MTUwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_4150@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"596ba31681971d16\"}">>,149,9291}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_4150@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_4150@localhost\"}">>,
role => client,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-16 10:31:24.186 ***🔗
REST request:
Code: 200
Req: {<0.104522.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff0e5402757e57cd">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzQxNTBAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_4150@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"d98ad76db56d5c6e\"}">>,149,18296}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_messages_with_user_are_archived_4150@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_4150@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_4150@localhost\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:24.197 ***🔗
REST request:
Code: 200
Req: {<0.104546.0>,
<<"/api/messages/kate_messages_with_user_are_archived_4150@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e487e6fcf220de9">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF80MTUwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_4150@localhost\",\"timestamp\":1713263484171,\"id\":\"d98ad76db56d5c6e\",\"from\":\"kate_messages_with_user_are_archived_4150@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_4150@localhost it's me\"}]">>,
376,3430}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_4150@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_4150@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,method => <<"GET">>,
return_headers => true}
*** User 2024-04-16 10:31:24.197 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:24.197 ***🔗
kate_messages_with_user_are_archived_4150@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:24.198 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:24.198 ***🔗
bob_messages_with_user_are_archived_4150@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:24.198 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:24.198 ***🔗
alice_messages_with_user_are_archived_4150@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:31:24
=== successfully completed test case
=== === Returned value: ok