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

=== Config value:

    [{watchdog,<0.25260.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,riak},
     {archive_wait,2500},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_08.57.32/rest_client_suite.add_and_remove_some_contacts_properly.100994.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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_08.57.32/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_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              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"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => riak,iqdisc => one_queue,
              riak =>
                  #{bucket_type => <<"rosters">>,
                    version_bucket_type => <<"roster_versions">>},
              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 => riak,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,
              riak =>
                  #{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
              search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"

=== Started at 2022-06-22 08:57:51


*** CT 2022-06-22 08:57:51.854 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4735.html
*** CT 2022-06-22 08:57:51.855 *** View log from node ejabberd2@localhost when started🔗 ejabberd2@localhost_1988.html

*** User 2022-06-22 08:57:51.873 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.874 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='19aa6fa6ae37829f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.874 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.874 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMgBtYXR5Z3J5c2E=</auth>



*** User 2022-06-22 08:57:51.878 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:51.878 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.884 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b88ad7f92934336' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.884 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.884 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='6d8ce8d30a33df01a70dac9348e06d56'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.890 ***🔗
alicE_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq id='6d8ce8d30a33df01a70dac9348e06d56' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_1722@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.891 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='06277f583c32e4008ed32b7cde9a8be8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.891 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq type='result' id='06277f583c32e4008ed32b7cde9a8be8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.892 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:51.960 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1722@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1722@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:51.961 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.961 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ba3b5c16d9dc0ffb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.961 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.962 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE3MjIAbWFrcm9saWth</auth>



*** User 2022-06-22 08:57:51.964 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:51.964 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.965 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5ee88117730645ff' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.965 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.965 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='7b5048feed2501d9c9a29793e96d8be5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.965 ***🔗
bOb_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq id='7b5048feed2501d9c9a29793e96d8be5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_1722@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.965 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='82a224297bf7a1134a868da4041be98d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.966 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq type='result' id='82a224297bf7a1134a868da4041be98d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.966 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:51.973 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:51.973 ***🔗
kate_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.974 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f37821515cfb9f1d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.974 ***🔗
kate_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.974 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNzIyAG1ha3Jvd2U7cA==</auth>



*** User 2022-06-22 08:57:51.976 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:51.976 ***🔗
kate_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.976 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a88239dcd3fc92b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:51.977 ***🔗
kate_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:51.977 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='e8065726b03d2aa8ee94eaf98e036f0b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.977 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq id='e8065726b03d2aa8ee94eaf98e036f0b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_1722@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:51.977 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='a38c5bc019caee8fb4f60ee9e826c347'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.978 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq type='result' id='a38c5bc019caee8fb4f60ee9e826c347'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:51.978 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:52.057 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1722@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1722@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:52.058 ***🔗
mike_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:52.058 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39e108175814a8da' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:52.058 ***🔗
mike_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:52.058 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNzIyAG5pY25pZW1h</auth>



*** User 2022-06-22 08:57:52.060 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:52.060 ***🔗
mike_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:52.062 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9c94701ccc7eae99' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:52.062 ***🔗
mike_add_and_remove_some_contacts_properly_1722@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-06-22 08:57:52.062 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='97eb3a0a80ca21baad65ac47b141be0e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:52.062 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq id='97eb3a0a80ca21baad65ac47b141be0e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_1722@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:52.063 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<iq type='set' id='40d58583164e4c04e373d908cfdc0bff'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:52.063 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq type='result' id='40d58583164e4c04e373d908cfdc0bff'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:52.063 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:52.067 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1722@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1722@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:52.158 ***🔗
REST request:
Code: 204
Req: {<0.25388.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5a5c61431dfb821f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1722@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:51 GMT">>}],
         <<>>,80,80806}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1722@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1722@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:52.159 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1722@localhost' to='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' id='push100e95ba85189353' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1722@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:52.183 ***🔗
REST request:
Code: 204
Req: {<0.25418.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"667aa31e6c65c677">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1722@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:51 GMT">>}],
         <<>>,80,14816}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1722@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1722@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:52.183 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1722@localhost' to='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' id='pushdece481e26bca354' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1722@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:52.269 ***🔗
REST request:
Code: 204
Req: {<0.25460.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"23a245ebb747618a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1722@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:51 GMT">>}],
         <<>>,80,5437}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1722@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1722@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:52.269 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1722@localhost' to='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' id='push9782270d9d1315a0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1722@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:52.363 ***🔗
REST request:
Code: 200
Req: {<0.25475.1>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99738ef884e3da55">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1722@localhost\",\"kate_add_and_remove_some_contacts_properly_1722@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,84169}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1722@localhost\",\"kate_add_and_remove_some_contacts_properly_1722@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1722@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:52.374 ***🔗
REST request:
Code: 200
Req: {<0.25497.1>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"02d9f0d6a7a81c22">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTcyMkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1722@localhost\",\"ask\":\"none\"}]">>,
         229,3709}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1722@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:52.374 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1722@localhost' to='bob_add_and_remove_some_contacts_properly_1722@localhost/res1' id='pushaac4469340168631' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1722@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:52.374 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:52.374 ***🔗
mike_add_and_remove_some_contacts_properly_1722@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:57:52.374 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:52.375 ***🔗
kate_add_and_remove_some_contacts_properly_1722@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:57:52.375 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:52.375 ***🔗
bob_add_and_remove_some_contacts_properly_1722@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:57:52.375 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:52.376 ***🔗
alice_add_and_remove_some_contacts_properly_1722@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:57:52.377 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1988.html
*** CT 2022-06-22 08:57:52.378 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4735.html



=== Ended at 2022-06-22 08:57:52
=== successfully completed test case
=== === Returned value: ok