=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.89381.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/rest_client_suite.add_contact_and_be_invited.107524.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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_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@26557528e1a5.2024-04-25_12.01.25"
=== Started at 2024-04-25 12:18:42
*** User 2024-04-25 12:18:43.021 ***🔗
alicE_add_contact_and_be_invited_3488@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-25 12:18:43.022 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6980d8a09870301f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:18:43.022 ***🔗
alicE_add_contact_and_be_invited_3488@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-25 12:18:43.022 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODgAbWF0eWdyeXNh</auth>
*** User 2024-04-25 12:18:43.023 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:18:43.023 ***🔗
alicE_add_contact_and_be_invited_3488@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-25 12:18:43.023 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='91fcb0b4431a9f3c' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3488@localhost'>
*** User 2024-04-25 12:18:43.024 ***🔗
alicE_add_contact_and_be_invited_3488@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-25 12:18:43.024 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 out
<iq type='set' id='c4378c909e21505edbc9463b67594063'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:18:43.024 ***🔗
alicE_add_contact_and_be_invited_3488@localhost/res1 in
<iq id='c4378c909e21505edbc9463b67594063' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3488@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:18:43.024 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 out
<iq type='set' id='6dc63e3caf28a5190301bcbffcfbdb05'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:43.025 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' id='6dc63e3caf28a5190301bcbffcfbdb05' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:43.025 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 out
<presence/>
*** User 2024-04-25 12:18:43.026 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3488@localhost/res1' to='alice_add_contact_and_be_invited_3488@localhost/res1'/>
*** User 2024-04-25 12:18:43.027 ***🔗
bOb_add_contact_and_be_invited_3488@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-25 12:18:43.028 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a207aa600b54a487' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:18:43.028 ***🔗
bOb_add_contact_and_be_invited_3488@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-25 12:18:43.028 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zNDg4AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-25 12:18:43.029 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:18:43.029 ***🔗
bOb_add_contact_and_be_invited_3488@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-25 12:18:43.030 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb1da9add89a0496' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3488@localhost'>
*** User 2024-04-25 12:18:43.030 ***🔗
bOb_add_contact_and_be_invited_3488@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-25 12:18:43.030 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 out
<iq type='set' id='a2adee11a372869b906c9d398cadea05'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:18:43.030 ***🔗
bOb_add_contact_and_be_invited_3488@localhost/res1 in
<iq id='a2adee11a372869b906c9d398cadea05' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3488@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:18:43.030 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 out
<iq type='set' id='b9d9cb3b58f3ead388783e3af3300a99'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:43.031 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3488@localhost/res1' id='b9d9cb3b58f3ead388783e3af3300a99' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:18:43.031 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 out
<presence/>
*** User 2024-04-25 12:18:43.033 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3488@localhost/res1' to='bob_add_contact_and_be_invited_3488@localhost/res1'/>
*** User 2024-04-25 12:18:43.052 ***🔗
REST request:
Code: 200
Req: {<0.89460.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a99f12dee3abdf03">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,11805}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3488@localhost">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2024-04-25 12:18:43.072 ***🔗
REST request:
Code: 204
Req: {<0.89478.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89d870f46a6912f3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3488@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>}],
<<>>,80,11951}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3488@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3488@localhost\"}">>,
return_headers => true}
*** User 2024-04-25 12:18:43.073 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3488@localhost' to='bob_add_contact_and_be_invited_3488@localhost/res1' id='push49f280d55b41ada2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3488@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.084 ***🔗
REST request:
Code: 200
Req: {<0.89510.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56b2ed0638ba74a3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3488@localhost\"}]">>,
218,4040}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3488@localhost">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2024-04-25 12:18:43.084 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 out
<iq type='set' id='f9600aad8f7108cd99deb4851a706bb9'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3488@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.090 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3488@localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' id='pusha91c0d15ee82a27d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3488@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.090 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3488@localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' id='f9600aad8f7108cd99deb4851a706bb9' type='result'/>
*** User 2024-04-25 12:18:43.090 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3488@localhost'/>
*** User 2024-04-25 12:18:43.098 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3488@localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' id='push31ee97c6e5bd6bd7' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3488@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.098 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3488@localhost' to='bob_add_contact_and_be_invited_3488@localhost/res1' type='subscribe'/>
*** User 2024-04-25 12:18:43.108 ***🔗
REST request:
Code: 200
Req: {<0.89574.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca30c563d878e1cd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3488@localhost\"}]">>,
216,2940}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3488@localhost">>,
<<"makrolika">>},
body => <<>>,return_headers => true}
*** User 2024-04-25 12:18:43.148 ***🔗
REST request:
Code: 204
Req: {<0.89605.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3488@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"22ac9e8c8b1dae1c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0ODhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>}],
<<>>,80,31116}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3488@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3488@localhost">>,
<<"makrolika">>},
body => <<"{\"action\":\"accept\"}">>,return_headers => true}
*** User 2024-04-25 12:18:43.148 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3488@localhost' to='bob_add_contact_and_be_invited_3488@localhost/res1' id='push43cfb76ef6589215' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3488@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.148 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3488@localhost/res1' to='alice_add_contact_and_be_invited_3488@localhost/res1'/>
*** User 2024-04-25 12:18:43.148 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3488@localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' id='push3b5264d49b021ef1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3488@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:18:43.148 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3488@localhost' to='alice_add_contact_and_be_invited_3488@localhost/res1' type='subscribed'/>
*** User 2024-04-25 12:18:43.149 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:18:43.153 ***🔗
bob_add_contact_and_be_invited_3488@localhost/res1 in
</stream:stream>
*** User 2024-04-25 12:18:43.154 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:18:43.154 ***🔗
alice_add_contact_and_be_invited_3488@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:18:43
=== successfully completed test case
=== === Returned value: ok