=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.82030.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@100e910b36a4.2024-03-13_08.15.22/big_tests.tests.rest_client_SUITE.logs/run.2024-03-13_08.29.29/rest_client_suite.add_contact_and_invite.171651.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@100e910b36a4.2024-03-13_08.15.22/big_tests.tests.rest_client_SUITE.logs/run.2024-03-13_08.29.29/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,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@100e910b36a4.2024-03-13_08.15.22"
=== Started at 2024-03-13 08:29:30
*** User 2024-03-13 08:29:30.869 ***🔗
alicE_add_contact_and_invite_2944@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-13 08:29:30.870 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b68f8739c9d98ca8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-13 08:29:30.870 ***🔗
alicE_add_contact_and_invite_2944@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-13 08:29:30.870 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NABtYXR5Z3J5c2E=</auth>
*** User 2024-03-13 08:29:30.871 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-13 08:29:30.871 ***🔗
alicE_add_contact_and_invite_2944@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-13 08:29:30.871 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2261be28a8f98ad3' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_2944@localhost'>
*** User 2024-03-13 08:29:30.871 ***🔗
alicE_add_contact_and_invite_2944@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-13 08:29:30.872 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 out
<iq type='set' id='d02a8b0197d695435c02f0c90533eee9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-13 08:29:30.872 ***🔗
alicE_add_contact_and_invite_2944@localhost/res1 in
<iq id='d02a8b0197d695435c02f0c90533eee9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_2944@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-13 08:29:30.872 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
<iq type='set' id='34a2a3bc6f45bbbe650822f1830b4a97'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:29:30.873 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_2944@localhost/res1' id='34a2a3bc6f45bbbe650822f1830b4a97' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:29:30.873 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
<presence/>
*** User 2024-03-13 08:29:30.874 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
<presence from='alice_add_contact_and_invite_2944@localhost/res1' to='alice_add_contact_and_invite_2944@localhost/res1'/>
*** User 2024-03-13 08:29:30.875 ***🔗
bOb_add_contact_and_invite_2944@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-13 08:29:30.875 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1df5c0c662500d80' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-13 08:29:30.875 ***🔗
bOb_add_contact_and_invite_2944@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-13 08:29:30.875 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzI5NDQAbWFrcm9saWth</auth>
*** User 2024-03-13 08:29:30.876 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-13 08:29:30.876 ***🔗
bOb_add_contact_and_invite_2944@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-13 08:29:30.876 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b9cec025dff5b366' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_2944@localhost'>
*** User 2024-03-13 08:29:30.876 ***🔗
bOb_add_contact_and_invite_2944@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-13 08:29:30.877 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 out
<iq type='set' id='35c79eba4ae7122ffa1e2b0b6ad2c203'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-13 08:29:30.877 ***🔗
bOb_add_contact_and_invite_2944@localhost/res1 in
<iq id='35c79eba4ae7122ffa1e2b0b6ad2c203' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_2944@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-13 08:29:30.877 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 out
<iq type='set' id='cedcf76c938bf6a51ba6867f1b93bd2b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:29:30.878 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_2944@localhost/res1' id='cedcf76c938bf6a51ba6867f1b93bd2b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-13 08:29:30.878 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 out
<presence/>
*** User 2024-03-13 08:29:30.880 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
<presence from='bob_add_contact_and_invite_2944@localhost/res1' to='bob_add_contact_and_invite_2944@localhost/res1'/>
*** User 2024-03-13 08:29:30.888 ***🔗
REST request:
Code: 200
Req: {<0.82098.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"496833b0d2dafd5d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2374}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-13 08:29:30.898 ***🔗
REST request:
Code: 204
Req: {<0.82124.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c8d1b37cf64700f8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_2944@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>}],
<<>>,80,3398}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_2944@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-13 08:29:30.898 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
<iq from='bob_add_contact_and_invite_2944@localhost' to='bob_add_contact_and_invite_2944@localhost/res1' id='push284f6fbccde64f1a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_2944@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-13 08:29:30.928 ***🔗
REST request:
Code: 200
Req: {<0.82157.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"27433a7b6d9ec425">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2944@localhost\"}]">>,
214,22030}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-13 08:29:30.938 ***🔗
REST request:
Code: 204
Req: {<0.82193.0>,
<<"/api/contacts/alice_add_contact_and_invite_2944@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91d731e462b918d5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>}],
<<>>,80,4911}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_2944@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body => <<"{\"action\":\"invite\"}">>,role => client,
return_headers => true}
*** User 2024-03-13 08:29:30.938 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
<iq from='bob_add_contact_and_invite_2944@localhost' to='bob_add_contact_and_invite_2944@localhost/res1' id='push48fe0e518c63afba' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_add_contact_and_invite_2944@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-13 08:29:30.938 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2944@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2944@localhost/res1">>},
{<<"id">>,<<"push48fe0e518c63afba">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2944@localhost">>},
{<<"subscription">>,<<"none">>}],
[]}]}]}
*** User 2024-03-13 08:29:30.938 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
<presence from='bob_add_contact_and_invite_2944@localhost' to='alice_add_contact_and_invite_2944@localhost/res1' type='subscribe'/>
*** User 2024-03-13 08:29:30.947 ***🔗
REST request:
Code: 200
Req: {<0.82221.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d0178057cc671cb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2944@localhost\"}]">>,
213,3413}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-13 08:29:30.947 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
<iq type='set' id='5a5bb89975ebeae4ed0b4fafd9c4ae05'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_2944@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-03-13 08:29:30.950 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
<iq from='alice_add_contact_and_invite_2944@localhost' to='alice_add_contact_and_invite_2944@localhost/res1' id='push857d90fb83ac3d19' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bob' jid='bob_add_contact_and_invite_2944@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-13 08:29:30.950 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
<iq to='alice_add_contact_and_invite_2944@localhost' id='push857d90fb83ac3d19' type='result'/>
*** User 2024-03-13 08:29:30.950 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
<iq from='alice_add_contact_and_invite_2944@localhost' to='alice_add_contact_and_invite_2944@localhost/res1' id='5a5bb89975ebeae4ed0b4fafd9c4ae05' type='result'/>
*** User 2024-03-13 08:29:30.950 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_2944@localhost'/>
*** User 2024-03-13 08:29:30.956 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
<iq from='bob_add_contact_and_invite_2944@localhost' to='bob_add_contact_and_invite_2944@localhost/res1' id='push08af7abddfde88c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_2944@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-13 08:29:30.956 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2944@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2944@localhost/res1">>},
{<<"id">>,<<"push08af7abddfde88c3">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"jid">>,
<<"alice_add_contact_and_invite_2944@localhost">>},
{<<"subscription">>,<<"to">>}],
[]}]}]}
*** User 2024-03-13 08:29:30.966 ***🔗
REST request:
Code: 200
Req: {<0.82272.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e752d1b53a8543cb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 13 Mar 2024 08:29:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_2944@localhost\"}]">>,
212,4069}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2944@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-13 08:29:30.967 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 out
</stream:stream>
*** User 2024-03-13 08:29:30.967 ***🔗
bob_add_contact_and_invite_2944@localhost/res1 in
</stream:stream>
*** User 2024-03-13 08:29:30.967 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 out
</stream:stream>
*** User 2024-03-13 08:29:30.968 ***🔗
alice_add_contact_and_invite_2944@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-13 08:29:30
=== successfully completed test case
=== === Returned value: ok