=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.94078.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@6b612e74bd51.2024-04-16_10.12.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.28.43/rest_client_suite.add_contact_and_be_invited.153348.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@6b612e74bd51.2024-04-16_10.12.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.28.43/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,buffer_max => 100,ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600,backend => mnesia},
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@6b612e74bd51.2024-04-16_10.12.39"
=== Started at 2024-04-16 10:28:45
*** User 2024-04-16 10:28:45.698 ***🔗
alicE_add_contact_and_be_invited_3663@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:28:45.699 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='156d83f44aff5b35' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:28:45.699 ***🔗
alicE_add_contact_and_be_invited_3663@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:28:45.699 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjMAbWF0eWdyeXNh</auth>
*** User 2024-04-16 10:28:45.700 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:28:45.700 ***🔗
alicE_add_contact_and_be_invited_3663@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:28:45.701 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68707fab55ad8430' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3663@domain.example.com'>
*** User 2024-04-16 10:28:45.701 ***🔗
alicE_add_contact_and_be_invited_3663@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:28:45.701 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 out
<iq type='set' id='8319fb8beed4e65f5b9ca5c12c3db2f5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:28:45.701 ***🔗
alicE_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq id='8319fb8beed4e65f5b9ca5c12c3db2f5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3663@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:28:45.701 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 out
<iq type='set' id='901975e73002fa6734ca35b1ac917e4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:28:45.702 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' id='901975e73002fa6734ca35b1ac917e4b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:28:45.702 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:28:45.703 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_3663@domain.example.com/res1' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1'/>
*** User 2024-04-16 10:28:45.704 ***🔗
bOb_add_contact_and_be_invited_3663@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:28:45.704 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1c34f4e3b5a71c55' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:28:45.705 ***🔗
bOb_add_contact_and_be_invited_3663@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:28:45.705 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zNjYzAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-16 10:28:45.706 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:28:45.706 ***🔗
bOb_add_contact_and_be_invited_3663@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:28:45.706 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e987a83a8f5e8515' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3663@domain.example.com'>
*** User 2024-04-16 10:28:45.707 ***🔗
bOb_add_contact_and_be_invited_3663@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:28:45.707 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 out
<iq type='set' id='65db90884b6f1c1c13df8f23595404da'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:28:45.707 ***🔗
bOb_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq id='65db90884b6f1c1c13df8f23595404da' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3663@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:28:45.707 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 out
<iq type='set' id='554ebc8e5757d012e773276a5603ae16'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:28:45.708 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_be_invited_3663@domain.example.com/res1' id='554ebc8e5757d012e773276a5603ae16' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:28:45.708 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:28:45.710 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3663@domain.example.com/res1' to='bob_add_contact_and_be_invited_3663@domain.example.com/res1'/>
*** User 2024-04-16 10:28:45.731 ***🔗
REST request:
Code: 200
Req: {<0.94150.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5bc7727872df9c73">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjNAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:28:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,11327}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3663@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,return_headers => true}
*** User 2024-04-16 10:28:45.745 ***🔗
REST request:
Code: 204
Req: {<0.94179.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6194f5de48d8769a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjNAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3663@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:28:45 GMT">>}],
<<>>,80,6392}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3663@domain.example.com\"}">>,
role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3663@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,return_headers => true}
*** User 2024-04-16 10:28:45.746 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_3663@domain.example.com' to='bob_add_contact_and_be_invited_3663@domain.example.com/res1' id='push7c6630fd680a810c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3663@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.759 ***🔗
REST request:
Code: 200
Req: {<0.94211.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d4c18e30e6ab730e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjNAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:28:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3663@domain.example.com\"}]">>,
228,6896}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3663@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,return_headers => true}
*** User 2024-04-16 10:28:45.759 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 out
<iq type='set' id='286c951eb243935e822c33a3ffddcdfc'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3663@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.762 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3663@domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' id='push9f742f95d9f602ee' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3663@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.763 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3663@domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' id='286c951eb243935e822c33a3ffddcdfc' type='result'/>
*** User 2024-04-16 10:28:45.763 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3663@domain.example.com'/>
*** User 2024-04-16 10:28:45.772 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3663@domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' id='push17d366c16e823c37' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3663@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.772 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_3663@domain.example.com' to='bob_add_contact_and_be_invited_3663@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 10:28:45.838 ***🔗
REST request:
Code: 200
Req: {<0.94269.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3f2d20de3eb9ed66">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjNAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:28:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3663@domain.example.com\"}]">>,
226,4957}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3663@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,return_headers => true}
*** User 2024-04-16 10:28:45.859 ***🔗
REST request:
Code: 204
Req: {<0.94308.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3663@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a9592132dd75a77f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM2NjNAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:28:45 GMT">>}],
<<>>,80,14059}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3663@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3663@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,return_headers => true}
*** User 2024-04-16 10:28:45.859 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_3663@domain.example.com' to='bob_add_contact_and_be_invited_3663@domain.example.com/res1' id='pusha7981f72e50593a8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3663@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.859 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3663@domain.example.com/res1' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1'/>
*** User 2024-04-16 10:28:45.859 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_3663@domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' id='push7c546fc0e6296b23' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3663@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:28:45.859 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_3663@domain.example.com' to='alice_add_contact_and_be_invited_3663@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 10:28:45.860 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:28:45.860 ***🔗
bob_add_contact_and_be_invited_3663@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 10:28:45.860 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:28:45.861 ***🔗
alice_add_contact_and_be_invited_3663@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:28:45
=== successfully completed test case
=== === Returned value: ok