=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.76420.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{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@096d5789c860.2024-02-29_08.03.24/big_tests.tests.rest_client_SUITE.logs/run.2024-02-29_08.18.22/rest_client_suite.add_and_remove_some_contacts_properly.139523.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@096d5789c860.2024-02-29_08.03.24/big_tests.tests.rest_client_SUITE.logs/run.2024-02-29_08.18.22/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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_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@096d5789c860.2024-02-29_08.03.24"
=== Started at 2024-02-29 08:18:25
*** User 2024-02-29 08:18:25.206 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.207 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d220ee91537650d7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:25.207 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.207 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNQBtYXR5Z3J5c2E=</auth>
*** User 2024-02-29 08:18:25.208 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:25.208 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.209 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a85a191f0a5d1aa8' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2925@domain.example.com'>
*** User 2024-02-29 08:18:25.209 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.209 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='badc5739dea2e7b03e130d30a43a7637'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:25.209 ***🔗
alicE_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq id='badc5739dea2e7b03e130d30a43a7637' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:25.209 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='2f0dc9fbdbfa07aaff61927b7bfbba16'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.210 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='2f0dc9fbdbfa07aaff61927b7bfbba16' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.210 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:25.212 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1'/>
*** User 2024-02-29 08:18:25.213 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.214 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6318041c895d743e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:25.214 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.214 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI5MjUAbWFrcm9saWth</auth>
*** User 2024-02-29 08:18:25.216 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:25.216 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.217 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97db694438b6c8b4' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com'>
*** User 2024-02-29 08:18:25.217 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.217 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='e86eb9c761cf7aacc80c3114086ecba0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:25.217 ***🔗
bOb_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq id='e86eb9c761cf7aacc80c3114086ecba0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:25.218 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='76f46e464be86e38331666c2ec877f47'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.219 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='76f46e464be86e38331666c2ec877f47' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.219 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:25.222 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1'/>
*** User 2024-02-29 08:18:25.222 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.223 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fc99e26e86bb9bfa' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:25.223 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.223 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTI1AG1ha3Jvd2U7cA==</auth>
*** User 2024-02-29 08:18:25.224 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:25.224 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.225 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a146ec0993c71b5' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2925@domain.example.com'>
*** User 2024-02-29 08:18:25.225 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.225 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='febd942a5e9060b961d412aaff8a7be9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:25.225 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq id='febd942a5e9060b961d412aaff8a7be9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:25.225 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='6c4f4f573145996452ad3e4d644fc035'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.226 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='6c4f4f573145996452ad3e4d644fc035' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.226 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:25.228 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1'/>
*** User 2024-02-29 08:18:25.230 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.231 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='458d1f904cee4466' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:25.231 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.231 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTI1AG5pY25pZW1h</auth>
*** User 2024-02-29 08:18:25.232 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:25.232 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 08:18:25.233 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec8a63a0064309d7' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2925@domain.example.com'>
*** User 2024-02-29 08:18:25.233 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/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-02-29 08:18:25.233 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='a3751bf8269076eeb43a649a5db960a4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:25.233 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq id='a3751bf8269076eeb43a649a5db960a4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:25.233 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<iq type='set' id='ba49bd2f662d0c612c36c62dccd1d1c0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.234 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='ba49bd2f662d0c612c36c62dccd1d1c0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:25.234 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:25.236 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1'/>
*** User 2024-02-29 08:18:25.254 ***🔗
REST request:
Code: 204
Req: {<0.76545.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d122de807ef95fde">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:24 GMT">>}],
<<>>,80,11119}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2925@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:25.254 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2925@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='push4b8074b5cece6350' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2925@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-29 08:18:25.270 ***🔗
REST request:
Code: 204
Req: {<0.76589.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a749807d4c8c9430">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:24 GMT">>}],
<<>>,80,9928}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2925@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:25.271 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2925@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='pushcfea9745738adaf7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_2925@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-29 08:18:25.329 ***🔗
REST request:
Code: 204
Req: {<0.76623.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a15c159e792c1584">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:24 GMT">>}],
<<>>,80,52686}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2925@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2925@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:25.329 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2925@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='push099ea1658fd5f968' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_2925@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-29 08:18:25.355 ***🔗
REST request:
Code: 200
Req: {<0.76650.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cedd153ab3c41c6c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2925@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2925@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,18553}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2925@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2925@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2925@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:25.367 ***🔗
REST request:
Code: 200
Req: {<0.76674.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cd3d00fc90339cda">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2925@domain.example.com\"}]">>,
238,5431}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2925@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:25.367 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2925@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1' id='pushee3355bbff749592' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2925@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-02-29 08:18:25.367 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:25.367 ***🔗
mike_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-29 08:18:25.368 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:25.368 ***🔗
kate_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-29 08:18:25.368 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:25.369 ***🔗
bob_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-29 08:18:25.369 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:25.369 ***🔗
alice_add_and_remove_some_contacts_properly_2925@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-29 08:18:25
=== successfully completed test case
=== === Returned value: ok