=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.27651.1>},
{muc_light_host,<<"muclight2.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/rest_client_suite.add_and_remove_some_contacts_properly.138242.html"},
{tc_group_properties,[{name,roster},{repeat_until_all_ok,3},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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:15:11
*** User 2022-02-02 15:15:11.769 ***
alicE_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.770 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6196223eb5d1502' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.770 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.770 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0NwBtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='003059d87ccafcfb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='1c560e67010823c36862971e82819196'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.771 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq id='1c560e67010823c36862971e82819196' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.772 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='cd7f9111c26c10a330d47188fd94c02c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.772 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq type='result' id='cd7f9111c26c10a330d47188fd94c02c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.772 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.773 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.774 ***
bOb_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.774 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4fb30793339d071b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.774 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.774 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE2NDcAbWFrcm9saWth</auth>
*** User 2022-02-02 15:15:11.775 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.775 ***
bOb_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='476c2bc2711166a9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='9ec56a75c1a740c28e3c62a1f401ccc6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq id='9ec56a75c1a740c28e3c62a1f401ccc6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='f1d5389651d87d5c9ee24313a6337f32'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq type='result' id='f1d5389651d87d5c9ee24313a6337f32'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.776 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.778 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.778 ***
kate_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.778 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='707c8c8bf57e9fc3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.779 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.779 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjQ3AG1ha3Jvd2U7cA==</auth>
*** User 2022-02-02 15:15:11.780 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.780 ***
kate_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.780 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23c261cea0e8636e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.780 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.780 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='d5a06f05277d64186646b0bafbaa4bc8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.781 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq id='d5a06f05277d64186646b0bafbaa4bc8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.781 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='3e08c3307383f9b36bac5b04a84eee46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.781 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq type='result' id='3e08c3307383f9b36bac5b04a84eee46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.781 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.783 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.783 ***
mike_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.784 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6e380973cd780e6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.784 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.784 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjQ3AG5pY25pZW1h</auth>
*** User 2022-02-02 15:15:11.785 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@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 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7bab3db26620755f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='248c82b379ac146916a3bb4ebe67aa74'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq id='248c82b379ac146916a3bb4ebe67aa74' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.786 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<iq type='set' id='0552e7a86899a14792b284e4d87679b7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.787 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq type='result' id='0552e7a86899a14792b284e4d87679b7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.787 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.789 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.804 ***
REST request:
Code: 204
Req: {<0.27774.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a51cc9e3d28dbb6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,3501}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1647@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.804 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1647@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' id='pushd0a3f36303bd0e4b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1647@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.861 ***
REST request:
Code: 204
Req: {<0.27809.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"400ce13384344771">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,49041}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1647@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.862 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1647@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' id='pushaaf89f631d10c8ee' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1647@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.873 ***
REST request:
Code: 204
Req: {<0.27851.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d279984fe7e6295">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,1913}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1647@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1647@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.873 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1647@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' id='push2f268ee84445d5fd' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1647@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.889 ***
REST request:
Code: 200
Req: {<0.27879.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79c5b24f5f7627ce">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1647@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_1647@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,6983}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1647@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_1647@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1647@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.897 ***
REST request:
Code: 200
Req: {<0.27912.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7ebc1c51f1e76f14">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0N0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1647@domain.example.com\",\"ask\":\"none\"}]">>,
238,1353}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1647@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.897 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1647@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1647@domain.example.com/res1' id='pushd0542e9669a8aeda' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1647@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.898 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
mike_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
kate_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
bOb_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:11.898 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.899 ***
alicE_add_and_remove_some_contacts_properly_1647@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:15:11
=== successfully completed test case
=== === Returned value: ok