=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.105726.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/rest_client_suite.add_and_remove_some_contacts_properly.235523.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.31.23/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,server_info => [],extra_domains => [],
users_can_see_hidden_services => 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_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@d67ced1141dd.2024-04-16_10.12.40"
=== Started at 2024-04-16 10:31:25
*** User 2024-04-16 10:31:25.904 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.904 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09f856a57ad7ec0e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.904 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.904 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5MwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 10:31:25.906 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.906 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.906 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='99e4ab2b47db1887' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_4193@localhost'>
*** User 2024-04-16 10:31:25.906 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.906 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='13d0a6def645b143a174ffe0c2df04e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
alicE_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq id='13d0a6def645b143a174ffe0c2df04e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_4193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='06abe2c2058e0e970f62dd4762952aad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.907 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_4193@localhost/res1' id='06abe2c2058e0e970f62dd4762952aad' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.908 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.910 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_4193@localhost/res1' to='alice_add_and_remove_some_contacts_properly_4193@localhost/res1'/>
*** User 2024-04-16 10:31:25.910 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.911 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c031f06f6714c0c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.911 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.911 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzQxOTMAbWFrcm9saWth</auth>
*** User 2024-04-16 10:31:25.913 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.913 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.914 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a27f1622655d6fea' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_4193@localhost'>
*** User 2024-04-16 10:31:25.914 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.914 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='544e70a2dba41b59771f59aadd799191'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.915 ***🔗
bOb_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq id='544e70a2dba41b59771f59aadd799191' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_4193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.915 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='fc94615e103c247e919d1d563ada5212'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.915 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' id='fc94615e103c247e919d1d563ada5212' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.915 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.918 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1'/>
*** User 2024-04-16 10:31:25.919 ***🔗
kate_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.919 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7a7a4660fd3917ab' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.919 ***🔗
kate_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.919 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV80MTkzAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-16 10:31:25.921 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.921 ***🔗
kate_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.921 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85182ff191c6f583' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_4193@localhost'>
*** User 2024-04-16 10:31:25.921 ***🔗
kate_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.921 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='552296c587a36e307acddc949cbfa043'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.922 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq id='552296c587a36e307acddc949cbfa043' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_4193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.922 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='801be596b1cd118ac8fa02c2b7043251'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.922 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_4193@localhost/res1' id='801be596b1cd118ac8fa02c2b7043251' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.922 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.925 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_4193@localhost/res1' to='kate_add_and_remove_some_contacts_properly_4193@localhost/res1'/>
*** User 2024-04-16 10:31:25.962 ***🔗
mike_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.962 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e014bff0cf2f364' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:31:25.963 ***🔗
mike_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.963 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV80MTkzAG5pY25pZW1h</auth>
*** User 2024-04-16 10:31:25.964 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:31:25.965 ***🔗
mike_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.965 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da619626460f1df8' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_4193@localhost'>
*** User 2024-04-16 10:31:25.965 ***🔗
mike_add_and_remove_some_contacts_properly_4193@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-16 10:31:25.965 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='da0f828f26175d2c53e47dc028c507e0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:31:25.966 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq id='da0f828f26175d2c53e47dc028c507e0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_4193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:31:25.966 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<iq type='set' id='0c3fb8b0d0078c95988824d3c36fad8a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.966 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_4193@localhost/res1' id='0c3fb8b0d0078c95988824d3c36fad8a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:31:25.966 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 out
<presence/>
*** User 2024-04-16 10:31:25.968 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_4193@localhost/res1' to='mike_add_and_remove_some_contacts_properly_4193@localhost/res1'/>
*** User 2024-04-16 10:31:25.980 ***🔗
REST request:
Code: 204
Req: {<0.105851.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e3eec46f62b15495">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_4193@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>}],
<<>>,80,5789}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_4193@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_4193@localhost\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:25.980 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_4193@localhost' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' id='push457fe5dfa3a9dcc1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_4193@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:31:26.007 ***🔗
REST request:
Code: 204
Req: {<0.105893.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1393b1a77ee1e68c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_4193@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>}],
<<>>,80,19995}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_4193@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_4193@localhost\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:26.007 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_4193@localhost' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' id='push4ccb5a4073a23913' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_4193@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:31:26.021 ***🔗
REST request:
Code: 204
Req: {<0.105929.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d392777d31ef9c95">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_4193@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>}],
<<>>,80,8539}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_4193@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_4193@localhost\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:31:26.021 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_4193@localhost' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' id='push3955c195c5fd6afe' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_4193@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:31:26.084 ***🔗
REST request:
Code: 200
Req: {<0.105950.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc175b1668b4c27c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_4193@localhost\",\"kate_add_and_remove_some_contacts_properly_4193@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,17193}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_4193@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_4193@localhost\",\"kate_add_and_remove_some_contacts_properly_4193@localhost\"]}">>,
role => client,method => <<"DELETE">>,return_headers => true}
*** User 2024-04-16 10:31:26.100 ***🔗
REST request:
Code: 200
Req: {<0.105977.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eda5e3602b479db8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfNDE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:31:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_4193@localhost\"}]">>,
229,9674}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_4193@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,method => <<"GET">>,
return_headers => true}
*** User 2024-04-16 10:31:26.100 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_4193@localhost' to='bob_add_and_remove_some_contacts_properly_4193@localhost/res1' id='push7a494354d0e41fab' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_4193@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 10:31:26.100 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.101 ***🔗
mike_add_and_remove_some_contacts_properly_4193@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:26.101 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.101 ***🔗
kate_add_and_remove_some_contacts_properly_4193@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:26.101 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.101 ***🔗
bob_add_and_remove_some_contacts_properly_4193@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:31:26.102 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:31:26.102 ***🔗
alice_add_and_remove_some_contacts_properly_4193@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:31:26
=== successfully completed test case
=== === Returned value: ok