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

=== Config value:

    [{watchdog,<0.15634.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,disabled},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/rest_client_suite.add_and_remove_some_contacts_properly.71298.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [],mod_sic => [],mod_stream_management => [],
        mod_vcard =>
            [{backend,ldap},
             {host,{prefix,<<"vjud.">>}},
             {ldap_base,"ou=Users,dc=esl,dc=com"},
             {ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:38:22


*** CT 2022-03-03 10:38:22.476 *** View log from node mongooseim@localhost when started mongooseim@localhost_5025.html
*** CT 2022-03-03 10:38:22.476 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='51b1e2d87ed3d416' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxNwBtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:38:22.490 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.490 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.490 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c90d667f8d320fea' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='b3f68ee25b6d9f2e1268d75bffb09f6b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq id='b3f68ee25b6d9f2e1268d75bffb09f6b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_add_and_remove_some_contacts_properly_1317@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='dcf78ca5fe0139f54353fb621cee1200'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq type='result' id='dcf78ca5fe0139f54353fb621cee1200'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.491 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.492 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_1317@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1317@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:22.492 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.493 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='145ee67b016c7ede' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.493 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.493 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzEzMTcAbWFrcm9saWth</auth>



*** User 2022-03-03 10:38:22.494 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.494 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3e3ade6e000c7d5' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='12dbd8a75a1bb86d72d53639389d6b4a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq id='12dbd8a75a1bb86d72d53639389d6b4a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_add_and_remove_some_contacts_properly_1317@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='f949300ebaafea9e790e8da6afb66502'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq type='result' id='f949300ebaafea9e790e8da6afb66502'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.495 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.496 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_1317@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1317@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:22.496 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.497 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11962a2c6e5af8ee' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.497 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.497 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xMzE3AG1ha3Jvd2U7cA==</auth>



*** User 2022-03-03 10:38:22.499 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.499 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2249a8aa7c0a7498' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='82a171690e1b8a6f2d185698c5592869'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq id='82a171690e1b8a6f2d185698c5592869' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_1317@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='d8bc4d73029606feaa116659927fa4a0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq type='result' id='d8bc4d73029606feaa116659927fa4a0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.500 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.501 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1317@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1317@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:22.501 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.502 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e75288e8b80f41f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.502 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.502 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xMzE3AG5pY25pZW1h</auth>



*** User 2022-03-03 10:38:22.503 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.503 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.504 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b565228ed5f0f0e0' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.504 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-03 10:38:22.504 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='9ae55d3b4efcf0e0deee214c3efcc6e4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.504 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq id='9ae55d3b4efcf0e0deee214c3efcc6e4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_1317@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.504 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<iq type='set' id='b572cddeb211ab09a125d987b7fb67fc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.505 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq type='result' id='b572cddeb211ab09a125d987b7fb67fc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.505 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.506 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1317@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1317@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:22.518 ***
REST request:
Code: 204
Req: {<0.15753.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6a0a1f5c887a11e6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
         <<>>,80,2715}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1317@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1317@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.518 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1317@localhost' to='bob_add_and_remove_some_contacts_properly_1317@localhost/res1' id='pushc0b2d319cf77082a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1317@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:22.559 ***
REST request:
Code: 204
Req: {<0.15782.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e5fe05c6f14c189">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
         <<>>,80,3529}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1317@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1317@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.560 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1317@localhost' to='bob_add_and_remove_some_contacts_properly_1317@localhost/res1' id='push31f72a2a99bc6c8a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1317@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:22.574 ***
REST request:
Code: 204
Req: {<0.15810.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d28f784293222891">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
         <<>>,80,1627}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1317@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1317@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.574 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1317@localhost' to='bob_add_and_remove_some_contacts_properly_1317@localhost/res1' id='push232f811e8a818404' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1317@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:22.583 ***
REST request:
Code: 200
Req: {<0.15845.1>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ea243f5861838166">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1317@localhost\",\"kate_add_and_remove_some_contacts_properly_1317@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,2166}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1317@localhost\",\"kate_add_and_remove_some_contacts_properly_1317@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1317@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.595 ***
REST request:
Code: 200
Req: {<0.15862.1>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bcf9532117b7b08b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTMxN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1317@localhost\",\"ask\":\"none\"}]">>,
         229,1474}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1317@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.595 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1317@localhost' to='bob_add_and_remove_some_contacts_properly_1317@localhost/res1' id='push7ae96cc13c456002' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1317@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:22.595 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.595 ***
mike_add_and_remove_some_contacts_properly_1317@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:22.595 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.596 ***
kate_add_and_remove_some_contacts_properly_1317@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:22.596 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.596 ***
bOb_add_and_remove_some_contacts_properly_1317@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:22.596 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.596 ***
alicE_add_and_remove_some_contacts_properly_1317@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:38:22.598 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:38:22.598 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5025.html



=== Ended at 2022-03-03 10:38:22
=== successfully completed test case
=== === Returned value: ok