=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.84984.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e84896a28784.2023-12-20_12.31.47/big_tests.tests.rest_client_SUITE.logs/run.2023-12-20_12.48.35/rest_client_suite.add_and_remove_some_contacts_properly.168067.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@e84896a28784.2023-12-20_12.31.47/big_tests.tests.rest_client_SUITE.logs/run.2023-12-20_12.48.35/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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,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 =>
#{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@e84896a28784.2023-12-20_12.31.47"
=== Started at 2023-12-20 12:48:37
*** User 2023-12-20 12:48:37.686 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.686 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8dc1531312f27282' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:37.686 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.686 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OQBtYXR5Z3J5c2E=</auth>
*** User 2023-12-20 12:48:37.687 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:37.687 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.688 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='654f4ac65d39b4d7' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3099@localhost'>
*** User 2023-12-20 12:48:37.688 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.688 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='20b869b8196e90de210cc17bd18b9062'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:37.688 ***🔗
alicE_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq id='20b869b8196e90de210cc17bd18b9062' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3099@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:37.688 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='4daefa149ea4d12fd5ac6a4959636276'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.689 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3099@localhost/res1' id='4daefa149ea4d12fd5ac6a4959636276' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.689 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:37.690 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3099@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3099@localhost/res1'/>
*** User 2023-12-20 12:48:37.691 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.692 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0524d30711f5b680' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:37.693 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.693 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwOTkAbWFrcm9saWth</auth>
*** User 2023-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5f6bd2789a83bf9' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3099@localhost'>
*** User 2023-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='b56a0a105e66fc5b092642a251ac02fe'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:37.704 ***🔗
bOb_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq id='b56a0a105e66fc5b092642a251ac02fe' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3099@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:37.704 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='dfc01d0b8c617891affea3e36c308480'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.705 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' id='dfc01d0b8c617891affea3e36c308480' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.705 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:37.707 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1'/>
*** User 2023-12-20 12:48:37.708 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.708 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d0a9733a95569b6' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:37.708 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.708 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDk5AG1ha3Jvd2U7cA==</auth>
*** User 2023-12-20 12:48:37.709 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:37.709 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.709 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='472e7c381a087eac' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3099@localhost'>
*** User 2023-12-20 12:48:37.709 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.709 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='fadca5eb3acaf58553f05340dafbf1d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:37.710 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq id='fadca5eb3acaf58553f05340dafbf1d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3099@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:37.710 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='5b318e1c9a73a69f5d208d58c623f168'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.710 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3099@localhost/res1' id='5b318e1c9a73a69f5d208d58c623f168' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.710 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:37.713 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3099@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3099@localhost/res1'/>
*** User 2023-12-20 12:48:37.714 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.714 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c84f0ced66c49232' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:37.714 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.715 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDk5AG5pY25pZW1h</auth>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9bced425a5128ce' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3099@localhost'>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/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-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='efadee25907bc6e5791b31e346b2223a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq id='efadee25907bc6e5791b31e346b2223a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3099@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:37.716 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<iq type='set' id='0056ffa0a78b51aa892be7d8bf7beb21'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.717 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3099@localhost/res1' id='0056ffa0a78b51aa892be7d8bf7beb21' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:37.717 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:37.718 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3099@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3099@localhost/res1'/>
*** User 2023-12-20 12:48:37.729 ***🔗
REST request:
Code: 204
Req: {<0.85114.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f157e25e7b74be68">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3099@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:37 GMT">>}],
<<>>,80,5870}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3099@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3099@localhost\"}">>,
return_headers => true}
*** User 2023-12-20 12:48:37.729 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3099@localhost' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' id='pushe0aab680ef46fe43' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3099@localhost'/>
</query>
</iq>
*** User 2023-12-20 12:48:37.741 ***🔗
REST request:
Code: 204
Req: {<0.85151.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eccc407d782f08fc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3099@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:37 GMT">>}],
<<>>,80,6792}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3099@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3099@localhost\"}">>,
return_headers => true}
*** User 2023-12-20 12:48:37.741 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3099@localhost' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' id='pushf2276ef4c51ddf0d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3099@localhost'/>
</query>
</iq>
*** User 2023-12-20 12:48:37.807 ***🔗
REST request:
Code: 204
Req: {<0.85184.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c83a5c10de4699e8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3099@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:37 GMT">>}],
<<>>,80,60549}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3099@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3099@localhost\"}">>,
return_headers => true}
*** User 2023-12-20 12:48:37.807 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3099@localhost' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' id='push5e6a21a1966c177b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3099@localhost'/>
</query>
</iq>
*** User 2023-12-20 12:48:37.822 ***🔗
REST request:
Code: 200
Req: {<0.85226.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"936f5c1468d768fe">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3099@localhost\",\"kate_add_and_remove_some_contacts_properly_3099@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,10242}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3099@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3099@localhost\",\"kate_add_and_remove_some_contacts_properly_3099@localhost\"]}">>,
return_headers => true}
*** User 2023-12-20 12:48:37.831 ***🔗
REST request:
Code: 200
Req: {<0.85247.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d43f03fa009bb8fa">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzA5OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3099@localhost\"}]">>,
229,3048}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3099@localhost">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2023-12-20 12:48:37.831 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3099@localhost' to='bob_add_and_remove_some_contacts_properly_3099@localhost/res1' id='push78f38bbb13bee740' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3099@localhost'/>
</query>
</iq>
*** User 2023-12-20 12:48:37.831 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:37.832 ***🔗
mike_add_and_remove_some_contacts_properly_3099@localhost/res1 in
</stream:stream>
*** User 2023-12-20 12:48:37.832 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:37.832 ***🔗
kate_add_and_remove_some_contacts_properly_3099@localhost/res1 in
</stream:stream>
*** User 2023-12-20 12:48:37.833 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:37.833 ***🔗
bob_add_and_remove_some_contacts_properly_3099@localhost/res1 in
</stream:stream>
*** User 2023-12-20 12:48:37.833 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:37.833 ***🔗
alice_add_and_remove_some_contacts_properly_3099@localhost/res1 in
</stream:stream>
=== Ended at 2023-12-20 12:48:37
=== successfully completed test case
=== === Returned value: ok