=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.89185.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/rest_client_suite.add_and_remove_some_contacts_properly.238978.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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/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_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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17"
=== Started at 2024-03-21 07:53:03
*** User 2024-03-21 07:53:03.373 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@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 07:53:03.373 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d5d196505e1306c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.373 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@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 07:53:03.374 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NABtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 07:53:03.375 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.375 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@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 07:53:03.375 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1c630940a35adfe' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3474@localhost'>
*** User 2024-03-21 07:53:03.375 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@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 07:53:03.376 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='55d5246a8dd7bad7b17238de8e3bd62a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.376 ***🔗
alicE_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq id='55d5246a8dd7bad7b17238de8e3bd62a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3474@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.376 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='77cc48f46fa565aed4ea48e30ca8ba36'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.377 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3474@localhost/res1' id='77cc48f46fa565aed4ea48e30ca8ba36' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.377 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.379 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3474@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3474@localhost/res1'/>
*** User 2024-03-21 07:53:03.380 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@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 07:53:03.380 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09f76baabea2e7c3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.380 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@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 07:53:03.380 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzM0NzQAbWFrcm9saWth</auth>
*** User 2024-03-21 07:53:03.381 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.381 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@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 07:53:03.382 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fea5f2ad8e13bb97' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3474@localhost'>
*** User 2024-03-21 07:53:03.382 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@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 07:53:03.382 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='60e905374262adf404cdccac158e7623'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.382 ***🔗
bOb_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq id='60e905374262adf404cdccac158e7623' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3474@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.382 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='37ef738cba9b6502556dedfebc853bf1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.382 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' id='37ef738cba9b6502556dedfebc853bf1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.383 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.385 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1'/>
*** User 2024-03-21 07:53:03.385 ***🔗
kate_add_and_remove_some_contacts_properly_3474@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 07:53:03.385 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ca322a6b673d030' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.386 ***🔗
kate_add_and_remove_some_contacts_properly_3474@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 07:53:03.386 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDc0AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-21 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@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 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c534ec5fdb380641' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3474@localhost'>
*** User 2024-03-21 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@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 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='7b7abc9bcd88ba4229e9946c5dc6ad38'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.387 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq id='7b7abc9bcd88ba4229e9946c5dc6ad38' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3474@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.388 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='a1ced2ce1f700d036e013a1158f60ed2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.388 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3474@localhost/res1' id='a1ced2ce1f700d036e013a1158f60ed2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.388 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.390 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3474@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3474@localhost/res1'/>
*** User 2024-03-21 07:53:03.390 ***🔗
mike_add_and_remove_some_contacts_properly_3474@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 07:53:03.391 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d8f0050896c44fe' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.391 ***🔗
mike_add_and_remove_some_contacts_properly_3474@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 07:53:03.391 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDc0AG5pY25pZW1h</auth>
*** User 2024-03-21 07:53:03.393 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.393 ***🔗
mike_add_and_remove_some_contacts_properly_3474@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 07:53:03.394 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c82331073dad10fb' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3474@localhost'>
*** User 2024-03-21 07:53:03.394 ***🔗
mike_add_and_remove_some_contacts_properly_3474@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 07:53:03.394 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='533994539069e6be9b13e3e996ae4f1e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.394 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq id='533994539069e6be9b13e3e996ae4f1e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3474@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.394 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<iq type='set' id='da7c4957e83293204f1fe720968a927c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.395 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3474@localhost/res1' id='da7c4957e83293204f1fe720968a927c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.395 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.438 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3474@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3474@localhost/res1'/>
*** User 2024-03-21 07:53:03.450 ***🔗
REST request:
Code: 204
Req: {<0.89324.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"160908a93a9e0ab5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3474@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>}],
<<>>,80,6082}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3474@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3474@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.450 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3474@localhost' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' id='push23a50c7c4716e4a0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3474@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.462 ***🔗
REST request:
Code: 204
Req: {<0.89358.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"21249206e72f8817">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3474@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>}],
<<>>,80,5202}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3474@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3474@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.462 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3474@localhost' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' id='pushe639db2855ce973f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3474@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.473 ***🔗
REST request:
Code: 204
Req: {<0.89391.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e1f72b0e37931df">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3474@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>}],
<<>>,80,5315}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3474@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3474@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.473 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3474@localhost' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' id='push18f6ed366bc7520b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3474@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.536 ***🔗
REST request:
Code: 200
Req: {<0.89427.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb9476c31199a402">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3474@localhost\",\"kate_add_and_remove_some_contacts_properly_3474@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,56663}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3474@localhost\",\"kate_add_and_remove_some_contacts_properly_3474@localhost\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3474@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.548 ***🔗
REST request:
Code: 200
Req: {<0.89445.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ebccd7805bfef57">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ3NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3474@localhost\"}]">>,
229,5632}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3474@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.548 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3474@localhost' to='bob_add_and_remove_some_contacts_properly_3474@localhost/res1' id='push22fdfed197c217a1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3474@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.549 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.549 ***🔗
mike_add_and_remove_some_contacts_properly_3474@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:03.549 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.549 ***🔗
kate_add_and_remove_some_contacts_properly_3474@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:03.549 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.550 ***🔗
bob_add_and_remove_some_contacts_properly_3474@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:03.550 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.550 ***🔗
alice_add_and_remove_some_contacts_properly_3474@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:53:03
=== successfully completed test case
=== === Returned value: ok