=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.56425.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_14.47.00/rest_client_suite.add_and_remove_some_contacts_properly.104962.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_14.47.00/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => mnesia},
mod_roster =>
#{iqdisc => one_queue,backend => mnesia,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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8f270c211212.2024-04-22_14.32.33"
=== Started at 2024-04-22 14:47:02
*** User 2024-04-22 14:47:02.123 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.124 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6ef04a75696947bd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:47:02.124 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.124 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 14:47:02.124 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:47:02.124 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.125 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9f9707eb305e014' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_1875@localhost'>
*** User 2024-04-22 14:47:02.125 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.125 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='96817686eeab2bb26442757d506102e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:47:02.125 ***🔗
alicE_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq id='96817686eeab2bb26442757d506102e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_1875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:47:02.125 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='ca3b3daa3aa2a7d3cb64136ae4cb947e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.126 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_1875@localhost/res1' id='ca3b3daa3aa2a7d3cb64136ae4cb947e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.126 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<presence/>
*** User 2024-04-22 14:47:02.126 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1875@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1875@localhost/res1'/>
*** User 2024-04-22 14:47:02.127 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.127 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50d5a826a2a135a0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:47:02.128 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.128 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE4NzUAbWFrcm9saWth</auth>
*** User 2024-04-22 14:47:02.128 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:47:02.128 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.128 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69aa39e9694ebbc6' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_1875@localhost'>
*** User 2024-04-22 14:47:02.129 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.129 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='1911e672fe607da65643f6fe6018eaa2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:47:02.129 ***🔗
bOb_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq id='1911e672fe607da65643f6fe6018eaa2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_1875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:47:02.129 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='f41d7bc170d2fff30fc60a408345f6e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.130 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' id='f41d7bc170d2fff30fc60a408345f6e0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.130 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<presence/>
*** User 2024-04-22 14:47:02.130 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1'/>
*** User 2024-04-22 14:47:02.131 ***🔗
kate_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.133 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='854e05015cd1bef8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:47:02.133 ***🔗
kate_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.133 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODc1AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 14:47:02.133 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:47:02.133 ***🔗
kate_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.134 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2267e511d6d1d391' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_1875@localhost'>
*** User 2024-04-22 14:47:02.134 ***🔗
kate_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.134 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='ef6a9ed126fa55580161b0dc9444a571'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:47:02.134 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq id='ef6a9ed126fa55580161b0dc9444a571' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:47:02.134 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='b88f89e18db94425c6a087ff45765e7e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.135 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_1875@localhost/res1' id='b88f89e18db94425c6a087ff45765e7e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.135 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<presence/>
*** User 2024-04-22 14:47:02.135 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1875@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1875@localhost/res1'/>
*** User 2024-04-22 14:47:02.136 ***🔗
mike_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.137 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3eefffc2722bc70' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:47:02.137 ***🔗
mike_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.137 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODc1AG5pY25pZW1h</auth>
*** User 2024-04-22 14:47:02.138 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:47:02.138 ***🔗
mike_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.138 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='02994d32909d0a5a' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_1875@localhost'>
*** User 2024-04-22 14:47:02.138 ***🔗
mike_add_and_remove_some_contacts_properly_1875@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-22 14:47:02.139 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='7c333325b6e8c4ebadb58e7cf6c799b1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:47:02.139 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq id='7c333325b6e8c4ebadb58e7cf6c799b1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1875@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:47:02.139 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<iq type='set' id='eeed91ff07490aa84bdf205b0d7596fe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.140 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_1875@localhost/res1' id='eeed91ff07490aa84bdf205b0d7596fe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:47:02.140 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 out
<presence/>
*** User 2024-04-22 14:47:02.141 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1875@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1875@localhost/res1'/>
*** User 2024-04-22 14:47:02.150 ***🔗
REST request:
Code: 204
Req: {<0.56546.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9432d8fc7470532a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1875@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:01 GMT">>}],
<<>>,80,2202}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1875@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1875@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 14:47:02.150 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1875@localhost' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' id='pushb636d2970bfb68f1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1875@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:47:02.158 ***🔗
REST request:
Code: 204
Req: {<0.56582.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee141d4a823de916">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1875@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:01 GMT">>}],
<<>>,80,1256}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1875@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1875@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 14:47:02.158 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1875@localhost' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' id='push9a03dfd7c598e567' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_1875@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:47:02.195 ***🔗
REST request:
Code: 204
Req: {<0.56612.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d2df904738af373a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1875@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:01 GMT">>}],
<<>>,80,936}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1875@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1875@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 14:47:02.195 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1875@localhost' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' id='pushca47cec847e810e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_1875@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:47:02.204 ***🔗
REST request:
Code: 200
Req: {<0.56653.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b4e64d252d3d00a9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1875@localhost\",\"kate_add_and_remove_some_contacts_properly_1875@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,1378}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"DELETE">>,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1875@localhost\",\"kate_add_and_remove_some_contacts_properly_1875@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1875@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 14:47:02.210 ***🔗
REST request:
Code: 200
Req: {<0.56679.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"911bd550c0058b21">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg3NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:47:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1875@localhost\"}]">>,
229,521}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"GET">>,body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1875@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 14:47:02.210 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1875@localhost' to='bob_add_and_remove_some_contacts_properly_1875@localhost/res1' id='pushf247739f4fa50d82' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_1875@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 14:47:02.210 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:47:02.211 ***🔗
mike_add_and_remove_some_contacts_properly_1875@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:47:02.211 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:47:02.212 ***🔗
kate_add_and_remove_some_contacts_properly_1875@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:47:02.212 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:47:02.212 ***🔗
bob_add_and_remove_some_contacts_properly_1875@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:47:02.212 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:47:02.212 ***🔗
alice_add_and_remove_some_contacts_properly_1875@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:47:02
=== successfully completed test case
=== === Returned value: ok