=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.88237.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@4aeb44627b29.2024-04-22_14.49.59/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.07.32/rest_client_suite.all_messages_are_archived.162307.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@4aeb44627b29.2024-04-22_14.49.59/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.07.32/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_amp => #{},
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_disco =>
#{server_info => [],iqdisc => one_queue,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@4aeb44627b29.2024-04-22_14.49.59"
=== Started at 2024-04-22 15:07:32
*** User 2024-04-22 15:07:32.805 ***🔗
alicE_all_messages_are_archived_3377@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-22 15:07:32.806 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d19a2a4b79a96df5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.806 ***🔗
alicE_all_messages_are_archived_3377@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-22 15:07:32.806 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzM3NwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 15:07:32.808 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.808 ***🔗
alicE_all_messages_are_archived_3377@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-22 15:07:32.809 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e0ed11a040c5acc' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_3377@localhost'>
*** User 2024-04-22 15:07:32.809 ***🔗
alicE_all_messages_are_archived_3377@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-22 15:07:32.809 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='a769951b12a7c8254bd52b1081d8556f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.809 ***🔗
alicE_all_messages_are_archived_3377@localhost/res1 in
<iq id='a769951b12a7c8254bd52b1081d8556f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_3377@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.810 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='fd673342d8420c983d3ffe7a2cd5f736'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.810 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_3377@localhost/res1' id='fd673342d8420c983d3ffe7a2cd5f736' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.810 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.813 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 in
<presence from='alice_all_messages_are_archived_3377@localhost/res1' to='alice_all_messages_are_archived_3377@localhost/res1'/>
*** User 2024-04-22 15:07:32.813 ***🔗
bOb_all_messages_are_archived_3377@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-22 15:07:32.814 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='322f87322b1e6f64' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.814 ***🔗
bOb_all_messages_are_archived_3377@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-22 15:07:32.814 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMzNzcAbWFrcm9saWth</auth>
*** User 2024-04-22 15:07:32.816 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.816 ***🔗
bOb_all_messages_are_archived_3377@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-22 15:07:32.816 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='512c6e1abce1ba64' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_3377@localhost'>
*** User 2024-04-22 15:07:32.816 ***🔗
bOb_all_messages_are_archived_3377@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-22 15:07:32.817 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='b0fd153cf95468594dc0a056a522fcee'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.817 ***🔗
bOb_all_messages_are_archived_3377@localhost/res1 in
<iq id='b0fd153cf95468594dc0a056a522fcee' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_3377@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.817 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='44d3d7f62949c664d5ae2879befd2481'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.817 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_3377@localhost/res1' id='44d3d7f62949c664d5ae2879befd2481' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.818 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.870 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 in
<presence from='bob_all_messages_are_archived_3377@localhost/res1' to='bob_all_messages_are_archived_3377@localhost/res1'/>
*** User 2024-04-22 15:07:32.871 ***🔗
kate_all_messages_are_archived_3377@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-22 15:07:32.872 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c11b41038d267711' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.872 ***🔗
kate_all_messages_are_archived_3377@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-22 15:07:32.872 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzc3AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 15:07:32.874 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.874 ***🔗
kate_all_messages_are_archived_3377@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-22 15:07:32.875 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a797b0804cc59676' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_3377@localhost'>
*** User 2024-04-22 15:07:32.875 ***🔗
kate_all_messages_are_archived_3377@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-22 15:07:32.875 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='d2943c5ba50955459ae939345da21406'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.877 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<iq id='d2943c5ba50955459ae939345da21406' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_3377@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.877 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 out
<iq type='set' id='e88b551b5d869c7f4794dc36695b302c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.878 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_3377@localhost/res1' id='e88b551b5d869c7f4794dc36695b302c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.878 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.880 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
<presence from='kate_all_messages_are_archived_3377@localhost/res1' to='kate_all_messages_are_archived_3377@localhost/res1'/>
*** User 2024-04-22 15:07:32.908 ***🔗
REST request:
Code: 200
Req: {<0.88356.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2659586c6630f2ef">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzM3N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3377@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"afe2324014e6056d\"}">>,149,20102}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3377@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_all_messages_are_archived_3377@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 15:07:32.976 ***🔗
REST request:
Code: 200
Req: {<0.88392.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"174539a9e9edf5ac">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzc3QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_3377@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3377@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"4ccf3b95d6c5bb44\"}">>,149,5721}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_3377@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3377@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"alice_all_messages_are_archived_3377@localhost">>,
<<"matygrysa">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-22 15:07:32.993 ***🔗
REST request:
Code: 200
Req: {<0.88410.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f9d46ad4d80ca10">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMzNzdAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3377@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"19d7e7731221af18\"}">>,149,11554}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3377@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"kate_all_messages_are_archived_3377@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2024-04-22 15:07:33.002 ***🔗
REST request:
Code: 200
Req: {<0.88430.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea2a52c28aa04357">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzc3QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_3377@localhost\",\"timestamp\":1713798452898,\"id\":\"afe2324014e6056d\",\"from\":\"bob_all_messages_are_archived_3377@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_3377@localhost\",\"timestamp\":1713798452972,\"id\":\"4ccf3b95d6c5bb44\",\"from\":\"alice_all_messages_are_archived_3377@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3377@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_3377@localhost\",\"timestamp\":1713798452983,\"id\":\"19d7e7731221af18\",\"from\":\"kate_all_messages_are_archived_3377@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3377@localhost it's me\"}]">>,
818,3621}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"alice_all_messages_are_archived_3377@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 15:07:33.002 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.003 ***🔗
kate_all_messages_are_archived_3377@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:07:33.003 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.003 ***🔗
bob_all_messages_are_archived_3377@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:07:33.003 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.004 ***🔗
alice_all_messages_are_archived_3377@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:07:33
=== successfully completed test case
=== === Returned value: ok