=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.85663.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/rest_client_suite.add_contact_and_invite.221314.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_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_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_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@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:18:05
*** User 2024-03-08 09:18:05.609 ***🔗
alicE_add_contact_and_invite_3201@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-03-08 09:18:05.609 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d8e64f5c71cb5272' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:18:05.610 ***🔗
alicE_add_contact_and_invite_3201@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-03-08 09:18:05.610 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-08 09:18:05.611 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:18:05.611 ***🔗
alicE_add_contact_and_invite_3201@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-03-08 09:18:05.611 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c62b571f786ac5f9' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_3201@localhost'>
*** User 2024-03-08 09:18:05.611 ***🔗
alicE_add_contact_and_invite_3201@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-03-08 09:18:05.611 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 out
<iq type='set' id='f8f5dfced2ce537c1563a31673b81038'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:18:05.612 ***🔗
alicE_add_contact_and_invite_3201@localhost/res1 in
<iq id='f8f5dfced2ce537c1563a31673b81038' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_3201@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:18:05.612 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
<iq type='set' id='62d019ad5daca5897cedde1332a12724'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.612 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_3201@localhost/res1' id='62d019ad5daca5897cedde1332a12724' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.612 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
<presence/>
*** User 2024-03-08 09:18:05.616 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
<presence from='alice_add_contact_and_invite_3201@localhost/res1' to='alice_add_contact_and_invite_3201@localhost/res1'/>
*** User 2024-03-08 09:18:05.616 ***🔗
bOb_add_contact_and_invite_3201@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-03-08 09:18:05.617 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7022491a72ea11ce' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:18:05.617 ***🔗
bOb_add_contact_and_invite_3201@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-03-08 09:18:05.617 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzMyMDEAbWFrcm9saWth</auth>
*** User 2024-03-08 09:18:05.621 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:18:05.621 ***🔗
bOb_add_contact_and_invite_3201@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-03-08 09:18:05.622 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='98fde7ca11b9a0fd' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_3201@localhost'>
*** User 2024-03-08 09:18:05.622 ***🔗
bOb_add_contact_and_invite_3201@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-03-08 09:18:05.622 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 out
<iq type='set' id='000d0fac50146f0e33331378256a0e29'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:18:05.622 ***🔗
bOb_add_contact_and_invite_3201@localhost/res1 in
<iq id='000d0fac50146f0e33331378256a0e29' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_3201@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:18:05.622 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 out
<iq type='set' id='e1d6514d0cbb7a41bb5a8483226b361d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.623 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_3201@localhost/res1' id='e1d6514d0cbb7a41bb5a8483226b361d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.623 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 out
<presence/>
*** User 2024-03-08 09:18:05.626 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
<presence from='bob_add_contact_and_invite_3201@localhost/res1' to='bob_add_contact_and_invite_3201@localhost/res1'/>
*** User 2024-03-08 09:18:05.638 ***🔗
REST request:
Code: 200
Req: {<0.85734.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"917f9a41899e46a8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5317}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.697 ***🔗
REST request:
Code: 204
Req: {<0.85767.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"810b9f996abd181a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_3201@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>}],
<<>>,80,52523}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_3201@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-08 09:18:05.697 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
<iq from='bob_add_contact_and_invite_3201@localhost' to='bob_add_contact_and_invite_3201@localhost/res1' id='pushca2411614719f262' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_3201@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.718 ***🔗
REST request:
Code: 200
Req: {<0.85796.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18baa0f4e0dd4b14">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3201@localhost\"}]">>,
214,8288}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.789 ***🔗
REST request:
Code: 204
Req: {<0.85838.0>,
<<"/api/contacts/alice_add_contact_and_invite_3201@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4dedf020209e1427">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>}],
<<>>,80,60483}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_3201@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,body => <<"{\"action\":\"invite\"}">>,
role => client,return_headers => true}
*** User 2024-03-08 09:18:05.789 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
<iq from='bob_add_contact_and_invite_3201@localhost' to='bob_add_contact_and_invite_3201@localhost/res1' id='push6a651be1bb3ea67f' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_3201@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.790 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3201@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3201@localhost/res1">>},
{<<"id">>,<<"push6a651be1bb3ea67f">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_3201@localhost">>}],
[]}]}]}
*** User 2024-03-08 09:18:05.790 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
<presence from='bob_add_contact_and_invite_3201@localhost' to='alice_add_contact_and_invite_3201@localhost/res1' type='subscribe'/>
*** User 2024-03-08 09:18:05.801 ***🔗
REST request:
Code: 200
Req: {<0.85896.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aded471f682af369">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3201@localhost\"}]">>,
213,5429}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.801 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
<iq type='set' id='58e0d1662532dfd19a9d148042aafdbe'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_3201@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.810 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
<iq from='alice_add_contact_and_invite_3201@localhost' to='alice_add_contact_and_invite_3201@localhost/res1' id='pushab84729c9700a39a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_3201@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.810 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
<iq to='alice_add_contact_and_invite_3201@localhost' id='pushab84729c9700a39a' type='result'/>
*** User 2024-03-08 09:18:05.810 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
<iq from='alice_add_contact_and_invite_3201@localhost' to='alice_add_contact_and_invite_3201@localhost/res1' id='58e0d1662532dfd19a9d148042aafdbe' type='result'/>
*** User 2024-03-08 09:18:05.810 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_3201@localhost'/>
*** User 2024-03-08 09:18:05.824 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
<iq from='bob_add_contact_and_invite_3201@localhost' to='bob_add_contact_and_invite_3201@localhost/res1' id='push8392aec2cbaa4e91' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_3201@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.824 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3201@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3201@localhost/res1">>},
{<<"id">>,<<"push8392aec2cbaa4e91">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_3201@localhost">>}],
[]}]}]}
*** User 2024-03-08 09:18:05.834 ***🔗
REST request:
Code: 200
Req: {<0.85931.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7757d450e961ed7f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzIwMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_3201@localhost\"}]">>,
212,4427}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_invite_3201@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.835 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:05.835 ***🔗
bob_add_contact_and_invite_3201@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:18:05.835 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:05.835 ***🔗
alice_add_contact_and_invite_3201@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 09:18:05
=== successfully completed test case
=== === Returned value: ok