=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.89304.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@f53478984827.2024-04-24_13.07.56/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.23.22/rest_client_suite.add_contact_and_be_invited.166147.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@f53478984827.2024-04-24_13.07.56/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.23.22/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_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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f53478984827.2024-04-24_13.07.56"
=== Started at 2024-04-24 13:23:24
*** User 2024-04-24 13:23:24.600 ***🔗
alicE_add_contact_and_be_invited_3218@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-24 13:23:24.600 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='48610573211daf79' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:24.601 ***🔗
alicE_add_contact_and_be_invited_3218@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-24 13:23:24.601 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMTgAbWF0eWdyeXNh</auth>
*** User 2024-04-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@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-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76cca82e799afb34' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3218@localhost'>
*** User 2024-04-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@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-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 out
<iq type='set' id='228c3c8254e820e6017c73f3874a2c6f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:24.602 ***🔗
alicE_add_contact_and_be_invited_3218@localhost/res1 in
<iq id='228c3c8254e820e6017c73f3874a2c6f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3218@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:24.603 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 out
<iq type='set' id='7e69de7125efc1737e8d53f0b8420ba5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:24.603 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' id='7e69de7125efc1737e8d53f0b8420ba5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:24.603 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:24.606 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3218@localhost/res1' to='alice_add_contact_and_be_invited_3218@localhost/res1'/>
*** User 2024-04-24 13:23:24.606 ***🔗
bOb_add_contact_and_be_invited_3218@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-24 13:23:24.606 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='91898af87b4535d2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:24.607 ***🔗
bOb_add_contact_and_be_invited_3218@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-24 13:23:24.607 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMjE4AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-24 13:23:24.607 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:24.608 ***🔗
bOb_add_contact_and_be_invited_3218@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-24 13:23:24.608 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f76fb80549398090' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3218@localhost'>
*** User 2024-04-24 13:23:24.608 ***🔗
bOb_add_contact_and_be_invited_3218@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-24 13:23:24.608 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 out
<iq type='set' id='0e454d9b0ffc49148a452775cb47f7d9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:24.608 ***🔗
bOb_add_contact_and_be_invited_3218@localhost/res1 in
<iq id='0e454d9b0ffc49148a452775cb47f7d9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3218@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:24.608 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 out
<iq type='set' id='79cd790048b9e6f5773e86dfefd6ed2f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:24.609 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3218@localhost/res1' id='79cd790048b9e6f5773e86dfefd6ed2f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:24.609 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:24.611 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3218@localhost/res1' to='bob_add_contact_and_be_invited_3218@localhost/res1'/>
*** User 2024-04-24 13:23:24.619 ***🔗
REST request:
Code: 200
Req: {<0.89380.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"568f0618c63b995f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2653}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3218@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:24.628 ***🔗
REST request:
Code: 204
Req: {<0.89403.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e6e791cc80de5d8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3218@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:24 GMT">>}],
<<>>,80,4974}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3218@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_3218@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:24.628 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3218@localhost' to='bob_add_contact_and_be_invited_3218@localhost/res1' id='pushee6656fc9410f2b6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3218@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.636 ***🔗
REST request:
Code: 200
Req: {<0.89433.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4ae6a0dd2cca25ce">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3218@localhost\"}]">>,
218,3618}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3218@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:24.636 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 out
<iq type='set' id='cbe5cee0b3ec7ea40a18dfc4ddbc2195'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3218@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.669 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3218@localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' id='push69398dea8eeea3e6' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3218@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.669 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3218@localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' id='cbe5cee0b3ec7ea40a18dfc4ddbc2195' type='result'/>
*** User 2024-04-24 13:23:24.669 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3218@localhost'/>
*** User 2024-04-24 13:23:24.714 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3218@localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' id='push16ce667453915cf5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3218@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.714 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3218@localhost' to='bob_add_contact_and_be_invited_3218@localhost/res1' type='subscribe'/>
*** User 2024-04-24 13:23:24.731 ***🔗
REST request:
Code: 200
Req: {<0.89525.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"49ba4e056f7a3d29">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3218@localhost\"}]">>,
216,12779}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3218@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:24.787 ***🔗
REST request:
Code: 204
Req: {<0.89531.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3218@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d11051a65a4668b1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMyMThAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 24 Apr 2024 13:23:24 GMT">>}],
<<>>,80,51188}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3218@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_3218@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-24 13:23:24.787 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3218@localhost' to='bob_add_contact_and_be_invited_3218@localhost/res1' id='push014c2b8eee923b16' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3218@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.787 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3218@localhost/res1' to='alice_add_contact_and_be_invited_3218@localhost/res1'/>
*** User 2024-04-24 13:23:24.787 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3218@localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' id='push6dca1748dca51c1a' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3218@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-24 13:23:24.787 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3218@localhost' to='alice_add_contact_and_be_invited_3218@localhost/res1' type='subscribed'/>
*** User 2024-04-24 13:23:24.787 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:24.787 ***🔗
bob_add_contact_and_be_invited_3218@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:23:24.787 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:24.788 ***🔗
alice_add_contact_and_be_invited_3218@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-24 13:23:24
=== successfully completed test case
=== === Returned value: ok