=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.10404.2>},
{muc_light_host,<<"muclight.localhost">>},
{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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.add_and_remove.149506.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/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 => [{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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:37:03
*** User 2022-01-27 15:37:03.839 ***
alicE_add_and_remove_2186@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:37:03.839 ***
alicE_add_and_remove_2186@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3422b9e26afe68b1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.839 ***
alicE_add_and_remove_2186@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>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 15:37:03.839 ***
alicE_add_and_remove_2186@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzIxODYAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:37:03.840 ***
alicE_add_and_remove_2186@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.840 ***
alicE_add_and_remove_2186@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:37:03.841 ***
alicE_add_and_remove_2186@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06f4a973423df3e7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_and_remove_2186@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:37:03.841 ***
alicE_add_and_remove_2186@localhost/res1 out
<iq type='set' id='6c6f7e0a022fc2be4df7284d11862af3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_and_remove_2186@localhost/res1 in
<iq id='6c6f7e0a022fc2be4df7284d11862af3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_2186@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_and_remove_2186@localhost/res1 out
<iq type='set' id='77ec881a6a5d6cd69f89669f8eba6d49'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_and_remove_2186@localhost/res1 in
<iq type='result' id='77ec881a6a5d6cd69f89669f8eba6d49'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_and_remove_2186@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.844 ***
alicE_add_and_remove_2186@localhost/res1 in
<presence from='alicE_add_and_remove_2186@localhost/res1' to='alice_add_and_remove_2186@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.845 ***
bOb_add_and_remove_2186@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:37:03.845 ***
bOb_add_and_remove_2186@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54fae71328aa65ba' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.846 ***
bOb_add_and_remove_2186@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>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 15:37:03.846 ***
bOb_add_and_remove_2186@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8yMTg2AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:37:03.847 ***
bOb_add_and_remove_2186@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.847 ***
bOb_add_and_remove_2186@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:37:03.847 ***
bOb_add_and_remove_2186@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2a83dda59ee4114' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.847 ***
bOb_add_and_remove_2186@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:37:03.847 ***
bOb_add_and_remove_2186@localhost/res1 out
<iq type='set' id='ca278f924a3d30484c87a4eb5d8560e8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.848 ***
bOb_add_and_remove_2186@localhost/res1 in
<iq id='ca278f924a3d30484c87a4eb5d8560e8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_2186@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.848 ***
bOb_add_and_remove_2186@localhost/res1 out
<iq type='set' id='1780a52d171cc000646d1becda64174b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.848 ***
bOb_add_and_remove_2186@localhost/res1 in
<iq type='result' id='1780a52d171cc000646d1becda64174b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.848 ***
bOb_add_and_remove_2186@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.851 ***
bOb_add_and_remove_2186@localhost/res1 in
<presence from='bOb_add_and_remove_2186@localhost/res1' to='bob_add_and_remove_2186@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.866 ***
REST request:
Code: 204
Req: {<0.10481.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b3aaa0a3c352fdc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIxODZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_2186@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,4325}
Params: #{body => <<"{\"jid\":\"alice_add_and_remove_2186@localhost\"}">>,
creds => {<<"bob_add_and_remove_2186@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.866 ***
bOb_add_and_remove_2186@localhost/res1 in
<iq from='bob_add_and_remove_2186@localhost' to='bob_add_and_remove_2186@localhost/res1' id='pushaa0c79119a1a5244' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_2186@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.882 ***
REST request:
Code: 200
Req: {<0.10508.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cdcba34147e667bf">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIxODZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_2186@localhost\",\"ask\":\"none\"}]">>,
206,7230}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_2186@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.958 ***
REST request:
Code: 204
Req: {<0.10545.2>,<<"/api/contacts/alice_add_and_remove_2186@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1da961e735bbf347">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIxODZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,16433}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_2186@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,
path => <<"/api/contacts/alice_add_and_remove_2186@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.983 ***
REST request:
Code: 200
Req: {<0.10573.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"664f62f4029757a7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIxODZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,17848}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_2186@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.984 ***
bOb_add_and_remove_2186@localhost/res1 in
<iq from='bob_add_and_remove_2186@localhost' to='bob_add_and_remove_2186@localhost/res1' id='push47a63e3cb1023e7b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_2186@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.984 ***
bOb_add_and_remove_2186@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:03.984 ***
bOb_add_and_remove_2186@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:37:03.984 ***
alicE_add_and_remove_2186@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:03.984 ***
alicE_add_and_remove_2186@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:37:04
=== successfully completed test case
=== === Returned value: ok