=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.72830.0>},
{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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_client_SUITE.logs/run.2023-11-14_11.54.34/rest_client_suite.add_and_remove_some_contacts_properly.139139.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_client_SUITE.logs/run.2023-11-14_11.54.34/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_sic => #{iqdisc => one_queue},
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_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@a2fc54846062.2023-11-14_11.38.11"
=== Started at 2023-11-14 11:54:36
*** User 2023-11-14 11:54:36.345 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.346 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='687b0cc096fe62c3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:36.346 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.346 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-14 11:54:36.347 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:36.347 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.347 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d81b29a5dd8221ec' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3291@domain.example.com'>
*** User 2023-11-14 11:54:36.347 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.347 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='ad90c4cb6e95406d19dc3cf2ae536d24'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:36.348 ***🔗
alicE_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq id='ad90c4cb6e95406d19dc3cf2ae536d24' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:36.348 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='61282f214b89d5ae002e6ce3fa3c5acd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.348 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='61282f214b89d5ae002e6ce3fa3c5acd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.349 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:36.350 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1'/>
*** User 2023-11-14 11:54:36.351 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.351 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6b60762dc6c8226' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:36.352 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.352 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyOTEAbWFrcm9saWth</auth>
*** User 2023-11-14 11:54:36.353 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:36.353 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.353 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5154eedaea138a4e' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com'>
*** User 2023-11-14 11:54:36.353 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.353 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='013ad50596ad2cfefefa7fffbe7f9b48'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:36.354 ***🔗
bOb_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq id='013ad50596ad2cfefefa7fffbe7f9b48' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:36.354 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='d81107d6336a0e7844191573961eb943'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.354 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='d81107d6336a0e7844191573961eb943' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.354 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:36.357 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1'/>
*** User 2023-11-14 11:54:36.357 ***🔗
kate_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.358 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d22f6396deee07e6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:36.358 ***🔗
kate_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.358 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjkxAG1ha3Jvd2U7cA==</auth>
*** User 2023-11-14 11:54:36.359 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:36.359 ***🔗
kate_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.359 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9f3c4503caecb7f' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3291@domain.example.com'>
*** User 2023-11-14 11:54:36.359 ***🔗
kate_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.359 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='d8f95fbe27e44e5eb90aead396c04ce8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:36.360 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq id='d8f95fbe27e44e5eb90aead396c04ce8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:36.360 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='e9f2348f800b465928c2cd4ccf20a93a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.360 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='e9f2348f800b465928c2cd4ccf20a93a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.360 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:36.362 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1'/>
*** User 2023-11-14 11:54:36.368 ***🔗
mike_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.368 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6b75628d18794ef2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:36.368 ***🔗
mike_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.368 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjkxAG5pY25pZW1h</auth>
*** User 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18643e7cf74e0de6' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3291@domain.example.com'>
*** User 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@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 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='50490a33957a7c6b9bde8ad9e1984ecc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq id='50490a33957a7c6b9bde8ad9e1984ecc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:36.370 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<iq type='set' id='5da519ed8c9c8a30a3327464465d0bc1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.371 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='5da519ed8c9c8a30a3327464465d0bc1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:36.371 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:36.373 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1'/>
*** User 2023-11-14 11:54:36.384 ***🔗
REST request:
Code: 204
Req: {<0.72957.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ffa3fbd95a972e43">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:35 GMT">>}],
<<>>,80,4593}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3291@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:36.385 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3291@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='pushf577d7d1da6b2f33' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3291@domain.example.com'/>
</query>
</iq>
*** User 2023-11-14 11:54:36.396 ***🔗
REST request:
Code: 204
Req: {<0.72997.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b65de8effc58b291">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:35 GMT">>}],
<<>>,80,4618}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3291@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:36.396 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3291@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='pushde3600864596356c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3291@domain.example.com'/>
</query>
</iq>
*** User 2023-11-14 11:54:36.406 ***🔗
REST request:
Code: 204
Req: {<0.73033.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"211e7241c6e0a3d2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:35 GMT">>}],
<<>>,80,3693}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3291@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3291@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:36.406 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3291@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='pushec77b91095d5ecb4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3291@domain.example.com'/>
</query>
</iq>
*** User 2023-11-14 11:54:36.419 ***🔗
REST request:
Code: 200
Req: {<0.73060.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a17acb32bd023107">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3291@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3291@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,6517}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3291@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3291@domain.example.com\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3291@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:36.475 ***🔗
REST request:
Code: 200
Req: {<0.73090.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb969e016f367d33">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI5MUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3291@domain.example.com\"}]">>,
238,2458}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3291@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:36.475 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3291@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1' id='push79c743214abf0896' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3291@domain.example.com'/>
</query>
</iq>
*** User 2023-11-14 11:54:36.475 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
mike_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
kate_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
bob_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:36.476 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:36.477 ***🔗
alice_add_and_remove_some_contacts_properly_3291@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-14 11:54:36
=== successfully completed test case
=== === Returned value: ok