=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.87799.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@1fbe638fdeaa.2024-02-15_09.57.53/big_tests.tests.rest_client_SUITE.logs/run.2024-02-15_10.13.17/rest_client_suite.add_contact_and_be_invited.106756.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@1fbe638fdeaa.2024-02-15_09.57.53/big_tests.tests.rest_client_SUITE.logs/run.2024-02-15_10.13.17/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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@1fbe638fdeaa.2024-02-15_09.57.53"
=== Started at 2024-02-15 10:13:19
*** User 2024-02-15 10:13:19.470 ***🔗
alicE_add_contact_and_be_invited_3137@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-02-15 10:13:19.470 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d8134513603c262e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-15 10:13:19.471 ***🔗
alicE_add_contact_and_be_invited_3137@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-02-15 10:13:19.471 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzcAbWF0eWdyeXNh</auth>
*** User 2024-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@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-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a10418c4573c95a2' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3137@localhost'>
*** User 2024-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@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-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 out
<iq type='set' id='4214a44c6ea8459f4729fe20380e7768'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-15 10:13:19.473 ***🔗
alicE_add_contact_and_be_invited_3137@localhost/res1 in
<iq id='4214a44c6ea8459f4729fe20380e7768' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3137@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-15 10:13:19.474 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 out
<iq type='set' id='6f1fc5210955861ca92bc172911d2f3d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-15 10:13:19.474 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' id='6f1fc5210955861ca92bc172911d2f3d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-15 10:13:19.474 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 out
<presence/>
*** User 2024-02-15 10:13:19.476 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3137@localhost/res1' to='alice_add_contact_and_be_invited_3137@localhost/res1'/>
*** User 2024-02-15 10:13:19.476 ***🔗
bOb_add_contact_and_be_invited_3137@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-02-15 10:13:19.476 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a26e95408e98725d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-15 10:13:19.477 ***🔗
bOb_add_contact_and_be_invited_3137@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-02-15 10:13:19.477 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMTM3AG1ha3JvbGlrYQ==</auth>
*** User 2024-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@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-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8c77f3d67f1916d' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3137@localhost'>
*** User 2024-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@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-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 out
<iq type='set' id='fe0008f506056d07b0957a66be82c94b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-15 10:13:19.478 ***🔗
bOb_add_contact_and_be_invited_3137@localhost/res1 in
<iq id='fe0008f506056d07b0957a66be82c94b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3137@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-15 10:13:19.478 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 out
<iq type='set' id='1671f857a23b170117418810b111800b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-15 10:13:19.479 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3137@localhost/res1' id='1671f857a23b170117418810b111800b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-15 10:13:19.479 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 out
<presence/>
*** User 2024-02-15 10:13:19.494 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3137@localhost/res1' to='bob_add_contact_and_be_invited_3137@localhost/res1'/>
*** User 2024-02-15 10:13:19.509 ***🔗
REST request:
Code: 200
Req: {<0.87889.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5165d51156602ea">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 15 Feb 2024 10:13:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4561}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3137@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-02-15 10:13:19.531 ***🔗
REST request:
Code: 204
Req: {<0.87916.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"966ba0f6bbd1507d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3137@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 15 Feb 2024 10:13:19 GMT">>}],
<<>>,80,9809}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3137@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_3137@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-02-15 10:13:19.531 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3137@localhost' to='bob_add_contact_and_be_invited_3137@localhost/res1' id='push983756f491300fd0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_3137@localhost'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.592 ***🔗
REST request:
Code: 200
Req: {<0.87956.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f715bdcf21105d1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 15 Feb 2024 10:13:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3137@localhost\"}]">>,
218,49650}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3137@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-02-15 10:13:19.592 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 out
<iq type='set' id='739834ea6ebfdeb8aa9db67ba2ca0928'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3137@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.602 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3137@localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' id='pusheeb1d3ea61b4a65f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_3137@localhost'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.602 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3137@localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' id='739834ea6ebfdeb8aa9db67ba2ca0928' type='result'/>
*** User 2024-02-15 10:13:19.602 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3137@localhost'/>
*** User 2024-02-15 10:13:19.614 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3137@localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' id='pushc25279066069bbb8' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_3137@localhost'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.614 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3137@localhost' to='bob_add_contact_and_be_invited_3137@localhost/res1' type='subscribe'/>
*** User 2024-02-15 10:13:19.627 ***🔗
REST request:
Code: 200
Req: {<0.88029.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9ffb3ffd764c285">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 15 Feb 2024 10:13:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3137@localhost\"}]">>,
216,5135}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3137@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-02-15 10:13:19.651 ***🔗
REST request:
Code: 204
Req: {<0.88044.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3137@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db43683b15f546b0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMzdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 15 Feb 2024 10:13:19 GMT">>}],
<<>>,80,13169}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3137@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_3137@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-02-15 10:13:19.651 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3137@localhost' to='bob_add_contact_and_be_invited_3137@localhost/res1' id='push9883b571d70b562e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_3137@localhost'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.652 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3137@localhost/res1' to='alice_add_contact_and_be_invited_3137@localhost/res1'/>
*** User 2024-02-15 10:13:19.652 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3137@localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' id='push5d21f7ad03efd692' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_3137@localhost'/>
</query>
</iq>
*** User 2024-02-15 10:13:19.652 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3137@localhost' to='alice_add_contact_and_be_invited_3137@localhost/res1' type='subscribed'/>
*** User 2024-02-15 10:13:19.652 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 out
</stream:stream>
*** User 2024-02-15 10:13:19.653 ***🔗
bob_add_contact_and_be_invited_3137@localhost/res1 in
</stream:stream>
*** User 2024-02-15 10:13:19.653 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 out
</stream:stream>
*** User 2024-02-15 10:13:19.653 ***🔗
alice_add_contact_and_be_invited_3137@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-15 10:13:19
=== successfully completed test case
=== === Returned value: ok