=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.85942.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@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_11.34.02/rest_client_suite.all_messages_are_archived.161155.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@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_11.34.02/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,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@c4570d256f6e.2024-02-22_11.16.10"
=== Started at 2024-02-22 11:34:02
*** User 2024-02-22 11:34:02.971 ***🔗
alicE_all_messages_are_archived_3225@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-02-22 11:34:02.971 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13a3dcfd40b3294b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 11:34:02.972 ***🔗
alicE_all_messages_are_archived_3225@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-02-22 11:34:02.972 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzIyNQBtYXR5Z3J5c2E=</auth>
*** User 2024-02-22 11:34:02.974 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 11:34:02.974 ***🔗
alicE_all_messages_are_archived_3225@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-02-22 11:34:02.974 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b940cf4928145fbe' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_3225@localhost'>
*** User 2024-02-22 11:34:02.974 ***🔗
alicE_all_messages_are_archived_3225@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-02-22 11:34:02.974 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='e444244fc1167dd2814e630a4e8e561b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 11:34:02.975 ***🔗
alicE_all_messages_are_archived_3225@localhost/res1 in
<iq id='e444244fc1167dd2814e630a4e8e561b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_3225@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 11:34:02.975 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='7ce74494066d18dfd3b53a249576eaa5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.975 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_3225@localhost/res1' id='7ce74494066d18dfd3b53a249576eaa5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.975 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 out
<presence/>
*** User 2024-02-22 11:34:02.978 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 in
<presence from='alice_all_messages_are_archived_3225@localhost/res1' to='alice_all_messages_are_archived_3225@localhost/res1'/>
*** User 2024-02-22 11:34:02.978 ***🔗
bOb_all_messages_are_archived_3225@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-02-22 11:34:02.978 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6ecb55343826730' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 11:34:02.979 ***🔗
bOb_all_messages_are_archived_3225@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-02-22 11:34:02.979 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMyMjUAbWFrcm9saWth</auth>
*** User 2024-02-22 11:34:02.981 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 11:34:02.981 ***🔗
bOb_all_messages_are_archived_3225@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-02-22 11:34:02.982 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e96dad5cf02822f7' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_3225@localhost'>
*** User 2024-02-22 11:34:02.982 ***🔗
bOb_all_messages_are_archived_3225@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-02-22 11:34:02.982 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='58cf59c061c8d5c5c08143bdd28e2d72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 11:34:02.982 ***🔗
bOb_all_messages_are_archived_3225@localhost/res1 in
<iq id='58cf59c061c8d5c5c08143bdd28e2d72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_3225@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 11:34:02.983 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='87483272458f88361b64c58e135184a4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:03.035 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_3225@localhost/res1' id='87483272458f88361b64c58e135184a4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:03.035 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 out
<presence/>
*** User 2024-02-22 11:34:03.038 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 in
<presence from='bob_all_messages_are_archived_3225@localhost/res1' to='bob_all_messages_are_archived_3225@localhost/res1'/>
*** User 2024-02-22 11:34:03.038 ***🔗
kate_all_messages_are_archived_3225@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-02-22 11:34:03.040 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fb3f68b34f80fa3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 11:34:03.040 ***🔗
kate_all_messages_are_archived_3225@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-02-22 11:34:03.040 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMjI1AG1ha3Jvd2U7cA==</auth>
*** User 2024-02-22 11:34:03.042 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 11:34:03.042 ***🔗
kate_all_messages_are_archived_3225@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-02-22 11:34:03.042 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='45b90e4dfb43432c' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_3225@localhost'>
*** User 2024-02-22 11:34:03.042 ***🔗
kate_all_messages_are_archived_3225@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-02-22 11:34:03.042 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='e76185acaeb84b5cc0aeb651eaba0bd8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 11:34:03.043 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<iq id='e76185acaeb84b5cc0aeb651eaba0bd8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_3225@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 11:34:03.043 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 out
<iq type='set' id='ca33ad22f1ed7bde8a5050b9fb05024e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:03.043 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_3225@localhost/res1' id='ca33ad22f1ed7bde8a5050b9fb05024e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:03.044 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 out
<presence/>
*** User 2024-02-22 11:34:03.046 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
<presence from='kate_all_messages_are_archived_3225@localhost/res1' to='kate_all_messages_are_archived_3225@localhost/res1'/>
*** User 2024-02-22 11:34:03.066 ***🔗
REST request:
Code: 200
Req: {<0.86067.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e40a3bdc9510d2ac">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzIyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"649893ab6d174113\"}">>,149,14879}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_all_messages_are_archived_3225@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"}">>,
role => client,return_headers => true}
*** User 2024-02-22 11:34:03.077 ***🔗
REST request:
Code: 200
Req: {<0.86106.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e19baa95d5321fe">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMjI1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_3225@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3225@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"7ac656bf537dd83f\"}">>,149,4406}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_all_messages_are_archived_3225@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"to\":\"bob_all_messages_are_archived_3225@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3225@localhost it's me\"}">>,
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-02-22 11:34:03.145 ***🔗
REST request:
Code: 200
Req: {<0.86127.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be57b148015e61f5">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMyMjVAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"2c1c28f57e4e11a2\"}">>,149,60849}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"kate_all_messages_are_archived_3225@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"}">>,
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-02-22 11:34:03.156 ***🔗
REST request:
Code: 200
Req: {<0.86151.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2682ba16793d868">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMjI1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"timestamp\":1708601643052,\"id\":\"649893ab6d174113\",\"from\":\"bob_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_3225@localhost\",\"timestamp\":1708601643074,\"id\":\"7ac656bf537dd83f\",\"from\":\"alice_all_messages_are_archived_3225@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3225@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_3225@localhost\",\"timestamp\":1708601643137,\"id\":\"2c1c28f57e4e11a2\",\"from\":\"kate_all_messages_are_archived_3225@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3225@localhost it's me\"}]">>,
818,4014}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_all_messages_are_archived_3225@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-02-22 11:34:03.156 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 out
</stream:stream>
*** User 2024-02-22 11:34:03.156 ***🔗
kate_all_messages_are_archived_3225@localhost/res1 in
</stream:stream>
*** User 2024-02-22 11:34:03.156 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 out
</stream:stream>
*** User 2024-02-22 11:34:03.157 ***🔗
bob_all_messages_are_archived_3225@localhost/res1 in
</stream:stream>
*** User 2024-02-22 11:34:03.157 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 out
</stream:stream>
*** User 2024-02-22 11:34:03.157 ***🔗
alice_all_messages_are_archived_3225@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-22 11:34:03
=== successfully completed test case
=== === Returned value: ok