=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87918.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@f53478984827.2024-04-24_13.07.56/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.23.22/rest_client_suite.all_messages_are_archived.164355.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@f53478984827.2024-04-24_13.07.56/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.23.22/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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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_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@f53478984827.2024-04-24_13.07.56"
=== Started at 2024-04-24 13:23:22
*** User 2024-04-24 13:23:22.976 ***🔗
alicE_all_messages_are_archived_3180@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-24 13:23:22.977 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df8f5632f18399cd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:22.977 ***🔗
alicE_all_messages_are_archived_3180@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-24 13:23:22.977 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzE4MABtYXR5Z3J5c2E=</auth>
*** User 2024-04-24 13:23:22.980 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:22.980 ***🔗
alicE_all_messages_are_archived_3180@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-24 13:23:22.980 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06aff9672cba22ce' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_3180@localhost'>
*** User 2024-04-24 13:23:22.981 ***🔗
alicE_all_messages_are_archived_3180@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-24 13:23:22.981 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='5b050d9e0c0188e33c5231dc524b4670'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:22.981 ***🔗
alicE_all_messages_are_archived_3180@localhost/res1 in
<iq id='5b050d9e0c0188e33c5231dc524b4670' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_3180@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:22.981 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='8887ce3333d9440ce7e5995247892d74'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:22.982 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_3180@localhost/res1' id='8887ce3333d9440ce7e5995247892d74' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:22.982 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:22.988 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 in
<presence from='alice_all_messages_are_archived_3180@localhost/res1' to='alice_all_messages_are_archived_3180@localhost/res1'/>
*** User 2024-04-24 13:23:22.988 ***🔗
bOb_all_messages_are_archived_3180@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-24 13:23:22.989 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9d6c1a6d7615175' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:22.989 ***🔗
bOb_all_messages_are_archived_3180@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-24 13:23:22.989 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMxODAAbWFrcm9saWth</auth>
*** User 2024-04-24 13:23:22.991 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:22.991 ***🔗
bOb_all_messages_are_archived_3180@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-24 13:23:22.992 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7632b695c4f12565' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_3180@localhost'>
*** User 2024-04-24 13:23:22.992 ***🔗
bOb_all_messages_are_archived_3180@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-24 13:23:22.992 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='f3c6edd0161c45c5a84c87cb49a412e7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:22.992 ***🔗
bOb_all_messages_are_archived_3180@localhost/res1 in
<iq id='f3c6edd0161c45c5a84c87cb49a412e7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_3180@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:22.992 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='a4889876b5d52852803c9814fbdc2dd6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:22.994 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_3180@localhost/res1' id='a4889876b5d52852803c9814fbdc2dd6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:22.994 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:22.999 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 in
<presence from='bob_all_messages_are_archived_3180@localhost/res1' to='bob_all_messages_are_archived_3180@localhost/res1'/>
*** User 2024-04-24 13:23:22.999 ***🔗
kate_all_messages_are_archived_3180@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-24 13:23:23.000 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af7e983561b9e6b9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:23.000 ***🔗
kate_all_messages_are_archived_3180@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-24 13:23:23.000 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTgwAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-24 13:23:23.002 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:23.002 ***🔗
kate_all_messages_are_archived_3180@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-24 13:23:23.002 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d8179d0ad6e6d09' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_3180@localhost'>
*** User 2024-04-24 13:23:23.002 ***🔗
kate_all_messages_are_archived_3180@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-24 13:23:23.002 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='224e9409074d05f298e24fbb24936958'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:23.003 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<iq id='224e9409074d05f298e24fbb24936958' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_3180@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:23.003 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 out
<iq type='set' id='0debafa4ad41adbf8bee3b05d66e52f7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:23.004 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_3180@localhost/res1' id='0debafa4ad41adbf8bee3b05d66e52f7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:23.004 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:23.007 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
<presence from='kate_all_messages_are_archived_3180@localhost/res1' to='kate_all_messages_are_archived_3180@localhost/res1'/>
*** User 2024-04-24 13:23:23.074 ***🔗
REST request:
Code: 200
Req: {<0.88027.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"201044b372bf21e9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3180@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"a9f81b1f22ae48f9\"}">>,149,59768}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3180@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_all_messages_are_archived_3180@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:23.086 ***🔗
REST request:
Code: 200
Req: {<0.88072.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd37a8782f78847d">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTgwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_3180@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3180@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"dce92a901b00c27e\"}">>,149,5052}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_3180@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3180@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_all_messages_are_archived_3180@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-24 13:23:23.101 ***🔗
REST request:
Code: 200
Req: {<0.88096.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc468eebfffb5aed">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMxODBAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3180@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"47e05c7f40445fb7\"}">>,149,7680}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3180@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_all_messages_are_archived_3180@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-24 13:23:23.110 ***🔗
REST request:
Code: 200
Req: {<0.88119.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78c8972ae84d4f7c">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTgwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_3180@localhost\",\"timestamp\":1713965003019,\"id\":\"a9f81b1f22ae48f9\",\"from\":\"bob_all_messages_are_archived_3180@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_3180@localhost\",\"timestamp\":1713965003082,\"id\":\"dce92a901b00c27e\",\"from\":\"alice_all_messages_are_archived_3180@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3180@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_3180@localhost\",\"timestamp\":1713965003096,\"id\":\"47e05c7f40445fb7\",\"from\":\"kate_all_messages_are_archived_3180@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3180@localhost it's me\"}]">>,
818,3105}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_all_messages_are_archived_3180@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:23.111 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:23.111 ***🔗
kate_all_messages_are_archived_3180@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:23:23.111 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:23.111 ***🔗
bob_all_messages_are_archived_3180@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:23:23.111 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:23.112 ***🔗
alice_all_messages_are_archived_3180@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-24 13:23:23
=== successfully completed test case
=== === Returned value: ok