=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.13408.2>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"pgsql_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@2ddcec0e9ef5.2024-04-22_17.27.45/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.41.22/rest_client_suite.add_and_remove_some_contacts_properly.165251.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@2ddcec0e9ef5.2024-04-22_17.27.45/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.41.22/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@2ddcec0e9ef5.2024-04-22_17.27.45"
=== Started at 2024-04-22 17:41:24
*** User 2024-04-22 17:41:24.511 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.511 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1985dec8456e581c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:41:24.511 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.511 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2MwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 17:41:24.512 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:41:24.512 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.512 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e248f574c9da2f33' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3063@domain.example.com'>
*** User 2024-04-22 17:41:24.512 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.512 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='e80f807c85676310aa69bfd4eefbe23a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:41:24.513 ***🔗
alicE_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq id='e80f807c85676310aa69bfd4eefbe23a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:41:24.513 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='a78f4eab7a772588e9cac45a25fa56e6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.513 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='a78f4eab7a772588e9cac45a25fa56e6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.513 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 17:41:24.515 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1'/>
*** User 2024-04-22 17:41:24.516 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.516 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b83512292a9425a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:41:24.516 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.516 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwNjMAbWFrcm9saWth</auth>
*** User 2024-04-22 17:41:24.517 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:41:24.517 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.518 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='32507e6318c93fce' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com'>
*** User 2024-04-22 17:41:24.518 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.518 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='1e4a0a27073f872212f9c89643ac412b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:41:24.518 ***🔗
bOb_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq id='1e4a0a27073f872212f9c89643ac412b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:41:24.518 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='783bd922426da24350b5440b04d814a7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.519 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='783bd922426da24350b5440b04d814a7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.519 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 17:41:24.520 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1'/>
*** User 2024-04-22 17:41:24.521 ***🔗
kate_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.521 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='975671c146e52653' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:41:24.521 ***🔗
kate_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.522 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDYzAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 17:41:24.522 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:41:24.522 ***🔗
kate_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.523 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0fa8b755ccd03092' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3063@domain.example.com'>
*** User 2024-04-22 17:41:24.523 ***🔗
kate_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.523 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='426e471822f73892db6177cfb10243c5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:41:24.523 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq id='426e471822f73892db6177cfb10243c5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:41:24.523 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='d162eb80a69a2bb19aa9cd9a5fd72574'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.524 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='d162eb80a69a2bb19aa9cd9a5fd72574' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.524 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 17:41:24.526 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1'/>
*** User 2024-04-22 17:41:24.526 ***🔗
mike_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.527 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26ae3c0c92668364' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:41:24.527 ***🔗
mike_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.527 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDYzAG5pY25pZW1h</auth>
*** User 2024-04-22 17:41:24.528 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:41:24.528 ***🔗
mike_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.529 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7d6c8697724a830' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3063@domain.example.com'>
*** User 2024-04-22 17:41:24.529 ***🔗
mike_add_and_remove_some_contacts_properly_3063@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-04-22 17:41:24.529 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='535fac8fba4f0650a0646e9d65e6eb02'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:41:24.529 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq id='535fac8fba4f0650a0646e9d65e6eb02' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:41:24.529 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<iq type='set' id='36cb0bc07d5bb9639c35122393ce511f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.530 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='36cb0bc07d5bb9639c35122393ce511f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:41:24.530 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 17:41:24.533 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1'/>
*** User 2024-04-22 17:41:24.564 ***🔗
REST request:
Code: 204
Req: {<0.13541.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a71908cb867d8a8b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:23 GMT">>}],
<<>>,80,3298}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3063@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:24.564 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3063@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='push0ca2e44796ca432a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3063@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:41:24.572 ***🔗
REST request:
Code: 204
Req: {<0.13574.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c1c9454cd3e1790">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:23 GMT">>}],
<<>>,80,2960}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3063@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:24.572 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3063@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='push7edff02ad23632cc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3063@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:41:24.581 ***🔗
REST request:
Code: 204
Req: {<0.13611.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ae5ca4efaf6f548">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:23 GMT">>}],
<<>>,80,3187}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3063@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3063@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:24.582 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3063@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='push0201139fb0d72fe6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3063@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:41:24.590 ***🔗
REST request:
Code: 200
Req: {<0.13643.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2ac6e5f8d3f1051">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3063@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3063@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,3231}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3063@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3063@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3063@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:24.597 ***🔗
REST request:
Code: 200
Req: {<0.13659.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8338ee8392831cf2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA2M0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:41:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3063@domain.example.com\",\"ask\":\"none\"}]">>,
238,2340}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3063@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 17:41:24.598 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3063@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1' id='pushc6519c10359c6c2b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3063@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 17:41:24.598 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 17:41:24.598 ***🔗
mike_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 17:41:24.598 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 17:41:24.598 ***🔗
kate_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 17:41:24.598 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 17:41:24.598 ***🔗
bob_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 17:41:24.599 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 17:41:24.599 ***🔗
alice_add_and_remove_some_contacts_properly_3063@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-22 17:41:24
=== successfully completed test case
=== === Returned value: ok