=== Test case: rest_SUITE:invalid_roster_operations/1 (click for source code)
=== Config value:
[{watchdog,<0.8863.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/rest_suite.invalid_roster_operations.148482.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:36:48
*** User 2022-01-27 15:36:48.931 ***
alicE_invalid_roster_operations_2151@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:36:48.931 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b8f22008df732149' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:48.931 ***
alicE_invalid_roster_operations_2151@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-01-27 15:36:48.931 ***
alicE_invalid_roster_operations_2151@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMjE1MQBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:36:48.933 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:48.933 ***
alicE_invalid_roster_operations_2151@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:36:48.933 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2fc516fdec964944' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:48.933 ***
alicE_invalid_roster_operations_2151@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:36:48.933 ***
alicE_invalid_roster_operations_2151@localhost/res1 out
<iq type='set' id='0ee2de76638fb73aed6f8f9e33f192ed'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:48.933 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<iq id='0ee2de76638fb73aed6f8f9e33f192ed' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invalid_roster_operations_2151@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:48.933 ***
alicE_invalid_roster_operations_2151@localhost/res1 out
<iq type='set' id='8c33c415cfc1787336fa35d20bec191f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.934 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<iq type='result' id='8c33c415cfc1787336fa35d20bec191f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.934 ***
alicE_invalid_roster_operations_2151@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:48.936 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
<presence from='alicE_invalid_roster_operations_2151@localhost/res1' to='alice_invalid_roster_operations_2151@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:48.937 ***
bOb_invalid_roster_operations_2151@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:36:48.937 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='384c7ca59574a603' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:48.937 ***
bOb_invalid_roster_operations_2151@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-01-27 15:36:48.937 ***
bOb_invalid_roster_operations_2151@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzIxNTEAbWFrcm9saWth</auth>
*** User 2022-01-27 15:36:48.938 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:48.938 ***
bOb_invalid_roster_operations_2151@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:36:48.938 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='34be360f3c2cd9a4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:48.939 ***
bOb_invalid_roster_operations_2151@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:36:48.939 ***
bOb_invalid_roster_operations_2151@localhost/res1 out
<iq type='set' id='1d56aa7ffb9351d02ea38a317d2576cf'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:48.939 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<iq id='1d56aa7ffb9351d02ea38a317d2576cf' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invalid_roster_operations_2151@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:48.939 ***
bOb_invalid_roster_operations_2151@localhost/res1 out
<iq type='set' id='6aa2d2b36aebdbbacc49901ff713de8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.939 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<iq type='result' id='6aa2d2b36aebdbbacc49901ff713de8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.939 ***
bOb_invalid_roster_operations_2151@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:48.942 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
<presence from='bOb_invalid_roster_operations_2151@localhost/res1' to='bob_invalid_roster_operations_2151@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:48.945 ***
REST request fails:
Code: 400
Req: {<0.8926.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba759b35841539f0">>}],
<<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"Invalid jid: <<\"@invalidjid\">>">>,163,763}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.947 ***
REST request fails:
Code: 400
Req: {<0.8930.2>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9c95403e59c9e0b">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,718}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>,
method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.952 ***
REST request:
Code: 204
Req: {<0.8938.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"21b6644b827cfa0e">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,3994}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.959 ***
REST request:
Code: 204
Req: {<0.8949.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"63163fb059d77245">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,5613}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_2151@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.961 ***
REST request fails:
Code: 400
Req: {<0.8954.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/@invalid_jid">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee61e13bae344896">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,1012}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.963 ***
REST request fails:
Code: 400
Req: {<0.8958.2>,
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2151@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fdde52bd2a4fed74">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,978}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2151@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.965 ***
REST request fails:
Code: 400
Req: {<0.8960.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/bob_invalid_roster_operations_2151@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d845ac0d4febc1d">>}],
<<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,727}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/bob_invalid_roster_operations_2151@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.967 ***
REST request fails:
Code: 400
Req: {<0.8962.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/bob_invalid_roster_operations_2151@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f55bb689fccdf11d">>}],
<<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,689}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/bob_invalid_roster_operations_2151@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.969 ***
REST request fails:
Code: 400
Req: {<0.8964.2>,
<<"/api/contacts/@invalid/bob_invalid_roster_operations_2151@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c524b151a54ba3e4">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"Invalid jid: <<\"@invalid\">>">>,160,803}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid/bob_invalid_roster_operations_2151@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.970 ***
REST request fails:
Code: 400
Req: {<0.8968.2>,
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/@bzzz/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cbc47c03f7069519">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"24">>}],
<<"Invalid jid: <<\"@bzzz\">>">>,157,677}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_2151@localhost/@bzzz/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.971 ***
bOb_invalid_roster_operations_2151@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.971 ***
bOb_invalid_roster_operations_2151@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:36:48.971 ***
alicE_invalid_roster_operations_2151@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.971 ***
alicE_invalid_roster_operations_2151@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:36:48
=== successfully completed test case
=== === Returned value: ok