=== Test case: rest_client_SUITE:message_query_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.86830.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/rest_client_suite.message_query_errors.153603.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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@d2b9c060e4a6.2024-03-12_11.08.00"
=== Started at 2024-03-12 11:25:55
*** User 2024-03-12 11:25:55.474 ***🔗
alicE_message_query_errors_3245@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-03-12 11:25:55.475 ***🔗
alicE_message_query_errors_3245@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35dc81ad270137dd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:55.475 ***🔗
alicE_message_query_errors_3245@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-03-12 11:25:55.475 ***🔗
alicE_message_query_errors_3245@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VfcXVlcnlfZXJyb3JzXzMyNDUAbWF0eWdyeXNh</auth>
*** User 2024-03-12 11:25:55.476 ***🔗
alicE_message_query_errors_3245@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:55.476 ***🔗
alicE_message_query_errors_3245@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-03-12 11:25:55.477 ***🔗
alicE_message_query_errors_3245@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d318f5858e6c8a8f' from='localhost' version='1.0' xml:lang='en' to='alice_message_query_errors_3245@localhost'>
*** User 2024-03-12 11:25:55.477 ***🔗
alicE_message_query_errors_3245@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-03-12 11:25:55.477 ***🔗
alicE_message_query_errors_3245@localhost/res1 out
<iq type='set' id='b7a750a1cf2d99c75ba005027fd9da43'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:55.477 ***🔗
alicE_message_query_errors_3245@localhost/res1 in
<iq id='b7a750a1cf2d99c75ba005027fd9da43' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_message_query_errors_3245@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:55.477 ***🔗
alice_message_query_errors_3245@localhost/res1 out
<iq type='set' id='6a4fb0a6a2ac212e46975554fd9dbacd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:55.501 ***🔗
alice_message_query_errors_3245@localhost/res1 in
<iq from='localhost' to='alice_message_query_errors_3245@localhost/res1' id='6a4fb0a6a2ac212e46975554fd9dbacd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:55.501 ***🔗
alice_message_query_errors_3245@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:55.505 ***🔗
alice_message_query_errors_3245@localhost/res1 in
<presence from='alice_message_query_errors_3245@localhost/res1' to='alice_message_query_errors_3245@localhost/res1'/>
*** User 2024-03-12 11:25:55.505 ***🔗
bOb_message_query_errors_3245@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-03-12 11:25:55.506 ***🔗
bOb_message_query_errors_3245@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b495a0510bf35867' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:55.506 ***🔗
bOb_message_query_errors_3245@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-03-12 11:25:55.506 ***🔗
bOb_message_query_errors_3245@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlX3F1ZXJ5X2Vycm9yc18zMjQ1AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@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-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e892663dcb4b4a1c' from='localhost' version='1.0' xml:lang='en' to='bob_message_query_errors_3245@localhost'>
*** User 2024-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@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-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@localhost/res1 out
<iq type='set' id='ea6eb97415bf4f4278dd950d2a597f22'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:55.507 ***🔗
bOb_message_query_errors_3245@localhost/res1 in
<iq id='ea6eb97415bf4f4278dd950d2a597f22' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_message_query_errors_3245@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:55.508 ***🔗
bob_message_query_errors_3245@localhost/res1 out
<iq type='set' id='abf5a9ef34b7865026e5329fd15fcf27'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:55.508 ***🔗
bob_message_query_errors_3245@localhost/res1 in
<iq from='localhost' to='bob_message_query_errors_3245@localhost/res1' id='abf5a9ef34b7865026e5329fd15fcf27' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:55.508 ***🔗
bob_message_query_errors_3245@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:55.511 ***🔗
bob_message_query_errors_3245@localhost/res1 in
<presence from='bob_message_query_errors_3245@localhost/res1' to='bob_message_query_errors_3245@localhost/res1'/>
*** User 2024-03-12 11:25:55.520 ***🔗
REST request fails:
Code: 400
Req: {<0.86914.0>,<<"/api/messages/@invalid">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"19f6ac7a85a473f7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzI0NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"\"Invalid interlocutor JID\"">>,159,2567}
Params: #{path => <<"/api/messages/@invalid">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_3245@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-12 11:25:55.526 ***🔗
REST request fails:
Code: 400
Req: {<0.86943.0>,
<<"/api/messages/bob_message_query_errors_3245@localhost?limit=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"015ed1db8c47bcdc">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzI0NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"15">>}],
<<"\"Invalid limit\"">>,148,1474}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3245@localhost?limit=x">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_3245@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-12 11:25:55.532 ***🔗
REST request fails:
Code: 400
Req: {<0.86955.0>,
<<"/api/messages/bob_message_query_errors_3245@localhost?before=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"85e96f26e042e31d">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzI0NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"\"Invalid value of 'before'\"">>,160,1103}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3245@localhost?before=x">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_3245@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-12 11:25:55.538 ***🔗
REST request fails:
Code: 400
Req: {<0.86967.0>,
<<"/api/messages/bob_message_query_errors_3245@localhost?kuropatwa">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"58da16df79ccfc19">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzI0NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"22">>}],
<<"\"Invalid query string\"">>,155,1472}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3245@localhost?kuropatwa">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_3245@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-12 11:25:55.538 ***🔗
bob_message_query_errors_3245@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:55.539 ***🔗
bob_message_query_errors_3245@localhost/res1 in
</stream:stream>
*** User 2024-03-12 11:25:55.539 ***🔗
alice_message_query_errors_3245@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:55.539 ***🔗
alice_message_query_errors_3245@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-12 11:25:55
=== successfully completed test case
=== === Returned value: ok