=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.80295.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.add_contact_and_invite.151555.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/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 => 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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:53
*** User 2024-03-11 09:09:53.611 ***🔗
alicE_add_contact_and_invite_2968@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-11 09:09:53.611 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac924e5bb69dec11' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_contact_and_invite_2968@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-11 09:09:53.612 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OABtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@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-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbdf4f5f0eed935a' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_2968@localhost'>
*** User 2024-03-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@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-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 out
<iq type='set' id='f3b4a2b545535bbcae4289238c9545fa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.613 ***🔗
alicE_add_contact_and_invite_2968@localhost/res1 in
<iq id='f3b4a2b545535bbcae4289238c9545fa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_2968@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
<iq type='set' id='478f1ffb86c959ef00d0d9d7afc8ac49'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_2968@localhost/res1' id='478f1ffb86c959ef00d0d9d7afc8ac49' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.616 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
<presence from='alice_add_contact_and_invite_2968@localhost/res1' to='alice_add_contact_and_invite_2968@localhost/res1'/>
*** User 2024-03-11 09:09:53.616 ***🔗
bOb_add_contact_and_invite_2968@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-11 09:09:53.617 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0bbdcd075edc35ff' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.617 ***🔗
bOb_add_contact_and_invite_2968@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-11 09:09:53.617 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzI5NjgAbWFrcm9saWth</auth>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_invite_2968@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-11 09:09:53.618 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85c0e13b87ffadd4' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_2968@localhost'>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_invite_2968@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-11 09:09:53.618 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 out
<iq type='set' id='aa5785bcab200b483df05523ef0c9f04'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bOb_add_contact_and_invite_2968@localhost/res1 in
<iq id='aa5785bcab200b483df05523ef0c9f04' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_2968@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 out
<iq type='set' id='6f9760d71725fede9aacbb7654d42564'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_2968@localhost/res1' id='6f9760d71725fede9aacbb7654d42564' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.625 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
<presence from='bob_add_contact_and_invite_2968@localhost/res1' to='bob_add_contact_and_invite_2968@localhost/res1'/>
*** User 2024-03-11 09:09:53.635 ***🔗
REST request:
Code: 200
Req: {<0.80361.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc98fa905b824efb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4003}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.646 ***🔗
REST request:
Code: 204
Req: {<0.80396.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c88d40a534f67e5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_2968@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,3497}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_2968@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.646 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
<iq from='bob_add_contact_and_invite_2968@localhost' to='bob_add_contact_and_invite_2968@localhost/res1' id='push60551f4238bfdb2d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_2968@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.685 ***🔗
REST request:
Code: 200
Req: {<0.80432.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07298bd186cb54ea">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2968@localhost\"}]">>,
214,3290}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.698 ***🔗
REST request:
Code: 204
Req: {<0.80456.0>,
<<"/api/contacts/alice_add_contact_and_invite_2968@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c4ad3cdfd62df12">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,5441}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_2968@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"invite\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.698 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
<iq from='bob_add_contact_and_invite_2968@localhost' to='bob_add_contact_and_invite_2968@localhost/res1' id='pusha5479a347f983447' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_2968@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.698 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2968@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2968@localhost/res1">>},
{<<"id">>,<<"pusha5479a347f983447">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2968@localhost">>}],
[]}]}]}
*** User 2024-03-11 09:09:53.699 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
<presence from='bob_add_contact_and_invite_2968@localhost' to='alice_add_contact_and_invite_2968@localhost/res1' type='subscribe'/>
*** User 2024-03-11 09:09:53.708 ***🔗
REST request:
Code: 200
Req: {<0.80494.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1d9080d49691f4e5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2968@localhost\"}]">>,
213,3350}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.708 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
<iq type='set' id='488ff4fa40a09335ca8989c6847320a9'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_2968@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.710 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
<iq from='alice_add_contact_and_invite_2968@localhost' to='alice_add_contact_and_invite_2968@localhost/res1' id='pushf8230485dc49413f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_2968@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.710 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
<iq to='alice_add_contact_and_invite_2968@localhost' id='pushf8230485dc49413f' type='result'/>
*** User 2024-03-11 09:09:53.710 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
<iq from='alice_add_contact_and_invite_2968@localhost' to='alice_add_contact_and_invite_2968@localhost/res1' id='488ff4fa40a09335ca8989c6847320a9' type='result'/>
*** User 2024-03-11 09:09:53.710 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_2968@localhost'/>
*** User 2024-03-11 09:09:53.716 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
<iq from='bob_add_contact_and_invite_2968@localhost' to='bob_add_contact_and_invite_2968@localhost/res1' id='push77a590798cbce882' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_2968@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.716 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2968@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2968@localhost/res1">>},
{<<"id">>,<<"push77a590798cbce882">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2968@localhost">>}],
[]}]}]}
*** User 2024-03-11 09:09:53.724 ***🔗
REST request:
Code: 200
Req: {<0.80545.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"df8a07736e338201">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjk2OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_2968@localhost\"}]">>,
212,2946}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_invite_2968@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.725 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.725 ***🔗
bob_add_contact_and_invite_2968@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.725 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.725 ***🔗
alice_add_contact_and_invite_2968@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:53
=== successfully completed test case
=== === Returned value: ok