=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.77568.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@70cf842b3ffd.2024-03-20_18.07.40/big_tests.tests.rest_client_SUITE.logs/run.2024-03-20_18.22.30/rest_client_suite.add_contact_and_be_invited.151427.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@70cf842b3ffd.2024-03-20_18.07.40/big_tests.tests.rest_client_SUITE.logs/run.2024-03-20_18.22.30/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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_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@70cf842b3ffd.2024-03-20_18.07.40"
=== Started at 2024-03-20 18:22:33
*** User 2024-03-20 18:22:33.117 ***🔗
alicE_add_contact_and_be_invited_2980@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-03-20 18:22:33.118 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c63c88f85ed5185' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-20 18:22:33.118 ***🔗
alicE_add_contact_and_be_invited_2980@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-03-20 18:22:33.118 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODAAbWF0eWdyeXNh</auth>
*** User 2024-03-20 18:22:33.120 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-20 18:22:33.120 ***🔗
alicE_add_contact_and_be_invited_2980@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-03-20 18:22:33.120 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5dcb8c7a7084476' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_2980@domain.example.com'>
*** User 2024-03-20 18:22:33.120 ***🔗
alicE_add_contact_and_be_invited_2980@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-03-20 18:22:33.120 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 out
<iq type='set' id='15798d4926bafa3aceabcca37a394b7b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-20 18:22:33.121 ***🔗
alicE_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq id='15798d4926bafa3aceabcca37a394b7b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2980@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-20 18:22:33.121 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 out
<iq type='set' id='897422f1a978a4d6990992cc405c02bd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:22:33.121 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' id='897422f1a978a4d6990992cc405c02bd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:22:33.121 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 out
<presence/>
*** User 2024-03-20 18:22:33.123 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2980@domain.example.com/res1' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1'/>
*** User 2024-03-20 18:22:33.124 ***🔗
bOb_add_contact_and_be_invited_2980@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-03-20 18:22:33.124 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b7292bf4435b312' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-20 18:22:33.125 ***🔗
bOb_add_contact_and_be_invited_2980@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-03-20 18:22:33.125 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yOTgwAG1ha3JvbGlrYQ==</auth>
*** User 2024-03-20 18:22:33.134 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-20 18:22:33.134 ***🔗
bOb_add_contact_and_be_invited_2980@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-03-20 18:22:33.135 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb80c7272d7428bd' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_2980@domain.example.com'>
*** User 2024-03-20 18:22:33.135 ***🔗
bOb_add_contact_and_be_invited_2980@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-03-20 18:22:33.135 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 out
<iq type='set' id='f330da05b97a3848bd37b6d336e797ae'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-20 18:22:33.135 ***🔗
bOb_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq id='f330da05b97a3848bd37b6d336e797ae' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2980@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-20 18:22:33.135 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 out
<iq type='set' id='0e22f7c8ea1ef3130de0f2793d1ce36c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:22:33.136 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_be_invited_2980@domain.example.com/res1' id='0e22f7c8ea1ef3130de0f2793d1ce36c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:22:33.136 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 out
<presence/>
*** User 2024-03-20 18:22:33.137 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2980@domain.example.com/res1' to='bob_add_contact_and_be_invited_2980@domain.example.com/res1'/>
*** User 2024-03-20 18:22:33.146 ***🔗
REST request:
Code: 200
Req: {<0.77627.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc863931066d4531">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Mar 2024 18:22:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3793}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2980@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-20 18:22:33.170 ***🔗
REST request:
Code: 204
Req: {<0.77636.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa7aea126f48f9bf">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2980@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Mar 2024 18:22:32 GMT">>}],
<<>>,80,19577}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2980@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_2980@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-20 18:22:33.171 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2980@domain.example.com' to='bob_add_contact_and_be_invited_2980@domain.example.com/res1' id='pusha032b2509d274964' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_2980@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.181 ***🔗
REST request:
Code: 200
Req: {<0.77665.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aae3b0a92996e162">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Mar 2024 18:22:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2980@domain.example.com\"}]">>,
228,3750}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2980@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-20 18:22:33.182 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 out
<iq type='set' id='4fefc86ed810f63ea174c187bfe7cb42'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2980@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.200 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2980@domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' id='pushf91ae853fd4fae66' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_2980@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.200 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2980@domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' id='4fefc86ed810f63ea174c187bfe7cb42' type='result'/>
*** User 2024-03-20 18:22:33.200 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2980@domain.example.com'/>
*** User 2024-03-20 18:22:33.271 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2980@domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' id='push1976b4b78262fc63' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_2980@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.271 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2980@domain.example.com' to='bob_add_contact_and_be_invited_2980@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-20 18:22:33.286 ***🔗
REST request:
Code: 200
Req: {<0.77768.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e49acc7d3ed82f20">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Mar 2024 18:22:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2980@domain.example.com\"}]">>,
226,9293}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2980@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-20 18:22:33.314 ***🔗
REST request:
Code: 204
Req: {<0.77792.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_2980@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"091ca25947b9488c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Mar 2024 18:22:32 GMT">>}],
<<>>,80,21202}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2980@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => client,body => <<"{\"action\":\"accept\"}">>,
method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_2980@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-20 18:22:33.315 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2980@domain.example.com' to='bob_add_contact_and_be_invited_2980@domain.example.com/res1' id='push749c33284425da83' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_2980@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.315 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2980@domain.example.com/res1' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1'/>
*** User 2024-03-20 18:22:33.315 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2980@domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' id='pushdd980c238f5bf801' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_2980@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-20 18:22:33.315 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2980@domain.example.com' to='alice_add_contact_and_be_invited_2980@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-20 18:22:33.315 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-20 18:22:33.316 ***🔗
bob_add_contact_and_be_invited_2980@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-20 18:22:33.316 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-20 18:22:33.316 ***🔗
alice_add_contact_and_be_invited_2980@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-20 18:22:33
=== successfully completed test case
=== === Returned value: ok