=== Test case: rest_client_SUITE:roster_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.77305.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.rest_client_SUITE.logs/run.2024-03-18_09.38.50/rest_client_suite.roster_errors.206850.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.rest_client_SUITE.logs/run.2024-03-18_09.38.50/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_amp => #{},
mod_sic => #{iqdisc => one_queue},
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@a950b60ae868.2024-03-18_09.25.02"
=== Started at 2024-03-18 09:38:52
*** User 2024-03-18 09:38:52.721 ***🔗
alicE_roster_errors_3009@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-03-18 09:38:52.721 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ead16f8bdda89739' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:52.722 ***🔗
alicE_roster_errors_3009@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-03-18 09:38:52.722 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfMzAwOQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@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-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53b03179f083567e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_roster_errors_3009@domain.example.com'>
*** User 2024-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@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-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 out
<iq type='set' id='392ca65f095cb6a981002722e2f11d75'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:52.723 ***🔗
alicE_roster_errors_3009@domain.example.com/res1 in
<iq id='392ca65f095cb6a981002722e2f11d75' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_roster_errors_3009@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:52.724 ***🔗
alice_roster_errors_3009@domain.example.com/res1 out
<iq type='set' id='d16d36554fd97d59cd3fa0ad10c1df00'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:52.724 ***🔗
alice_roster_errors_3009@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_roster_errors_3009@domain.example.com/res1' id='d16d36554fd97d59cd3fa0ad10c1df00' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:52.724 ***🔗
alice_roster_errors_3009@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:52.726 ***🔗
alice_roster_errors_3009@domain.example.com/res1 in
<presence from='alice_roster_errors_3009@domain.example.com/res1' to='alice_roster_errors_3009@domain.example.com/res1'/>
*** User 2024-03-18 09:38:52.726 ***🔗
bOb_roster_errors_3009@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-03-18 09:38:52.727 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64b90a5b17639b33' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:52.727 ***🔗
bOb_roster_errors_3009@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-03-18 09:38:52.727 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzMwMDkAbWFrcm9saWth</auth>
*** User 2024-03-18 09:38:52.728 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:52.728 ***🔗
bOb_roster_errors_3009@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-03-18 09:38:52.728 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='435760a2116b2b69' from='domain.example.com' version='1.0' xml:lang='en' to='bob_roster_errors_3009@domain.example.com'>
*** User 2024-03-18 09:38:52.728 ***🔗
bOb_roster_errors_3009@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-03-18 09:38:52.728 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 out
<iq type='set' id='cd8982e77359650f782682bf0606b8cb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:52.729 ***🔗
bOb_roster_errors_3009@domain.example.com/res1 in
<iq id='cd8982e77359650f782682bf0606b8cb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_roster_errors_3009@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:52.729 ***🔗
bob_roster_errors_3009@domain.example.com/res1 out
<iq type='set' id='6fe7a1633b92534ff95ba908289a6791'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:52.729 ***🔗
bob_roster_errors_3009@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_roster_errors_3009@domain.example.com/res1' id='6fe7a1633b92534ff95ba908289a6791' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:52.729 ***🔗
bob_roster_errors_3009@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:52.731 ***🔗
bob_roster_errors_3009@domain.example.com/res1 in
<presence from='bob_roster_errors_3009@domain.example.com/res1' to='bob_roster_errors_3009@domain.example.com/res1'/>
*** User 2024-03-18 09:38:52.738 ***🔗
REST request fails:
Code: 400
Req: {<0.77379.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44a60c6eb09af340">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"13">>}],
<<"\"Missing JID\"">>,146,874}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{}">>,method => <<"POST">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:52.745 ***🔗
REST request fails:
Code: 400
Req: {<0.77399.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"667e0d40707655a9">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid JID: @invalid\"">>,156,1271}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"jid\":\"@invalid\"}">>,method => <<"POST">>,
role => client,return_headers => true}
*** User 2024-03-18 09:38:52.752 ***🔗
REST request fails:
Code: 400
Req: {<0.77430.0>,
<<"/api/contacts/alice_roster_errors_3009@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b4f3aaa4f313315">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Invalid action\"">>,149,909}
Params: #{path =>
<<"/api/contacts/alice_roster_errors_3009@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"action\":\"nosuchaction\"}">>,method => <<"PUT">>,
role => client,return_headers => true}
*** User 2024-03-18 09:38:52.805 ***🔗
REST request fails:
Code: 400
Req: {<0.77442.0>,
<<"/api/contacts/alice_roster_errors_3009@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"023a34bf9d620caa">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"\"Missing action\"">>,149,1689}
Params: #{path =>
<<"/api/contacts/alice_roster_errors_3009@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{}">>,method => <<"PUT">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:52.814 ***🔗
REST request fails:
Code: 404
Req: {<0.77473.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e937443ad5116065">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"41">>}],
<<"\"The user zorro@localhost does not exist\"">>,172,2315}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"jid\":\"zorro@localhost\"}">>,method => <<"POST">>,
role => client,return_headers => true}
*** User 2024-03-18 09:38:52.823 ***🔗
REST request fails:
Code: 404
Req: {<0.77496.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"865df92da48d76de">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"\"Given contact does not exist\"">>,161,2512}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
role => client,return_headers => true}
*** User 2024-03-18 09:38:52.831 ***🔗
REST request fails:
Code: 404
Req: {<0.77529.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5890d00b92429c49">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"32">>}],
<<"\"JID provided but not supported\"">>,163,910}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:52.837 ***🔗
REST request fails:
Code: 404
Req: {<0.77547.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d56a0e0711eeed51">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzAwOUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"59">>}],
<<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
190,1583}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_roster_errors_3009@domain.example.com">>,
<<"makrolika">>},
body => <<>>,method => <<"DELETE">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:52.838 ***🔗
bob_roster_errors_3009@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:52.838 ***🔗
bob_roster_errors_3009@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:38:52.838 ***🔗
alice_roster_errors_3009@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:52.838 ***🔗
alice_roster_errors_3009@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-18 09:38:52
=== successfully completed test case
=== === Returned value: ok