=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.25744.1>},
{muc_light_host,<<"muclight2.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.messages_with_user_are_archived.109187.html"},
{tc_group_properties,[{name,messages},{repeat_until_all_ok,3},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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{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,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:44
*** User 2022-01-27 12:36:44.491 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.492 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c4d86e46fbf7d9e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.492 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.492 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMTc0MQBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 12:36:44.493 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.493 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.493 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a13135f668ba8a18' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.493 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.493 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='86b7c5e44d5c089ed9ebdc20e40f92c7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.494 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq id='86b7c5e44d5c089ed9ebdc20e40f92c7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_with_user_are_archived_1741@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.494 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='832b91fdc2f04959f64d6015a2a5da54'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.494 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq type='result' id='832b91fdc2f04959f64d6015a2a5da54'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.494 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.504 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
<presence from='alicE_messages_with_user_are_archived_1741@domain.example.com/res1' to='alice_messages_with_user_are_archived_1741@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.509 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.510 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6cdc6b1a2ccf3f7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.510 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.510 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzE3NDEAbWFrcm9saWth</auth>
*** User 2022-01-27 12:36:44.511 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.511 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.512 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ab6f0334d57ca4d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.512 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.512 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='68fc1d20486d4a512cb4337154baf0e0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq id='68fc1d20486d4a512cb4337154baf0e0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_with_user_are_archived_1741@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.512 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='7c4b5ac965ce6640ea27695b2d563c1f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.513 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq type='result' id='7c4b5ac965ce6640ea27695b2d563c1f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.513 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.520 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
<presence from='bOb_messages_with_user_are_archived_1741@domain.example.com/res1' to='bob_messages_with_user_are_archived_1741@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.521 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.522 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='317c23bfab5872e0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.522 ***
kate_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.522 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNzQxAG1ha3Jvd2U7cA==</auth>
*** User 2022-01-27 12:36:44.523 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:44.523 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 12:36:44.524 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c01b742036d2fee' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:44.524 ***
kate_messages_with_user_are_archived_1741@domain.example.com/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-01-27 12:36:44.524 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='7757ee39fd786398f71f5b9f66141389'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:44.524 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq id='7757ee39fd786398f71f5b9f66141389' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_1741@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:44.524 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<iq type='set' id='0aadcf5bbaae7a4e7b915685a3ac2e26'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.525 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<iq type='result' id='0aadcf5bbaae7a4e7b915685a3ac2e26'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:44.525 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:44.537 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
<presence from='kate_messages_with_user_are_archived_1741@domain.example.com/res1' to='kate_messages_with_user_are_archived_1741@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:44.600 ***
REST request:
Code: 200
Req: {<0.25823.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"576cd0107ab2a300">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMTc0MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, alice_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"5e273abf-fa94-4fb1-93e2-aaa2c72a99b0\"}">>,169,51799}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, alice_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>,
creds =>
{<<"bob_messages_with_user_are_archived_1741@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:44.635 ***
REST request:
Code: 200
Req: {<0.25852.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ccf2273154738978">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNzQxQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, bob_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"0af7fbc3-6ba7-48ef-ac9b-1d027cf6cef6\"}">>,169,20519}
Params: #{body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, bob_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>,
creds =>
{<<"alice_messages_with_user_are_archived_1741@domain.example.com">>,
<<"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.
Could not find element archive_wait in Config.
*** User 2022-01-27 12:36:44.684 ***
REST request:
Code: 200
Req: {<0.25866.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"16be5bb999e66d54">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzE3NDFAZG9tYWluLmV4YW1wbGUuY29tOm1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, alice_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"b6292803-33a9-4a84-a275-6c1aaae2daf2\"}">>,169,40227}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, alice_messages_with_user_are_archived_1741@domain.example.com it's me\"}">>,
creds =>
{<<"kate_messages_with_user_are_archived_1741@domain.example.com">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:44.704 ***
REST request:
Code: 200
Req: {<0.25889.1>,
<<"/api/messages/kate_messages_with_user_are_archived_1741@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6383d9396008a40e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8xNzQxQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"298">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_1741@domain.example.com\",\"timestamp\":1643287004645,\"id\":\"b6292803-33a9-4a84-a275-6c1aaae2daf2\",\"from\":\"kate_messages_with_user_are_archived_1741@domain.example.com\",\"body\":\"hello, alice_messages_with_user_are_archived_1741@domain.example.com it's me\"}]">>,
423,4668}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_with_user_are_archived_1741@domain.example.com">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/kate_messages_with_user_are_archived_1741@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:44.705 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.705 ***
kate_messages_with_user_are_archived_1741@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:44.705 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.708 ***
bOb_messages_with_user_are_archived_1741@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:44.708 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:44.708 ***
alicE_messages_with_user_are_archived_1741@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:44
=== successfully completed test case
=== === Returned value: ok