=== Test case: rest_client_SUITE:message_query_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.87879.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/rest_client_suite.message_query_errors.180483.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/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_sic => #{iqdisc => one_queue},
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_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_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@97931f009ece.2024-04-23_10.53.14"
=== Started at 2024-04-23 11:09:46
*** User 2024-04-23 11:09:46.726 ***🔗
alicE_message_query_errors_3320@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-04-23 11:09:46.726 ***🔗
alicE_message_query_errors_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5924173af4bc5d4f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:46.726 ***🔗
alicE_message_query_errors_3320@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-04-23 11:09:46.726 ***🔗
alicE_message_query_errors_3320@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VfcXVlcnlfZXJyb3JzXzMzMjAAbWF0eWdyeXNh</auth>
*** User 2024-04-23 11:09:46.728 ***🔗
alicE_message_query_errors_3320@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:46.728 ***🔗
alicE_message_query_errors_3320@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-04-23 11:09:46.728 ***🔗
alicE_message_query_errors_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b9b527c810c1b9a4' from='localhost' version='1.0' xml:lang='en' to='alice_message_query_errors_3320@localhost'>
*** User 2024-04-23 11:09:46.728 ***🔗
alicE_message_query_errors_3320@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-04-23 11:09:46.728 ***🔗
alicE_message_query_errors_3320@localhost/res1 out
<iq type='set' id='047b4f98e038608db94efdfc313b6725'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:46.729 ***🔗
alicE_message_query_errors_3320@localhost/res1 in
<iq id='047b4f98e038608db94efdfc313b6725' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_message_query_errors_3320@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:46.729 ***🔗
alice_message_query_errors_3320@localhost/res1 out
<iq type='set' id='c8f698ccb923ced2e2d3fb2a1eb9d72f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.729 ***🔗
alice_message_query_errors_3320@localhost/res1 in
<iq from='localhost' to='alice_message_query_errors_3320@localhost/res1' id='c8f698ccb923ced2e2d3fb2a1eb9d72f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.730 ***🔗
alice_message_query_errors_3320@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:46.733 ***🔗
alice_message_query_errors_3320@localhost/res1 in
<presence from='alice_message_query_errors_3320@localhost/res1' to='alice_message_query_errors_3320@localhost/res1'/>
*** User 2024-04-23 11:09:46.733 ***🔗
bOb_message_query_errors_3320@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-04-23 11:09:46.734 ***🔗
bOb_message_query_errors_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d28582791f77380' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:46.734 ***🔗
bOb_message_query_errors_3320@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-04-23 11:09:46.734 ***🔗
bOb_message_query_errors_3320@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlX3F1ZXJ5X2Vycm9yc18zMzIwAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-23 11:09:46.736 ***🔗
bOb_message_query_errors_3320@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:46.736 ***🔗
bOb_message_query_errors_3320@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-04-23 11:09:46.736 ***🔗
bOb_message_query_errors_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='281df584573c636f' from='localhost' version='1.0' xml:lang='en' to='bob_message_query_errors_3320@localhost'>
*** User 2024-04-23 11:09:46.736 ***🔗
bOb_message_query_errors_3320@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-04-23 11:09:46.737 ***🔗
bOb_message_query_errors_3320@localhost/res1 out
<iq type='set' id='d2146b92c4bed12224d5f8bc038ddd9a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:46.737 ***🔗
bOb_message_query_errors_3320@localhost/res1 in
<iq id='d2146b92c4bed12224d5f8bc038ddd9a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_message_query_errors_3320@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:46.737 ***🔗
bob_message_query_errors_3320@localhost/res1 out
<iq type='set' id='b8139e80c14db91f6d31c4d1aaa98c4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.738 ***🔗
bob_message_query_errors_3320@localhost/res1 in
<iq from='localhost' to='bob_message_query_errors_3320@localhost/res1' id='b8139e80c14db91f6d31c4d1aaa98c4b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.738 ***🔗
bob_message_query_errors_3320@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:46.740 ***🔗
bob_message_query_errors_3320@localhost/res1 in
<presence from='bob_message_query_errors_3320@localhost/res1' to='bob_message_query_errors_3320@localhost/res1'/>
*** User 2024-04-23 11:09:46.749 ***🔗
REST request fails:
Code: 400
Req: {<0.87966.0>,<<"/api/messages/@invalid">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41837edd01eb687e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzMyMEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"\"Invalid interlocutor JID\"">>,159,2814}
Params: #{path => <<"/api/messages/@invalid">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_message_query_errors_3320@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:46.758 ***🔗
REST request fails:
Code: 400
Req: {<0.87986.0>,
<<"/api/messages/bob_message_query_errors_3320@localhost?limit=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e8212c6eb8deaa79">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzMyMEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"15">>}],
<<"\"Invalid limit\"">>,148,974}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3320@localhost?limit=x">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_message_query_errors_3320@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:46.768 ***🔗
REST request fails:
Code: 400
Req: {<0.88010.0>,
<<"/api/messages/bob_message_query_errors_3320@localhost?before=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e2939b2aee1a6c5">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzMyMEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"\"Invalid value of 'before'\"">>,160,1752}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3320@localhost?before=x">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_message_query_errors_3320@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:46.828 ***🔗
REST request fails:
Code: 400
Req: {<0.88019.0>,
<<"/api/messages/bob_message_query_errors_3320@localhost?kuropatwa">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9afc6aef638d5c0c">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMzMyMEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"22">>}],
<<"\"Invalid query string\"">>,155,1887}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_3320@localhost?kuropatwa">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_message_query_errors_3320@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:46.828 ***🔗
bob_message_query_errors_3320@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:46.828 ***🔗
bob_message_query_errors_3320@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:09:46.829 ***🔗
alice_message_query_errors_3320@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:46.829 ***🔗
alice_message_query_errors_3320@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:09:46
=== successfully completed test case
=== === Returned value: ok