=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.76705.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_13.38.06/rest_client_suite.add_and_remove_some_contacts_properly.164355.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_13.38.06/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_sic => #{iqdisc => one_queue},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8a480c91a890.2024-04-12_13.25.32"
=== Started at 2024-04-12 13:38:08
*** User 2024-04-12 13:38:08.888 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.888 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4fcba71d5c664950' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:38:08.889 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.889 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-12 13:38:08.889 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:38:08.889 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.890 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3b1f0e82b6df95f0' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2822@domain.example.com'>
*** User 2024-04-12 13:38:08.890 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.890 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='47605207541b084a55765aea5aea8709'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:38:08.890 ***🔗
alicE_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq id='47605207541b084a55765aea5aea8709' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:38:08.890 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='476c268b4f6bbf0bfc38fbb36c592feb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.891 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='476c268b4f6bbf0bfc38fbb36c592feb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.891 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:38:08.894 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1'/>
*** User 2024-04-12 13:38:08.894 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.894 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77af79cb4fd5f86e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:38:08.895 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.895 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI4MjIAbWFrcm9saWth</auth>
*** User 2024-04-12 13:38:08.896 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:38:08.896 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.896 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d98c621c3abf4ccc' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com'>
*** User 2024-04-12 13:38:08.896 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.896 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='7594ea7bf6e30bbf68287de8cc72d304'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:38:08.897 ***🔗
bOb_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq id='7594ea7bf6e30bbf68287de8cc72d304' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:38:08.897 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='fe48975123bb9a8d8cf4a8c399d365fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.898 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='fe48975123bb9a8d8cf4a8c399d365fc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.898 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:38:08.901 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1'/>
*** User 2024-04-12 13:38:08.902 ***🔗
kate_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.902 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='663467413fc42a8d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:38:08.903 ***🔗
kate_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.903 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODIyAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-12 13:38:08.906 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:38:08.906 ***🔗
kate_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.907 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='720eec270ba9cfea' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2822@domain.example.com'>
*** User 2024-04-12 13:38:08.907 ***🔗
kate_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.907 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='a1ef57c755dbc220e7052427ee23e96c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:38:08.907 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq id='a1ef57c755dbc220e7052427ee23e96c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:38:08.907 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='ab5e7f1c60185d0745741fe13fc23204'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.908 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='ab5e7f1c60185d0745741fe13fc23204' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.908 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:38:08.911 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1'/>
*** User 2024-04-12 13:38:08.912 ***🔗
mike_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.912 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5231423d7f6eda31' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:38:08.912 ***🔗
mike_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.912 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODIyAG5pY25pZW1h</auth>
*** User 2024-04-12 13:38:08.915 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:38:08.915 ***🔗
mike_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.915 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d86a2fe2b7bd3217' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2822@domain.example.com'>
*** User 2024-04-12 13:38:08.915 ***🔗
mike_add_and_remove_some_contacts_properly_2822@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-12 13:38:08.915 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='77e44d7f7c4a30ba4a5ef9d7a77bb969'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:38:08.916 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq id='77e44d7f7c4a30ba4a5ef9d7a77bb969' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:38:08.916 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<iq type='set' id='d82cc72c9f0995079d46c9fcfa5154e5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.917 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='d82cc72c9f0995079d46c9fcfa5154e5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:38:08.917 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:38:08.966 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1'/>
*** User 2024-04-12 13:38:08.979 ***🔗
REST request:
Code: 204
Req: {<0.76860.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f21127585e1220b4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:38:08 GMT">>}],
<<>>,80,6539}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>,
role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2822@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-12 13:38:08.979 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2822@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='pushd165fded2129bce8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2822@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:38:08.991 ***🔗
REST request:
Code: 204
Req: {<0.76890.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fbf6afc047e11462">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:38:08 GMT">>}],
<<>>,80,5228}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>,
role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2822@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-12 13:38:08.991 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2822@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='push07ff98f178f3fe1b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_2822@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:38:09.006 ***🔗
REST request:
Code: 204
Req: {<0.76929.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c4b7eb1c04c1cba4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:38:08 GMT">>}],
<<>>,80,7835}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2822@domain.example.com\"}">>,
role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2822@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-12 13:38:09.006 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2822@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='pushc57fa062215d7eb7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_2822@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:38:09.071 ***🔗
REST request:
Code: 200
Req: {<0.76951.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b260110a54b908f8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2822@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2822@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:38:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,58537}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2822@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2822@domain.example.com\"]}">>,
role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2822@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-12 13:38:09.080 ***🔗
REST request:
Code: 200
Req: {<0.76977.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d9f3b50aca13cdd5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:38:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2822@domain.example.com\"}]">>,
238,3952}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2822@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-12 13:38:09.080 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2822@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1' id='push66177c651e70e01e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2822@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-12 13:38:09.080 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
mike_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
kate_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
bob_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-12 13:38:09.081 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:09.082 ***🔗
alice_add_and_remove_some_contacts_properly_2822@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-12 13:38:09
=== successfully completed test case
=== === Returned value: ok