=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.56229.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{preset,"internal_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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.rest_client_SUITE.logs/run.2024-03-29_09.29.41/rest_client_suite.add_and_remove_some_contacts_properly.118146.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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.rest_client_SUITE.logs/run.2024-03-29_09.29.41/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => mnesia,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,versioning => false,
store_current_id => false},
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_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
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_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@8dadd8a9c704.2024-03-29_09.14.50"
=== Started at 2024-03-29 09:29:42
*** User 2024-03-29 09:29:42.377 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.377 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e620853d6280623' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-29 09:29:42.377 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.377 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd1d497fb972429f' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_1869@localhost'>
*** User 2024-03-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='7b03fce8a0f80d43a1b5366aae758b63'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-29 09:29:42.378 ***🔗
alicE_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq id='7b03fce8a0f80d43a1b5366aae758b63' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_1869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-29 09:29:42.379 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='d98841a3c0c249f11ead7ab47177fbcc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.379 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_1869@localhost/res1' id='d98841a3c0c249f11ead7ab47177fbcc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.379 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<presence/>
*** User 2024-03-29 09:29:42.380 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1869@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1869@localhost/res1'/>
*** User 2024-03-29 09:29:42.380 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.380 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ac562cf5d3491de' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-29 09:29:42.381 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.381 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE4NjkAbWFrcm9saWth</auth>
*** User 2024-03-29 09:29:42.381 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-29 09:29:42.381 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.381 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f228c28967ec9470' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_1869@localhost'>
*** User 2024-03-29 09:29:42.382 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.382 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='f385a329617b9da3b9ad0de18afdb84e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-29 09:29:42.382 ***🔗
bOb_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq id='f385a329617b9da3b9ad0de18afdb84e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_1869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-29 09:29:42.382 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='cfca7e9aff09024a3e2bb4ac39b1a536'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.382 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' id='cfca7e9aff09024a3e2bb4ac39b1a536' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.383 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<presence/>
*** User 2024-03-29 09:29:42.383 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1'/>
*** User 2024-03-29 09:29:42.384 ***🔗
kate_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.384 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aae27f734d15bd95' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-29 09:29:42.384 ***🔗
kate_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.384 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODY5AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-29 09:29:42.384 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d857c583508d51e' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_1869@localhost'>
*** User 2024-03-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='bf0e33fbdc547cd000ed0e36db8f55a6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq id='bf0e33fbdc547cd000ed0e36db8f55a6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-29 09:29:42.385 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='5719232d0addcc3859220d86c8a53c0b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.386 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_1869@localhost/res1' id='5719232d0addcc3859220d86c8a53c0b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.386 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<presence/>
*** User 2024-03-29 09:29:42.386 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1869@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1869@localhost/res1'/>
*** User 2024-03-29 09:29:42.387 ***🔗
mike_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.387 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='737f69beedd0cd33' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-29 09:29:42.387 ***🔗
mike_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.387 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODY5AG5pY25pZW1h</auth>
*** User 2024-03-29 09:29:42.388 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-29 09:29:42.388 ***🔗
mike_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.388 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f4361bc67bef7bcb' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_1869@localhost'>
*** User 2024-03-29 09:29:42.389 ***🔗
mike_add_and_remove_some_contacts_properly_1869@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-29 09:29:42.389 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='7f36158916dd46cf24064578551987d7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-29 09:29:42.389 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq id='7f36158916dd46cf24064578551987d7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-29 09:29:42.389 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<iq type='set' id='1de0335ff2619cc97fe8fe3b133801e6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.390 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_1869@localhost/res1' id='1de0335ff2619cc97fe8fe3b133801e6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-29 09:29:42.390 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 out
<presence/>
*** User 2024-03-29 09:29:42.391 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1869@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1869@localhost/res1'/>
*** User 2024-03-29 09:29:42.397 ***🔗
REST request:
Code: 204
Req: {<0.56346.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3e55372a8cf3b324">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1869@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Mar 2024 09:29:41 GMT">>}],
<<>>,80,1072}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1869@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1869@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-29 09:29:42.397 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1869@localhost' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' id='pushad59a5684ac3f3bf' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1869@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-29 09:29:42.405 ***🔗
REST request:
Code: 204
Req: {<0.56368.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b6b928c438991ce7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1869@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Mar 2024 09:29:41 GMT">>}],
<<>>,80,1325}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1869@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1869@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-29 09:29:42.405 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1869@localhost' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' id='push65dea4976c29924f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_1869@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-29 09:29:42.441 ***🔗
REST request:
Code: 204
Req: {<0.56405.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"74598bb0f8d1afc6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1869@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Mar 2024 09:29:42 GMT">>}],
<<>>,80,1018}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1869@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1869@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-29 09:29:42.441 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1869@localhost' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' id='push61707f00cf08aa9f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_1869@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-29 09:29:42.448 ***🔗
REST request:
Code: 200
Req: {<0.56441.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c041c47d7b2defde">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1869@localhost\",\"kate_add_and_remove_some_contacts_properly_1869@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Mar 2024 09:29:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,1323}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1869@localhost\",\"kate_add_and_remove_some_contacts_properly_1869@localhost\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1869@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-29 09:29:42.454 ***🔗
REST request:
Code: 200
Req: {<0.56471.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"710e997cb8f98baa">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Mar 2024 09:29:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1869@localhost\"}]">>,
229,531}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1869@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-29 09:29:42.454 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1869@localhost' to='bob_add_and_remove_some_contacts_properly_1869@localhost/res1' id='push3435bf2cf755a7b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1869@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-29 09:29:42.455 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 out
</stream:stream>
*** User 2024-03-29 09:29:42.455 ***🔗
mike_add_and_remove_some_contacts_properly_1869@localhost/res1 in
</stream:stream>
*** User 2024-03-29 09:29:42.455 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 out
</stream:stream>
*** User 2024-03-29 09:29:42.455 ***🔗
kate_add_and_remove_some_contacts_properly_1869@localhost/res1 in
</stream:stream>
*** User 2024-03-29 09:29:42.455 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 out
</stream:stream>
*** User 2024-03-29 09:29:42.456 ***🔗
bob_add_and_remove_some_contacts_properly_1869@localhost/res1 in
</stream:stream>
*** User 2024-03-29 09:29:42.456 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 out
</stream:stream>
*** User 2024-03-29 09:29:42.456 ***🔗
alice_add_and_remove_some_contacts_properly_1869@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-29 09:29:42
=== successfully completed test case
=== === Returned value: ok