=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.89833.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/rest_client_suite.add_and_remove_some_contacts_properly.180483.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@17a96e781220.2024-03-21_22.20.25"
=== Started at 2024-03-21 22:35:02
*** User 2024-03-21 22:35:02.148 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.149 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af9b19e4ee88c0ab' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.149 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.149 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NgBtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 22:35:02.150 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.150 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.151 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='48889de8b3eebce4' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3176@localhost'>
*** User 2024-03-21 22:35:02.151 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.151 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='d5a6d49ed43245bf5b3403c1c40fd3d0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.151 ***🔗
alicE_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq id='d5a6d49ed43245bf5b3403c1c40fd3d0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3176@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.151 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='8ceabcb28bc1e6445c3d7f9bb64eb23e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.152 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3176@localhost/res1' id='8ceabcb28bc1e6445c3d7f9bb64eb23e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.152 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.154 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3176@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3176@localhost/res1'/>
*** User 2024-03-21 22:35:02.155 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.156 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9fffad89d5ebc5c6' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.156 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.156 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMxNzYAbWFrcm9saWth</auth>
*** User 2024-03-21 22:35:02.159 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.159 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.159 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9c4bdb035dc39dd' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3176@localhost'>
*** User 2024-03-21 22:35:02.159 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.159 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='dd71d82746c93b1943092d266c954e18'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.160 ***🔗
bOb_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq id='dd71d82746c93b1943092d266c954e18' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3176@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.160 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='1a8bd06cf7b32d31c6675848e1bbf2a3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.161 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' id='1a8bd06cf7b32d31c6675848e1bbf2a3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.161 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.164 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1'/>
*** User 2024-03-21 22:35:02.164 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.165 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39b1ca1318838955' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.165 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.165 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTc2AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-21 22:35:02.166 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.166 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.166 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84bfeef011f38538' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3176@localhost'>
*** User 2024-03-21 22:35:02.166 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.166 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='8f08c621f79354527beeba630b0a3c64'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.167 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq id='8f08c621f79354527beeba630b0a3c64' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3176@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.167 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='523fb5e143cc17741d38848d0a1f0357'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.180 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3176@localhost/res1' id='523fb5e143cc17741d38848d0a1f0357' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.180 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.183 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3176@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3176@localhost/res1'/>
*** User 2024-03-21 22:35:02.184 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.184 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7cbaba7fa4f277e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.184 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.184 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTc2AG5pY25pZW1h</auth>
*** User 2024-03-21 22:35:02.185 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.185 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 22:35:02.186 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d250c474da199754' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3176@localhost'>
*** User 2024-03-21 22:35:02.186 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 22:35:02.186 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='d16f288cc89c1527d993a31d86c33755'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.186 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq id='d16f288cc89c1527d993a31d86c33755' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3176@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.186 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<iq type='set' id='c0a78dfbfa3329e36e2144016486989e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.187 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3176@localhost/res1' id='c0a78dfbfa3329e36e2144016486989e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.187 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.190 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3176@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3176@localhost/res1'/>
*** User 2024-03-21 22:35:02.199 ***🔗
REST request:
Code: 204
Req: {<0.89984.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5bc13c74b353c30e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3176@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>}],
<<>>,80,4926}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3176@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3176@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.200 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3176@localhost' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' id='push6fec9199fb9eb909' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3176@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.213 ***🔗
REST request:
Code: 204
Req: {<0.90012.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41e98611f853363b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3176@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>}],
<<>>,80,6629}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3176@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3176@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.213 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3176@localhost' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' id='push72f57986cfd479f5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3176@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.225 ***🔗
REST request:
Code: 204
Req: {<0.90057.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b670f561d018304">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3176@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>}],
<<>>,80,4039}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3176@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3176@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.225 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3176@localhost' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' id='push0a9f74af746cff18' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3176@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.290 ***🔗
REST request:
Code: 200
Req: {<0.90081.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"42b7e15b9e873443">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3176@localhost\",\"kate_add_and_remove_some_contacts_properly_3176@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,5920}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3176@localhost\",\"kate_add_and_remove_some_contacts_properly_3176@localhost\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3176@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.298 ***🔗
REST request:
Code: 200
Req: {<0.90102.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd20f7503532b669">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3176@localhost\"}]">>,
229,3000}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3176@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.298 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3176@localhost' to='bob_add_and_remove_some_contacts_properly_3176@localhost/res1' id='push367bd675ec428010' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3176@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.298 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.299 ***🔗
mike_add_and_remove_some_contacts_properly_3176@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:02.299 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.299 ***🔗
kate_add_and_remove_some_contacts_properly_3176@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:02.299 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.299 ***🔗
bob_add_and_remove_some_contacts_properly_3176@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:02.300 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.300 ***🔗
alice_add_and_remove_some_contacts_properly_3176@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 22:35:02
=== successfully completed test case
=== === Returned value: ok