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

=== Config value:

    [{watchdog,<0.77756.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@b5acae24de23.2024-03-21_07.35.24/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.49.50/rest_client_suite.roster_errors.223234.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@b5acae24de23.2024-03-21_07.35.24/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.49.50/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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 =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@b5acae24de23.2024-03-21_07.35.24"

=== Started at 2024-03-21 07:49:52


*** CT 2024-03-21 07:49:52.426 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3671.html

*** User 2024-03-21 07:49:52.439 ***🔗
alicE_roster_errors_3043@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-03-21 07:49:52.440 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7a09994fcdf88a9c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:52.440 ***🔗
alicE_roster_errors_3043@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-03-21 07:49:52.440 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfMzA0MwBtYXR5Z3J5c2E=</auth>



*** User 2024-03-21 07:49:52.441 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:52.441 ***🔗
alicE_roster_errors_3043@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-03-21 07:49:52.442 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f25d6a99dbc27f6' from='domain.example.com' version='1.0' xml:lang='en' to='alice_roster_errors_3043@domain.example.com'>

*** User 2024-03-21 07:49:52.442 ***🔗
alicE_roster_errors_3043@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-03-21 07:49:52.442 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 out
<iq type='set' id='2381a449cb3d3750a004b04c292912bc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:52.442 ***🔗
alicE_roster_errors_3043@domain.example.com/res1 in
<iq id='2381a449cb3d3750a004b04c292912bc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_roster_errors_3043@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:52.442 ***🔗
alice_roster_errors_3043@domain.example.com/res1 out
<iq type='set' id='bc70dd2df70beadeb060b31427825799'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:52.443 ***🔗
alice_roster_errors_3043@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_roster_errors_3043@domain.example.com/res1' id='bc70dd2df70beadeb060b31427825799' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:52.443 ***🔗
alice_roster_errors_3043@domain.example.com/res1 out
<presence/>



*** User 2024-03-21 07:49:52.445 ***🔗
alice_roster_errors_3043@domain.example.com/res1 in
<presence from='alice_roster_errors_3043@domain.example.com/res1' to='alice_roster_errors_3043@domain.example.com/res1'/>



*** User 2024-03-21 07:49:52.446 ***🔗
bOb_roster_errors_3043@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-03-21 07:49:52.446 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cde8b0130e258128' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:52.447 ***🔗
bOb_roster_errors_3043@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-03-21 07:49:52.447 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzMwNDMAbWFrcm9saWth</auth>



*** User 2024-03-21 07:49:52.448 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:52.448 ***🔗
bOb_roster_errors_3043@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-03-21 07:49:52.448 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76ab23ef83b7d890' from='domain.example.com' version='1.0' xml:lang='en' to='bob_roster_errors_3043@domain.example.com'>

*** User 2024-03-21 07:49:52.448 ***🔗
bOb_roster_errors_3043@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-03-21 07:49:52.448 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 out
<iq type='set' id='7b44f98c09a487e67732c0f072f2e7fc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:52.449 ***🔗
bOb_roster_errors_3043@domain.example.com/res1 in
<iq id='7b44f98c09a487e67732c0f072f2e7fc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_roster_errors_3043@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:52.449 ***🔗
bob_roster_errors_3043@domain.example.com/res1 out
<iq type='set' id='32681602c0a26ba38debff0a3d1d80cb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:52.449 ***🔗
bob_roster_errors_3043@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_roster_errors_3043@domain.example.com/res1' id='32681602c0a26ba38debff0a3d1d80cb' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:52.449 ***🔗
bob_roster_errors_3043@domain.example.com/res1 out
<presence/>



*** User 2024-03-21 07:49:52.459 ***🔗
bob_roster_errors_3043@domain.example.com/res1 in
<presence from='bob_roster_errors_3043@domain.example.com/res1' to='bob_roster_errors_3043@domain.example.com/res1'/>



*** User 2024-03-21 07:49:52.467 ***🔗
REST request fails:
Code: 400
Req: {<0.77835.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9fa8d682347c02eb">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"13">>}],
         <<"\"Missing JID\"">>,146,1492}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{}">>,method => <<"POST">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.517 ***🔗
REST request fails:
Code: 400
Req: {<0.77861.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e1f343c1b390d59">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid JID: @invalid\"">>,156,1648}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"@invalid\"}">>,method => <<"POST">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.533 ***🔗
REST request fails:
Code: 400
Req: {<0.77895.0>,
      <<"/api/contacts/alice_roster_errors_3043@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d33f5a6ecaab085b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Invalid action\"">>,149,6392}
Params: #{path =>
              <<"/api/contacts/alice_roster_errors_3043@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"nosuchaction\"}">>,method => <<"PUT">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.541 ***🔗
REST request fails:
Code: 400
Req: {<0.77913.0>,
      <<"/api/contacts/alice_roster_errors_3043@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18f2ef0ca1515815">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Missing action\"">>,149,1418}
Params: #{path =>
              <<"/api/contacts/alice_roster_errors_3043@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{}">>,method => <<"PUT">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.553 ***🔗
REST request fails:
Code: 404
Req: {<0.77935.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e802ff8fefc9b665">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"41">>}],
         <<"\"The user zorro@localhost does not exist\"">>,172,5545}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"zorro@localhost\"}">>,method => <<"POST">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.561 ***🔗
REST request fails:
Code: 404
Req: {<0.77962.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca8b77a7fa0d525d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"30">>}],
         <<"\"Given contact does not exist\"">>,161,2092}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.568 ***🔗
REST request fails:
Code: 404
Req: {<0.77974.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dec41349c87db6bf">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"32">>}],
         <<"\"JID provided but not supported\"">>,163,1846}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.617 ***🔗
REST request fails:
Code: 404
Req: {<0.77986.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"09f724b50104dcc9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzA0M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"59">>}],
         <<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
         190,41397}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,
          creds =>
              {<<"bob_roster_errors_3043@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:49:52.617 ***🔗
bob_roster_errors_3043@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-21 07:49:52.617 ***🔗
bob_roster_errors_3043@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-21 07:49:52.618 ***🔗
alice_roster_errors_3043@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-21 07:49:52.618 ***🔗
alice_roster_errors_3043@domain.example.com/res1 in
</stream:stream>
*** CT 2024-03-21 07:49:52.623 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3671.html



=== Ended at 2024-03-21 07:49:52
=== successfully completed test case
=== === Returned value: ok