=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.56232.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{preset,"internal_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@ab4da8ac41c7.2024-04-15_15.52.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.06.47/rest_client_suite.add_and_remove_some_contacts_properly.109186.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@ab4da8ac41c7.2024-04-15_15.52.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.06.47/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => mnesia,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,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_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ab4da8ac41c7.2024-04-15_15.52.42"
=== Started at 2024-04-15 16:06:48
*** User 2024-04-15 16:06:48.899 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.899 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6b4edbb64e48e94' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:06:48.899 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.899 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MABtYXR5Z3J5c2E=</auth>
*** User 2024-04-15 16:06:48.900 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:06:48.900 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.900 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bd9dcb2a6e97725' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_1840@localhost'>
*** User 2024-04-15 16:06:48.900 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.900 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='863f22b8e256fc0442cc62ad3e16e918'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:06:48.901 ***🔗
alicE_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq id='863f22b8e256fc0442cc62ad3e16e918' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_1840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:06:48.901 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='ad9ee6d39149df71a2f4d51693774d6b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.901 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_1840@localhost/res1' id='ad9ee6d39149df71a2f4d51693774d6b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.901 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<presence/>
*** User 2024-04-15 16:06:48.902 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1840@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1840@localhost/res1'/>
*** User 2024-04-15 16:06:48.903 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.903 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ec474762fb21b8d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:06:48.903 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.903 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE4NDAAbWFrcm9saWth</auth>
*** User 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e024723f258af17' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_1840@localhost'>
*** User 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='2f25b29dadd5781a652b36a2e0ef10eb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:06:48.904 ***🔗
bOb_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq id='2f25b29dadd5781a652b36a2e0ef10eb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_1840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:06:48.905 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='7d40bd96d2eac582437cd83f8b4a8e06'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.905 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' id='7d40bd96d2eac582437cd83f8b4a8e06' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.905 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<presence/>
*** User 2024-04-15 16:06:48.906 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1'/>
*** User 2024-04-15 16:06:48.907 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.907 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='280c3ed712ba84f4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:06:48.907 ***🔗
kate_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.907 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODQwAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-15 16:06:48.908 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:06:48.908 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.908 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='12f0bbae81633550' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_1840@localhost'>
*** User 2024-04-15 16:06:48.908 ***🔗
kate_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.908 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='83c96ca00bc8d3f6b71da9e30b7c2aae'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:06:48.909 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq id='83c96ca00bc8d3f6b71da9e30b7c2aae' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:06:48.909 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='d161a5605d3f83ffa112024e0ecaebfa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.910 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_1840@localhost/res1' id='d161a5605d3f83ffa112024e0ecaebfa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.910 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<presence/>
*** User 2024-04-15 16:06:48.910 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1840@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1840@localhost/res1'/>
*** User 2024-04-15 16:06:48.911 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.912 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e2701b68e51fc0d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:06:48.912 ***🔗
mike_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.912 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODQwAG5pY25pZW1h</auth>
*** User 2024-04-15 16:06:48.912 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:06:48.913 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-15 16:06:48.913 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53b69fb46eba3ec6' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_1840@localhost'>
*** User 2024-04-15 16:06:48.913 ***🔗
mike_add_and_remove_some_contacts_properly_1840@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 2024-04-15 16:06:48.913 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='78761b6e5f577ad40f914b8490f00492'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:06:48.914 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq id='78761b6e5f577ad40f914b8490f00492' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:06:48.914 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<iq type='set' id='d0fd277086dc3420f71c5dcd66de02c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.914 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_1840@localhost/res1' id='d0fd277086dc3420f71c5dcd66de02c5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:06:48.914 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
<presence/>
*** User 2024-04-15 16:06:48.915 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1840@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1840@localhost/res1'/>
*** User 2024-04-15 16:06:48.926 ***🔗
REST request:
Code: 204
Req: {<0.56353.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2cb971a396093f8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1840@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:06:48 GMT">>}],
<<>>,80,1728}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1840@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1840@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-15 16:06:48.927 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1840@localhost' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' id='push9f94c716dc73bdca' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1840@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:06:48.966 ***🔗
REST request:
Code: 204
Req: {<0.56393.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1adff160a4ea15ed">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1840@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:06:48 GMT">>}],
<<>>,80,1267}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1840@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1840@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-15 16:06:48.966 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1840@localhost' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' id='push220ef5a734617604' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_1840@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:06:48.973 ***🔗
REST request:
Code: 204
Req: {<0.56442.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9992f60aba24d598">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1840@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:06:48 GMT">>}],
<<>>,80,1159}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1840@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1840@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-15 16:06:48.973 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1840@localhost' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' id='push87e5bd2ca42c83d5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_1840@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:06:48.981 ***🔗
REST request:
Code: 200
Req: {<0.56468.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e91c266b77c0b1ae">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1840@localhost\",\"kate_add_and_remove_some_contacts_properly_1840@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:06:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,1499}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1840@localhost\",\"kate_add_and_remove_some_contacts_properly_1840@localhost\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1840@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-15 16:06:48.988 ***🔗
REST request:
Code: 200
Req: {<0.56492.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56c2afb709c0ba67">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg0MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:06:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1840@localhost\"}]">>,
229,811}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1840@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-15 16:06:48.988 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1840@localhost' to='bob_add_and_remove_some_contacts_properly_1840@localhost/res1' id='push80b45014873c4fbe' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1840@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-15 16:06:48.988 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:06:48.988 ***🔗
mike_add_and_remove_some_contacts_properly_1840@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
kate_add_and_remove_some_contacts_properly_1840@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
bob_add_and_remove_some_contacts_properly_1840@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:06:48.989 ***🔗
alice_add_and_remove_some_contacts_properly_1840@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:06:49
=== successfully completed test case
=== === Returned value: ok