=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.26880.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,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.add_and_remove_some_contacts_properly.122498.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:48
*** User 2022-01-27 12:36:48.093 ***
alicE_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.094 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01a4aed35ff87727' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.094 ***
alicE_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.094 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MABtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 12:36:48.095 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.095 ***
alicE_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.096 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ac0e73130e1ec29' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.096 ***
alicE_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.096 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='5788b07cc3b8f6826022573c4eb7ff4c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.097 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq id='5788b07cc3b8f6826022573c4eb7ff4c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.097 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='1e57b41fe236f8e314dc8f93cda5a471'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.097 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq type='result' id='1e57b41fe236f8e314dc8f93cda5a471'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.097 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.100 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.101 ***
bOb_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.103 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='052d670bb93d36f7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.103 ***
bOb_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.103 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE3ODAAbWFrcm9saWth</auth>
*** User 2022-01-27 12:36:48.107 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.107 ***
bOb_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.111 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14f3aaa72a3f1ca4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.111 ***
bOb_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.111 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='75dde78b49a80dbe2943a9a8924e6dc3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.111 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq id='75dde78b49a80dbe2943a9a8924e6dc3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.112 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='452e31fad80db83481d44750b5fb8182'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.113 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq type='result' id='452e31fad80db83481d44750b5fb8182'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.113 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.135 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.136 ***
kate_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.137 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a0f9f832e4ff445f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.137 ***
kate_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.137 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNzgwAG1ha3Jvd2U7cA==</auth>
*** User 2022-01-27 12:36:48.141 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.141 ***
kate_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.150 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b2e480874f031ed4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.150 ***
kate_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.150 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='1da8696faf74e106b5f750c6b64a593a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.152 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq id='1da8696faf74e106b5f750c6b64a593a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.152 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='afb6568775f2b555c96f48f4f0c46e27'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.153 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq type='result' id='afb6568775f2b555c96f48f4f0c46e27'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.154 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.172 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.173 ***
mike_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.173 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d68dbf030120558b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.174 ***
mike_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.174 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNzgwAG5pY25pZW1h</auth>
*** User 2022-01-27 12:36:48.175 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.175 ***
mike_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.175 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64d7a95ea062f84e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.175 ***
mike_add_and_remove_some_contacts_properly_1780@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-01-27 12:36:48.176 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='38b6d32c51696edd6bac3a53c50188a3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.176 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq id='38b6d32c51696edd6bac3a53c50188a3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.176 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<iq type='set' id='4eceb36a7aa5448bced8d2f5e869b453'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.176 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq type='result' id='4eceb36a7aa5448bced8d2f5e869b453'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.177 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.184 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.235 ***
REST request:
Code: 204
Req: {<0.27032.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1fb7d080ba8a7e55">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,40977}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1780@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.236 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1780@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' id='push2be00f123a51580c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1780@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.249 ***
REST request:
Code: 204
Req: {<0.27055.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"651b7af78a094444">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,5459}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1780@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.249 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1780@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' id='push5005dbdb4727f890' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1780@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.266 ***
REST request:
Code: 204
Req: {<0.27077.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9d2e5a0dc4cc3f9a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:48 GMT">>}],
<<>>,80,5362}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1780@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1780@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.266 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1780@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' id='push0d017e7ae973f793' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1780@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.287 ***
REST request:
Code: 200
Req: {<0.27093.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4af5208a028dc51b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1780@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_1780@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,11359}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1780@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_1780@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1780@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.344 ***
REST request:
Code: 200
Req: {<0.27120.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"60346a86ad07a623">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTc4MEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1780@domain.example.com\",\"ask\":\"none\"}]">>,
238,2442}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1780@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.344 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1780@domain.example.com' to='bob_add_and_remove_some_contacts_properly_1780@domain.example.com/res1' id='pushe5557899954e0e17' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1780@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.344 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.344 ***
mike_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.345 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.345 ***
kate_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.345 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.345 ***
bOb_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.345 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.346 ***
alicE_add_and_remove_some_contacts_properly_1780@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:48
=== successfully completed test case
=== === Returned value: ok