=== Test case: rest_client_SUITE:message_query_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.72792.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.53.43/rest_client_suite.message_query_errors.142083.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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.53.43/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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@d081adacb998.2024-01-14_19.39.56"
=== Started at 2024-01-14 19:53:43
*** User 2024-01-14 19:53:44.177 ***🔗
alicE_message_query_errors_2755@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 2024-01-14 19:53:44.178 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8c31677398847d5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:53:44.178 ***🔗
alicE_message_query_errors_2755@domain.example.com/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-01-14 19:53:44.178 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VfcXVlcnlfZXJyb3JzXzI3NTUAbWF0eWdyeXNh</auth>
*** User 2024-01-14 19:53:44.179 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:53:44.179 ***🔗
alicE_message_query_errors_2755@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 2024-01-14 19:53:44.179 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d348c070a9b543fa' from='domain.example.com' version='1.0' xml:lang='en' to='alice_message_query_errors_2755@domain.example.com'>
*** User 2024-01-14 19:53:44.179 ***🔗
alicE_message_query_errors_2755@domain.example.com/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-01-14 19:53:44.179 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 out
<iq type='set' id='5765c6de793b1816787b653992561953'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:53:44.180 ***🔗
alicE_message_query_errors_2755@domain.example.com/res1 in
<iq id='5765c6de793b1816787b653992561953' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_message_query_errors_2755@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:53:44.180 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 out
<iq type='set' id='adc565685da0927e2e1f3fcaf85883dc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:53:44.180 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_message_query_errors_2755@domain.example.com/res1' id='adc565685da0927e2e1f3fcaf85883dc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:53:44.180 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:53:44.182 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 in
<presence from='alice_message_query_errors_2755@domain.example.com/res1' to='alice_message_query_errors_2755@domain.example.com/res1'/>
*** User 2024-01-14 19:53:44.183 ***🔗
bOb_message_query_errors_2755@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 2024-01-14 19:53:44.183 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed0502a9a22a1b1c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:53:44.183 ***🔗
bOb_message_query_errors_2755@domain.example.com/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-01-14 19:53:44.184 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlX3F1ZXJ5X2Vycm9yc18yNzU1AG1ha3JvbGlrYQ==</auth>
*** User 2024-01-14 19:53:44.185 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:53:44.185 ***🔗
bOb_message_query_errors_2755@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 2024-01-14 19:53:44.185 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='031d6e1498d756c1' from='domain.example.com' version='1.0' xml:lang='en' to='bob_message_query_errors_2755@domain.example.com'>
*** User 2024-01-14 19:53:44.185 ***🔗
bOb_message_query_errors_2755@domain.example.com/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-01-14 19:53:44.185 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 out
<iq type='set' id='47a93e4e266cba8e0094806f60d1229f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:53:44.186 ***🔗
bOb_message_query_errors_2755@domain.example.com/res1 in
<iq id='47a93e4e266cba8e0094806f60d1229f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_message_query_errors_2755@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:53:44.186 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 out
<iq type='set' id='9de3ab958c6799748b902ba10c982005'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:53:44.186 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_message_query_errors_2755@domain.example.com/res1' id='9de3ab958c6799748b902ba10c982005' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:53:44.187 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:53:44.188 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 in
<presence from='bob_message_query_errors_2755@domain.example.com/res1' to='bob_message_query_errors_2755@domain.example.com/res1'/>
*** User 2024-01-14 19:53:44.198 ***🔗
REST request fails:
Code: 400
Req: {<0.72874.0>,<<"/api/messages/@invalid">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a868c0a9acb7f4b2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMjc1NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:53:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"\"Invalid interlocutor JID\"">>,159,3351}
Params: #{path => <<"/api/messages/@invalid">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_2755@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-01-14 19:53:44.206 ***🔗
REST request fails:
Code: 400
Req: {<0.72897.0>,
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?limit=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"42d516e9cb98ad32">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMjc1NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:53:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"15">>}],
<<"\"Invalid limit\"">>,148,1201}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?limit=x">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_2755@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-01-14 19:53:44.213 ***🔗
REST request fails:
Code: 400
Req: {<0.72922.0>,
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?before=x">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7f7a8a518846fb9e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMjc1NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:53:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"\"Invalid value of 'before'\"">>,160,1167}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?before=x">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_2755@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-01-14 19:53:44.252 ***🔗
REST request fails:
Code: 400
Req: {<0.72940.0>,
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?kuropatwa">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52ecc524dec3e0dd">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9xdWVyeV9lcnJvcnNfMjc1NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:53:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"22">>}],
<<"\"Invalid query string\"">>,155,1625}
Params: #{path =>
<<"/api/messages/bob_message_query_errors_2755@domain.example.com?kuropatwa">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_message_query_errors_2755@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-01-14 19:53:44.252 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:53:44.253 ***🔗
bob_message_query_errors_2755@domain.example.com/res1 in
</stream:stream>
*** User 2024-01-14 19:53:44.253 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:53:44.253 ***🔗
alice_message_query_errors_2755@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-01-14 19:53:44
=== successfully completed test case
=== === Returned value: ok