=== Test case: rest_SUITE:invalid_roster_operations/1 (click for source code)

=== Config value:

    [{watchdog,<0.8229.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.19/rest_suite.invalid_roster_operations.75908.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.19/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:34:20


*** CT 2022-01-25 16:34:20.967 *** View log from node mongooseim@localhost when started mongooseim@localhost_5806.html
*** CT 2022-01-25 16:34:20.967 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2377.html

*** User 2022-01-25 16:34:20.977 ***
alicE_invalid_roster_operations_2214@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-25 16:34:20.978 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a14e10da4ce8aa5c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:20.978 ***
alicE_invalid_roster_operations_2214@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-25 16:34:20.978 ***
alicE_invalid_roster_operations_2214@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMjIxNABtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:34:20.979 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:34:20.979 ***
alicE_invalid_roster_operations_2214@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-25 16:34:20.979 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec5453ddad007780' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@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-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@localhost/res1 out
<iq type='set' id='d15a9a5e75701e76c91e5b233f7ada31'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<iq id='d15a9a5e75701e76c91e5b233f7ada31' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invalid_roster_operations_2214@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@localhost/res1 out
<iq type='set' id='0f1c8f3da2fea38b3170fcb186c621b6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<iq type='result' id='0f1c8f3da2fea38b3170fcb186c621b6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:20.980 ***
alicE_invalid_roster_operations_2214@localhost/res1 out
<presence/>



*** User 2022-01-25 16:34:20.983 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
<presence from='alicE_invalid_roster_operations_2214@localhost/res1' to='alice_invalid_roster_operations_2214@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:34:20.984 ***
bOb_invalid_roster_operations_2214@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-25 16:34:20.984 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b969566e03cb7d8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:20.984 ***
bOb_invalid_roster_operations_2214@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-25 16:34:20.984 ***
bOb_invalid_roster_operations_2214@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzIyMTQAbWFrcm9saWth</auth>



*** User 2022-01-25 16:34:20.985 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:34:20.985 ***
bOb_invalid_roster_operations_2214@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-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d5ae50ed93606cf' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@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-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 out
<iq type='set' id='a7729a5a3b5ddc4c3872164275daafff'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<iq id='a7729a5a3b5ddc4c3872164275daafff' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invalid_roster_operations_2214@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 out
<iq type='set' id='1b21875d4f521de12290bb21a2bb86b9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<iq type='result' id='1b21875d4f521de12290bb21a2bb86b9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:34:20.986 ***
bOb_invalid_roster_operations_2214@localhost/res1 out
<presence/>



*** User 2022-01-25 16:34:20.990 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
<presence from='bOb_invalid_roster_operations_2214@localhost/res1' to='bob_invalid_roster_operations_2214@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:34:20.991 ***
REST request fails:
Code: 400
Req: {<0.8292.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3a0a88a11c7909c4">>}],
      <<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"30">>}],
         <<"Invalid jid: <<\"@invalidjid\">>">>,163,927}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:20.993 ***
REST request fails:
Code: 400
Req: {<0.8298.2>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"967c917bf74401cb">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,1031}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>,
          method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:20.998 ***
REST request:
Code: 204
Req: {<0.8300.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82f139efc7c29d46">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3261}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.002 ***
REST request:
Code: 204
Req: {<0.8310.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"332e414536408191">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3619}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_2214@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.004 ***
REST request fails:
Code: 400
Req: {<0.8320.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/@invalid_jid">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc30d6b492fb963f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,858}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/@invalid_jid">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.005 ***
REST request fails:
Code: 400
Req: {<0.8322.2>,
      <<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2214@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd4c06ecc4ce56e7">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,737}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_2214@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.007 ***
REST request fails:
Code: 400
Req: {<0.8326.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/bob_invalid_roster_operations_2214@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"86cf723c40884f84">>}],
      <<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"invalid action">>,147,609}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/bob_invalid_roster_operations_2214@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.008 ***
REST request fails:
Code: 400
Req: {<0.8328.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/bob_invalid_roster_operations_2214@localhost/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1b72f3e2e38c73c1">>}],
      <<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"invalid action">>,147,759}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
          method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/bob_invalid_roster_operations_2214@localhost/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.010 ***
REST request fails:
Code: 400
Req: {<0.8330.2>,
      <<"/api/contacts/@invalid/bob_invalid_roster_operations_2214@localhost/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82cdc3dce21643e6">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"Invalid jid: <<\"@invalid\">>">>,160,848}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/@invalid/bob_invalid_roster_operations_2214@localhost/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.012 ***
REST request fails:
Code: 400
Req: {<0.8332.2>,
      <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/@bzzz/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cf3f2f4a94621680">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"24">>}],
         <<"Invalid jid: <<\"@bzzz\">>">>,157,880}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_2214@localhost/@bzzz/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:34:21.012 ***
bOb_invalid_roster_operations_2214@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:34:21.012 ***
bOb_invalid_roster_operations_2214@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:34:21.012 ***
alicE_invalid_roster_operations_2214@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:34:21.012 ***
alicE_invalid_roster_operations_2214@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:34:21.014 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2377.html
*** CT 2022-01-25 16:34:21.015 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5806.html



=== Ended at 2022-01-25 16:34:21
=== successfully completed test case
=== === Returned value: ok