=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.20317.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/rest_client_suite.all_messages_are_archived.84098.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/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 => [],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"}]},
{welcome_message,{[],[]}}],
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@22b4515d438b.2022-04-05_07.43.19"
=== Started at 2022-04-05 07:57:10
*** User 2022-04-05 07:57:10.203 ***
alicE_all_messages_are_archived_1601@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-04-05 07:57:10.215 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='548ac307df532e31' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.216 ***
alicE_all_messages_are_archived_1601@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-04-05 07:57:10.216 ***
alicE_all_messages_are_archived_1601@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTYwMQBtYXR5Z3J5c2E=</auth>
*** User 2022-04-05 07:57:10.220 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:10.221 ***
alicE_all_messages_are_archived_1601@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-04-05 07:57:10.224 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c47d6fe8e8006c5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.224 ***
alicE_all_messages_are_archived_1601@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-04-05 07:57:10.224 ***
alicE_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='1355cdafaaeb01d4306ec0023fa65727'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:10.225 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<iq id='1355cdafaaeb01d4306ec0023fa65727' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_all_messages_are_archived_1601@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:10.225 ***
alicE_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='68af0599f3f44293590f23f8e12fa2f1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.226 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<iq type='result' id='68af0599f3f44293590f23f8e12fa2f1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.226 ***
alicE_all_messages_are_archived_1601@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:10.260 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
<presence from='alicE_all_messages_are_archived_1601@localhost/res1' to='alice_all_messages_are_archived_1601@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:10.261 ***
bOb_all_messages_are_archived_1601@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-04-05 07:57:10.262 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9568095243e3ab38' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.262 ***
bOb_all_messages_are_archived_1601@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-04-05 07:57:10.263 ***
bOb_all_messages_are_archived_1601@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE2MDEAbWFrcm9saWth</auth>
*** User 2022-04-05 07:57:10.265 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:10.265 ***
bOb_all_messages_are_archived_1601@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-04-05 07:57:10.265 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b415977cd85774b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.266 ***
bOb_all_messages_are_archived_1601@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-04-05 07:57:10.266 ***
bOb_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='7317284ad8fa5e3c6c93c76416ad6ba0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:10.268 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<iq id='7317284ad8fa5e3c6c93c76416ad6ba0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_all_messages_are_archived_1601@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:10.268 ***
bOb_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='16f93ab0a79db2f3e16a5837c27df2a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.268 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<iq type='result' id='16f93ab0a79db2f3e16a5837c27df2a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.268 ***
bOb_all_messages_are_archived_1601@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:10.313 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
<presence from='bOb_all_messages_are_archived_1601@localhost/res1' to='bob_all_messages_are_archived_1601@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:10.314 ***
kate_all_messages_are_archived_1601@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-04-05 07:57:10.314 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d93cefb2d526cc59' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.314 ***
kate_all_messages_are_archived_1601@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-04-05 07:57:10.315 ***
kate_all_messages_are_archived_1601@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjAxAG1ha3Jvd2U7cA==</auth>
*** User 2022-04-05 07:57:10.330 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:10.330 ***
kate_all_messages_are_archived_1601@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-04-05 07:57:10.330 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='38093dc0a8d434f7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:10.331 ***
kate_all_messages_are_archived_1601@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-04-05 07:57:10.331 ***
kate_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='468ae2b769888fefafc2cf483e916897'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:10.331 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<iq id='468ae2b769888fefafc2cf483e916897' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_1601@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:10.332 ***
kate_all_messages_are_archived_1601@localhost/res1 out
<iq type='set' id='da12e85385c0df1f5f880deab0bd2afc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.332 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<iq type='result' id='da12e85385c0df1f5f880deab0bd2afc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:10.332 ***
kate_all_messages_are_archived_1601@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:10.367 ***
kate_all_messages_are_archived_1601@localhost/res1 in
<presence from='kate_all_messages_are_archived_1601@localhost/res1' to='kate_all_messages_are_archived_1601@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:10.407 ***
REST request:
Code: 200
Req: {<0.20415.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3f58922c51d2c97">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTYwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"d8a6cffa-090b-4e56-b821-3e5741752b13\"}">>,169,24912}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"}">>,
creds =>
{<<"bob_all_messages_are_archived_1601@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:10.519 ***
REST request:
Code: 200
Req: {<0.20425.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd62e24c4823c788">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjAxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_all_messages_are_archived_1601@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1601@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"7c8c2705-8d65-4dca-b792-e28e69a38603\"}">>,169,52207}
Params: #{body =>
<<"{\"to\":\"bob_all_messages_are_archived_1601@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1601@localhost it's me\"}">>,
creds =>
{<<"alice_all_messages_are_archived_1601@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-04-05 07:57:10.586 ***
REST request:
Code: 200
Req: {<0.20435.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"66d21da3aef09c49">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzE2MDFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"ad4f31f8-8a4b-4263-bc43-4919a113a8bc\"}">>,169,49245}
Params: #{body =>
<<"{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"}">>,
creds =>
{<<"kate_all_messages_are_archived_1601@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:13.129 ***
REST request:
Code: 200
Req: {<0.20445.1>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e13effdf012e2e0">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjAxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"753">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"timestamp\":1649145430386,\"id\":\"d8a6cffa-090b-4e56-b821-3e5741752b13\",\"from\":\"bob_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_1601@localhost\",\"timestamp\":1649145430469,\"id\":\"7c8c2705-8d65-4dca-b792-e28e69a38603\",\"from\":\"alice_all_messages_are_archived_1601@localhost\",\"body\":\"hello, bob_all_messages_are_archived_1601@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_1601@localhost\",\"timestamp\":1649145430548,\"id\":\"ad4f31f8-8a4b-4263-bc43-4919a113a8bc\",\"from\":\"kate_all_messages_are_archived_1601@localhost\",\"body\":\"hello, alice_all_messages_are_archived_1601@localhost it's me\"}]">>,
878,27875}
Params: #{body => <<>>,
creds =>
{<<"alice_all_messages_are_archived_1601@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,path => <<"/api/messages/">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:13.130 ***
kate_all_messages_are_archived_1601@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:13.131 ***
kate_all_messages_are_archived_1601@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:13.131 ***
bOb_all_messages_are_archived_1601@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:13.131 ***
bOb_all_messages_are_archived_1601@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:13.131 ***
alicE_all_messages_are_archived_1601@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:13.132 ***
alicE_all_messages_are_archived_1601@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-05 07:57:13
=== successfully completed test case
=== === Returned value: ok