=== Test case: rest_SUITE:messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.79949.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@567ce96ed226.2024-04-25_14.56.57/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.10.26/rest_suite.messages_are_archived.153731.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@567ce96ed226.2024-04-25_14.56.57/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.10.26/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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => cets,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
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@567ce96ed226.2024-04-25_14.56.57"
=== Started at 2024-04-25 15:10:26
*** User 2024-04-25 15:10:26.612 ***🔗
alicE_messages_are_archived_2932@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 15:10:26.612 ***🔗
alicE_messages_are_archived_2932@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75ea70a4595efd1f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 15:10:26.613 ***🔗
alicE_messages_are_archived_2932@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 15:10:26.613 ***🔗
alicE_messages_are_archived_2932@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTMyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 15:10:26.614 ***🔗
alicE_messages_are_archived_2932@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 15:10:26.614 ***🔗
alicE_messages_are_archived_2932@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 15:10:26.615 ***🔗
alicE_messages_are_archived_2932@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f2a809c1809ce55' from='localhost' version='1.0' xml:lang='en' to='alice_messages_are_archived_2932@localhost'>
*** User 2024-04-25 15:10:26.615 ***🔗
alicE_messages_are_archived_2932@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 15:10:26.615 ***🔗
alicE_messages_are_archived_2932@localhost/res1 out
<iq type='set' id='5ee5985e1578337d37a1300b9b1fe75d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 15:10:26.616 ***🔗
alicE_messages_are_archived_2932@localhost/res1 in
<iq id='5ee5985e1578337d37a1300b9b1fe75d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_are_archived_2932@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 15:10:26.616 ***🔗
alice_messages_are_archived_2932@localhost/res1 out
<iq type='set' id='a171e005d365705a92e5e6e9eedcd290'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:10:26.617 ***🔗
alice_messages_are_archived_2932@localhost/res1 in
<iq from='localhost' to='alice_messages_are_archived_2932@localhost/res1' id='a171e005d365705a92e5e6e9eedcd290' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:10:26.618 ***🔗
alice_messages_are_archived_2932@localhost/res1 out
<presence/>
*** User 2024-04-25 15:10:26.621 ***🔗
alice_messages_are_archived_2932@localhost/res1 in
<presence from='alice_messages_are_archived_2932@localhost/res1' to='alice_messages_are_archived_2932@localhost/res1'/>
*** User 2024-04-25 15:10:26.621 ***🔗
bOb_messages_are_archived_2932@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 15:10:26.622 ***🔗
bOb_messages_are_archived_2932@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1c343bcda2cb301' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 15:10:26.622 ***🔗
bOb_messages_are_archived_2932@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 15:10:26.622 ***🔗
bOb_messages_are_archived_2932@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjkzMgBtYWtyb2xpa2E=</auth>
*** User 2024-04-25 15:10:26.623 ***🔗
bOb_messages_are_archived_2932@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 15:10:26.623 ***🔗
bOb_messages_are_archived_2932@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 15:10:26.624 ***🔗
bOb_messages_are_archived_2932@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43f45d0a441cb015' from='localhost' version='1.0' xml:lang='en' to='bob_messages_are_archived_2932@localhost'>
*** User 2024-04-25 15:10:26.624 ***🔗
bOb_messages_are_archived_2932@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 15:10:26.624 ***🔗
bOb_messages_are_archived_2932@localhost/res1 out
<iq type='set' id='0a388d10d33a9575710b3cf54ab3e5cd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 15:10:26.624 ***🔗
bOb_messages_are_archived_2932@localhost/res1 in
<iq id='0a388d10d33a9575710b3cf54ab3e5cd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_are_archived_2932@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 15:10:26.626 ***🔗
bob_messages_are_archived_2932@localhost/res1 out
<iq type='set' id='37a34f38b7b4c083adbffb0176abc02f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:10:26.634 ***🔗
bob_messages_are_archived_2932@localhost/res1 in
<iq from='localhost' to='bob_messages_are_archived_2932@localhost/res1' id='37a34f38b7b4c083adbffb0176abc02f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:10:26.634 ***🔗
bob_messages_are_archived_2932@localhost/res1 out
<presence/>
*** User 2024-04-25 15:10:26.637 ***🔗
bob_messages_are_archived_2932@localhost/res1 in
<presence from='bob_messages_are_archived_2932@localhost/res1' to='bob_messages_are_archived_2932@localhost/res1'/>
*** User 2024-04-25 15:10:26.655 ***🔗
REST request:
Code: 204
Req: {<0.80250.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af6328c19ea72697">>}],
<<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_archived_2932@localhost\",\"caller\":\"bob_messages_are_archived_2932@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>}],
<<>>,80,13407}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_archived_2932@localhost\",\"caller\":\"bob_messages_are_archived_2932@localhost\"}">>,
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-25 15:10:26.659 ***🔗
REST request:
Code: 204
Req: {<0.80269.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6f45978ee890be5">>}],
<<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_archived_2932@localhost\",\"caller\":\"alice_messages_are_archived_2932@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>}],
<<>>,80,2705}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_archived_2932@localhost\",\"caller\":\"alice_messages_are_archived_2932@localhost\"}">>,
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-25 15:10:26.666 ***🔗
REST request:
Code: 200
Req: {<0.80278.0>,
<<"/api/messages/alice_messages_are_archived_2932@localhost/bob_messages_are_archived_2932@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fb5600ad126215d9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"780291e462a04122\",\"sender\":\"bob_messages_are_archived_2932@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714057827},{\"message_id\":\"1d313ef4980f4bdb\",\"sender\":\"alice_messages_are_archived_2932@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714057827}]">>,
396,5623}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2932@localhost/bob_messages_are_archived_2932@localhost?limit=10">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
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 15:10:26.670 ***🔗
REST request:
Code: 200
Req: {<0.80283.0>,
<<"/api/messages/alice_messages_are_archived_2932@localhost/bob_messages_are_archived_2932@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2bee89a18a09e7d1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"780291e462a04122\",\"sender\":\"bob_messages_are_archived_2932@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714057827},{\"message_id\":\"1d313ef4980f4bdb\",\"sender\":\"alice_messages_are_archived_2932@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714057827}]">>,
396,2114}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2932@localhost/bob_messages_are_archived_2932@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:10:26.673 ***🔗
REST request:
Code: 200
Req: {<0.80291.0>,
<<"/api/messages/alice_messages_are_archived_2932@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24c5d56d18674ed8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:10:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"message_id\":\"780291e462a04122\",\"sender\":\"bob_messages_are_archived_2932@localhost\",\"body\":\"hello from Bob\",\"timestamp\":1714057827},{\"message_id\":\"1d313ef4980f4bdb\",\"sender\":\"alice_messages_are_archived_2932@localhost\",\"body\":\"hello from Alice\",\"timestamp\":1714057827}]">>,
396,1691}
Params: #{path =>
<<"/api/messages/alice_messages_are_archived_2932@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:10:26.673 ***🔗
bob_messages_are_archived_2932@localhost/res1 out
</stream:stream>
*** User 2024-04-25 15:10:26.674 ***🔗
bob_messages_are_archived_2932@localhost/res1 in
</stream:stream>
*** User 2024-04-25 15:10:26.674 ***🔗
alice_messages_are_archived_2932@localhost/res1 out
</stream:stream>
*** User 2024-04-25 15:10:26.674 ***🔗
alice_messages_are_archived_2932@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 15:10:26
=== successfully completed test case
=== === Returned value: ok