=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.73520.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.50.50/rest_client_suite.add_and_remove_some_contacts_properly.198402.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.50.50/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_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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@eebaa68b7995.2024-01-14_19.39.51"
=== Started at 2024-01-14 19:50:51
*** User 2024-01-14 19:50:51.709 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.710 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d07e16416a1c78e0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:51.710 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.710 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzNwBtYXR5Z3J5c2E=</auth>
*** User 2024-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c642b3e888df0c77' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2637@domain.example.com'>
*** User 2024-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='873e1446206b74d87ac80289eb1778f1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:51.711 ***🔗
alicE_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq id='873e1446206b74d87ac80289eb1778f1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:51.711 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='226807e3278426eb87bc8a7077176be2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.712 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='226807e3278426eb87bc8a7077176be2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.712 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:51.714 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1'/>
*** User 2024-01-14 19:50:51.714 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.715 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9eb870e071de8d75' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:51.715 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.715 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI2MzcAbWFrcm9saWth</auth>
*** User 2024-01-14 19:50:51.716 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:51.716 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.716 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a82402afb6493711' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com'>
*** User 2024-01-14 19:50:51.716 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.716 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='cd2471f2c2fe5129f4029e19c12658ba'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:51.717 ***🔗
bOb_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq id='cd2471f2c2fe5129f4029e19c12658ba' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:51.717 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='3acbf67c75424eed6fa4b222bbe37e35'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.717 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='3acbf67c75424eed6fa4b222bbe37e35' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.718 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:51.719 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1'/>
*** User 2024-01-14 19:50:51.720 ***🔗
kate_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.720 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90efd167288a9d7f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:51.721 ***🔗
kate_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.721 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNjM3AG1ha3Jvd2U7cA==</auth>
*** User 2024-01-14 19:50:51.721 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:51.721 ***🔗
kate_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.722 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='89296ff38194984f' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2637@domain.example.com'>
*** User 2024-01-14 19:50:51.722 ***🔗
kate_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.722 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='5eeaaf6c22b4b9204c28113a09bcbd86'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:51.722 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq id='5eeaaf6c22b4b9204c28113a09bcbd86' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:51.722 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='c9f9d031fa63824cd305ee7d732d9724'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.723 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='c9f9d031fa63824cd305ee7d732d9724' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.724 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:51.725 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1'/>
*** User 2024-01-14 19:50:51.726 ***🔗
mike_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.726 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d8d0f88589ceb22' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:51.727 ***🔗
mike_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.727 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNjM3AG5pY25pZW1h</auth>
*** User 2024-01-14 19:50:51.728 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:51.728 ***🔗
mike_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.728 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d387f7faee84779a' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2637@domain.example.com'>
*** User 2024-01-14 19:50:51.728 ***🔗
mike_add_and_remove_some_contacts_properly_2637@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-01-14 19:50:51.728 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='44ae7e4c4e3567d4d1470f93b4be565a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:51.729 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq id='44ae7e4c4e3567d4d1470f93b4be565a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:51.729 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<iq type='set' id='33d73fc08c02b11c5caa2a3e5ee897e2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.730 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='33d73fc08c02b11c5caa2a3e5ee897e2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:51.730 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:51.732 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1'/>
*** User 2024-01-14 19:50:51.755 ***🔗
REST request:
Code: 204
Req: {<0.73645.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11b4ecf77b4249f4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzN0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:51 GMT">>}],
<<>>,80,18070}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2637@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-01-14 19:50:51.755 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2637@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='pushdad0959b12758075' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2637@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:51.763 ***🔗
REST request:
Code: 204
Req: {<0.73681.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e8c38475ee0f29f9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzN0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:51 GMT">>}],
<<>>,80,3281}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2637@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-01-14 19:50:51.763 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2637@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='pushe0545197e980cc83' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2637@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:51.771 ***🔗
REST request:
Code: 204
Req: {<0.73711.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b23b5fc17f6d61d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzN0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:51 GMT">>}],
<<>>,80,4047}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2637@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2637@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-01-14 19:50:51.771 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2637@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='push69faa415c605e430' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2637@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:51.780 ***🔗
REST request:
Code: 200
Req: {<0.73744.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3f091e12e0598bd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzN0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2637@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2637@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,4291}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2637@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2637@domain.example.com\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2637@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-01-14 19:50:51.786 ***🔗
REST request:
Code: 200
Req: {<0.73774.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d78a06e486f93dcb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYzN0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2637@domain.example.com\"}]">>,
238,2270}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2637@domain.example.com">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-01-14 19:50:51.786 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2637@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1' id='push00fab86a704e35da' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2637@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:51.786 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:51.786 ***🔗
mike_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
</stream:stream>
*** User 2024-01-14 19:50:51.787 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:51.787 ***🔗
kate_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
</stream:stream>
*** User 2024-01-14 19:50:51.787 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:51.788 ***🔗
bob_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
</stream:stream>
*** User 2024-01-14 19:50:51.788 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:51.788 ***🔗
alice_add_and_remove_some_contacts_properly_2637@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-01-14 19:50:51
=== successfully completed test case
=== === Returned value: ok