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

=== Config value:

    [{watchdog,<0.10404.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.add_and_remove_some_contacts_properly.149634.html"},
     {tc_group_properties,[{name,roster},{repeat_until_all_ok,3},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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/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 => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:37:03


*** CT 2022-01-27 15:37:03.829 *** View log from node mongooseim@localhost when started mongooseim@localhost_5817.html
*** CT 2022-01-27 15:37:03.830 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:37:03.849 ***
alicE_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.849 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='718cba5758246d55' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.849 ***
alicE_add_and_remove_some_contacts_properly_2191@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>SCRAM-SHA-256</mechanism>
		<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-01-27 15:37:03.850 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MQBtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 15:37:03.850 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83fe56168293b6aa' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='c0c065aa85286fdee4c9d791834174db'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq id='c0c065aa85286fdee4c9d791834174db' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_add_and_remove_some_contacts_properly_2191@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.851 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='f2475a096d5c1f60db9d094ecccfd5ad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.852 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq type='result' id='f2475a096d5c1f60db9d094ecccfd5ad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.852 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:03.854 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2191@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2191@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:03.855 ***
bOb_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.855 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ef4b5d04338fcb7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.855 ***
bOb_add_and_remove_some_contacts_properly_2191@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>SCRAM-SHA-256</mechanism>
		<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-01-27 15:37:03.855 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIxOTEAbWFrcm9saWth</auth>



*** User 2022-01-27 15:37:03.857 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:03.857 ***
bOb_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.858 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='51b2cb0378d93dc2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.858 ***
bOb_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.858 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='db137abdd9306bd7953508d491a15477'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.858 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq id='db137abdd9306bd7953508d491a15477' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_add_and_remove_some_contacts_properly_2191@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.858 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='db1db44221607db2831caaa4830dd3dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.859 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq type='result' id='db1db44221607db2831caaa4830dd3dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.859 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:03.861 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2191@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2191@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:03.862 ***
kate_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.862 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ee14ed6a2342d0c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.862 ***
kate_add_and_remove_some_contacts_properly_2191@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>SCRAM-SHA-256</mechanism>
		<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-01-27 15:37:03.862 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMTkxAG1ha3Jvd2U7cA==</auth>



*** User 2022-01-27 15:37:03.863 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:03.863 ***
kate_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.863 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5be04ea8c057456b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.863 ***
kate_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.863 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='ed9abef4760298dbb5b2dd6c39ae1a34'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.864 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq id='ed9abef4760298dbb5b2dd6c39ae1a34' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2191@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.864 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='fa4fd0fcdbe960067b69ee31ad540038'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.864 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq type='result' id='fa4fd0fcdbe960067b69ee31ad540038'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.864 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:03.869 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2191@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2191@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:03.870 ***
mike_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.870 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56703abe8882b614' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.871 ***
mike_add_and_remove_some_contacts_properly_2191@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>SCRAM-SHA-256</mechanism>
		<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-01-27 15:37:03.871 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMTkxAG5pY25pZW1h</auth>



*** User 2022-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a86ad913b177cb07' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@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-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='6c77917532924bc8b1886f9adbfa8fda'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.873 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq id='6c77917532924bc8b1886f9adbfa8fda' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2191@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:03.874 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<iq type='set' id='15ff0143b79f0f97b8265834576d6579'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.874 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq type='result' id='15ff0143b79f0f97b8265834576d6579'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:03.874 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:03.878 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2191@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2191@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:03.946 ***
REST request:
Code: 204
Req: {<0.10530.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7c77d789b12ce2c2">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2191@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
         <<>>,80,57839}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2191@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2191@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:03.946 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2191@localhost' to='bob_add_and_remove_some_contacts_properly_2191@localhost/res1' id='push852bdd168d7dab90' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2191@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:37:03.977 ***
REST request:
Code: 204
Req: {<0.10562.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18e37a644fb3d75b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2191@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
         <<>>,80,23618}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2191@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2191@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:03.977 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2191@localhost' to='bob_add_and_remove_some_contacts_properly_2191@localhost/res1' id='push6c73fe7d459b78b1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2191@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:37:03.997 ***
REST request:
Code: 204
Req: {<0.10585.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dca53b11fd1ff51d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2191@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
         <<>>,80,12007}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2191@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2191@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:03.997 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2191@localhost' to='bob_add_and_remove_some_contacts_properly_2191@localhost/res1' id='push3fc52b7d1ee35072' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2191@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:37:04.044 ***
REST request:
Code: 200
Req: {<0.10607.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0d4a58194351dd70">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2191@localhost\",\"kate_add_and_remove_some_contacts_properly_2191@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,37659}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2191@localhost\",\"kate_add_and_remove_some_contacts_properly_2191@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2191@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:04.055 ***
REST request:
Code: 200
Req: {<0.10634.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"37d4552bafae1557">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjE5MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2191@localhost\",\"ask\":\"none\"}]">>,
         229,2296}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2191@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:04.055 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2191@localhost' to='bob_add_and_remove_some_contacts_properly_2191@localhost/res1' id='push099af5cc7425c4e0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2191@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:37:04.055 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:04.055 ***
mike_add_and_remove_some_contacts_properly_2191@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
kate_add_and_remove_some_contacts_properly_2191@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
bOb_add_and_remove_some_contacts_properly_2191@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:04.056 ***
alicE_add_and_remove_some_contacts_properly_2191@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:37:04.063 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:37:04.064 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5817.html



=== Ended at 2022-01-27 15:37:04
=== successfully completed test case
=== === Returned value: ok