=== Test case: rest_SUITE:invalid_roster_operations/1 (click for source code)
=== Config value:
[{watchdog,<0.12831.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/rest_suite.invalid_roster_operations.72450.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/log_private/"},
{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@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:33:43
*** User 2022-01-27 15:33:43.892 ***
alicE_invalid_roster_operations_1110@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-01-27 15:33:43.892 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18015cc4790c8c71' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.893 ***
alicE_invalid_roster_operations_1110@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>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-01-27 15:33:43.893 ***
alicE_invalid_roster_operations_1110@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMTExMABtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:33:43.894 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:43.894 ***
alicE_invalid_roster_operations_1110@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-01-27 15:33:43.894 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5447f71dca29f87' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.894 ***
alicE_invalid_roster_operations_1110@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-01-27 15:33:43.894 ***
alicE_invalid_roster_operations_1110@localhost/res1 out
<iq type='set' id='6cf9aec0eea34b8a820d53ffc6929b53'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:43.895 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<iq id='6cf9aec0eea34b8a820d53ffc6929b53' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invalid_roster_operations_1110@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:43.895 ***
alicE_invalid_roster_operations_1110@localhost/res1 out
<iq type='set' id='f5228268ea0a2458cff7f72b58cabe43'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.897 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<iq type='result' id='f5228268ea0a2458cff7f72b58cabe43'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.897 ***
alicE_invalid_roster_operations_1110@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:43.898 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
<presence from='alicE_invalid_roster_operations_1110@localhost/res1' to='alice_invalid_roster_operations_1110@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:43.898 ***
bOb_invalid_roster_operations_1110@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-01-27 15:33:43.898 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6f6492e4547b190' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.898 ***
bOb_invalid_roster_operations_1110@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>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-01-27 15:33:43.899 ***
bOb_invalid_roster_operations_1110@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzExMTAAbWFrcm9saWth</auth>
*** User 2022-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@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-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09c1b5f81d66a09b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@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-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@localhost/res1 out
<iq type='set' id='307ea6faa4cd42459f3593644beb643e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<iq id='307ea6faa4cd42459f3593644beb643e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invalid_roster_operations_1110@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:43.900 ***
bOb_invalid_roster_operations_1110@localhost/res1 out
<iq type='set' id='e18a3ee053033d21fe3bc6ab77f85426'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.901 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<iq type='result' id='e18a3ee053033d21fe3bc6ab77f85426'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.901 ***
bOb_invalid_roster_operations_1110@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:43.902 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
<presence from='bOb_invalid_roster_operations_1110@localhost/res1' to='bob_invalid_roster_operations_1110@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:43.904 ***
REST request fails:
Code: 400
Req: {<0.12890.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be97f64b22dc955a">>}],
<<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"Invalid jid: <<\"@invalidjid\">>">>,163,1080}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.905 ***
REST request fails:
Code: 400
Req: {<0.12896.1>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"325fbf60df144cac">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,891}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>,
method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.907 ***
REST request:
Code: 204
Req: {<0.12908.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0aef72709dcbf250">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,781}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.909 ***
REST request:
Code: 204
Req: {<0.12912.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d097daa75388ab46">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,679}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1110@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.910 ***
REST request fails:
Code: 400
Req: {<0.12918.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/@invalid_jid">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53a20431055d158e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,811}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.912 ***
REST request fails:
Code: 400
Req: {<0.12922.1>,
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1110@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c7a109e564c719f">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,795}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1110@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.914 ***
REST request fails:
Code: 400
Req: {<0.12924.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/bob_invalid_roster_operations_1110@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d19626a058cfe088">>}],
<<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,749}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/bob_invalid_roster_operations_1110@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.915 ***
REST request fails:
Code: 400
Req: {<0.12932.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/bob_invalid_roster_operations_1110@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5ac9706ec91aa1d">>}],
<<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,993}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/bob_invalid_roster_operations_1110@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.917 ***
REST request fails:
Code: 400
Req: {<0.12938.1>,
<<"/api/contacts/@invalid/bob_invalid_roster_operations_1110@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5df8bc88a807256">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"Invalid jid: <<\"@invalid\">>">>,160,974}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid/bob_invalid_roster_operations_1110@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.919 ***
REST request fails:
Code: 400
Req: {<0.12942.1>,
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/@bzzz/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f991b94e97ee1997">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"24">>}],
<<"Invalid jid: <<\"@bzzz\">>">>,157,975}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1110@localhost/@bzzz/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.919 ***
bOb_invalid_roster_operations_1110@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:43.919 ***
bOb_invalid_roster_operations_1110@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:43.919 ***
alicE_invalid_roster_operations_1110@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:43.919 ***
alicE_invalid_roster_operations_1110@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:43
=== successfully completed test case
=== === Returned value: ok