=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.88658.0>},
{muc_light_host,<<"muclight.localhost">>},
{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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/rest_client_suite.add_contact_and_invite.113028.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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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@459df0fd388f.2024-04-10_14.24.42"
=== Started at 2024-04-10 14:41:32
*** User 2024-04-10 14:41:32.399 ***🔗
alicE_add_contact_and_invite_3369@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-10 14:41:32.399 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72b926f4117cc3ca' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:41:32.399 ***🔗
alicE_add_contact_and_invite_3369@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-10 14:41:32.399 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-10 14:41:32.400 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:41:32.400 ***🔗
alicE_add_contact_and_invite_3369@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-10 14:41:32.400 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b717f04c1a372b5' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_3369@localhost'>
*** User 2024-04-10 14:41:32.401 ***🔗
alicE_add_contact_and_invite_3369@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-10 14:41:32.401 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 out
<iq type='set' id='2f3b0257f6d909757d0370cdd5298fb2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:41:32.401 ***🔗
alicE_add_contact_and_invite_3369@localhost/res1 in
<iq id='2f3b0257f6d909757d0370cdd5298fb2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:41:32.401 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
<iq type='set' id='36d20a6a5f3b53f0f0527af8ba81b26c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:32.401 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_3369@localhost/res1' id='36d20a6a5f3b53f0f0527af8ba81b26c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:32.402 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 14:41:32.403 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
<presence from='alice_add_contact_and_invite_3369@localhost/res1' to='alice_add_contact_and_invite_3369@localhost/res1'/>
*** User 2024-04-10 14:41:32.404 ***🔗
bOb_add_contact_and_invite_3369@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-10 14:41:32.404 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44427993d6264ac9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:41:32.404 ***🔗
bOb_add_contact_and_invite_3369@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-10 14:41:32.404 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzMzNjkAbWFrcm9saWth</auth>
*** User 2024-04-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@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-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb6ca3e682613ed5' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_3369@localhost'>
*** User 2024-04-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@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-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 out
<iq type='set' id='3927d585296d50f425b96966cb8a2315'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:41:32.406 ***🔗
bOb_add_contact_and_invite_3369@localhost/res1 in
<iq id='3927d585296d50f425b96966cb8a2315' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:41:32.406 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 out
<iq type='set' id='f382c8026011c39a330164bad0f68748'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:32.407 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_3369@localhost/res1' id='f382c8026011c39a330164bad0f68748' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:32.407 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 14:41:32.408 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
<presence from='bob_add_contact_and_invite_3369@localhost/res1' to='bob_add_contact_and_invite_3369@localhost/res1'/>
*** User 2024-04-10 14:41:32.418 ***🔗
REST request:
Code: 200
Req: {<0.88740.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59cfc2998aa9b97a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4979}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.428 ***🔗
REST request:
Code: 204
Req: {<0.88771.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f8e75c882d90ca2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:31 GMT">>}],
<<>>,80,4519}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_3369@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.428 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
<iq from='bob_add_contact_and_invite_3369@localhost' to='bob_add_contact_and_invite_3369@localhost/res1' id='push384a2c4199a5bfd5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:41:32.480 ***🔗
REST request:
Code: 200
Req: {<0.88813.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9665a9aa1dbd7d97">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3369@localhost\"}]">>,
214,46110}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.494 ***🔗
REST request:
Code: 204
Req: {<0.88841.0>,
<<"/api/contacts/alice_add_contact_and_invite_3369@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0eb2ec73a560ced">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>}],
<<>>,80,9145}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_3369@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.494 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
<iq from='bob_add_contact_and_invite_3369@localhost' to='bob_add_contact_and_invite_3369@localhost/res1' id='pushd6e0fad67113d3f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_add_contact_and_invite_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:41:32.494 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3369@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3369@localhost/res1">>},
{<<"id">>,<<"pushd6e0fad67113d3f0">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_3369@localhost">>},
{<<"subscription">>,<<"none">>}],
[]}]}]}
*** User 2024-04-10 14:41:32.494 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
<presence from='bob_add_contact_and_invite_3369@localhost' to='alice_add_contact_and_invite_3369@localhost/res1' type='subscribe'/>
*** User 2024-04-10 14:41:32.504 ***🔗
REST request:
Code: 200
Req: {<0.88888.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0322467214a68883">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3369@localhost\"}]">>,
213,5213}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.504 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
<iq type='set' id='1037c45553f70af383c237087468c812'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_3369@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-04-10 14:41:32.507 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
<iq from='alice_add_contact_and_invite_3369@localhost' to='alice_add_contact_and_invite_3369@localhost/res1' id='pushb617d6fa24245c19' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bob' jid='bob_add_contact_and_invite_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:41:32.507 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
<iq to='alice_add_contact_and_invite_3369@localhost' id='pushb617d6fa24245c19' type='result'/>
*** User 2024-04-10 14:41:32.507 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
<iq from='alice_add_contact_and_invite_3369@localhost' to='alice_add_contact_and_invite_3369@localhost/res1' id='1037c45553f70af383c237087468c812' type='result'/>
*** User 2024-04-10 14:41:32.507 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_3369@localhost'/>
*** User 2024-04-10 14:41:32.512 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
<iq from='bob_add_contact_and_invite_3369@localhost' to='bob_add_contact_and_invite_3369@localhost/res1' id='push0f38d1efce671e90' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_3369@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 14:41:32.512 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3369@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3369@localhost/res1">>},
{<<"id">>,<<"push0f38d1efce671e90">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"jid">>,
<<"alice_add_contact_and_invite_3369@localhost">>},
{<<"subscription">>,<<"to">>}],
[]}]}]}
*** User 2024-04-10 14:41:32.519 ***🔗
REST request:
Code: 200
Req: {<0.88924.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02081fc32ea71f7d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_3369@localhost\"}]">>,
212,2834}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"bob_add_contact_and_invite_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:32.520 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 14:41:32.520 ***🔗
bob_add_contact_and_invite_3369@localhost/res1 in
</stream:stream>
*** User 2024-04-10 14:41:32.520 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 14:41:32.520 ***🔗
alice_add_contact_and_invite_3369@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 14:41:32
=== successfully completed test case
=== === Returned value: ok