=== Test case: rest_client_SUITE:roster_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.72861.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/rest_client_suite.roster_errors.166915.html"},
{tc_group_properties,[{name,roster},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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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@d3b7dd7159a8.2023-12-07_07.46.41"
=== Started at 2023-12-07 07:58:00
*** User 2023-12-07 07:58:00.893 ***🔗
alicE_roster_errors_2611@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 2023-12-07 07:58:00.894 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3bda56a61ea95a68' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:58:00.894 ***🔗
alicE_roster_errors_2611@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 2023-12-07 07:58:00.894 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfMjYxMQBtYXR5Z3J5c2E=</auth>
*** User 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@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 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='177737c4ad0339bf' from='domain.example.com' version='1.0' xml:lang='en' to='alice_roster_errors_2611@domain.example.com'>
*** User 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@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 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 out
<iq type='set' id='be6c4dd54580ccdaf752eb42874cbf0b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:58:00.895 ***🔗
alicE_roster_errors_2611@domain.example.com/res1 in
<iq id='be6c4dd54580ccdaf752eb42874cbf0b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_roster_errors_2611@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:58:00.896 ***🔗
alice_roster_errors_2611@domain.example.com/res1 out
<iq type='set' id='2a28af7da7cb59b15463969097d8da10'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:58:00.896 ***🔗
alice_roster_errors_2611@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_roster_errors_2611@domain.example.com/res1' id='2a28af7da7cb59b15463969097d8da10' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:58:00.897 ***🔗
alice_roster_errors_2611@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:58:00.898 ***🔗
alice_roster_errors_2611@domain.example.com/res1 in
<presence from='alice_roster_errors_2611@domain.example.com/res1' to='alice_roster_errors_2611@domain.example.com/res1'/>
*** User 2023-12-07 07:58:00.899 ***🔗
bOb_roster_errors_2611@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 2023-12-07 07:58:00.899 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d62db563ca155e50' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:58:00.899 ***🔗
bOb_roster_errors_2611@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 2023-12-07 07:58:00.899 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzI2MTEAbWFrcm9saWth</auth>
*** User 2023-12-07 07:58:00.900 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:58:00.900 ***🔗
bOb_roster_errors_2611@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 2023-12-07 07:58:00.900 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25ad893f828941ec' from='domain.example.com' version='1.0' xml:lang='en' to='bob_roster_errors_2611@domain.example.com'>
*** User 2023-12-07 07:58:00.900 ***🔗
bOb_roster_errors_2611@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 2023-12-07 07:58:00.900 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 out
<iq type='set' id='7c676cf1ccc42b5edd6bb106f6aaaca2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:58:00.901 ***🔗
bOb_roster_errors_2611@domain.example.com/res1 in
<iq id='7c676cf1ccc42b5edd6bb106f6aaaca2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_roster_errors_2611@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:58:00.901 ***🔗
bob_roster_errors_2611@domain.example.com/res1 out
<iq type='set' id='93e8c6f6e80c9194bdf1842313219bcf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:58:00.901 ***🔗
bob_roster_errors_2611@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_roster_errors_2611@domain.example.com/res1' id='93e8c6f6e80c9194bdf1842313219bcf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:58:00.901 ***🔗
bob_roster_errors_2611@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:58:00.903 ***🔗
bob_roster_errors_2611@domain.example.com/res1 in
<presence from='bob_roster_errors_2611@domain.example.com/res1' to='bob_roster_errors_2611@domain.example.com/res1'/>
*** User 2023-12-07 07:58:00.909 ***🔗
REST request fails:
Code: 400
Req: {<0.72946.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f1556b201156efce">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"13">>}],
<<"\"Missing JID\"">>,146,823}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{}">>,return_headers => true}
*** User 2023-12-07 07:58:00.924 ***🔗
REST request fails:
Code: 400
Req: {<0.72956.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e235dda1c394f1be">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid JID: @invalid\"">>,156,10771}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"jid\":\"@invalid\"}">>,return_headers => true}
*** User 2023-12-07 07:58:00.930 ***🔗
REST request fails:
Code: 400
Req: {<0.72980.0>,
<<"/api/contacts/alice_roster_errors_2611@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc8f8556437021e5">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Invalid action\"">>,149,1143}
Params: #{path =>
<<"/api/contacts/alice_roster_errors_2611@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"PUT">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"action\":\"nosuchaction\"}">>,return_headers => true}
*** User 2023-12-07 07:58:00.937 ***🔗
REST request fails:
Code: 400
Req: {<0.73016.0>,
<<"/api/contacts/alice_roster_errors_2611@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a92352bf1da4af77">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Missing action\"">>,149,919}
Params: #{path =>
<<"/api/contacts/alice_roster_errors_2611@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"PUT">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{}">>,return_headers => true}
*** User 2023-12-07 07:58:00.946 ***🔗
REST request fails:
Code: 404
Req: {<0.73036.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"640c6567f24968e8">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"41">>}],
<<"\"The user zorro@localhost does not exist\"">>,172,3067}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"jid\":\"zorro@localhost\"}">>,return_headers => true}
*** User 2023-12-07 07:58:00.952 ***🔗
REST request fails:
Code: 404
Req: {<0.73054.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"27f4c49e21bf0825">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"\"Given contact does not exist\"">>,161,1339}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"PUT">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"action\":\"invite\"}">>,return_headers => true}
*** User 2023-12-07 07:58:00.957 ***🔗
REST request fails:
Code: 404
Req: {<0.73085.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb6a28aba20b920e">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"32">>}],
<<"\"JID provided but not supported\"">>,163,767}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"GET">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2023-12-07 07:58:00.963 ***🔗
REST request fails:
Code: 404
Req: {<0.73097.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f73851ded4bf396e">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMjYxMUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"59">>}],
<<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
190,1391}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"DELETE">>,
creds =>
{<<"bob_roster_errors_2611@domain.example.com">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2023-12-07 07:58:00.963 ***🔗
bob_roster_errors_2611@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:58:00.963 ***🔗
bob_roster_errors_2611@domain.example.com/res1 in
</stream:stream>
*** User 2023-12-07 07:58:00.963 ***🔗
alice_roster_errors_2611@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:58:00.964 ***🔗
alice_roster_errors_2611@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-12-07 07:58:01
=== successfully completed test case
=== === Returned value: ok