=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.89337.0>},
{muc_light_host,<<"muclight.localhost">>},
{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@70badadd0f1a.2024-04-10_12.44.57/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.59.47/rest_client_suite.add_contact_and_be_invited.243714.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@70badadd0f1a.2024-04-10_12.44.57/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.59.47/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,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@70badadd0f1a.2024-04-10_12.44.57"
=== Started at 2024-04-10 12:59:49
*** User 2024-04-10 12:59:49.303 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-10 12:59:49.303 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6adfddebf2bb70d8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.303 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/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-10 12:59:49.303 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDEAbWF0eWdyeXNh</auth>
*** User 2024-04-10 12:59:49.304 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.304 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-10 12:59:49.304 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='627fc499aaf12deb' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3201@localhost'>
*** User 2024-04-10 12:59:49.305 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/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-10 12:59:49.305 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 out
<iq type='set' id='b34fb2ca1686c353f67a8698fab25fa1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.305 ***🔗
alicE_add_contact_and_be_invited_3201@localhost/res1 in
<iq id='b34fb2ca1686c353f67a8698fab25fa1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3201@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.305 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 out
<iq type='set' id='2ede3be7ed8919b80111aec87956607f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.306 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' id='2ede3be7ed8919b80111aec87956607f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.306 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.308 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3201@localhost/res1' to='alice_add_contact_and_be_invited_3201@localhost/res1'/>
*** User 2024-04-10 12:59:49.308 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-10 12:59:49.308 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0736ec518f1870c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:59:49.309 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/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-10 12:59:49.309 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMjAxAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-10 12:59:49.309 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:59:49.310 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-10 12:59:49.310 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c40fe01db04ba11' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3201@localhost'>
*** User 2024-04-10 12:59:49.310 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/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-10 12:59:49.310 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 out
<iq type='set' id='a2d13ea224227d301cdcd28b6292b719'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:59:49.310 ***🔗
bOb_add_contact_and_be_invited_3201@localhost/res1 in
<iq id='a2d13ea224227d301cdcd28b6292b719' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3201@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:59:49.310 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 out
<iq type='set' id='d68e83ce85cf5f5dba9188b70da87fdd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3201@localhost/res1' id='d68e83ce85cf5f5dba9188b70da87fdd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:59:49.311 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 out
<presence/>
*** User 2024-04-10 12:59:49.313 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3201@localhost/res1' to='bob_add_contact_and_be_invited_3201@localhost/res1'/>
*** User 2024-04-10 12:59:49.321 ***🔗
REST request:
Code: 200
Req: {<0.89405.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc93a0445124f63f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDFAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3644}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3201@localhost">>,
<<"makrolika">>},
role => client,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 12:59:49.332 ***🔗
REST request:
Code: 204
Req: {<0.89438.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"40e69a623b878be0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDFAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3201@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>}],
<<>>,80,6282}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3201@localhost">>,
<<"makrolika">>},
role => client,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3201@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 12:59:49.333 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3201@localhost' to='bob_add_contact_and_be_invited_3201@localhost/res1' id='push2df2127578b8d094' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3201@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.363 ***🔗
REST request:
Code: 200
Req: {<0.89470.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5a53eeceb192ccc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDFAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3201@localhost\"}]">>,
218,3524}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3201@localhost">>,
<<"makrolika">>},
role => client,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 12:59:49.363 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 out
<iq type='set' id='4c4aa3154be575461cfca17e943e49a4'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3201@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.369 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3201@localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' id='pushdb8de1ec7d8fffdc' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3201@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.369 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3201@localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' id='4c4aa3154be575461cfca17e943e49a4' type='result'/>
*** User 2024-04-10 12:59:49.369 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3201@localhost'/>
*** User 2024-04-10 12:59:49.375 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3201@localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' id='push3cf0c555d8153011' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3201@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.376 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3201@localhost' to='bob_add_contact_and_be_invited_3201@localhost/res1' type='subscribe'/>
*** User 2024-04-10 12:59:49.386 ***🔗
REST request:
Code: 200
Req: {<0.89534.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eebaac069b4b84a1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDFAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3201@localhost\"}]">>,
216,4734}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3201@localhost">>,
<<"makrolika">>},
role => client,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 12:59:49.399 ***🔗
REST request:
Code: 204
Req: {<0.89569.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3201@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ec46b767aa6186e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMDFAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:59:48 GMT">>}],
<<>>,80,8604}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3201@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_3201@localhost">>,
<<"makrolika">>},
role => client,body => <<"{\"action\":\"accept\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-10 12:59:49.400 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3201@localhost' to='bob_add_contact_and_be_invited_3201@localhost/res1' id='pushfc91970dece43d1c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3201@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.400 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3201@localhost/res1' to='alice_add_contact_and_be_invited_3201@localhost/res1'/>
*** User 2024-04-10 12:59:49.400 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3201@localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' id='pushc90a454c3fb1829e' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3201@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 12:59:49.400 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3201@localhost' to='alice_add_contact_and_be_invited_3201@localhost/res1' type='subscribed'/>
*** User 2024-04-10 12:59:49.400 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.400 ***🔗
bob_add_contact_and_be_invited_3201@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:59:49.400 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:59:49.401 ***🔗
alice_add_contact_and_be_invited_3201@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:59:49
=== successfully completed test case
=== === Returned value: ok