=== Test case: rest_SUITE:invalid_roster_operations/1 (click for source code)
=== Config value:
[{watchdog,<0.12843.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/rest_suite.invalid_roster_operations.68868.html"},
{tc_group_properties,[{name,roster},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36"
=== Started at 2022-04-04 15:15:01
*** User 2022-04-04 15:15:01.412 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-04 15:15:01.413 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60b801896f36ee31' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:01.413 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-04 15:15:01.413 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMjMzMQBtYXR5Z3J5c2E=</auth>
*** User 2022-04-04 15:15:01.414 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:01.414 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-04 15:15:01.414 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bbb934aa3f23db25' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:01.415 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-04 15:15:01.415 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<iq type='set' id='566c89997ac5fb2762921e0badf9c899'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:01.415 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<iq id='566c89997ac5fb2762921e0badf9c899' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invalid_roster_operations_2331@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:01.415 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<iq type='set' id='b17156a51b57a9e52104e57876f42d3c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:01.415 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<iq type='result' id='b17156a51b57a9e52104e57876f42d3c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:01.416 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:01.418 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
<presence from='alicE_invalid_roster_operations_2331@localhost/res1' to='alice_invalid_roster_operations_2331@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:01.419 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-04 15:15:01.419 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3dc9d1a495549484' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:01.419 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-04 15:15:01.419 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzIzMzEAbWFrcm9saWth</auth>
*** User 2022-04-04 15:15:01.420 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eab0153a1fed3b7d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<iq type='set' id='7d53870d1195510b1fd1d3d16dcfba0e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<iq id='7d53870d1195510b1fd1d3d16dcfba0e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invalid_roster_operations_2331@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<iq type='set' id='edc001627787d9f831c9c83fb24cd65b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:01.421 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<iq type='result' id='edc001627787d9f831c9c83fb24cd65b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:01.422 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:01.424 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
<presence from='bOb_invalid_roster_operations_2331@localhost/res1' to='bob_invalid_roster_operations_2331@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:01.426 ***
REST request fails:
Code: 400
Req: {<0.12906.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"55e5bf82b2200daa">>}],
<<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"Invalid jid: <<\"@invalidjid\">>">>,163,1007}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.427 ***
REST request fails:
Code: 400
Req: {<0.12910.2>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"702685cf6fe8b391">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,637}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>,
method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.434 ***
REST request:
Code: 204
Req: {<0.12912.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c1a7c44d82ff986">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,4988}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.442 ***
REST request:
Code: 204
Req: {<0.12924.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d8b5d5ed5df6b76">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,5951}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2331@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.445 ***
REST request fails:
Code: 400
Req: {<0.12932.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/@invalid_jid">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"573b66eb26f25af8">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,1119}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.447 ***
REST request fails:
Code: 400
Req: {<0.12934.2>,
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2331@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d005427620e1227">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,1122}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2331@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.450 ***
REST request fails:
Code: 400
Req: {<0.12938.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/bob_invalid_roster_operations_2331@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c313472887fc21e4">>}],
<<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,920}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/bob_invalid_roster_operations_2331@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.456 ***
REST request fails:
Code: 400
Req: {<0.12940.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/bob_invalid_roster_operations_2331@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb042fb3e8a00ea7">>}],
<<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,5194}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/bob_invalid_roster_operations_2331@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.460 ***
REST request fails:
Code: 400
Req: {<0.12942.2>,
<<"/api/contacts/@invalid/bob_invalid_roster_operations_2331@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e38006b1ef281f3f">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"Invalid jid: <<\"@invalid\">>">>,160,1290}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid/bob_invalid_roster_operations_2331@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.469 ***
REST request fails:
Code: 400
Req: {<0.12944.2>,
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/@bzzz/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c39e2fb3ebc74fb">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"24">>}],
<<"Invalid jid: <<\"@bzzz\">>">>,157,1335}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2331@localhost/@bzzz/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:01.469 ***
bOb_invalid_roster_operations_2331@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:01.470 ***
bOb_invalid_roster_operations_2331@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:01.470 ***
alicE_invalid_roster_operations_2331@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:01.471 ***
alicE_invalid_roster_operations_2331@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:15:01
=== successfully completed test case
=== === Returned value: ok