=== Test case: rest_client_SUITE:messages_with_user_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.messages_with_user_are_archived.86274.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_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83ffa7582c98d9f5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.834 ***
alicE_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMTU2MQBtYXR5Z3J5c2E=</auth>
*** User 2022-05-25 10:51:25.837 ***
alicE_messages_with_user_are_archived_1561@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.837 ***
alicE_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='792cb65eb6089b69' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.839 ***
alicE_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='ea583191ae1db307049d7dc7cd6920de'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alicE_messages_with_user_are_archived_1561@localhost/res1 in
<iq id='ea583191ae1db307049d7dc7cd6920de' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_1561@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='cd4ef99a6401cbed470b4bd5fc9703c3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_messages_with_user_are_archived_1561@localhost/res1 in
<iq type='result' id='cd4ef99a6401cbed470b4bd5fc9703c3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.839 ***
alice_messages_with_user_are_archived_1561@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.879 ***
alice_messages_with_user_are_archived_1561@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_1561@localhost/res1' to='alice_messages_with_user_are_archived_1561@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.883 ***
bOb_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5137f049eab69f5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.884 ***
bOb_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzE1NjEAbWFrcm9saWth</auth>
*** User 2022-05-25 10:51:25.885 ***
bOb_messages_with_user_are_archived_1561@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.885 ***
bOb_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='55bb02fb2edbb3e5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.886 ***
bOb_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='e60bfd99ddec9886074c1b7322a72601'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bOb_messages_with_user_are_archived_1561@localhost/res1 in
<iq id='e60bfd99ddec9886074c1b7322a72601' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_1561@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='8af82d832283808b22ece1648fd555ed'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_messages_with_user_are_archived_1561@localhost/res1 in
<iq type='result' id='8af82d832283808b22ece1648fd555ed'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.887 ***
bob_messages_with_user_are_archived_1561@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.891 ***
bob_messages_with_user_are_archived_1561@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_1561@localhost/res1' to='bob_messages_with_user_are_archived_1561@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.892 ***
kate_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44ab7f611a567b45' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.892 ***
kate_messages_with_user_are_archived_1561@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.892 ***
kate_messages_with_user_are_archived_1561@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNTYxAG1ha3Jvd2U7cA==</auth>
*** User 2022-05-25 10:51:25.894 ***
kate_messages_with_user_are_archived_1561@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:25.894 ***
kate_messages_with_user_are_archived_1561@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_messages_with_user_are_archived_1561@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7c7d59883c8c9d1b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:25.894 ***
kate_messages_with_user_are_archived_1561@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.894 ***
kate_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='6740414c94c7bde2a371c1c5a8c2ac50'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:25.895 ***
kate_messages_with_user_are_archived_1561@localhost/res1 in
<iq id='6740414c94c7bde2a371c1c5a8c2ac50' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_1561@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:25.895 ***
kate_messages_with_user_are_archived_1561@localhost/res1 out
<iq type='set' id='017fb641de29cae3a1143e3ce2964145'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.896 ***
kate_messages_with_user_are_archived_1561@localhost/res1 in
<iq type='result' id='017fb641de29cae3a1143e3ce2964145'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:25.896 ***
kate_messages_with_user_are_archived_1561@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:25.899 ***
kate_messages_with_user_are_archived_1561@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_1561@localhost/res1' to='kate_messages_with_user_are_archived_1561@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:25.993 ***
REST request:
Code: 200
Req: {<0.22902.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c245178b553690ff">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMTU2MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_1561@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\":\"0c29c288-6a80-478e-a3cd-3245d0bcfea8\"}">>,169,10044}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_1561@localhost it's me\"}">>,
creds =>
{<<"bob_messages_with_user_are_archived_1561@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:26.091 ***
REST request:
Code: 200
Req: {<0.22918.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"75c3c03566ee7dcc">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNTYxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_1561@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\":\"f21174c2-9a60-4a49-9283-f3e2783f10d8\"}">>,169,10939}
Params: #{body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_1561@localhost it's me\"}">>,
creds =>
{<<"alice_messages_with_user_are_archived_1561@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.22926.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1bc5f8abd8a373f8">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzE1NjFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_1561@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\":\"e964441d-257f-4353-8138-125f283f9c94\"}">>,169,9150}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_1561@localhost it's me\"}">>,
creds =>
{<<"kate_messages_with_user_are_archived_1561@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:28.716 ***
REST request:
Code: 200
Req: {<0.22943.1>,
<<"/api/messages/kate_messages_with_user_are_archived_1561@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3b0f1b11156ea61">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNTYxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_1561@localhost\",\"timestamp\":1653475886186,\"id\":\"e964441d-257f-4353-8138-125f283f9c94\",\"from\":\"kate_messages_with_user_are_archived_1561@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_1561@localhost it's me\"}]">>,
396,11668}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_with_user_are_archived_1561@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/kate_messages_with_user_are_archived_1561@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:28.716 ***
kate_messages_with_user_are_archived_1561@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.717 ***
kate_messages_with_user_are_archived_1561@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:28.717 ***
bob_messages_with_user_are_archived_1561@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.717 ***
bob_messages_with_user_are_archived_1561@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:28.717 ***
alice_messages_with_user_are_archived_1561@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:28.718 ***
alice_messages_with_user_are_archived_1561@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:51:28
=== successfully completed test case
=== === Returned value: ok