=== Test case: rest_SUITE:invalid_roster_operations/1 (click for source code)
=== Config value:
[{watchdog,<0.26047.1>},
{{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,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/rest_suite.invalid_roster_operations.103299.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:14:57
*** User 2022-02-02 15:14:57.693 ***
alicE_invalid_roster_operations_1607@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 2022-02-02 15:14:57.693 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70f15c370f8f0d20' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.693 ***
alicE_invalid_roster_operations_1607@domain.example.com/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-02-02 15:14:57.693 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMTYwNwBtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:14:57.694 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:57.694 ***
alicE_invalid_roster_operations_1607@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 2022-02-02 15:14:57.694 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59e6491773a4a777' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.694 ***
alicE_invalid_roster_operations_1607@domain.example.com/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-02-02 15:14:57.695 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 out
<iq type='set' id='258498332ec5d6d97f8632838a68a31d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<iq id='258498332ec5d6d97f8632838a68a31d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invalid_roster_operations_1607@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 out
<iq type='set' id='acc5cedb28c2b99c277ce8bd32a90147'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<iq type='result' id='acc5cedb28c2b99c277ce8bd32a90147'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:57.697 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
<presence from='alicE_invalid_roster_operations_1607@domain.example.com/res1' to='alice_invalid_roster_operations_1607@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:57.697 ***
bOb_invalid_roster_operations_1607@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 2022-02-02 15:14:57.698 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e57bd662a47a129f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.698 ***
bOb_invalid_roster_operations_1607@domain.example.com/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-02-02 15:14:57.698 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzE2MDcAbWFrcm9saWth</auth>
*** User 2022-02-02 15:14:57.698 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:57.698 ***
bOb_invalid_roster_operations_1607@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 2022-02-02 15:14:57.699 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21a4e8b3ba10cc7d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.699 ***
bOb_invalid_roster_operations_1607@domain.example.com/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-02-02 15:14:57.699 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 out
<iq type='set' id='c096e6cd446d19e9992424952a5caf87'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:57.699 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<iq id='c096e6cd446d19e9992424952a5caf87' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invalid_roster_operations_1607@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:57.699 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 out
<iq type='set' id='fdd2168fa0323a9de99923ae6d418cde'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.700 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<iq type='result' id='fdd2168fa0323a9de99923ae6d418cde'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.700 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:57.701 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
<presence from='bOb_invalid_roster_operations_1607@domain.example.com/res1' to='bob_invalid_roster_operations_1607@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:57.703 ***
REST request fails:
Code: 400
Req: {<0.26108.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1a4e4397f2e36351">>}],
<<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"Invalid jid: <<\"@invalidjid\">>">>,163,963}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.705 ***
REST request fails:
Code: 400
Req: {<0.26112.1>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bde03facf3e9bba0">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,924}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>,
method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.708 ***
REST request:
Code: 204
Req: {<0.26120.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cf3acc2f9d2db34">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,1805}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.711 ***
REST request:
Code: 204
Req: {<0.26126.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"09653324fec988de">>}],
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2016}
Params: #{body =>
<<"{\"jid\":\"bob_invalid_roster_operations_1607@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.712 ***
REST request fails:
Code: 400
Req: {<0.26135.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/@invalid_jid">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3f5d1c26206b6f27">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,706}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/@invalid_jid">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.714 ***
REST request fails:
Code: 400
Req: {<0.26140.1>,
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1607@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"620a224190f3f39b">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Invalid jid: <<\"@invalid_jid\">>">>,164,837}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1607@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.715 ***
REST request fails:
Code: 400
Req: {<0.26142.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/bob_invalid_roster_operations_1607@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6bcd771558d97ca">>}],
<<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,599}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/bob_invalid_roster_operations_1607@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.717 ***
REST request fails:
Code: 400
Req: {<0.26146.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/bob_invalid_roster_operations_1607@domain.example.com/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"250517d3f83463da">>}],
<<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"invalid action">>,147,642}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/bob_invalid_roster_operations_1607@domain.example.com/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.718 ***
REST request fails:
Code: 400
Req: {<0.26148.1>,
<<"/api/contacts/@invalid/bob_invalid_roster_operations_1607@domain.example.com/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3851debc717f1378">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"Invalid jid: <<\"@invalid\">>">>,160,805}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/@invalid/bob_invalid_roster_operations_1607@domain.example.com/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.720 ***
REST request fails:
Code: 400
Req: {<0.26152.1>,
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/@bzzz/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79b3aa84db85d0b4">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"24">>}],
<<"Invalid jid: <<\"@bzzz\">>">>,157,723}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_invalid_roster_operations_1607@domain.example.com/@bzzz/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.720 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.720 ***
bOb_invalid_roster_operations_1607@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:14:57.720 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.721 ***
alicE_invalid_roster_operations_1607@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:14:57
=== successfully completed test case
=== === Returned value: ok