=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.15634.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/rest_client_suite.add_and_remove.71170.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:38:22
*** User 2022-03-03 10:38:22.486 ***
alicE_add_and_remove_1318@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-03-03 10:38:22.486 ***
alicE_add_and_remove_1318@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f74029815f7ac501' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.486 ***
alicE_add_and_remove_1318@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-03-03 10:38:22.486 ***
alicE_add_and_remove_1318@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzEzMTgAbWF0eWdyeXNh</auth>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_and_remove_1318@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_and_remove_1318@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-03-03 10:38:22.488 ***
alicE_add_and_remove_1318@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e91cc2297e3aa19f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_and_remove_1318@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-03-03 10:38:22.488 ***
alicE_add_and_remove_1318@localhost/res1 out
<iq type='set' id='59ac3f28b9a9812333a9cf41aa736499'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_and_remove_1318@localhost/res1 in
<iq id='59ac3f28b9a9812333a9cf41aa736499' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_1318@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_and_remove_1318@localhost/res1 out
<iq type='set' id='0a2ecd4630392df14a1209a4a5f96a20'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_1318@localhost/res1 in
<iq type='result' id='0a2ecd4630392df14a1209a4a5f96a20'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_1318@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.489 ***
alicE_add_and_remove_1318@localhost/res1 in
<presence from='alicE_add_and_remove_1318@localhost/res1' to='alice_add_and_remove_1318@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.490 ***
bOb_add_and_remove_1318@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-03-03 10:38:22.490 ***
bOb_add_and_remove_1318@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf865204bf3e2797' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.490 ***
bOb_add_and_remove_1318@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-03-03 10:38:22.490 ***
bOb_add_and_remove_1318@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8xMzE4AG1ha3JvbGlrYQ==</auth>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_and_remove_1318@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_and_remove_1318@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-03-03 10:38:22.491 ***
bOb_add_and_remove_1318@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='055090771318ac8d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_and_remove_1318@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-03-03 10:38:22.492 ***
bOb_add_and_remove_1318@localhost/res1 out
<iq type='set' id='1e823c1187d14e1a854ed8a0b8f3be49'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_and_remove_1318@localhost/res1 in
<iq id='1e823c1187d14e1a854ed8a0b8f3be49' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_1318@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_and_remove_1318@localhost/res1 out
<iq type='set' id='946f95a396d4ea661587ab532650a8d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_and_remove_1318@localhost/res1 in
<iq type='result' id='946f95a396d4ea661587ab532650a8d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_and_remove_1318@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.493 ***
bOb_add_and_remove_1318@localhost/res1 in
<presence from='bOb_add_and_remove_1318@localhost/res1' to='bob_add_and_remove_1318@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.503 ***
REST request:
Code: 204
Req: {<0.15718.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff67ab05c64a54a9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzEzMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_1318@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>}],
<<>>,80,2341}
Params: #{body => <<"{\"jid\":\"alice_add_and_remove_1318@localhost\"}">>,
creds => {<<"bob_add_and_remove_1318@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.504 ***
bOb_add_and_remove_1318@localhost/res1 in
<iq from='bob_add_and_remove_1318@localhost' to='bob_add_and_remove_1318@localhost/res1' id='push1b6de2d600603b6c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_1318@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.513 ***
REST request:
Code: 200
Req: {<0.15742.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41a065c7d7936fdb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzEzMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_1318@localhost\",\"ask\":\"none\"}]">>,
206,1614}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1318@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.525 ***
REST request:
Code: 204
Req: {<0.15759.1>,<<"/api/contacts/alice_add_and_remove_1318@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d654fed5e18884c8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzEzMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
<<>>,80,3454}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1318@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,
path => <<"/api/contacts/alice_add_and_remove_1318@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.565 ***
REST request:
Code: 200
Req: {<0.15797.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0a9b2ee3abd4db4f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzEzMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1884}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_1318@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.565 ***
bOb_add_and_remove_1318@localhost/res1 in
<iq from='bob_add_and_remove_1318@localhost' to='bob_add_and_remove_1318@localhost/res1' id='push74ca77d622d8e418' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_1318@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.565 ***
bOb_add_and_remove_1318@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.566 ***
bOb_add_and_remove_1318@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:38:22.566 ***
alicE_add_and_remove_1318@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.566 ***
alicE_add_and_remove_1318@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:38:22
=== successfully completed test case
=== === Returned value: ok