=== Test case: rest_client_SUITE:roster_errors/1 (click for source code)

=== Config value:

    [{watchdog,<0.77416.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/rest_client_suite.roster_errors.215426.html"},
     {tc_group_properties,[{name,roster},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{inactivity => 30,max_pause => 120,max_wait => infinity,
              server_acks => false,backend => mnesia},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01"

=== Started at 2024-04-16 12:12:53


*** CT 2024-04-16 12:12:53.882 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2642.html

*** User 2024-04-16 12:12:53.891 ***🔗
alicE_roster_errors_3051@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 2024-04-16 12:12:53.891 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='160d0f7582697080' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 12:12:53.891 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:12:53.891 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfMzA1MQBtYXR5Z3J5c2E=</auth>



*** User 2024-04-16 12:12:53.892 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 12:12:53.892 ***🔗
alicE_roster_errors_3051@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 2024-04-16 12:12:53.893 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21143801a18de667' from='domain.example.com' version='1.0' xml:lang='en' to='alice_roster_errors_3051@domain.example.com'>

*** User 2024-04-16 12:12:53.893 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:12:53.893 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 out
<iq type='set' id='9a644255d9096550d4d6ef5b4d98d03b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 12:12:53.893 ***🔗
alicE_roster_errors_3051@domain.example.com/res1 in
<iq id='9a644255d9096550d4d6ef5b4d98d03b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_roster_errors_3051@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 12:12:53.893 ***🔗
alice_roster_errors_3051@domain.example.com/res1 out
<iq type='set' id='7a29e8e315a07226eb3f65e4c305783b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:12:53.893 ***🔗
alice_roster_errors_3051@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_roster_errors_3051@domain.example.com/res1' id='7a29e8e315a07226eb3f65e4c305783b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:12:53.893 ***🔗
alice_roster_errors_3051@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 12:12:53.895 ***🔗
alice_roster_errors_3051@domain.example.com/res1 in
<presence from='alice_roster_errors_3051@domain.example.com/res1' to='alice_roster_errors_3051@domain.example.com/res1'/>



*** User 2024-04-16 12:12:53.896 ***🔗
bOb_roster_errors_3051@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 2024-04-16 12:12:53.896 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c482d431d296b0c3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 12:12:53.896 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:12:53.896 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzMwNTEAbWFrcm9saWth</auth>



*** User 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@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 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf48f20edb88495c' from='domain.example.com' version='1.0' xml:lang='en' to='bob_roster_errors_3051@domain.example.com'>

*** User 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 out
<iq type='set' id='b355469d00b3c8d119faca9c6253fc45'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 12:12:53.897 ***🔗
bOb_roster_errors_3051@domain.example.com/res1 in
<iq id='b355469d00b3c8d119faca9c6253fc45' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_roster_errors_3051@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 12:12:53.897 ***🔗
bob_roster_errors_3051@domain.example.com/res1 out
<iq type='set' id='2381368291b268e1a50a3591f4758c25'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:12:53.898 ***🔗
bob_roster_errors_3051@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_roster_errors_3051@domain.example.com/res1' id='2381368291b268e1a50a3591f4758c25' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:12:53.898 ***🔗
bob_roster_errors_3051@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 12:12:53.899 ***🔗
bob_roster_errors_3051@domain.example.com/res1 in
<presence from='bob_roster_errors_3051@domain.example.com/res1' to='bob_roster_errors_3051@domain.example.com/res1'/>



*** User 2024-04-16 12:12:53.904 ***🔗
REST request fails:
Code: 400
Req: {<0.77497.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8292939a8ad67d59">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"13">>}],
         <<"\"Missing JID\"">>,146,742}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{}">>,method => <<"POST">>,role => client,
          return_headers => true}


*** User 2024-04-16 12:12:53.911 ***🔗
REST request fails:
Code: 400
Req: {<0.77509.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2bdfeab306be6d8e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid JID: @invalid\"">>,156,853}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{\"jid\":\"@invalid\"}">>,method => <<"POST">>,
          role => client,return_headers => true}


*** User 2024-04-16 12:12:53.916 ***🔗
REST request fails:
Code: 400
Req: {<0.77537.0>,
      <<"/api/contacts/alice_roster_errors_3051@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"728e8f4a2be53b51">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Invalid action\"">>,149,780}
Params: #{path =>
              <<"/api/contacts/alice_roster_errors_3051@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{\"action\":\"nosuchaction\"}">>,method => <<"PUT">>,
          role => client,return_headers => true}


*** User 2024-04-16 12:12:53.922 ***🔗
REST request fails:
Code: 400
Req: {<0.77561.0>,
      <<"/api/contacts/alice_roster_errors_3051@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"151d50cbc1e9ab72">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Missing action\"">>,149,977}
Params: #{path =>
              <<"/api/contacts/alice_roster_errors_3051@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{}">>,method => <<"PUT">>,role => client,
          return_headers => true}


*** User 2024-04-16 12:12:53.928 ***🔗
REST request fails:
Code: 404
Req: {<0.77579.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e5a82ada7a20a6f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"41">>}],
         <<"\"The user zorro@localhost does not exist\"">>,172,1420}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{\"jid\":\"zorro@localhost\"}">>,method => <<"POST">>,
          role => client,return_headers => true}


*** User 2024-04-16 12:12:53.981 ***🔗
REST request fails:
Code: 404
Req: {<0.77607.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c981fb6a19081f41">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"30">>}],
         <<"\"Given contact does not exist\"">>,161,48113}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
          role => client,return_headers => true}


*** User 2024-04-16 12:12:53.988 ***🔗
REST request fails:
Code: 404
Req: {<0.77624.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04c1b40cfed73b99">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"32">>}],
         <<"\"JID provided but not supported\"">>,163,755}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<>>,method => <<"GET">>,role => client,
          return_headers => true}


*** User 2024-04-16 12:12:53.995 ***🔗
REST request fails:
Code: 404
Req: {<0.77652.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ab30c6559ca50ca9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA1MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"59">>}],
         <<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
         190,2037}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_roster_errors_3051@domain.example.com">>,
               <<"makrolika">>},
          body => <<>>,method => <<"DELETE">>,role => client,
          return_headers => true}


*** User 2024-04-16 12:12:53.995 ***🔗
bob_roster_errors_3051@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 12:12:53.995 ***🔗
bob_roster_errors_3051@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-16 12:12:53.996 ***🔗
alice_roster_errors_3051@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 12:12:53.996 ***🔗
alice_roster_errors_3051@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-16 12:12:53.998 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2642.html



=== Ended at 2024-04-16 12:12:54
=== successfully completed test case
=== === Returned value: ok