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

=== Config value:

    [{watchdog,<0.88667.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {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@706a14dea409.2024-04-23_08.57.00/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_09.14.54/rest_client_suite.roster_errors.253570.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@706a14dea409.2024-04-23_08.57.00/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_09.14.54/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_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_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,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@706a14dea409.2024-04-23_08.57.00"

=== Started at 2024-04-23 09:14:56


*** CT 2024-04-23 09:14:56.925 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4763.html

*** User 2024-04-23 09:14:56.962 ***🔗
alicE_roster_errors_3408@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 09:14:56.963 ***🔗
alicE_roster_errors_3408@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c88169d843db4a13' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 09:14:56.963 ***🔗
alicE_roster_errors_3408@localhost/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-23 09:14:56.963 ***🔗
alicE_roster_errors_3408@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvc3Rlcl9lcnJvcnNfMzQwOABtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 09:14:56.965 ***🔗
alicE_roster_errors_3408@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 09:14:56.965 ***🔗
alicE_roster_errors_3408@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 09:14:56.965 ***🔗
alicE_roster_errors_3408@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='725977fde28a2708' from='localhost' version='1.0' xml:lang='en' to='alice_roster_errors_3408@localhost'>

*** User 2024-04-23 09:14:56.966 ***🔗
alicE_roster_errors_3408@localhost/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-23 09:14:56.966 ***🔗
alicE_roster_errors_3408@localhost/res1 out
<iq type='set' id='16e6421dd4b19bb65ad5f7c293906a06'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 09:14:56.966 ***🔗
alicE_roster_errors_3408@localhost/res1 in
<iq id='16e6421dd4b19bb65ad5f7c293906a06' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_roster_errors_3408@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 09:14:56.966 ***🔗
alice_roster_errors_3408@localhost/res1 out
<iq type='set' id='f74e7b3fbe9f440fc48a62c7bf120987'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:14:56.967 ***🔗
alice_roster_errors_3408@localhost/res1 in
<iq from='localhost' to='alice_roster_errors_3408@localhost/res1' id='f74e7b3fbe9f440fc48a62c7bf120987' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:14:56.967 ***🔗
alice_roster_errors_3408@localhost/res1 out
<presence/>



*** User 2024-04-23 09:14:56.974 ***🔗
alice_roster_errors_3408@localhost/res1 in
<presence from='alice_roster_errors_3408@localhost/res1' to='alice_roster_errors_3408@localhost/res1'/>



*** User 2024-04-23 09:14:56.977 ***🔗
bOb_roster_errors_3408@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 09:14:56.977 ***🔗
bOb_roster_errors_3408@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d84d4077b7fd318' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 09:14:56.978 ***🔗
bOb_roster_errors_3408@localhost/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-23 09:14:56.978 ***🔗
bOb_roster_errors_3408@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb3N0ZXJfZXJyb3JzXzM0MDgAbWFrcm9saWth</auth>



*** User 2024-04-23 09:14:56.981 ***🔗
bOb_roster_errors_3408@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 09:14:56.981 ***🔗
bOb_roster_errors_3408@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 09:14:56.982 ***🔗
bOb_roster_errors_3408@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15f3ace5c88c094f' from='localhost' version='1.0' xml:lang='en' to='bob_roster_errors_3408@localhost'>

*** User 2024-04-23 09:14:56.982 ***🔗
bOb_roster_errors_3408@localhost/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-23 09:14:56.982 ***🔗
bOb_roster_errors_3408@localhost/res1 out
<iq type='set' id='20aefcc730e413ec03ba56b31fbb8878'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 09:14:56.983 ***🔗
bOb_roster_errors_3408@localhost/res1 in
<iq id='20aefcc730e413ec03ba56b31fbb8878' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_roster_errors_3408@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 09:14:56.983 ***🔗
bob_roster_errors_3408@localhost/res1 out
<iq type='set' id='700b4561ddbf84091b3125031a05e6fa'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:14:56.984 ***🔗
bob_roster_errors_3408@localhost/res1 in
<iq from='localhost' to='bob_roster_errors_3408@localhost/res1' id='700b4561ddbf84091b3125031a05e6fa' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:14:56.985 ***🔗
bob_roster_errors_3408@localhost/res1 out
<presence/>



*** User 2024-04-23 09:14:56.988 ***🔗
bob_roster_errors_3408@localhost/res1 in
<presence from='bob_roster_errors_3408@localhost/res1' to='bob_roster_errors_3408@localhost/res1'/>



*** User 2024-04-23 09:14:57.003 ***🔗
REST request fails:
Code: 400
Req: {<0.88764.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"37816795957d7388">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"13">>}],
         <<"\"Missing JID\"">>,146,2067}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{}">>,method => <<"POST">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.012 ***🔗
REST request fails:
Code: 400
Req: {<0.88771.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93a28370298fda84">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid JID: @invalid\"">>,156,1776}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"@invalid\"}">>,method => <<"POST">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.021 ***🔗
REST request fails:
Code: 400
Req: {<0.88796.0>,<<"/api/contacts/alice_roster_errors_3408@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eec2ba52560ffe61">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Invalid action\"">>,149,1464}
Params: #{path => <<"/api/contacts/alice_roster_errors_3408@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"nosuchaction\"}">>,method => <<"PUT">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.063 ***🔗
REST request fails:
Code: 400
Req: {<0.88804.0>,<<"/api/contacts/alice_roster_errors_3408@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"57663ebb688ee059">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Missing action\"">>,149,28670}
Params: #{path => <<"/api/contacts/alice_roster_errors_3408@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{}">>,method => <<"PUT">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.086 ***🔗
REST request fails:
Code: 404
Req: {<0.88828.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dfecea6a236f81bb">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"zorro@localhost\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"41">>}],
         <<"\"The user zorro@localhost does not exist\"">>,172,11950}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"zorro@localhost\"}">>,method => <<"POST">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.104 ***🔗
REST request fails:
Code: 404
Req: {<0.88861.0>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7d5de739fea5ee06">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"30">>}],
         <<"\"Given contact does not exist\"">>,161,4099}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.115 ***🔗
REST request fails:
Code: 404
Req: {<0.88879.0>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e5bfebe110f3c46a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"32">>}],
         <<"\"JID provided but not supported\"">>,163,1852}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.124 ***🔗
REST request fails:
Code: 404
Req: {<0.88891.0>,<<"/api/contacts/zorro@localhost">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e24c154b817dace">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvc3Rlcl9lcnJvcnNfMzQwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 09:14:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"59">>}],
         <<"\"Cannot remove zorro@localhost contact that does not exist\"">>,
         190,2665}
Params: #{path => <<"/api/contacts/zorro@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,
          creds => {<<"bob_roster_errors_3408@localhost">>,<<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-23 09:14:57.127 ***🔗
bob_roster_errors_3408@localhost/res1 out
</stream:stream>

*** User 2024-04-23 09:14:57.127 ***🔗
bob_roster_errors_3408@localhost/res1 in
</stream:stream>

*** User 2024-04-23 09:14:57.128 ***🔗
alice_roster_errors_3408@localhost/res1 out
</stream:stream>

*** User 2024-04-23 09:14:57.128 ***🔗
alice_roster_errors_3408@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 09:14:57.132 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4763.html



=== Ended at 2024-04-23 09:14:57
=== successfully completed test case
=== === Returned value: ok