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

=== Config value:

    [{watchdog,<0.16744.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f547f21cc62a.2022-05-11_08.56.42/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.09.27/rest_client_suite.add_and_remove_some_contacts_properly.90756.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@f547f21cc62a.2022-05-11_08.56.42/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.09.27/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 => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f547f21cc62a.2022-05-11_08.56.42"

=== Started at 2022-05-11 09:09:29


*** CT 2022-05-11 09:09:29.925 *** View log from node mongooseim@localhost when started mongooseim@localhost_5480.html
*** CT 2022-05-11 09:09:29.925 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1721.html

*** User 2022-05-11 09:09:29.938 ***
alicE_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.938 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fffab7492bdf076f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.939 ***
alicE_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.939 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOABtYXR5Z3J5c2E=</auth>



*** User 2022-05-11 09:09:29.940 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.940 ***
alicE_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.940 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee5c9fccd81daebf' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.940 ***
alicE_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.941 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='e389d3b28bb36e0629bce263cd5e0b3c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.941 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq id='e389d3b28bb36e0629bce263cd5e0b3c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_add_and_remove_some_contacts_properly_2518@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.941 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='83e650fc6a942bd75a2f2a36234170b2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.941 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq type='result' id='83e650fc6a942bd75a2f2a36234170b2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.941 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.945 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2518@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2518@localhost/res1' xml:lang='en'/>



*** User 2022-05-11 09:09:29.946 ***
bOb_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.946 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2cfb0cb0c8dc4d03' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.946 ***
bOb_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.946 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI1MTgAbWFrcm9saWth</auth>



*** User 2022-05-11 09:09:29.947 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.947 ***
bOb_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.948 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='984455fb0e812e67' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.948 ***
bOb_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.948 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='e881ca4db3bbbb680a79cd592acb1495'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.948 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq id='e881ca4db3bbbb680a79cd592acb1495' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_add_and_remove_some_contacts_properly_2518@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.949 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='e7b55d0e5a4cbdba8e97773ff80ef5d9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.949 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq type='result' id='e7b55d0e5a4cbdba8e97773ff80ef5d9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.949 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.953 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2518@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2518@localhost/res1' xml:lang='en'/>



*** User 2022-05-11 09:09:29.954 ***
kate_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.954 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d4f46c94be768ff' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.954 ***
kate_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.954 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNTE4AG1ha3Jvd2U7cA==</auth>



*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8a4365d054cf508' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='be1d90b62c74fc589d1b408255dfef57'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq id='be1d90b62c74fc589d1b408255dfef57' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2518@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='71ad2d15c32ae0f11b82a1e99416c815'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.956 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq type='result' id='71ad2d15c32ae0f11b82a1e99416c815'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.957 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.960 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2518@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2518@localhost/res1' xml:lang='en'/>



*** User 2022-05-11 09:09:29.961 ***
mike_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.961 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='882c06737fbda46e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.961 ***
mike_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.961 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNTE4AG5pY25pZW1h</auth>



*** User 2022-05-11 09:09:29.962 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.962 ***
mike_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='719c52f5e90ea83a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@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-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='9310be45e06929a15db40a2e66c56bb5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq id='9310be45e06929a15db40a2e66c56bb5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2518@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<iq type='set' id='1fbd4cf74a7fdc76d033c7c958f48f64'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.963 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq type='result' id='1fbd4cf74a7fdc76d033c7c958f48f64'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.964 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.967 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2518@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2518@localhost/res1' xml:lang='en'/>



*** User 2022-05-11 09:09:30.001 ***
REST request:
Code: 204
Req: {<0.16864.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e06ce82d96da9c14">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2518@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:29 GMT">>}],
         <<>>,80,25304}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2518@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2518@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:30.001 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2518@localhost' to='bob_add_and_remove_some_contacts_properly_2518@localhost/res1' id='pushe7e05d030cff7a11' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2518@localhost'/>
	</query>
</iq>



*** User 2022-05-11 09:09:30.016 ***
REST request:
Code: 204
Req: {<0.16898.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc4d5d1e2aa6c6b9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2518@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:29 GMT">>}],
         <<>>,80,6726}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2518@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2518@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:30.017 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2518@localhost' to='bob_add_and_remove_some_contacts_properly_2518@localhost/res1' id='push92f63ddda1171e88' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2518@localhost'/>
	</query>
</iq>



*** User 2022-05-11 09:09:30.028 ***
REST request:
Code: 204
Req: {<0.16930.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fc97220cc89eb1b6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2518@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:29 GMT">>}],
         <<>>,80,4020}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2518@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2518@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:30.028 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2518@localhost' to='bob_add_and_remove_some_contacts_properly_2518@localhost/res1' id='push4ce9570b503db022' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2518@localhost'/>
	</query>
</iq>



*** User 2022-05-11 09:09:30.040 ***
REST request:
Code: 200
Req: {<0.16956.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"961b622807d701f1">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2518@localhost\",\"kate_add_and_remove_some_contacts_properly_2518@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,6172}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2518@localhost\",\"kate_add_and_remove_some_contacts_properly_2518@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2518@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:30.051 ***
REST request:
Code: 200
Req: {<0.16969.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc771856e5f33374">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjUxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2518@localhost\",\"ask\":\"none\"}]">>,
         229,1815}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2518@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:30.051 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2518@localhost' to='bob_add_and_remove_some_contacts_properly_2518@localhost/res1' id='pusheebf67abe8983c56' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2518@localhost'/>
	</query>
</iq>



*** User 2022-05-11 09:09:30.051 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:30.051 ***
mike_add_and_remove_some_contacts_properly_2518@localhost/res1 in
</stream:stream>

*** User 2022-05-11 09:09:30.051 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:30.052 ***
kate_add_and_remove_some_contacts_properly_2518@localhost/res1 in
</stream:stream>

*** User 2022-05-11 09:09:30.052 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:30.052 ***
bOb_add_and_remove_some_contacts_properly_2518@localhost/res1 in
</stream:stream>

*** User 2022-05-11 09:09:30.052 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:30.052 ***
alicE_add_and_remove_some_contacts_properly_2518@localhost/res1 in
</stream:stream>
*** CT 2022-05-11 09:09:30.055 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1721.html
*** CT 2022-05-11 09:09:30.056 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5480.html



=== Ended at 2022-05-11 09:09:30
=== successfully completed test case
=== === Returned value: ok