=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.83990.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/rest_client_suite.messages_with_user_are_archived.169987.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/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,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@079a843f8d8b.2023-11-16_09.33.39"
=== Started at 2023-11-16 09:49:10
*** User 2023-11-16 09:49:10.071 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.072 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c260841613db388c' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:49:10.072 ***🔗
alicE_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.072 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzA2OQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-16 09:49:10.075 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:49:10.075 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.075 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='89deef5bcd82fee4' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3069@localhost'>
*** User 2023-11-16 09:49:10.075 ***🔗
alicE_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.075 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='5972bcb7048dfaf894704e27a3e0383a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:49:10.076 ***🔗
alicE_messages_with_user_are_archived_3069@localhost/res1 in
<iq id='5972bcb7048dfaf894704e27a3e0383a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3069@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:49:10.076 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='be68934104dd42f1525f018f56e69324'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.076 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3069@localhost/res1' id='be68934104dd42f1525f018f56e69324' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.076 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 out
<presence/>
*** User 2023-11-16 09:49:10.114 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3069@localhost/res1' to='alice_messages_with_user_are_archived_3069@localhost/res1'/>
*** User 2023-11-16 09:49:10.115 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.115 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e7d18d361eaa9d4' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:49:10.116 ***🔗
bOb_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.116 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMwNjkAbWFrcm9saWth</auth>
*** User 2023-11-16 09:49:10.117 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:49:10.117 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.117 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aef9fe6439eba751' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3069@localhost'>
*** User 2023-11-16 09:49:10.117 ***🔗
bOb_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.118 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='f304114400cfd6f3ce2cf1ee2dcb4749'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:49:10.118 ***🔗
bOb_messages_with_user_are_archived_3069@localhost/res1 in
<iq id='f304114400cfd6f3ce2cf1ee2dcb4749' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3069@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:49:10.118 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='0b287f8af297e4b8471e4bfa552653c1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.118 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3069@localhost/res1' id='0b287f8af297e4b8471e4bfa552653c1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.119 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 out
<presence/>
*** User 2023-11-16 09:49:10.120 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3069@localhost/res1' to='bob_messages_with_user_are_archived_3069@localhost/res1'/>
*** User 2023-11-16 09:49:10.121 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.121 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='87e2c595fc1b1f83' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:49:10.121 ***🔗
kate_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.121 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY5AG1ha3Jvd2U7cA==</auth>
*** User 2023-11-16 09:49:10.123 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:49:10.123 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:10.123 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e4d6fa24fca6a8e' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3069@localhost'>
*** User 2023-11-16 09:49:10.123 ***🔗
kate_messages_with_user_are_archived_3069@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 2023-11-16 09:49:10.123 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='36e2a1e8683554d8bc5fa1710615d49e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:49:10.124 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<iq id='36e2a1e8683554d8bc5fa1710615d49e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3069@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:49:10.124 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<iq type='set' id='b62ec3f54e78681a606c1ca630593641'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.125 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3069@localhost/res1' id='b62ec3f54e78681a606c1ca630593641' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:10.125 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
<presence/>
*** User 2023-11-16 09:49:10.127 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3069@localhost/res1' to='kate_messages_with_user_are_archived_3069@localhost/res1'/>
*** User 2023-11-16 09:49:10.139 ***🔗
REST request:
Code: 200
Req: {<0.84113.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db3bf4db446443c5">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzA2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3069@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"093915edc92c9b73\"}">>,149,6264}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3069@localhost\"}">>,
role => client,
creds =>
{<<"bob_messages_with_user_are_archived_3069@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:10.152 ***🔗
REST request:
Code: 200
Req: {<0.84138.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"17671a85016a9e74">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3069@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"3bedcfcb1367c67d\"}">>,149,5405}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3069@localhost\"}">>,
role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3069@localhost">>,
<<"matygrysa">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2023-11-16 09:49:10.215 ***🔗
REST request:
Code: 200
Req: {<0.84174.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"045df1e57c1290b1">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMwNjlAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3069@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"e8a14f5a8eef4c6b\"}">>,149,56728}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3069@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3069@localhost\"}">>,
role => client,
creds =>
{<<"kate_messages_with_user_are_archived_3069@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2023-11-16 09:49:10.223 ***🔗
REST request:
Code: 200
Req: {<0.84201.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3069@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1644a217b724a2b0">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3069@localhost\",\"timestamp\":1700128150161,\"id\":\"e8a14f5a8eef4c6b\",\"from\":\"kate_messages_with_user_are_archived_3069@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3069@localhost it's me\"}]">>,
376,3159}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3069@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3069@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2023-11-16 09:49:10.223 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:10.224 ***🔗
kate_messages_with_user_are_archived_3069@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:49:10.224 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:10.224 ***🔗
bob_messages_with_user_are_archived_3069@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:49:10.224 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:10.225 ***🔗
alice_messages_with_user_are_archived_3069@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:49:10
=== successfully completed test case
=== === Returned value: ok