=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.89337.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@70badadd0f1a.2024-04-10_12.44.57/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.59.47/rest_client_suite.add_and_remove_some_contacts_properly.244226.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@70badadd0f1a.2024-04-10_12.44.57/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.59.47/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_amp => #{},
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,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
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@70badadd0f1a.2024-04-10_12.44.57"
=== Started at 2024-04-10 12:59:49
*** User 2024-04-10 12:59:49.309 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.309 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='190c89e724fcda06' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.309 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.309 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwMwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-10 12:59:49.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b36809de22da4dc5' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3203@localhost'>
*** User 2024-04-10 12:59:49.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.310 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='1d7e1a229e04a5deaf711022eaf1ddb7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
alicE_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq id='1d7e1a229e04a5deaf711022eaf1ddb7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3203@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='c461aad73cd57d993e03ede439aea690'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3203@localhost/res1' id='c461aad73cd57d993e03ede439aea690' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.313 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3203@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3203@localhost/res1'/>
*** User 2024-04-10 12:59:49.314 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.314 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b75a106b98f860c3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.314 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyMDMAbWFrcm9saWth</auth>
*** User 2024-04-10 12:59:49.315 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bacb0b7b81022246' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3203@localhost'>
*** User 2024-04-10 12:59:49.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='b6c05e7e8e8bc5a94dd3ad33a3200470'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.316 ***🔗
bOb_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq id='b6c05e7e8e8bc5a94dd3ad33a3200470' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3203@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.316 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='efb7ccb079dd5c4910b27dd139c07148'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.318 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' id='efb7ccb079dd5c4910b27dd139c07148' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.318 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.320 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1'/>
*** User 2024-04-10 12:59:49.320 ***🔗
kate_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.321 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7b6691dbfce83b3f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.321 ***🔗
kate_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.321 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjAzAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='891ead7fbd1c7dc4' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3203@localhost'>
*** User 2024-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='9f87b58ecf0ab8889182827d182ab453'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq id='9f87b58ecf0ab8889182827d182ab453' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3203@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.322 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='2d26888093c1d426e8ee07128183a43d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.323 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3203@localhost/res1' id='2d26888093c1d426e8ee07128183a43d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.323 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.326 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3203@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3203@localhost/res1'/>
*** User 2024-04-10 12:59:49.327 ***🔗
mike_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.327 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9336770b042f2672' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.327 ***🔗
mike_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.327 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjAzAG5pY25pZW1h</auth>
*** User 2024-04-10 12:59:49.328 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.328 ***🔗
mike_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.328 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e9ccd701ef3b0f9' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3203@localhost'>
*** User 2024-04-10 12:59:49.328 ***🔗
mike_add_and_remove_some_contacts_properly_3203@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-04-10 12:59:49.328 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='4d9ad0ba35f56b04ee86d9d2670ae586'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.329 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq id='4d9ad0ba35f56b04ee86d9d2670ae586' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3203@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.329 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<iq type='set' id='49155e35556c49625415ef41e08fe9c1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.330 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3203@localhost/res1' id='49155e35556c49625415ef41e08fe9c1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.330 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.332 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3203@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3203@localhost/res1'/>
*** User 2024-04-10 12:59:49.370 ***🔗
REST request:
Code: 204
Req: {<0.89468.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cd1564639392b7e6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3203@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>}],
<<>>,80,9104}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3203@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3203@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 12:59:49.370 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3203@localhost' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' id='push973624d20865699a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3203@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.380 ***🔗
REST request:
Code: 204
Req: {<0.89518.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c84aa1f78f422dd4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3203@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>}],
<<>>,80,4388}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3203@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3203@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 12:59:49.380 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3203@localhost' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' id='push328ca8182a2700aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3203@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.393 ***🔗
REST request:
Code: 204
Req: {<0.89558.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30cea5a7162730e8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3203@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>}],
<<>>,80,7047}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3203@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3203@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 12:59:49.393 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3203@localhost' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' id='push19680f86d05b3f9a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3203@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.403 ***🔗
REST request:
Code: 200
Req: {<0.89581.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"485c353ba1e6a642">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3203@localhost\",\"kate_add_and_remove_some_contacts_properly_3203@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,5481}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3203@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3203@localhost\",\"kate_add_and_remove_some_contacts_properly_3203@localhost\"]}">>,
method => <<"DELETE">>,return_headers => true}
*** User 2024-04-10 12:59:49.459 ***🔗
REST request:
Code: 200
Req: {<0.89603.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9dc378e74f368b52">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIwM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3203@localhost\"}]">>,
229,2868}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3203@localhost">>,
<<"makrolika">>},
role => client,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 12:59:49.460 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3203@localhost' to='bob_add_and_remove_some_contacts_properly_3203@localhost/res1' id='pushedcf6a16fbd575ff' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3203@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.460 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.460 ***🔗
mike_add_and_remove_some_contacts_properly_3203@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:59:49.460 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.460 ***🔗
kate_add_and_remove_some_contacts_properly_3203@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:59:49.460 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.460 ***🔗
bob_add_and_remove_some_contacts_properly_3203@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:59:49.461 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.461 ***🔗
alice_add_and_remove_some_contacts_properly_3203@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:59:49
=== successfully completed test case
=== === Returned value: ok