=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.75504.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_client_SUITE.logs/run.2024-02-23_17.45.42/rest_client_suite.add_contact_and_be_invited.153347.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_client_SUITE.logs/run.2024-02-23_17.45.42/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_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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@5f60ef475eab.2024-02-23_17.31.31"
=== Started at 2024-02-23 17:45:44
*** User 2024-02-23 17:45:44.908 ***🔗
alicE_add_contact_and_be_invited_2895@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-02-23 17:45:44.908 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8155854d07a7427' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:44.909 ***🔗
alicE_add_contact_and_be_invited_2895@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-02-23 17:45:44.909 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTUAbWF0eWdyeXNh</auth>
*** User 2024-02-23 17:45:44.910 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:44.910 ***🔗
alicE_add_contact_and_be_invited_2895@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-02-23 17:45:44.910 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5aec79f6c6dceb34' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_2895@domain.example.com'>
*** User 2024-02-23 17:45:44.910 ***🔗
alicE_add_contact_and_be_invited_2895@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-02-23 17:45:44.910 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 out
<iq type='set' id='4723e975e78f9870c4ac49f1e0de5f78'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:44.911 ***🔗
alicE_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq id='4723e975e78f9870c4ac49f1e0de5f78' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2895@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:44.911 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 out
<iq type='set' id='9a2aa5f58267c989ae05926a92c29b85'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:44.911 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' id='9a2aa5f58267c989ae05926a92c29b85' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:44.911 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:44.913 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2895@domain.example.com/res1' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1'/>
*** User 2024-02-23 17:45:44.914 ***🔗
bOb_add_contact_and_be_invited_2895@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-02-23 17:45:44.914 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6feeecbf05ffa5a2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:44.914 ***🔗
bOb_add_contact_and_be_invited_2895@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-02-23 17:45:44.914 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yODk1AG1ha3JvbGlrYQ==</auth>
*** User 2024-02-23 17:45:44.915 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:44.915 ***🔗
bOb_add_contact_and_be_invited_2895@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-02-23 17:45:44.916 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='671a8b5affb50070' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_2895@domain.example.com'>
*** User 2024-02-23 17:45:44.916 ***🔗
bOb_add_contact_and_be_invited_2895@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-02-23 17:45:44.916 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 out
<iq type='set' id='ed30704571588da6b1b8d2fdf3d51f2c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:44.916 ***🔗
bOb_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq id='ed30704571588da6b1b8d2fdf3d51f2c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2895@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:44.916 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 out
<iq type='set' id='360ce7db6776f2dcce7667f3c00c0857'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:44.917 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_be_invited_2895@domain.example.com/res1' id='360ce7db6776f2dcce7667f3c00c0857' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:44.917 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:44.918 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2895@domain.example.com/res1' to='bob_add_contact_and_be_invited_2895@domain.example.com/res1'/>
*** User 2024-02-23 17:45:44.932 ***🔗
REST request:
Code: 200
Req: {<0.75568.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e071a2555a4b8131">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,6077}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2895@domain.example.com">>,
<<"makrolika">>},
role => client,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-02-23 17:45:44.973 ***🔗
REST request:
Code: 204
Req: {<0.75597.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"869edf1199dde73c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2895@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:44 GMT">>}],
<<>>,80,35967}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2895@domain.example.com">>,
<<"makrolika">>},
role => client,method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2895@domain.example.com\"}">>,
return_headers => true}
*** User 2024-02-23 17:45:44.973 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2895@domain.example.com' to='bob_add_contact_and_be_invited_2895@domain.example.com/res1' id='push19ef8602461fc226' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2895@domain.example.com'/>
</query>
</iq>
*** User 2024-02-23 17:45:44.983 ***🔗
REST request:
Code: 200
Req: {<0.75634.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b96799c2eca301da">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2895@domain.example.com\"}]">>,
228,4265}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2895@domain.example.com">>,
<<"makrolika">>},
role => client,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-02-23 17:45:44.983 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 out
<iq type='set' id='770137691c36d6dc4306b41851cbcf96'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2895@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2024-02-23 17:45:44.987 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2895@domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' id='push4ed0c8b95c6bf769' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2895@domain.example.com'/>
</query>
</iq>
*** User 2024-02-23 17:45:44.987 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2895@domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' id='770137691c36d6dc4306b41851cbcf96' type='result'/>
*** User 2024-02-23 17:45:44.987 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2895@domain.example.com'/>
*** User 2024-02-23 17:45:44.993 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2895@domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' id='push65cbe22d1f9ea533' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2895@domain.example.com'/>
</query>
</iq>
*** User 2024-02-23 17:45:44.993 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2895@domain.example.com' to='bob_add_contact_and_be_invited_2895@domain.example.com/res1' type='subscribe'/>
*** User 2024-02-23 17:45:45.004 ***🔗
REST request:
Code: 200
Req: {<0.75694.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b34737daaa90aa2d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2895@domain.example.com\"}]">>,
226,5189}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2895@domain.example.com">>,
<<"makrolika">>},
role => client,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-02-23 17:45:45.074 ***🔗
REST request:
Code: 204
Req: {<0.75728.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_2895@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3632b09fb79e0a33">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI4OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:44 GMT">>}],
<<>>,80,65006}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2895@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2895@domain.example.com">>,
<<"makrolika">>},
role => client,method => <<"PUT">>,
body => <<"{\"action\":\"accept\"}">>,return_headers => true}
*** User 2024-02-23 17:45:45.074 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2895@domain.example.com' to='bob_add_contact_and_be_invited_2895@domain.example.com/res1' id='push4f2c3dd08604e199' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2895@domain.example.com'/>
</query>
</iq>
*** User 2024-02-23 17:45:45.075 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2895@domain.example.com/res1' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1'/>
*** User 2024-02-23 17:45:45.075 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2895@domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' id='push993738cf6c4582e6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2895@domain.example.com'/>
</query>
</iq>
*** User 2024-02-23 17:45:45.075 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2895@domain.example.com' to='alice_add_contact_and_be_invited_2895@domain.example.com/res1' type='subscribed'/>
*** User 2024-02-23 17:45:45.075 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:45.076 ***🔗
bob_add_contact_and_be_invited_2895@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-23 17:45:45.076 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:45.076 ***🔗
alice_add_contact_and_be_invited_2895@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-23 17:45:45
=== successfully completed test case
=== === Returned value: ok