=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.75435.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.rest_client_SUITE.logs/run.2024-02-26_15.55.28/rest_client_suite.add_contact_and_be_invited.97924.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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.rest_client_SUITE.logs/run.2024-02-26_15.55.28/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@c558b6ad2bd8.2024-02-26_15.40.27"
=== Started at 2024-02-26 15:55:29
*** User 2024-02-26 15:55:30.018 ***🔗
alicE_add_contact_and_be_invited_2928@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 2024-02-26 15:55:30.019 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0662166e05cff7cb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-26 15:55:30.019 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-26 15:55:30.019 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjgAbWF0eWdyeXNh</auth>
*** User 2024-02-26 15:55:30.029 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-26 15:55:30.029 ***🔗
alicE_add_contact_and_be_invited_2928@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 2024-02-26 15:55:30.030 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed688c8e6aece596' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_2928@domain.example.com'>
*** User 2024-02-26 15:55:30.030 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-26 15:55:30.030 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 out
<iq type='set' id='eabd40bec3bb9cc435a2d7648b25f5a5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-26 15:55:30.030 ***🔗
alicE_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq id='eabd40bec3bb9cc435a2d7648b25f5a5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2928@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-26 15:55:30.030 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 out
<iq type='set' id='c91d531529d0058c99bb6bfe4a6bee38'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-26 15:55:30.031 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' id='c91d531529d0058c99bb6bfe4a6bee38' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-26 15:55:30.031 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 out
<presence/>
*** User 2024-02-26 15:55:30.033 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2928@domain.example.com/res1' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1'/>
*** User 2024-02-26 15:55:30.033 ***🔗
bOb_add_contact_and_be_invited_2928@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 2024-02-26 15:55:30.033 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee19cfddfac26b79' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-26 15:55:30.033 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-26 15:55:30.033 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yOTI4AG1ha3JvbGlrYQ==</auth>
*** User 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@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 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10992cf7df453482' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_2928@domain.example.com'>
*** User 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 out
<iq type='set' id='eaa08cdbf4a65b04489d3f343fad7527'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-26 15:55:30.035 ***🔗
bOb_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq id='eaa08cdbf4a65b04489d3f343fad7527' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2928@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-26 15:55:30.035 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 out
<iq type='set' id='90b8bebec2d9415a0cf4996eeac7c7f1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-26 15:55:30.036 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_be_invited_2928@domain.example.com/res1' id='90b8bebec2d9415a0cf4996eeac7c7f1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-26 15:55:30.036 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 out
<presence/>
*** User 2024-02-26 15:55:30.038 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2928@domain.example.com/res1' to='bob_add_contact_and_be_invited_2928@domain.example.com/res1'/>
*** User 2024-02-26 15:55:30.046 ***🔗
REST request:
Code: 200
Req: {<0.75498.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"473ba7fd1345ea41">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 26 Feb 2024 15:55:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3011}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2928@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-02-26 15:55:30.057 ***🔗
REST request:
Code: 204
Req: {<0.75524.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5982caf6410e5d8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2928@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 26 Feb 2024 15:55:29 GMT">>}],
<<>>,80,5420}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2928@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2928@domain.example.com\"}">>,
role => client,return_headers => true}
*** User 2024-02-26 15:55:30.057 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2928@domain.example.com' to='bob_add_contact_and_be_invited_2928@domain.example.com/res1' id='pushda566c4bde77c376' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_2928@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.092 ***🔗
REST request:
Code: 200
Req: {<0.75558.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81c0c4461cb2668a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 26 Feb 2024 15:55:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2928@domain.example.com\"}]">>,
228,3867}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2928@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-02-26 15:55:30.092 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 out
<iq type='set' id='970868fb98eb36cac8b15e025e631db2'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2928@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.096 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2928@domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' id='pushad6eef577aaa5e39' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_2928@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.096 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2928@domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' id='970868fb98eb36cac8b15e025e631db2' type='result'/>
*** User 2024-02-26 15:55:30.096 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2928@domain.example.com'/>
*** User 2024-02-26 15:55:30.102 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2928@domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' id='push8a516fc8083345ba' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_2928@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.102 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2928@domain.example.com' to='bob_add_contact_and_be_invited_2928@domain.example.com/res1' type='subscribe'/>
*** User 2024-02-26 15:55:30.110 ***🔗
REST request:
Code: 200
Req: {<0.75616.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1046f5a092e31c15">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 26 Feb 2024 15:55:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2928@domain.example.com\"}]">>,
226,3069}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2928@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-02-26 15:55:30.126 ***🔗
REST request:
Code: 204
Req: {<0.75644.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_2928@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b0a51f578c0bafe0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5MjhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 26 Feb 2024 15:55:29 GMT">>}],
<<>>,80,8330}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2928@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2928@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,body => <<"{\"action\":\"accept\"}">>,
role => client,return_headers => true}
*** User 2024-02-26 15:55:30.126 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2928@domain.example.com' to='bob_add_contact_and_be_invited_2928@domain.example.com/res1' id='push643be19edb11c74b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_2928@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.126 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2928@domain.example.com/res1' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1'/>
*** User 2024-02-26 15:55:30.126 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2928@domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' id='push649c3692df8258db' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_2928@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-02-26 15:55:30.126 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2928@domain.example.com' to='alice_add_contact_and_be_invited_2928@domain.example.com/res1' type='subscribed'/>
*** User 2024-02-26 15:55:30.127 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-26 15:55:30.128 ***🔗
bob_add_contact_and_be_invited_2928@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-26 15:55:30.128 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-26 15:55:30.129 ***🔗
alice_add_contact_and_be_invited_2928@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-26 15:55:30
=== successfully completed test case
=== === Returned value: ok