=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.88569.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/rest_client_suite.messages_with_user_are_archived.250114.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@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41"
=== Started at 2024-03-21 07:51:42
*** User 2024-03-21 07:51:43.061 ***🔗
alicE_messages_with_user_are_archived_3191@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-03-21 07:51:43.061 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb110fe0d72d55ff' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:43.061 ***🔗
alicE_messages_with_user_are_archived_3191@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-03-21 07:51:43.061 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzE5MQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 07:51:43.064 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:43.064 ***🔗
alicE_messages_with_user_are_archived_3191@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-03-21 07:51:43.065 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00e8163492e61624' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3191@localhost'>
*** User 2024-03-21 07:51:43.065 ***🔗
alicE_messages_with_user_are_archived_3191@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-03-21 07:51:43.065 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='6d8eb28a2e8206e4d7214dd74b457c98'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:43.065 ***🔗
alicE_messages_with_user_are_archived_3191@localhost/res1 in
<iq id='6d8eb28a2e8206e4d7214dd74b457c98' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3191@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:43.065 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='1274f2189a52535ff0004fecf2fe75fa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.066 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3191@localhost/res1' id='1274f2189a52535ff0004fecf2fe75fa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.067 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:43.073 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3191@localhost/res1' to='alice_messages_with_user_are_archived_3191@localhost/res1'/>
*** User 2024-03-21 07:51:43.073 ***🔗
bOb_messages_with_user_are_archived_3191@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-03-21 07:51:43.074 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88a873a847bae8dc' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:43.074 ***🔗
bOb_messages_with_user_are_archived_3191@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-03-21 07:51:43.074 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMxOTEAbWFrcm9saWth</auth>
*** User 2024-03-21 07:51:43.075 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:43.075 ***🔗
bOb_messages_with_user_are_archived_3191@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-03-21 07:51:43.075 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8e39d6fba0a668f' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3191@localhost'>
*** User 2024-03-21 07:51:43.075 ***🔗
bOb_messages_with_user_are_archived_3191@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-03-21 07:51:43.075 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='4869db30b90c2ab3dd07c3e1f54ba97f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:43.076 ***🔗
bOb_messages_with_user_are_archived_3191@localhost/res1 in
<iq id='4869db30b90c2ab3dd07c3e1f54ba97f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3191@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:43.076 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='74a113bf3bb48382702156e896767288'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.076 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3191@localhost/res1' id='74a113bf3bb48382702156e896767288' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.077 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:43.081 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3191@localhost/res1' to='bob_messages_with_user_are_archived_3191@localhost/res1'/>
*** User 2024-03-21 07:51:43.082 ***🔗
kate_messages_with_user_are_archived_3191@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-03-21 07:51:43.082 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1712702c040b4c2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:43.083 ***🔗
kate_messages_with_user_are_archived_3191@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-03-21 07:51:43.083 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkxAG1ha3Jvd2U7cA==</auth>
*** User 2024-03-21 07:51:43.086 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:43.086 ***🔗
kate_messages_with_user_are_archived_3191@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-03-21 07:51:43.087 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6217db99b27940f7' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3191@localhost'>
*** User 2024-03-21 07:51:43.087 ***🔗
kate_messages_with_user_are_archived_3191@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-03-21 07:51:43.087 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='769fe12cf29b382b4e7e5738343a30e3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:43.088 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<iq id='769fe12cf29b382b4e7e5738343a30e3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3191@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:43.088 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 out
<iq type='set' id='3057e04ecb1a8e6bdc810081c9af90b9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.089 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3191@localhost/res1' id='3057e04ecb1a8e6bdc810081c9af90b9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.089 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:43.093 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3191@localhost/res1' to='kate_messages_with_user_are_archived_3191@localhost/res1'/>
*** User 2024-03-21 07:51:43.160 ***🔗
REST request:
Code: 200
Req: {<0.88702.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2e7711f18aeb99c">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3191@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c23af177c4a95f95\"}">>,149,60704}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3191@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_3191@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.178 ***🔗
REST request:
Code: 200
Req: {<0.88735.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"da7a3716f6ef4f05">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_3191@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"9f905b49b15b34a2\"}">>,149,4699}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_3191@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_3191@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-03-21 07:51:43.193 ***🔗
REST request:
Code: 200
Req: {<0.88756.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f34853978ac19f93">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMxOTFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3191@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"4ee1cec29a0ab71c\"}">>,149,8884}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3191@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_3191@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.206 ***🔗
REST request:
Code: 200
Req: {<0.88774.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3191@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0ca6d969ab3e6f88">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3191@localhost\",\"timestamp\":1711007503186,\"id\":\"4ee1cec29a0ab71c\",\"from\":\"kate_messages_with_user_are_archived_3191@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3191@localhost it's me\"}]">>,
376,4285}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3191@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_3191@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.206 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:43.207 ***🔗
kate_messages_with_user_are_archived_3191@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:51:43.207 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:43.207 ***🔗
bob_messages_with_user_are_archived_3191@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:51:43.207 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:43.207 ***🔗
alice_messages_with_user_are_archived_3191@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:51:43
=== successfully completed test case
=== === Returned value: ok