=== Test case: rest_client_SUITE:add_and_remove/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.110083.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.084 ***
alicE_add_and_remove_1777@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.084 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70813551dcd661b0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.084 ***
alicE_add_and_remove_1777@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.085 ***
alicE_add_and_remove_1777@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzE3NzcAbWF0eWdyeXNh</auth>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_and_remove_1777@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.086 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='777783609e1ad186' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_and_remove_1777@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.086 ***
alicE_add_and_remove_1777@domain.example.com/res1 out
<iq type='set' id='15efc7b9436bf3ed782d282c11ff1544'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<iq id='15efc7b9436bf3ed782d282c11ff1544' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_1777@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_and_remove_1777@domain.example.com/res1 out
<iq type='set' id='5f9f3dca436fca3d7637884022127778'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<iq type='result' id='5f9f3dca436fca3d7637884022127778'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_and_remove_1777@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.090 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
<presence from='alicE_add_and_remove_1777@domain.example.com/res1' to='alice_add_and_remove_1777@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.091 ***
bOb_add_and_remove_1777@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.091 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b62eb0639dd2bd02' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.092 ***
bOb_add_and_remove_1777@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.092 ***
bOb_add_and_remove_1777@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8xNzc3AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_and_remove_1777@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.093 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='578f7bbe545af3d0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_and_remove_1777@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.094 ***
bOb_add_and_remove_1777@domain.example.com/res1 out
<iq type='set' id='d995e5d1d0b0d4a4cee8338b27ccaca7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<iq id='d995e5d1d0b0d4a4cee8338b27ccaca7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_1777@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_and_remove_1777@domain.example.com/res1 out
<iq type='set' id='25fa802253be72e90c6d5a008ff76b3f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<iq type='result' id='25fa802253be72e90c6d5a008ff76b3f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.095 ***
bOb_add_and_remove_1777@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.098 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<presence from='bOb_add_and_remove_1777@domain.example.com/res1' to='bob_add_and_remove_1777@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.135 ***
REST request:
Code: 204
Req: {<0.26957.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4f8d7ee69ec7a1e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzE3NzdAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_1777@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,23118}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_1777@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_1777@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.135 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<iq from='bob_add_and_remove_1777@domain.example.com' to='bob_add_and_remove_1777@domain.example.com/res1' id='push94ab517023b28dde' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_1777@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.171 ***
REST request:
Code: 200
Req: {<0.26981.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9470903563006aa1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzE3NzdAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"91">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_1777@domain.example.com\",\"ask\":\"none\"}]">>,
215,21049}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_1777@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.195 ***
REST request:
Code: 204
Req: {<0.27015.1>,
<<"/api/contacts/alice_add_and_remove_1777@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b8a016aba1f74f3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzE3NzdAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,11966}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_1777@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_add_and_remove_1777@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.241 ***
REST request:
Code: 200
Req: {<0.27039.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a0afd6635731493a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzE3NzdAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,35526}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_1777@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.241 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
<iq from='bob_add_and_remove_1777@domain.example.com' to='bob_add_and_remove_1777@domain.example.com/res1' id='push937378b7b6d7e0ef' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_1777@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.241 ***
bOb_add_and_remove_1777@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.242 ***
bOb_add_and_remove_1777@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.242 ***
alicE_add_and_remove_1777@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.242 ***
alicE_add_and_remove_1777@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:48
=== successfully completed test case
=== === Returned value: ok