=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.1986.2>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/rest_client_suite.add_and_remove.110211.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 09:04:45
*** User 2022-05-11 09:04:45.371 ***
alicE_add_and_remove_2031@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-05-11 09:04:45.372 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4414486083a1d3f3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.372 ***
alicE_add_and_remove_2031@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-05-11 09:04:45.372 ***
alicE_add_and_remove_2031@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzIwMzEAbWF0eWdyeXNh</auth>
*** User 2022-05-11 09:04:45.373 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:04:45.373 ***
alicE_add_and_remove_2031@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-05-11 09:04:45.373 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6a8086000b9427f9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.373 ***
alicE_add_and_remove_2031@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-05-11 09:04:45.374 ***
alicE_add_and_remove_2031@domain.example.com/res1 out
<iq type='set' id='b23e050925bdbb8d2df7b3dd22721be6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<iq id='b23e050925bdbb8d2df7b3dd22721be6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_2031@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_2031@domain.example.com/res1 out
<iq type='set' id='90f1440cd7ed4d9e2b1ad9d8601b09a6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<iq type='result' id='90f1440cd7ed4d9e2b1ad9d8601b09a6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_2031@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:04:45.376 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
<presence from='alicE_add_and_remove_2031@domain.example.com/res1' to='alice_add_and_remove_2031@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:04:45.377 ***
bOb_add_and_remove_2031@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-05-11 09:04:45.377 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62951cedcb4eadbb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.377 ***
bOb_add_and_remove_2031@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-05-11 09:04:45.377 ***
bOb_add_and_remove_2031@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8yMDMxAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_2031@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-05-11 09:04:45.378 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ca535cc86d27939' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_2031@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-05-11 09:04:45.378 ***
bOb_add_and_remove_2031@domain.example.com/res1 out
<iq type='set' id='195cbb3311032dd82c8d02af5aa13e72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<iq id='195cbb3311032dd82c8d02af5aa13e72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_2031@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_2031@domain.example.com/res1 out
<iq type='set' id='0bcff8e48acaa3599f39f2268a3dd7a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<iq type='result' id='0bcff8e48acaa3599f39f2268a3dd7a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_2031@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<presence from='bOb_add_and_remove_2031@domain.example.com/res1' to='bob_add_and_remove_2031@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:04:45.391 ***
REST request:
Code: 204
Req: {<0.2074.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"63abc5864f9722f0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIwMzFAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_2031@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
<<>>,80,2808}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_2031@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_2031@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.391 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<iq from='bob_add_and_remove_2031@domain.example.com' to='bob_add_and_remove_2031@domain.example.com/res1' id='push7c6f198860ae3314' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_2031@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.408 ***
REST request:
Code: 200
Req: {<0.2095.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ae047e59eb44c9c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIwMzFAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"91">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_2031@domain.example.com\",\"ask\":\"none\"}]">>,
215,7292}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_2031@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.418 ***
REST request:
Code: 204
Req: {<0.2124.2>,
<<"/api/contacts/alice_add_and_remove_2031@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78bfd87b664abbab">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIwMzFAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
<<>>,80,3215}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_2031@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_add_and_remove_2031@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.428 ***
REST request:
Code: 200
Req: {<0.2154.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0124c131f4c5b85">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzIwMzFAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1225}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_2031@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.428 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
<iq from='bob_add_and_remove_2031@domain.example.com' to='bob_add_and_remove_2031@domain.example.com/res1' id='push8acc51da3f2c4e15' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_2031@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.428 ***
bOb_add_and_remove_2031@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:04:45.428 ***
bOb_add_and_remove_2031@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-11 09:04:45.428 ***
alicE_add_and_remove_2031@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:04:45.429 ***
alicE_add_and_remove_2031@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-11 09:04:45
=== successfully completed test case
=== === Returned value: ok