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

=== Config value:

    [{watchdog,<0.23748.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {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@08f2d0642cae.2024-04-26_12.38.35/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.10/rest_client_suite.add_and_remove_some_contacts_properly.275586.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@08f2d0642cae.2024-04-26_12.38.35/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.10/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@08f2d0642cae.2024-04-26_12.38.35"

=== Started at 2024-04-26 12:54:12


*** CT 2024-04-26 12:54:12.295 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4931.html

*** User 2024-04-26 12:54:12.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a56e01af1a8fb277' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:12.311 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.311 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NABtYXR5Z3J5c2E=</auth>



*** User 2024-04-26 12:54:12.311 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:12.311 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='522bf9cfde30f030' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3354@localhost'>

*** User 2024-04-26 12:54:12.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='d9541506a4adceeb34315c0e4e2d0ae5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='d9541506a4adceeb34315c0e4e2d0ae5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.312 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='c20e9134dcab1cf367e1264ddaaaf917'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.313 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3354@localhost/res1' id='c20e9134dcab1cf367e1264ddaaaf917' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.313 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:12.314 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3354@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3354@localhost/res1'/>



*** User 2024-04-26 12:54:12.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c03fd2281e02963' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:12.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNTQAbWFrcm9saWth</auth>



*** User 2024-04-26 12:54:12.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:12.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.317 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='79d907ac3ef49c36' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3354@localhost'>

*** User 2024-04-26 12:54:12.317 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.317 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='9f24f205849b07318a40fe667fb6ec16'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.317 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='9f24f205849b07318a40fe667fb6ec16' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.317 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='5963e3c1292a2acf3a83fba2e9a080ff'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.317 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='5963e3c1292a2acf3a83fba2e9a080ff' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.317 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:12.319 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1'/>



*** User 2024-04-26 12:54:12.320 ***🔗
kate_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.320 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af9dd2df4b33e81d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:12.320 ***🔗
kate_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.320 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzU0AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-26 12:54:12.321 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:12.321 ***🔗
kate_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.321 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c60f8fedd6ad4745' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3354@localhost'>

*** User 2024-04-26 12:54:12.321 ***🔗
kate_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.322 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='3eaeb3234a0aa4c4e607fd12f33fe315'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.322 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='3eaeb3234a0aa4c4e607fd12f33fe315' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.322 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='bb12629d3071001de9bc06fcb9289575'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.322 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3354@localhost/res1' id='bb12629d3071001de9bc06fcb9289575' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.322 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:12.324 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3354@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3354@localhost/res1'/>



*** User 2024-04-26 12:54:12.324 ***🔗
mike_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.325 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f782642f990787af' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:12.325 ***🔗
mike_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.325 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzU0AG5pY25pZW1h</auth>



*** User 2024-04-26 12:54:12.327 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:12.327 ***🔗
mike_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.327 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f02be45f08e08d5' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3354@localhost'>

*** User 2024-04-26 12:54:12.328 ***🔗
mike_add_and_remove_some_contacts_properly_3354@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-26 12:54:12.328 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='c2c1b378ceb0bd898b1cd5f79ce356aa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.328 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='c2c1b378ceb0bd898b1cd5f79ce356aa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:12.328 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='71dce41463a33476ebf955070caba4a4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.328 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3354@localhost/res1' id='71dce41463a33476ebf955070caba4a4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:12.329 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:12.330 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3354@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3354@localhost/res1'/>



*** User 2024-04-26 12:54:12.366 ***🔗
REST request:
Code: 204
Req: {<0.23873.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5e1231854cf1a93a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:11 GMT">>}],
         <<>>,80,30332}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-26 12:54:12.366 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='pusha9d3237caeb169f7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:12.376 ***🔗
REST request:
Code: 204
Req: {<0.23917.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"905bdc8103bd95a5">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:11 GMT">>}],
         <<>>,80,4433}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-26 12:54:12.376 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='push900b6dbb48dfb4a6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:12.384 ***🔗
REST request:
Code: 204
Req: {<0.23955.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65fad83f2a412e9f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:11 GMT">>}],
         <<>>,80,3216}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-26 12:54:12.384 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='pushfc9ea5d750d0514e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:12.392 ***🔗
REST request:
Code: 200
Req: {<0.23983.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2ad57e02fc3b6516">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3354@localhost\",\"kate_add_and_remove_some_contacts_properly_3354@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,3924}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3354@localhost\",\"kate_add_and_remove_some_contacts_properly_3354@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-26 12:54:12.400 ***🔗
REST request:
Code: 200
Req: {<0.24004.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b0ecd154da83bf3c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\",\"ask\":\"none\"}]">>,
         229,1993}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-26 12:54:12.400 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='push5d06cc38f33c73a5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3354@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-26 12:54:12.401 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:12.401 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:12.401 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:12.401 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:12.401 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:12.402 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:12.402 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:12.402 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>
*** CT 2024-04-26 12:54:12.407 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4931.html



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