=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.82618.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/rest_client_suite.add_contact_and_invite.108164.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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/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_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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
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 => cets,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@df27fc96a068.2024-04-23_10.53.32"
=== Started at 2024-04-23 11:07:38
*** User 2024-04-23 11:07:38.829 ***🔗
alicE_add_contact_and_invite_2981@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-23 11:07:38.829 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e34ba1003940c72' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.829 ***🔗
alicE_add_contact_and_invite_2981@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-23 11:07:38.829 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 11:07:38.830 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.830 ***🔗
alicE_add_contact_and_invite_2981@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-23 11:07:38.831 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da47afb1fd410e46' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_2981@localhost'>
*** User 2024-04-23 11:07:38.831 ***🔗
alicE_add_contact_and_invite_2981@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-23 11:07:38.831 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 out
<iq type='set' id='2de5d66fc0d69cbd64d4f137151452d8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.831 ***🔗
alicE_add_contact_and_invite_2981@localhost/res1 in
<iq id='2de5d66fc0d69cbd64d4f137151452d8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_2981@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.831 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
<iq type='set' id='99c45e155fbf473c9a2eb4246a90101e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.832 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_2981@localhost/res1' id='99c45e155fbf473c9a2eb4246a90101e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.832 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.833 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
<presence from='alice_add_contact_and_invite_2981@localhost/res1' to='alice_add_contact_and_invite_2981@localhost/res1'/>
*** User 2024-04-23 11:07:38.834 ***🔗
bOb_add_contact_and_invite_2981@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-23 11:07:38.834 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a87622f302e32136' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.834 ***🔗
bOb_add_contact_and_invite_2981@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-23 11:07:38.834 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzI5ODEAbWFrcm9saWth</auth>
*** User 2024-04-23 11:07:38.835 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.835 ***🔗
bOb_add_contact_and_invite_2981@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-23 11:07:38.835 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11c5e27c76c4f1a5' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_2981@localhost'>
*** User 2024-04-23 11:07:38.835 ***🔗
bOb_add_contact_and_invite_2981@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-23 11:07:38.835 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 out
<iq type='set' id='9ee79782124ebfb85742eb6f2d08b110'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
bOb_add_contact_and_invite_2981@localhost/res1 in
<iq id='9ee79782124ebfb85742eb6f2d08b110' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_2981@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 out
<iq type='set' id='d2fa99aa74ea7d60b0a329c29cd96203'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_2981@localhost/res1' id='d2fa99aa74ea7d60b0a329c29cd96203' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.838 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
<presence from='bob_add_contact_and_invite_2981@localhost/res1' to='bob_add_contact_and_invite_2981@localhost/res1'/>
*** User 2024-04-23 11:07:38.845 ***🔗
REST request:
Code: 200
Req: {<0.82685.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b49f437567cae39d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2377}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-23 11:07:38.873 ***🔗
REST request:
Code: 204
Req: {<0.82711.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb76fcd11eadc723">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_2981@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>}],
<<>>,80,23103}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_2981@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-23 11:07:38.874 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
<iq from='bob_add_contact_and_invite_2981@localhost' to='bob_add_contact_and_invite_2981@localhost/res1' id='push5ab0c3989213ddcb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_2981@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.883 ***🔗
REST request:
Code: 200
Req: {<0.82745.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4632bfb2f5f2bf81">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2981@localhost\"}]">>,
214,2947}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-23 11:07:38.908 ***🔗
REST request:
Code: 204
Req: {<0.82775.0>,
<<"/api/contacts/alice_add_contact_and_invite_2981@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b871c810a686635">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>}],
<<>>,80,16141}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_2981@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body => <<"{\"action\":\"invite\"}">>,role => client,
return_headers => true}
*** User 2024-04-23 11:07:38.908 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
<iq from='bob_add_contact_and_invite_2981@localhost' to='bob_add_contact_and_invite_2981@localhost/res1' id='push811eedf9d87bdf34' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_add_contact_and_invite_2981@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.908 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2981@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2981@localhost/res1">>},
{<<"id">>,<<"push811eedf9d87bdf34">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2981@localhost">>},
{<<"subscription">>,<<"none">>}],
[]}]}]}
*** User 2024-04-23 11:07:38.908 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
<presence from='bob_add_contact_and_invite_2981@localhost' to='alice_add_contact_and_invite_2981@localhost/res1' type='subscribe'/>
*** User 2024-04-23 11:07:38.918 ***🔗
REST request:
Code: 200
Req: {<0.82832.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ee4c39ad3554b2c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2981@localhost\"}]">>,
213,3379}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-23 11:07:38.918 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
<iq type='set' id='f4080322c3d58e09c911c48f0786e062'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_2981@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.921 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
<iq from='alice_add_contact_and_invite_2981@localhost' to='alice_add_contact_and_invite_2981@localhost/res1' id='pushbee2cbaee39fc5a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bob' jid='bob_add_contact_and_invite_2981@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.921 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
<iq to='alice_add_contact_and_invite_2981@localhost' id='pushbee2cbaee39fc5a5' type='result'/>
*** User 2024-04-23 11:07:38.922 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
<iq from='alice_add_contact_and_invite_2981@localhost' to='alice_add_contact_and_invite_2981@localhost/res1' id='f4080322c3d58e09c911c48f0786e062' type='result'/>
*** User 2024-04-23 11:07:38.922 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_2981@localhost'/>
*** User 2024-04-23 11:07:38.926 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
<iq from='bob_add_contact_and_invite_2981@localhost' to='bob_add_contact_and_invite_2981@localhost/res1' id='push59fcd63d79917ad6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_2981@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.926 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2981@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2981@localhost/res1">>},
{<<"id">>,<<"push59fcd63d79917ad6">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"jid">>,
<<"alice_add_contact_and_invite_2981@localhost">>},
{<<"subscription">>,<<"to">>}],
[]}]}]}
*** User 2024-04-23 11:07:38.982 ***🔗
REST request:
Code: 200
Req: {<0.82878.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9a6a8ba4b7ba78e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk4MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_2981@localhost\"}]">>,
212,2954}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2981@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-23 11:07:38.982 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.982 ***🔗
bob_add_contact_and_invite_2981@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:07:38.983 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.983 ***🔗
alice_add_contact_and_invite_2981@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:07:39
=== successfully completed test case
=== === Returned value: ok