=== Test case: rest_SUITE:messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.80161.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1e90cefa3403.2024-04-26_13.09.53/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.24.06/rest_suite.messages_are_archived.207362.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@1e90cefa3403.2024-04-26_13.09.53/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.24.06/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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 => cets,
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 => cets,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}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1e90cefa3403.2024-04-26_13.09.53"
=== Started at 2024-04-26 13:24:06
*** User 2024-04-26 13:24:06.970 ***🔗
alicE_messages_are_archived_2968@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-26 13:24:06.971 ***🔗
alicE_messages_are_archived_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf6ba5b0c166c361' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:24:06.972 ***🔗
alicE_messages_are_archived_2968@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-26 13:24:06.972 ***🔗
alicE_messages_are_archived_2968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTY4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 13:24:06.974 ***🔗
alicE_messages_are_archived_2968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:24:06.974 ***🔗
alicE_messages_are_archived_2968@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-26 13:24:06.975 ***🔗
alicE_messages_are_archived_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2978a4575558cc31' from='localhost' version='1.0' xml:lang='en' to='alice_messages_are_archived_2968@localhost'>
*** User 2024-04-26 13:24:06.975 ***🔗
alicE_messages_are_archived_2968@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-26 13:24:06.975 ***🔗
alicE_messages_are_archived_2968@localhost/res1 out
<iq type='set' id='22a475ec1ef266a81d337477319da5af'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:24:06.975 ***🔗
alicE_messages_are_archived_2968@localhost/res1 in
<iq id='22a475ec1ef266a81d337477319da5af' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_are_archived_2968@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:24:06.975 ***🔗
alice_messages_are_archived_2968@localhost/res1 out
<iq type='set' id='47798b09b318818b95b815f4939c72b5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:24:06.977 ***🔗
alice_messages_are_archived_2968@localhost/res1 in
<iq from='localhost' to='alice_messages_are_archived_2968@localhost/res1' id='47798b09b318818b95b815f4939c72b5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:24:06.977 ***🔗
alice_messages_are_archived_2968@localhost/res1 out
<presence/>
*** User 2024-04-26 13:24:06.981 ***🔗
alice_messages_are_archived_2968@localhost/res1 in
<presence from='alice_messages_are_archived_2968@localhost/res1' to='alice_messages_are_archived_2968@localhost/res1'/>
*** User 2024-04-26 13:24:06.981 ***🔗
bOb_messages_are_archived_2968@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-26 13:24:06.982 ***🔗
bOb_messages_are_archived_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76e01adbed22030d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:24:06.982 ***🔗
bOb_messages_are_archived_2968@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-26 13:24:06.982 ***🔗
bOb_messages_are_archived_2968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjk2OABtYWtyb2xpa2E=</auth>
*** User 2024-04-26 13:24:06.985 ***🔗
bOb_messages_are_archived_2968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:24:06.985 ***🔗
bOb_messages_are_archived_2968@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-26 13:24:06.985 ***🔗
bOb_messages_are_archived_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='918be34e2c579155' from='localhost' version='1.0' xml:lang='en' to='bob_messages_are_archived_2968@localhost'>
*** User 2024-04-26 13:24:06.986 ***🔗
bOb_messages_are_archived_2968@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-26 13:24:06.986 ***🔗
bOb_messages_are_archived_2968@localhost/res1 out
<iq type='set' id='161ee1d1951ab3901472d6b8a84a25be'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:24:06.986 ***🔗
bOb_messages_are_archived_2968@localhost/res1 in
<iq id='161ee1d1951ab3901472d6b8a84a25be' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_are_archived_2968@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:24:06.987 ***🔗
bob_messages_are_archived_2968@localhost/res1 out
<iq type='set' id='6cf4a37916a743e42009368a0022c5f6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:24:06.988 ***🔗
bob_messages_are_archived_2968@localhost/res1 in
<iq from='localhost' to='bob_messages_are_archived_2968@localhost/res1' id='6cf4a37916a743e42009368a0022c5f6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:24:06.988 ***🔗
bob_messages_are_archived_2968@localhost/res1 out
<presence/>
*** User 2024-04-26 13:24:06.992 ***🔗
bob_messages_are_archived_2968@localhost/res1 in
<presence from='bob_messages_are_archived_2968@localhost/res1' to='bob_messages_are_archived_2968@localhost/res1'/>
*** User 2024-04-26 13:24:07.004 ***🔗
REST request:
Code: 204
Req: {<0.80475.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d2677ead609b0853">>}],
<<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_archived_2968@localhost\",\"caller\":\"bob_messages_are_archived_2968@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:24:06 GMT">>}],
<<>>,80,10526}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_archived_2968@localhost\",\"caller\":\"bob_messages_are_archived_2968@localhost\"}">>,
role => admin,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-26 13:24:07.008 ***🔗
REST request:
Code: 204
Req: {<0.80491.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7210a9bc2c819717">>}],
<<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_archived_2968@localhost\",\"caller\":\"alice_messages_are_archived_2968@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:24:06 GMT">>}],
<<>>,80,3388}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_archived_2968@localhost\",\"caller\":\"alice_messages_are_archived_2968@localhost\"}">>,
role => admin,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-26 13:24:07.074 ***🔗
REST request:
Code: 200
Req: {<0.80499.0>,
<<"/api/messages/alice_messages_are_archived_2968@localhost/bob_messages_are_archived_2968@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ac38653fbe6e0b01">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:24:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"1d38d961e6e402f8\",\"sender\":\"bob_messages_are_archived_2968@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714137847},{\"message_id\":\"6299e33f940387b3\",\"sender\":\"alice_messages_are_archived_2968@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714137847}]">>,
396,3658}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2968@localhost/bob_messages_are_archived_2968@localhost?limit=10">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-26 13:24:07.079 ***🔗
REST request:
Code: 200
Req: {<0.80504.0>,
<<"/api/messages/alice_messages_are_archived_2968@localhost/bob_messages_are_archived_2968@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"25d8b6d2db83e2c1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:24:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"1d38d961e6e402f8\",\"sender\":\"bob_messages_are_archived_2968@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714137847},{\"message_id\":\"6299e33f940387b3\",\"sender\":\"alice_messages_are_archived_2968@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714137847}]">>,
396,3424}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2968@localhost/bob_messages_are_archived_2968@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-26 13:24:07.083 ***🔗
REST request:
Code: 200
Req: {<0.80506.0>,
<<"/api/messages/alice_messages_are_archived_2968@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2043686aec8c41f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:24:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"1d38d961e6e402f8\",\"sender\":\"bob_messages_are_archived_2968@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714137847},{\"message_id\":\"6299e33f940387b3\",\"sender\":\"alice_messages_are_archived_2968@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714137847}]">>,
396,2689}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2968@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-26 13:24:07.083 ***🔗
bob_messages_are_archived_2968@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:24:07.083 ***🔗
bob_messages_are_archived_2968@localhost/res1 in
</stream:stream>
*** User 2024-04-26 13:24:07.084 ***🔗
alice_messages_are_archived_2968@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:24:07.084 ***🔗
alice_messages_are_archived_2968@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:24:07
=== successfully completed test case
=== === Returned value: ok