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

=== Config value:

    [{watchdog,<0.27618.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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.invalid_roster_operations.152066.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:25:02


*** CT 2022-03-04 11:25:02.089 *** View log from node mongooseim@localhost when started mongooseim@localhost_2509.html
*** CT 2022-03-04 11:25:02.090 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_646.html

*** User 2022-03-04 11:25:02.097 ***
alicE_invalid_roster_operations_1795@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-03-04 11:25:02.098 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e12143253396db2d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.098 ***
alicE_invalid_roster_operations_1795@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-03-04 11:25:02.098 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludmFsaWRfcm9zdGVyX29wZXJhdGlvbnNfMTc5NQBtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@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-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5a4160e34d0ca329' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@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-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 out
<iq type='set' id='86715c48332c2164452eb8d2f40da50f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<iq id='86715c48332c2164452eb8d2f40da50f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invalid_roster_operations_1795@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 out
<iq type='set' id='9faf82f13914e550ba1d410e3d93e258'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<iq type='result' id='9faf82f13914e550ba1d410e3d93e258'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.100 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.101 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
<presence from='alicE_invalid_roster_operations_1795@domain.example.com/res1' to='alice_invalid_roster_operations_1795@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.102 ***
bOb_invalid_roster_operations_1795@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-03-04 11:25:02.102 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56f7504801fd8756' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.102 ***
bOb_invalid_roster_operations_1795@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-03-04 11:25:02.103 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZhbGlkX3Jvc3Rlcl9vcGVyYXRpb25zXzE3OTUAbWFrcm9saWth</auth>



*** User 2022-03-04 11:25:02.103 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.103 ***
bOb_invalid_roster_operations_1795@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-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='439c2c05136410f9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@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-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 out
<iq type='set' id='ab3c033709de1ec1cbf58a7bf6ecae88'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<iq id='ab3c033709de1ec1cbf58a7bf6ecae88' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invalid_roster_operations_1795@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 out
<iq type='set' id='7279f9a8e9be4f994db6af82e72c659f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<iq type='result' id='7279f9a8e9be4f994db6af82e72c659f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.106 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
<presence from='bOb_invalid_roster_operations_1795@domain.example.com/res1' to='bob_invalid_roster_operations_1795@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.108 ***
REST request fails:
Code: 400
Req: {<0.27681.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5323a5fac5fcbd0">>}],
      <<"{\"jid\":\"@invalidjid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"30">>}],
         <<"Invalid jid: <<\"@invalidjid\">>">>,163,690}
Params: #{body => <<"{\"jid\":\"@invalidjid\"}">>,method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.109 ***
REST request fails:
Code: 400
Req: {<0.27683.1>,<<"/api/contacts/@invalid_jid">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"acc7864200bfdc5a">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,704}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>,
          method => <<"POST">>,path => <<"/api/contacts/@invalid_jid">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.113 ***
REST request:
Code: 204
Req: {<0.27691.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e94ae2507768d1f0">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2621}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.117 ***
REST request:
Code: 204
Req: {<0.27698.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cc57cbd299401451">>}],
      <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3178}
Params: #{body =>
              <<"{\"jid\":\"bob_invalid_roster_operations_1795@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.119 ***
REST request fails:
Code: 400
Req: {<0.27707.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/@invalid_jid">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c5efa2e3445c7ff9">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,674}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/@invalid_jid">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.120 ***
REST request fails:
Code: 400
Req: {<0.27711.1>,
      <<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1795@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6d396c966a0fea6">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Invalid jid: <<\"@invalid_jid\">>">>,164,565}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/@invalid_jid/bob_invalid_roster_operations_1795@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.122 ***
REST request fails:
Code: 400
Req: {<0.27713.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/bob_invalid_roster_operations_1795@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3fa61d5d0301ac00">>}],
      <<"{\"action\":\"something stupid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"invalid action">>,147,695}
Params: #{body => <<"{\"action\":\"something stupid\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/bob_invalid_roster_operations_1795@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.123 ***
REST request fails:
Code: 400
Req: {<0.27717.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/bob_invalid_roster_operations_1795@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b422c08fdb4b9cca">>}],
      <<"{\"action\":\"off with his head\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"invalid action">>,147,481}
Params: #{body => <<"{\"action\":\"off with his head\"}">>,
          method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/bob_invalid_roster_operations_1795@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.124 ***
REST request fails:
Code: 400
Req: {<0.27719.1>,
      <<"/api/contacts/@invalid/bob_invalid_roster_operations_1795@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"573e7efa1214e01b">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"Invalid jid: <<\"@invalid\">>">>,160,614}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/@invalid/bob_invalid_roster_operations_1795@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.126 ***
REST request fails:
Code: 400
Req: {<0.27723.1>,
      <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/@bzzz/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f6dd4dcebfff5cb6">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"24">>}],
         <<"Invalid jid: <<\"@bzzz\">>">>,157,608}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_invalid_roster_operations_1795@domain.example.com/@bzzz/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.126 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:02.126 ***
bOb_invalid_roster_operations_1795@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:25:02.126 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:02.127 ***
alicE_invalid_roster_operations_1795@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:25:02.129 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_646.html
*** CT 2022-03-04 11:25:02.129 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2509.html



=== Ended at 2022-03-04 11:25:02
=== successfully completed test case
=== === Returned value: ok