=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.22745.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,riak},
{archive_wait,2500},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_10.51.25/rest_client_suite.all_messages_are_archived.86146.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_10.51.25/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => #{},mod_muc_light_commands => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
store_current_id => false,versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:51:25
*** User 2022-05-25 10:51:25.832 ***
alicE_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.834 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ef3e8f45ebbe033' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.834 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.834 ***
alicE_all_messages_are_archived_1559@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTU1OQBtYXR5Z3J5c2E=</auth>
*** User 2022-05-25 10:51:25.837 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.837 ***
alicE_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.838 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='19d32ce3c712d923' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.839 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.839 ***
alicE_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='1f6bf34f52801e19d710e84dd6941825'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alicE_all_messages_are_archived_1559@localhost/res1 in
<iq id='1f6bf34f52801e19d710e84dd6941825' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_1559@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='e90a6cdc2b30bf87b691b9476005ad9e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_all_messages_are_archived_1559@localhost/res1 in
<iq type='result' id='e90a6cdc2b30bf87b691b9476005ad9e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_all_messages_are_archived_1559@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.879 ***
alice_all_messages_are_archived_1559@localhost/res1 in
<presence from='alice_all_messages_are_archived_1559@localhost/res1' to='alice_all_messages_are_archived_1559@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.883 ***
bOb_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.884 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6a711fc040e7991d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.884 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.884 ***
bOb_all_messages_are_archived_1559@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE1NTkAbWFrcm9saWth</auth>
*** User 2022-05-25 10:51:25.885 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.885 ***
bOb_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.886 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7b746ac14c492b9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.887 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.887 ***
bOb_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='507eb591ff339f68c372a7f9c20fea55'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bOb_all_messages_are_archived_1559@localhost/res1 in
<iq id='507eb591ff339f68c372a7f9c20fea55' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_1559@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='4f1238b5060009cd404e1cd570a20cb4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_all_messages_are_archived_1559@localhost/res1 in
<iq type='result' id='4f1238b5060009cd404e1cd570a20cb4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_all_messages_are_archived_1559@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.891 ***
bob_all_messages_are_archived_1559@localhost/res1 in
<presence from='bob_all_messages_are_archived_1559@localhost/res1' to='bob_all_messages_are_archived_1559@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.892 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.892 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c444e75a85a6b3e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.893 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.893 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNTU5AG1ha3Jvd2U7cA==</auth>
*** User 2022-05-25 10:51:25.894 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.894 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:25.894 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2babaa910ce0451' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.895 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:51:25.895 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='3ba8b57da4d7fdae739590f821db5af7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.895 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<iq id='3ba8b57da4d7fdae739590f821db5af7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_1559@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.895 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<iq type='set' id='a66d5dfdc1eb546b99755a5621dd5880'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.895 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<iq type='result' id='a66d5dfdc1eb546b99755a5621dd5880'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.896 ***
kate_all_messages_are_archived_1559@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.899 ***
kate_all_messages_are_archived_1559@localhost/res1 in
<presence from='kate_all_messages_are_archived_1559@localhost/res1' to='kate_all_messages_are_archived_1559@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.994 ***
REST request:
Code: 200
Req: {<0.22900.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"836da488de2ceccc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTU1OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"0547405c-02af-4378-a502-3098a6587051\"}">>,169,12188}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"}">>,
creds =>
{<<"bob_all_messages_are_archived_1559@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:26.092 ***
REST request:
Code: 200
Req: {<0.22917.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf7b878ba5a29984">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNTU5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_1559@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1559@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"41ad39cb-b02d-4223-a0d9-d034c651fa59\"}">>,169,10586}
Params: #{body =>
<<"{\"to\":\"bob_all_messages_are_archived_1559@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1559@localhost it's me\"}">>,
creds =>
{<<"alice_all_messages_are_archived_1559@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
*** User 2022-05-25 10:51:26.193 ***
REST request:
Code: 200
Req: {<0.22929.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d71b459d3558e19">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE1NTlAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"abd924e5-1b95-482a-abf6-fb8dfed95fb6\"}">>,169,8987}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"}">>,
creds =>
{<<"kate_all_messages_are_archived_1559@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:28.718 ***
REST request:
Code: 200
Req: {<0.22941.1>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"94719e650c6b08c4">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNTU5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"753">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"timestamp\":1653475885985,\"id\":\"0547405c-02af-4378-a502-3098a6587051\",\"from\":\"bob_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_1559@localhost\",\"timestamp\":1653475886083,\"id\":\"41ad39cb-b02d-4223-a0d9-d034c651fa59\",\"from\":\"alice_all_messages_are_archived_1559@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1559@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_1559@localhost\",\"timestamp\":1653475886186,\"id\":\"abd924e5-1b95-482a-abf6-fb8dfed95fb6\",\"from\":\"kate_all_messages_are_archived_1559@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1559@localhost it's me\"}]">>,
878,15310}
Params: #{body => <<>>,
creds =>
{<<"alice_all_messages_are_archived_1559@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,path => <<"/api/messages/">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:28.719 ***
kate_all_messages_are_archived_1559@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.719 ***
kate_all_messages_are_archived_1559@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:28.719 ***
bob_all_messages_are_archived_1559@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.720 ***
bob_all_messages_are_archived_1559@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:28.720 ***
alice_all_messages_are_archived_1559@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.720 ***
alice_all_messages_are_archived_1559@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:51:28
=== successfully completed test case
=== === Returned value: ok