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

=== Config value:

    [{watchdog,<0.87007.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_12.55.57/rest_client_suite.add_and_remove_some_contacts_properly.228994.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_12.55.57/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_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_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@fb43d4252d17.2024-02-22_12.37.44"

=== Started at 2024-02-22 12:55:59


*** CT 2024-02-22 12:55:59.900 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4698.html

*** User 2024-02-22 12:55:59.939 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.940 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b3429110c5c72c56' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:59.940 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.940 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MwBtYXR5Z3J5c2E=</auth>



*** User 2024-02-22 12:55:59.941 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:59.941 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.942 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='db9a46a0f73ad097' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3293@localhost'>

*** User 2024-02-22 12:55:59.942 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.942 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='e87f900dd6c215cee0c2b863909951b6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.943 ***🔗
alicE_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq id='e87f900dd6c215cee0c2b863909951b6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3293@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.943 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='7a689e1d5ae10657b4b44002b22a584e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.944 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3293@localhost/res1' id='7a689e1d5ae10657b4b44002b22a584e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.944 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:59.946 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3293@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3293@localhost/res1'/>



*** User 2024-02-22 12:55:59.947 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.947 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7c274d51b5d18fb6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:59.947 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.947 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyOTMAbWFrcm9saWth</auth>



*** User 2024-02-22 12:55:59.963 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:59.964 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.964 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='024236288018613c' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3293@localhost'>

*** User 2024-02-22 12:55:59.964 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.965 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='3009febc40a6a4da8ec60b7d533ac7f4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.965 ***🔗
bOb_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq id='3009febc40a6a4da8ec60b7d533ac7f4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3293@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.965 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='91484f14b0189d8cd367806968486f5c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.966 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' id='91484f14b0189d8cd367806968486f5c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.966 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:59.969 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1'/>



*** User 2024-02-22 12:55:59.969 ***🔗
kate_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.971 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bfaa7d0d7a1a62dc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:59.972 ***🔗
kate_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.972 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjkzAG1ha3Jvd2U7cA==</auth>



*** User 2024-02-22 12:55:59.973 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:59.973 ***🔗
kate_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.973 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef864a3a83823319' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3293@localhost'>

*** User 2024-02-22 12:55:59.973 ***🔗
kate_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.974 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='44b0447bd6cb9a262f6dd29a4fe51d46'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.974 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq id='44b0447bd6cb9a262f6dd29a4fe51d46' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3293@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.974 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='c883478277ebfaa0438888564ae550f9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.975 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3293@localhost/res1' id='c883478277ebfaa0438888564ae550f9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.975 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:59.977 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3293@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3293@localhost/res1'/>



*** User 2024-02-22 12:55:59.978 ***🔗
mike_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.978 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bf4adbc71b22ece' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:59.979 ***🔗
mike_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.979 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjkzAG5pY25pZW1h</auth>



*** User 2024-02-22 12:55:59.980 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:59.980 ***🔗
mike_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.980 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b4ad3e17850e45b' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3293@localhost'>

*** User 2024-02-22 12:55:59.980 ***🔗
mike_add_and_remove_some_contacts_properly_3293@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-02-22 12:55:59.980 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='d08d85af5d54d7418269d9698884661b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.981 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq id='d08d85af5d54d7418269d9698884661b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3293@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:59.981 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<iq type='set' id='1a8d8448267812fbe5966e1c76d819e8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.981 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3293@localhost/res1' id='1a8d8448267812fbe5966e1c76d819e8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:59.982 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:59.986 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3293@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3293@localhost/res1'/>



*** User 2024-02-22 12:56:00.013 ***🔗
REST request:
Code: 204
Req: {<0.87156.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b906e55a60d1f9f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3293@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:59 GMT">>}],
         <<>>,80,18950}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3293@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3293@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:56:00.013 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3293@localhost' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' id='push3bb83ee32afffd1e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3293@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:56:00.074 ***🔗
REST request:
Code: 204
Req: {<0.87201.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4ad7b4e9076b32fc">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3293@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:59 GMT">>}],
         <<>>,80,6945}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3293@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3293@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:56:00.075 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3293@localhost' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' id='push7a223d2637f0e434' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3293@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:56:00.094 ***🔗
REST request:
Code: 204
Req: {<0.87236.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5a6c7086e5f4f19d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3293@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:59 GMT">>}],
         <<>>,80,10773}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3293@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3293@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:56:00.094 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3293@localhost' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' id='pusha1c05f01a0b9a8ff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3293@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:56:00.125 ***🔗
REST request:
Code: 200
Req: {<0.87251.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b7eccebe1e0fcf37">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3293@localhost\",\"kate_add_and_remove_some_contacts_properly_3293@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:59 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,23019}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3293@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3293@localhost\",\"kate_add_and_remove_some_contacts_properly_3293@localhost\"]}">>,
          return_headers => true}


*** User 2024-02-22 12:56:00.179 ***🔗
REST request:
Code: 200
Req: {<0.87270.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9f7e0cdfd4e682b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:59 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3293@localhost\"}]">>,
         229,44600}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3293@localhost">>,
               <<"makrolika">>},
          role => client,body => <<>>,return_headers => true}


*** User 2024-02-22 12:56:00.179 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3293@localhost' to='bob_add_and_remove_some_contacts_properly_3293@localhost/res1' id='pusha789fa5aca39793f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3293@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:56:00.179 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:56:00.179 ***🔗
mike_add_and_remove_some_contacts_properly_3293@localhost/res1 in
</stream:stream>

*** User 2024-02-22 12:56:00.180 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:56:00.180 ***🔗
kate_add_and_remove_some_contacts_properly_3293@localhost/res1 in
</stream:stream>

*** User 2024-02-22 12:56:00.180 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:56:00.180 ***🔗
bob_add_and_remove_some_contacts_properly_3293@localhost/res1 in
</stream:stream>

*** User 2024-02-22 12:56:00.181 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:56:00.181 ***🔗
alice_add_and_remove_some_contacts_properly_3293@localhost/res1 in
</stream:stream>
*** CT 2024-02-22 12:56:00.187 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4698.html



=== Ended at 2024-02-22 12:56:00
=== successfully completed test case
=== === Returned value: ok