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

=== Config value:

    [{watchdog,<0.88296.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/rest_client_suite.add_and_remove.157059.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/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_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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,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_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@38467046e2a2.2024-03-11_11.25.28"

=== Started at 2024-03-11 11:44:05


*** CT 2024-03-11 11:44:05.415 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4835.html

*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_and_remove_3323@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-03-11 11:44:05.424 ***🔗
alicE_add_and_remove_3323@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5bf6273f3924f76' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_and_remove_3323@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-03-11 11:44:05.425 ***🔗
alicE_add_and_remove_3323@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzMzMjMAbWF0eWdyeXNh</auth>



*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_and_remove_3323@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_and_remove_3323@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-03-11 11:44:05.426 ***🔗
alicE_add_and_remove_3323@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b2052beeb5c942a6' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_3323@localhost'>

*** User 2024-03-11 11:44:05.426 ***🔗
alicE_add_and_remove_3323@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-03-11 11:44:05.426 ***🔗
alicE_add_and_remove_3323@localhost/res1 out
<iq type='set' id='ca2780c5dd9a932f2155ceeaf6662798'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:05.426 ***🔗
alicE_add_and_remove_3323@localhost/res1 in
<iq id='ca2780c5dd9a932f2155ceeaf6662798' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_3323@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:05.426 ***🔗
alice_add_and_remove_3323@localhost/res1 out
<iq type='set' id='0bcb260dca65c5450484d0c9b121a9dc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:05.427 ***🔗
alice_add_and_remove_3323@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_3323@localhost/res1' id='0bcb260dca65c5450484d0c9b121a9dc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:05.427 ***🔗
alice_add_and_remove_3323@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:05.429 ***🔗
alice_add_and_remove_3323@localhost/res1 in
<presence from='alice_add_and_remove_3323@localhost/res1' to='alice_add_and_remove_3323@localhost/res1'/>



*** User 2024-03-11 11:44:05.430 ***🔗
bOb_add_and_remove_3323@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-03-11 11:44:05.430 ***🔗
bOb_add_and_remove_3323@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5722e292e289c6c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_and_remove_3323@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-03-11 11:44:05.431 ***🔗
bOb_add_and_remove_3323@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8zMzIzAG1ha3JvbGlrYQ==</auth>



*** User 2024-03-11 11:44:05.443 ***🔗
bOb_add_and_remove_3323@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:05.443 ***🔗
bOb_add_and_remove_3323@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-03-11 11:44:05.443 ***🔗
bOb_add_and_remove_3323@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa0eb8116ea54333' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_3323@localhost'>

*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_3323@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-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_3323@localhost/res1 out
<iq type='set' id='f4e2aca5ef1ce67007dce509006774da'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_3323@localhost/res1 in
<iq id='f4e2aca5ef1ce67007dce509006774da' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_3323@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:05.444 ***🔗
bob_add_and_remove_3323@localhost/res1 out
<iq type='set' id='e0c8d6e39172234dd446582768d7be30'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:05.445 ***🔗
bob_add_and_remove_3323@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_3323@localhost/res1' id='e0c8d6e39172234dd446582768d7be30' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:05.445 ***🔗
bob_add_and_remove_3323@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:05.446 ***🔗
bob_add_and_remove_3323@localhost/res1 in
<presence from='bob_add_and_remove_3323@localhost/res1' to='bob_add_and_remove_3323@localhost/res1'/>



*** User 2024-03-11 11:44:05.456 ***🔗
REST request:
Code: 204
Req: {<0.88367.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dde352d048eece65">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMzMjNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<"{\"jid\":\"alice_add_and_remove_3323@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
         <<>>,80,3974}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"alice_add_and_remove_3323@localhost\"}">>,
          creds => {<<"bob_add_and_remove_3323@localhost">>,<<"makrolika">>},
          role => client,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:44:05.456 ***🔗
bob_add_and_remove_3323@localhost/res1 in
<iq from='bob_add_and_remove_3323@localhost' to='bob_add_and_remove_3323@localhost/res1' id='pushe1961aeaf1e199e9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_3323@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:44:05.465 ***🔗
REST request:
Code: 200
Req: {<0.88408.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ba429c24c8f27545">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMzMjNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"82">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_3323@localhost\"}]">>,
         206,3114}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds => {<<"bob_add_and_remove_3323@localhost">>,<<"makrolika">>},
          role => client,method => <<"GET">>,return_headers => true}


*** User 2024-03-11 11:44:05.473 ***🔗
REST request:
Code: 204
Req: {<0.88435.0>,<<"/api/contacts/alice_add_and_remove_3323@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"87d20ec531e9e48e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMzMjNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
         <<>>,80,3808}
Params: #{path => <<"/api/contacts/alice_add_and_remove_3323@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds => {<<"bob_add_and_remove_3323@localhost">>,<<"makrolika">>},
          role => client,method => <<"DELETE">>,return_headers => true}


*** User 2024-03-11 11:44:05.484 ***🔗
REST request:
Code: 200
Req: {<0.88465.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3cafe1f756af2b2f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMzMjNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4870}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds => {<<"bob_add_and_remove_3323@localhost">>,<<"makrolika">>},
          role => client,method => <<"GET">>,return_headers => true}


*** User 2024-03-11 11:44:05.484 ***🔗
bob_add_and_remove_3323@localhost/res1 in
<iq from='bob_add_and_remove_3323@localhost' to='bob_add_and_remove_3323@localhost/res1' id='push233a8f411b4f895a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_3323@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-11 11:44:05.484 ***🔗
bob_add_and_remove_3323@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:05.484 ***🔗
bob_add_and_remove_3323@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:05.484 ***🔗
alice_add_and_remove_3323@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:05.485 ***🔗
alice_add_and_remove_3323@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:44:05.487 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4835.html



=== Ended at 2024-03-11 11:44:05
=== successfully completed test case
=== === Returned value: ok