=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.14172.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.33.55/rest_client_suite.add_and_remove.73986.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.33.55/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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 => [],mod_sic => [],mod_stream_management => [],
mod_vcard =>
[{backend,ldap},
{host,{prefix,<<"vjud.">>}},
{ldap_base,"ou=Users,dc=esl,dc=com"},
{ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:33:57
*** User 2022-01-27 15:33:57.476 ***
alicE_add_and_remove_1140@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:33:57.476 ***
alicE_add_and_remove_1140@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81a869fe0d11ccc0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.476 ***
alicE_add_and_remove_1140@localhost/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>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 15:33:57.476 ***
alicE_add_and_remove_1140@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzExNDAAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:33:57.477 ***
alicE_add_and_remove_1140@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:57.477 ***
alicE_add_and_remove_1140@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:33:57.477 ***
alicE_add_and_remove_1140@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17299d90db72c1e4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.477 ***
alicE_add_and_remove_1140@localhost/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 15:33:57.477 ***
alicE_add_and_remove_1140@localhost/res1 out
<iq type='set' id='e112342d16f6798e9a9c468f381e716a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_add_and_remove_1140@localhost/res1 in
<iq id='e112342d16f6798e9a9c468f381e716a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_1140@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_add_and_remove_1140@localhost/res1 out
<iq type='set' id='dd987c5bc35860019cd69b9f2185f15c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_add_and_remove_1140@localhost/res1 in
<iq type='result' id='dd987c5bc35860019cd69b9f2185f15c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_add_and_remove_1140@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:57.479 ***
alicE_add_and_remove_1140@localhost/res1 in
<presence from='alicE_add_and_remove_1140@localhost/res1' to='alice_add_and_remove_1140@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:57.479 ***
bOb_add_and_remove_1140@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:33:57.479 ***
bOb_add_and_remove_1140@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a2acc9137afdef78' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.480 ***
bOb_add_and_remove_1140@localhost/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>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 15:33:57.480 ***
bOb_add_and_remove_1140@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8xMTQwAG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d1cd79d9ae4cf3c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/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 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/res1 out
<iq type='set' id='362648581af6386017b8562b802e356a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:57.481 ***
bOb_add_and_remove_1140@localhost/res1 in
<iq id='362648581af6386017b8562b802e356a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_1140@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_add_and_remove_1140@localhost/res1 out
<iq type='set' id='0e2f8f7f70bb9d52dba4fba17d331217'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_add_and_remove_1140@localhost/res1 in
<iq type='result' id='0e2f8f7f70bb9d52dba4fba17d331217'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_add_and_remove_1140@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:57.483 ***
bOb_add_and_remove_1140@localhost/res1 in
<presence from='bOb_add_and_remove_1140@localhost/res1' to='bob_add_and_remove_1140@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:57.491 ***
REST request:
Code: 204
Req: {<0.14257.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2bb32560673a6405">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzExNDBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_1140@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>}],
<<>>,80,1401}
Params: #{body => <<"{\"jid\":\"alice_add_and_remove_1140@localhost\"}">>,
creds => {<<"bob_add_and_remove_1140@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.491 ***
bOb_add_and_remove_1140@localhost/res1 in
<iq from='bob_add_and_remove_1140@localhost' to='bob_add_and_remove_1140@localhost/res1' id='pushf1e73ff36aa796e7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_1140@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:33:57.500 ***
REST request:
Code: 200
Req: {<0.14283.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"465b6d89cc60c8cc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzExNDBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_1140@localhost\",\"ask\":\"none\"}]">>,
206,1302}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1140@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.510 ***
REST request:
Code: 204
Req: {<0.14315.1>,<<"/api/contacts/alice_add_and_remove_1140@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bdb48a6fa089ca8d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzExNDBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>}],
<<>>,80,1664}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1140@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,
path => <<"/api/contacts/alice_add_and_remove_1140@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.569 ***
REST request:
Code: 200
Req: {<0.14351.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"647ecf523fb7f990">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzExNDBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,49986}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1140@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.570 ***
bOb_add_and_remove_1140@localhost/res1 in
<iq from='bob_add_and_remove_1140@localhost' to='bob_add_and_remove_1140@localhost/res1' id='pushc873c8a0d084fe9d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_1140@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:33:57.570 ***
bOb_add_and_remove_1140@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:57.570 ***
bOb_add_and_remove_1140@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:57.570 ***
alicE_add_and_remove_1140@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:57.571 ***
alicE_add_and_remove_1140@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:57
=== successfully completed test case
=== === Returned value: ok