=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87996.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/rest_client_suite.messages_with_user_are_archived.249730.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/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_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_sic => #{iqdisc => one_queue},
mod_amp => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@26557528e1a5.2024-04-25_12.01.25"
=== Started at 2024-04-25 12:18:41
*** User 2024-04-25 12:18:41.291 ***🔗
alicE_messages_with_user_are_archived_3440@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-25 12:18:41.291 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ed4297feefdbeb4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:18:41.291 ***🔗
alicE_messages_with_user_are_archived_3440@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-25 12:18:41.291 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzQ0MABtYXR5Z3J5c2E=</auth>
*** User 2024-04-25 12:18:41.292 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:18:41.292 ***🔗
alicE_messages_with_user_are_archived_3440@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-25 12:18:41.293 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e854169f9b31fa5' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3440@localhost'>
*** User 2024-04-25 12:18:41.293 ***🔗
alicE_messages_with_user_are_archived_3440@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-25 12:18:41.293 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='8765570404811728c5d7b1c598e45348'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:18:41.293 ***🔗
alicE_messages_with_user_are_archived_3440@localhost/res1 in
<iq id='8765570404811728c5d7b1c598e45348' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3440@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:18:41.293 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='00b8a4129b232c013e44baf7a8e5b320'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.295 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3440@localhost/res1' id='00b8a4129b232c013e44baf7a8e5b320' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.295 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 out
<presence/>
*** User 2024-04-25 12:18:41.298 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3440@localhost/res1' to='alice_messages_with_user_are_archived_3440@localhost/res1'/>
*** User 2024-04-25 12:18:41.298 ***🔗
bOb_messages_with_user_are_archived_3440@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-25 12:18:41.299 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3913128bb5409d08' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:18:41.299 ***🔗
bOb_messages_with_user_are_archived_3440@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-25 12:18:41.299 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzM0NDAAbWFrcm9saWth</auth>
*** User 2024-04-25 12:18:41.301 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:18:41.301 ***🔗
bOb_messages_with_user_are_archived_3440@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-25 12:18:41.301 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b09f92d3c1792f12' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3440@localhost'>
*** User 2024-04-25 12:18:41.302 ***🔗
bOb_messages_with_user_are_archived_3440@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-25 12:18:41.302 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='d566995ec47d6d15edb8a4c32c78cc95'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:18:41.302 ***🔗
bOb_messages_with_user_are_archived_3440@localhost/res1 in
<iq id='d566995ec47d6d15edb8a4c32c78cc95' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3440@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:18:41.302 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='99dfd4c6d5d7f83c94671f76b903fb2b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.302 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3440@localhost/res1' id='99dfd4c6d5d7f83c94671f76b903fb2b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.303 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 out
<presence/>
*** User 2024-04-25 12:18:41.304 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3440@localhost/res1' to='bob_messages_with_user_are_archived_3440@localhost/res1'/>
*** User 2024-04-25 12:18:41.305 ***🔗
kate_messages_with_user_are_archived_3440@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-25 12:18:41.305 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fff722e88290c5c5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:18:41.306 ***🔗
kate_messages_with_user_are_archived_3440@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-25 12:18:41.306 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDQwAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-25 12:18:41.307 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:18:41.307 ***🔗
kate_messages_with_user_are_archived_3440@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-25 12:18:41.307 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a5121889a955c26' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3440@localhost'>
*** User 2024-04-25 12:18:41.307 ***🔗
kate_messages_with_user_are_archived_3440@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-25 12:18:41.307 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='51fac637938a24e36192775e497707de'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:18:41.310 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<iq id='51fac637938a24e36192775e497707de' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3440@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:18:41.310 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 out
<iq type='set' id='e2ec855352d11d162491f055b5a68c06'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.311 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3440@localhost/res1' id='e2ec855352d11d162491f055b5a68c06' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:41.311 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 out
<presence/>
*** User 2024-04-25 12:18:41.343 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3440@localhost/res1' to='kate_messages_with_user_are_archived_3440@localhost/res1'/>
*** User 2024-04-25 12:18:41.367 ***🔗
REST request:
Code: 200
Req: {<0.88101.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c5e8eeca6e2d411f">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzQ0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3440@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"6310072bfbc7a83e\"}">>,149,10845}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"bob_messages_with_user_are_archived_3440@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3440@localhost\"}">>,
return_headers => true}
*** User 2024-04-25 12:18:41.382 ***🔗
REST request:
Code: 200
Req: {<0.88144.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"65e14db7e24f2b67">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDQwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3440@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"216a3c5d92ccf99c\"}">>,149,7042}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3440@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3440@localhost\"}">>,
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-25 12:18:41.393 ***🔗
REST request:
Code: 200
Req: {<0.88168.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e44193a31b011496">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzM0NDBAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3440@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"2594741c5c932e64\"}">>,149,5109}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"kate_messages_with_user_are_archived_3440@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3440@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3440@localhost\"}">>,
return_headers => true}
*** User 2024-04-25 12:18:41.435 ***🔗
REST request:
Code: 200
Req: {<0.88189.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3440@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"54cf24425def6d43">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDQwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3440@localhost\",\"timestamp\":1714047521389,\"id\":\"2594741c5c932e64\",\"from\":\"kate_messages_with_user_are_archived_3440@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3440@localhost it's me\"}]">>,
376,34137}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3440@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3440@localhost">>,
<<"matygrysa">>},
body => <<>>,return_headers => true}
*** User 2024-04-25 12:18:41.438 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:18:41.439 ***🔗
kate_messages_with_user_are_archived_3440@localhost/res1 in
</stream:stream>
*** User 2024-04-25 12:18:41.439 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:18:41.439 ***🔗
bob_messages_with_user_are_archived_3440@localhost/res1 in
</stream:stream>
*** User 2024-04-25 12:18:41.439 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:18:41.440 ***🔗
alice_messages_with_user_are_archived_3440@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:18:41
=== successfully completed test case
=== === Returned value: ok