=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.77416.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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/rest_client_suite.add_and_remove_some_contacts_properly.215298.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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => mnesia},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01"
=== Started at 2024-04-16 12:12:53
*** User 2024-04-16 12:12:53.890 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.891 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75ff3133d3e20fb0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:53.891 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.891 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0NwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 12:12:53.892 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:53.892 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.892 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76d35ff662715a9d' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3047@domain.example.com'>
*** User 2024-04-16 12:12:53.892 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.892 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='25e205485a83687084a9dc3d57da1cbd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:53.893 ***🔗
alicE_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq id='25e205485a83687084a9dc3d57da1cbd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:53.893 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='31ae031c3f665b6843601c2c171dbac0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.893 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='31ae031c3f665b6843601c2c171dbac0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.893 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:53.895 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1'/>
*** User 2024-04-16 12:12:53.895 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.896 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5c476db3482f822' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:53.896 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.896 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwNDcAbWFrcm9saWth</auth>
*** User 2024-04-16 12:12:53.897 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:53.897 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.898 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='900718e9ce88f546' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com'>
*** User 2024-04-16 12:12:53.898 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.898 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='d0e76a9d1385bde4fc5891df5925c061'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:53.898 ***🔗
bOb_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq id='d0e76a9d1385bde4fc5891df5925c061' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:53.898 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='8f0f9169a73f920d0809c9cb1bfb2cfe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.898 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='8f0f9169a73f920d0809c9cb1bfb2cfe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.899 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:53.900 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1'/>
*** User 2024-04-16 12:12:53.900 ***🔗
kate_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.900 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e771ca74fd3e135' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:53.901 ***🔗
kate_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.901 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDQ3AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-16 12:12:53.902 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:53.902 ***🔗
kate_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.902 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8129a148e16fef80' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3047@domain.example.com'>
*** User 2024-04-16 12:12:53.903 ***🔗
kate_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.903 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='b4b67fbfe1bbe253c3ffcefe12689256'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:53.903 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq id='b4b67fbfe1bbe253c3ffcefe12689256' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:53.903 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='d09f9479fa35c24cdf95f5fe90d88614'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.904 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='d09f9479fa35c24cdf95f5fe90d88614' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.904 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:53.905 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1'/>
*** User 2024-04-16 12:12:53.906 ***🔗
mike_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.906 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a7128668e0866209' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:53.906 ***🔗
mike_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.906 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDQ3AG5pY25pZW1h</auth>
*** User 2024-04-16 12:12:53.907 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:53.907 ***🔗
mike_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.907 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac62f6307650eb1a' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3047@domain.example.com'>
*** User 2024-04-16 12:12:53.907 ***🔗
mike_add_and_remove_some_contacts_properly_3047@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-16 12:12:53.907 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='c131cbba214c3fe9f5fe55e4bb5a7956'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:53.908 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq id='c131cbba214c3fe9f5fe55e4bb5a7956' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:53.908 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<iq type='set' id='ba3860aff360b3b6f2ae5d097b730b19'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.909 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='ba3860aff360b3b6f2ae5d097b730b19' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:53.909 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:53.911 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1'/>
*** User 2024-04-16 12:12:53.921 ***🔗
REST request:
Code: 204
Req: {<0.77535.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dce952d8e7533689">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>}],
<<>>,80,5290}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3047@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:53.921 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3047@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='push899449f2ffc3f8ff' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3047@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:53.929 ***🔗
REST request:
Code: 204
Req: {<0.77577.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"58a1eeb73bea739e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>}],
<<>>,80,3368}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3047@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:53.930 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3047@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='pushcb4c0fd426813767' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3047@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:53.987 ***🔗
REST request:
Code: 204
Req: {<0.77613.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b24f9f85068670a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>}],
<<>>,80,51862}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3047@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3047@domain.example.com\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:53.987 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3047@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='pushaa552c7e63abd149' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3047@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:53.996 ***🔗
REST request:
Code: 200
Req: {<0.77646.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"215f30ca2c8d69bc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3047@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3047@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,3439}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3047@domain.example.com">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3047@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3047@domain.example.com\"]}">>,
method => <<"DELETE">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:54.003 ***🔗
REST request:
Code: 200
Req: {<0.77670.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f4cee3cbf9f8281">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3047@domain.example.com\"}]">>,
238,2094}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3047@domain.example.com">>,
<<"makrolika">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 12:12:54.003 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3047@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1' id='push999680aae3dd56e4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3047@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 12:12:54.003 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:54.004 ***🔗
mike_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 12:12:54.004 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:54.004 ***🔗
kate_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 12:12:54.004 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:54.005 ***🔗
bob_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 12:12:54.005 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:54.005 ***🔗
alice_add_and_remove_some_contacts_properly_3047@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 12:12:54
=== successfully completed test case
=== === Returned value: ok