=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.94194.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/rest_client_suite.add_contact_and_be_invited.289154.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@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},
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_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,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@31a14a49844f.2024-04-16_10.12.33"
=== Started at 2024-04-16 10:26:14
*** User 2024-04-16 10:26:14.832 ***🔗
alicE_add_contact_and_be_invited_3524@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-04-16 10:26:14.833 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a65cc208a72b506' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:14.833 ***🔗
alicE_add_contact_and_be_invited_3524@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-04-16 10:26:14.833 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjQAbWF0eWdyeXNh</auth>
*** User 2024-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@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-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0267652da61f64fd' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3524@domain.example.com'>
*** User 2024-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@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-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 out
<iq type='set' id='20e540b46f4a3f8075e10b5fe4c540d8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:14.834 ***🔗
alicE_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq id='20e540b46f4a3f8075e10b5fe4c540d8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3524@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:14.834 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 out
<iq type='set' id='60fcb10cac36c4b7ddc28e96d46dc317'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:14.835 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' id='60fcb10cac36c4b7ddc28e96d46dc317' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:14.835 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:14.838 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_3524@domain.example.com/res1' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1'/>
*** User 2024-04-16 10:26:14.839 ***🔗
bOb_add_contact_and_be_invited_3524@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-04-16 10:26:14.839 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe10dc5b2300006b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:14.839 ***🔗
bOb_add_contact_and_be_invited_3524@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-04-16 10:26:14.839 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zNTI0AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-16 10:26:14.840 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:14.840 ***🔗
bOb_add_contact_and_be_invited_3524@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-04-16 10:26:14.841 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2fb20875b47e4c5e' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3524@domain.example.com'>
*** User 2024-04-16 10:26:14.841 ***🔗
bOb_add_contact_and_be_invited_3524@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-04-16 10:26:14.841 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 out
<iq type='set' id='1ed207d424b3e1a4b009cc570e886487'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:14.841 ***🔗
bOb_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq id='1ed207d424b3e1a4b009cc570e886487' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3524@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:14.841 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 out
<iq type='set' id='3fa7cd1f1cfe667aafa7ce1ba661c091'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:14.842 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_be_invited_3524@domain.example.com/res1' id='3fa7cd1f1cfe667aafa7ce1ba661c091' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:14.842 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:14.844 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3524@domain.example.com/res1' to='bob_add_contact_and_be_invited_3524@domain.example.com/res1'/>
*** User 2024-04-16 10:26:14.855 ***🔗
REST request:
Code: 200
Req: {<0.94278.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6b32c19e6be91e8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjRAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4226}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3524@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-04-16 10:26:14.887 ***🔗
REST request:
Code: 204
Req: {<0.94305.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"785dc9c99a38d028">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjRAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3524@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:14 GMT">>}],
<<>>,80,24824}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3524@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3524@domain.example.com\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:14.887 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_3524@domain.example.com' to='bob_add_contact_and_be_invited_3524@domain.example.com/res1' id='push194b44e329c0090a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3524@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.896 ***🔗
REST request:
Code: 200
Req: {<0.94337.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"21c01ac665782d4e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjRAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3524@domain.example.com\"}]">>,
228,2835}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3524@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-04-16 10:26:14.896 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 out
<iq type='set' id='8da1f83c0e8cd8870cd644205f0d0949'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3524@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.899 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3524@domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' id='push20950a770f2ccd94' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3524@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.899 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3524@domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' id='8da1f83c0e8cd8870cd644205f0d0949' type='result'/>
*** User 2024-04-16 10:26:14.899 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3524@domain.example.com'/>
*** User 2024-04-16 10:26:14.905 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3524@domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' id='pushe4a74154239a7736' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3524@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.905 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_3524@domain.example.com' to='bob_add_contact_and_be_invited_3524@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 10:26:14.914 ***🔗
REST request:
Code: 200
Req: {<0.94400.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d35ad2ae82d33ee">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjRAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3524@domain.example.com\"}]">>,
226,3778}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3524@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-04-16 10:26:14.927 ***🔗
REST request:
Code: 204
Req: {<0.94430.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3524@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"50efe1cf7f219916">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM1MjRAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:14 GMT">>}],
<<>>,80,8633}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3524@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3524@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,body => <<"{\"action\":\"accept\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:14.927 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_3524@domain.example.com' to='bob_add_contact_and_be_invited_3524@domain.example.com/res1' id='push4500ce37ccd77e64' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3524@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.927 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3524@domain.example.com/res1' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1'/>
*** User 2024-04-16 10:26:14.927 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3524@domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' id='push3eed2bee9b173876' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3524@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:26:14.928 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3524@domain.example.com' to='alice_add_contact_and_be_invited_3524@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 10:26:14.928 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:14.928 ***🔗
bob_add_contact_and_be_invited_3524@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 10:26:14.928 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:14.928 ***🔗
alice_add_contact_and_be_invited_3524@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:26:14
=== successfully completed test case
=== === Returned value: ok