=== Test case: rest_client_SUITE:roster_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.105726.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/rest_client_suite.roster_errors.172164.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@d67ced1141dd.2024-04-16_10.12.40"
=== Started at 2024-04-16 10:31:25
*** User 2024-04-16 10:31:25.898 ***🔗
alicE_roster_errors_4192@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-16 10:31:25.898 ***🔗
alicE_roster_errors_4192@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e93a834c3056a862' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.898 ***🔗
alicE_roster_errors_4192@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-16 10:31:25.898 ***🔗
alicE_roster_errors_4192@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfNDE5MgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 10:31:25.899 ***🔗
alicE_roster_errors_4192@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.899 ***🔗
alicE_roster_errors_4192@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-16 10:31:25.900 ***🔗
alicE_roster_errors_4192@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='571f7b6f871f378f' from='localhost' version='1.0' xml:lang='en' to='alice_roster_errors_4192@localhost'>
*** User 2024-04-16 10:31:25.900 ***🔗
alicE_roster_errors_4192@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-16 10:31:25.900 ***🔗
alicE_roster_errors_4192@localhost/res1 out
<iq type='set' id='4ccae59c833f562db5c166f4b7a8e69b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.900 ***🔗
alicE_roster_errors_4192@localhost/res1 in
<iq id='4ccae59c833f562db5c166f4b7a8e69b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_roster_errors_4192@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.900 ***🔗
alice_roster_errors_4192@localhost/res1 out
<iq type='set' id='1a6716a646f021e0c8b0b19e8cb2513e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.901 ***🔗
alice_roster_errors_4192@localhost/res1 in
<iq from='localhost' to='alice_roster_errors_4192@localhost/res1' id='1a6716a646f021e0c8b0b19e8cb2513e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.901 ***🔗
alice_roster_errors_4192@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.903 ***🔗
alice_roster_errors_4192@localhost/res1 in
<presence from='alice_roster_errors_4192@localhost/res1' to='alice_roster_errors_4192@localhost/res1'/>
*** User 2024-04-16 10:31:25.903 ***🔗
bOb_roster_errors_4192@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-16 10:31:25.904 ***🔗
bOb_roster_errors_4192@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='07243cdd47ac3307' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.904 ***🔗
bOb_roster_errors_4192@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-16 10:31:25.904 ***🔗
bOb_roster_errors_4192@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzQxOTIAbWFrcm9saWth</auth>
*** User 2024-04-16 10:31:25.906 ***🔗
bOb_roster_errors_4192@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.906 ***🔗
bOb_roster_errors_4192@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-16 10:31:25.906 ***🔗
bOb_roster_errors_4192@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10199b9880cecacb' from='localhost' version='1.0' xml:lang='en' to='bob_roster_errors_4192@localhost'>
*** User 2024-04-16 10:31:25.906 ***🔗
bOb_roster_errors_4192@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-16 10:31:25.907 ***🔗
bOb_roster_errors_4192@localhost/res1 out
<iq type='set' id='37740fa7480dc5ae3da6e853e672ae32'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
bOb_roster_errors_4192@localhost/res1 in
<iq id='37740fa7480dc5ae3da6e853e672ae32' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_roster_errors_4192@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
bob_roster_errors_4192@localhost/res1 out
<iq type='set' id='7ee38ec58dcc4774e041dbf14de90df9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
bob_roster_errors_4192@localhost/res1 in
<iq from='localhost' to='bob_roster_errors_4192@localhost/res1' id='7ee38ec58dcc4774e041dbf14de90df9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.908 ***🔗
bob_roster_errors_4192@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.909 ***🔗
bob_roster_errors_4192@localhost/res1 in
<presence from='bob_roster_errors_4192@localhost/res1' to='bob_roster_errors_4192@localhost/res1'/>
*** User 2024-04-16 10:31:25.917 ***🔗
REST request fails:
Code: 400
Req: {<0.105800.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0804803af635ae38">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"13">>}],
<<"\"Missing JID\"">>,146,1660}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{}">>,role => client,method => <<"POST">>,
return_headers => true}
*** User 2024-04-16 10:31:25.924 ***🔗
REST request fails:
Code: 400
Req: {<0.105817.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9b7293eabdd9dc9">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid JID: @invalid\"">>,156,1485}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{\"jid\":\"@invalid\"}">>,role => client,
method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:25.969 ***🔗
REST request fails:
Code: 400
Req: {<0.105844.0>,<<"/api/contacts/alice_roster_errors_4192@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7b512e08ea96ada">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Invalid action\"">>,149,2822}
Params: #{path => <<"/api/contacts/alice_roster_errors_4192@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{\"action\":\"nosuchaction\"}">>,role => client,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-16 10:31:25.977 ***🔗
REST request fails:
Code: 400
Req: {<0.105857.0>,<<"/api/contacts/alice_roster_errors_4192@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a67e0849dafe544f">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Missing action\"">>,149,1408}
Params: #{path => <<"/api/contacts/alice_roster_errors_4192@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{}">>,role => client,method => <<"PUT">>,
return_headers => true}
*** User 2024-04-16 10:31:25.998 ***🔗
REST request fails:
Code: 404
Req: {<0.105887.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"85bbca57c979dc76">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"41">>}],
<<"\"The user zorro@localhost does not exist\"">>,172,14736}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{\"jid\":\"zorro@localhost\"}">>,role => client,
method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:26.005 ***🔗
REST request fails:
Code: 404
Req: {<0.105917.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4eefea6adea47327">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"\"Given contact does not exist\"">>,161,1975}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<"{\"action\":\"invite\"}">>,role => client,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-16 10:31:26.012 ***🔗
REST request fails:
Code: 404
Req: {<0.105923.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64c8a12363eed999">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"32">>}],
<<"\"JID provided but not supported\"">>,163,1675}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<>>,role => client,method => <<"GET">>,
return_headers => true}
*** User 2024-04-16 10:31:26.062 ***🔗
REST request fails:
Code: 404
Req: {<0.105935.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86907cf2498fd220">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfNDE5MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"59">>}],
<<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
190,42809}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_roster_errors_4192@localhost">>,<<"makrolika">>},
body => <<>>,role => client,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-16 10:31:26.063 ***🔗
bob_roster_errors_4192@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.063 ***🔗
bob_roster_errors_4192@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:26.063 ***🔗
alice_roster_errors_4192@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.064 ***🔗
alice_roster_errors_4192@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:31:26
=== successfully completed test case
=== === Returned value: ok